/* TNT Tacos & TNT Roasts — colours taken from the TNT Tacos logo and menu boards */
:root {
  --cream: #f6ead0;
  --paper: #fff8e8;
  --tan: #d5a75e;
  --red: #c8300c;        /* logo red-orange, darkened for text contrast */
  --red-bright: #f43b13;
  --lime: #a5c626;
  --lime-deep: #5d7410;
  --ink: #2e1b0d;         /* logo brown-black */
  --ink-soft: #5a4330;
  --white: #ffffff;
  --head: 'Alfa Slab One', 'Rockwell', Georgia, serif;
  --mono: 'Courier Prime', 'Courier New', monospace;
  --body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1140px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.08; margin: 0 0 .45em; letter-spacing: .01em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 12px; z-index: 99; }
:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 2px; }

/* Header */
.site-head { background: var(--paper); border-bottom: 3px solid var(--ink); position: sticky; top: 0; z-index: 40; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 56px; width: auto; }
.brand span { font-family: var(--head); font-size: 1.25rem; line-height: 1; }
.brand small { display: block; font: 600 .7rem/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: var(--radius); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--cream); }
.nav a.cta { background: var(--red); color: var(--white); }
.nav a.cta:hover { background: var(--ink); }
.has-sub { position: relative; }
.has-sub > a { display: block; }
.has-sub > a::after { content: ""; display: inline-block; margin-left: 7px; border: 5px solid transparent; border-top-color: currentColor; border-bottom: 0; vertical-align: middle; }
.sub { position: absolute; left: 0; top: 100%; width: 230px; display: none; flex-direction: column; background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); padding: 8px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: flex; }
.menu-toggle { display: none; }
@media (max-width: 940px) {
  .site-head > .wrap > .nav { display: none; }
  .menu-toggle { display: block; position: relative; }
  .menu-toggle summary { list-style: none; cursor: pointer; background: var(--ink); color: var(--white); font-weight: 700; padding: 10px 14px; border-radius: var(--radius); }
  .menu-toggle summary::-webkit-details-marker { display: none; }
  .menu-toggle .nav { position: absolute; right: 0; top: calc(100% + 10px); flex-direction: column; align-items: stretch; width: min(280px, calc(100vw - 32px)); max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); overflow: hidden auto; gap: 0; background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); padding: 8px; }
  .menu-toggle .has-sub > a::after { display: none; }
  .menu-toggle .sub { position: static; display: flex; width: auto; border: 0; border-left: 3px solid var(--lime); border-radius: 0; margin: 0 0 4px 14px; padding: 0 0 0 6px; gap: 0; }
  .menu-toggle .sub a { font-weight: 500; padding-block: 8px; }
  .menu-toggle .cta { text-align: center; }
  .brand span { font-size: 1.05rem; }
  .brand img { height: 46px; }
}

/* Exploding menu links (js/boom.js) */
.boom { position: fixed; inset: 0; z-index: 100; pointer-events: none; overflow: hidden; }
.boom i { position: absolute; clip-path: polygon(50% 0, 100% 38%, 78% 100%, 12% 84%, 0 25%); }
.boom b { position: absolute; font: 400 2rem/1 var(--head); color: var(--white); background: var(--red); padding: 22px 30px; transform: translate(-50%, -50%); clip-path: polygon(50% 0, 61% 18%, 82% 4%, 80% 26%, 100% 30%, 88% 50%, 100% 70%, 80% 74%, 82% 96%, 61% 82%, 50% 100%, 39% 82%, 18% 96%, 20% 74%, 0 70%, 12% 50%, 0 30%, 20% 26%, 18% 4%, 39% 18%); }

/* Buttons */
.btn { display: inline-block; font: 700 1rem/1 var(--body); text-decoration: none; padding: 15px 22px; border-radius: var(--radius); border: 3px solid var(--ink); background: var(--red); color: var(--white); box-shadow: 4px 4px 0 var(--ink); cursor: pointer; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }
.btn-ghost { background: var(--paper); color: var(--ink); }
.btn-lime { background: var(--lime); color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }

/* Sections */
section { padding: 60px 0; }
.band-paper { background: var(--paper); border-block: 3px solid var(--ink); }
.band-ink { background: var(--ink); color: var(--cream); }
.band-ink h2, .band-ink h3 { color: var(--lime); }
.band-ink a:not(.btn) { color: var(--cream); }
.band-red { background: var(--red); color: var(--white); }
.band-red h2 { color: var(--white); }
.lead { font-size: 1.15rem; max-width: 62ch; }
.kicker { font: 700 .8rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.band-ink .kicker { color: var(--tan); }
.prose { max-width: 70ch; }
.prose ul { padding-left: 1.2em; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Hero */
.hero { padding: 48px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 span { color: var(--red); }
.hero-art { position: relative; }
.hero-art img { border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--ink); }
.hero-art .badge { position: absolute; right: -14px; bottom: -22px; width: 150px; background: var(--paper); border-radius: 50%; border: 3px solid var(--ink); padding: 8px; box-shadow: none; }
.page-hero { padding: 48px 0 24px; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art .badge { width: 110px; right: 6px; } }

.crumbs { font-size: .88rem; padding-top: 18px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.crumbs span { margin: 0 6px; }

/* Grids and cards */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split img, .photo { border: 3px solid var(--ink); border-radius: var(--radius); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img, .card .ph { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-bottom: 3px solid var(--ink); }
.card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.card-body p { flex: 1; }
.cards-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.brand-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.brand-card { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); padding: 26px; box-shadow: 6px 6px 0 var(--ink); }
.brand-card.roasts { background: var(--ink); color: var(--cream); }
.brand-card.roasts h2, .brand-card.roasts h3 { color: var(--lime); }
.brand-card img { border-radius: var(--radius); margin-bottom: 18px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.gallery img, .gallery .ph { aspect-ratio: 1; object-fit: cover; width: 100%; border: 3px solid var(--ink); border-radius: var(--radius); }
@media (max-width: 820px) { .split, .brand-cards { grid-template-columns: 1fr; gap: 26px; } .split.flip > :first-child { order: 0; } section { padding: 44px 0; } }

/* Image placeholder: shown wherever we don't have a real photo or menu yet */
.ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 20px;
  background: repeating-linear-gradient(45deg, var(--paper), var(--paper) 12px, #f1e2bf 12px, #f1e2bf 24px);
  border: 3px dashed var(--ink-soft); border-radius: var(--radius); color: var(--ink-soft); font-weight: 600; min-height: 220px; }
.ph b { font-family: var(--head); font-weight: 400; font-size: 1.2rem; color: var(--ink); }
.ph small { font-weight: 500; max-width: 30ch; }

/* Menu */
.menu-board { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); padding: 30px; box-shadow: 6px 6px 0 var(--ink); }
.menu-board h2 { text-align: center; text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; }
.menu-board h3 { font-family: var(--mono); font-weight: 700; font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; margin: 22px 0 4px; display: flex; justify-content: space-between; gap: 12px; }
.menu-board h3 .price { color: var(--red); white-space: nowrap; }
.menu-board p { font-family: var(--mono); margin: 0; }
.menu-board .sub { text-align: center; font-family: var(--mono); color: var(--ink-soft); }
.menu-board .section { font-family: var(--head); font-size: 1.5rem; text-align: center; margin: 30px 0 0; color: var(--red); }
.menu-note { font-family: var(--mono); font-size: .92rem; border-top: 2px dashed var(--ink-soft); margin-top: 26px; padding-top: 14px; }
.tag { display: inline-block; font: 700 .75rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; background: var(--lime); color: var(--ink); padding: 6px 9px; border-radius: 99px; margin: 0 6px 6px 0; }

/* FAQ */
.faq-item { border-top: 2px solid var(--ink); padding: 14px 0; }
.faq-item:last-child { border-bottom: 2px solid var(--ink); }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; }
.faq-item p { margin: 10px 0 0; }

/* Link chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; text-decoration: none; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); padding: 8px 12px; border-radius: 99px; font-weight: 600; font-size: .92rem; }
.chip:hover { background: var(--lime); }
.band-ink .chip { background: transparent; color: var(--cream); border-color: var(--cream); }
.band-ink .chip:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.link-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 24px; list-style: none; padding: 0; margin: 0; }

/* Areas page */
.area-groups { grid-template-columns: repeat(auto-fill, minmax(min(245px, 100%), 1fr)); align-items: start; }
.area-groups h3 { font-size: 1.3rem; color: var(--red); }
.area-list { list-style: none; padding: 0; margin: 0; }
.area-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--tan); }
.area-list a { flex: 1; padding: 10px 0; color: var(--ink); font-weight: 600; }
.area-list a:hover { color: var(--red); }
.area-list span { font: 700 .88rem/1 var(--mono); color: var(--ink-soft); }

/* Forms */
.form { display: grid; gap: 16px; background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); padding: 26px; box-shadow: 6px 6px 0 var(--ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; padding: 12px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); color: var(--ink); }
.form textarea { min-height: 140px; resize: vertical; }
.form button { justify-self: start; }
.hp-field { position: absolute; left: -9999px; }
.form-status { font-weight: 700; margin: 0; min-height: 1.4em; }
.form-status.is-error { color: var(--red); }
.form-success { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); padding: 26px; }
.small { font-size: .88rem; }

/* Footer */
footer { background: var(--ink); color: var(--cream); padding: 52px 0 30px; font-size: .95rem; }
footer h2 { font-size: 1.2rem; color: var(--lime); }
footer a { color: var(--cream); }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { padding: 3px 0; }
.foot-grid { align-items: start; }
.foot-grid summary { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 14px; border: 2px solid #5a4330; border-radius: var(--radius); cursor: pointer; list-style: none; }
.foot-grid summary::-webkit-details-marker { display: none; }
.foot-grid summary h2 { margin: 0; }
.foot-grid summary::after { content: ""; border: 7px solid transparent; border-top-color: var(--lime); border-bottom: 0; }
.foot-grid details[open] summary::after { transform: rotate(180deg); }
.foot-grid summary:hover { border-color: var(--lime); }
.foot-grid details > :not(summary) { margin: 12px 14px 0; }
@media (max-width: 760px) { .foot-grid { gap: 14px; } }
.foot-base { border-top: 1px solid #5a4330; margin-top: 32px; padding-top: 18px; font-size: .85rem; color: #d9c7a3; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.foot-base a { color: #d9c7a3; }

img.teaser { aspect-ratio: 16/10; object-fit: cover; width: 100%; max-height: 360px; }
