/* Coquina's public website (home, features, recipes, kitchen notes, legal). The app's brand: tomato red, the chef
   hat's white and the wooden spoon's cream from the app icon, Anton for display, Nunito Sans for reading.
   The signature is the ticket rail on the home page: a week of dinners hung like order slips over a kitchen pass.
   Colors switch for dark mode with prefers-color-scheme (not light-dark(), so older browsers get the light theme). */
@font-face { font-family: Anton; src: url(/fonts/anton_regular.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: 'Nunito Sans'; src: url(/fonts/nunito_sans_regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito Sans'; src: url(/fonts/nunito_sans_semibold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Nunito Sans'; src: url(/fonts/nunito_sans_bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Nunito Sans'; src: url(/fonts/nunito_sans_extrabold.ttf) format('truetype'); font-weight: 800; font-display: swap; }

:root {
  color-scheme: light dark;
  --tomato: #F0493E;        /* the icon's red: marks, rules, the rail clips */
  --field: #D7382D;         /* red ground under text (white on it is 4.7:1) */
  --on-field: #FFFFFF;
  --spoon: #F9E3C4;         /* the wooden spoon's cream */
  --on-spoon: #2A1A0E;
  --ink: #1E1E1E;
  --muted: #5A5450;
  --paper: #FFFFFF;
  --paper-2: #FBF6F0;
  --rule: #E6DED6;
  --accent: #C3342A;        /* red text and links on paper (5.6:1) */
  --slip: #FFFDFB;
  --slip-edge: #E9DFD4;
  --steel: #2B2B2B;
  --panel: #FCEEDC;         /* the ingredients panel */
  --focus: #1E1E1E;
  --head: Anton, Impact, 'Arial Narrow', sans-serif;
  --body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --field: #A92E25;
    --spoon: #F2D6B0;
    --ink: #EDE8E4;
    --muted: #B9B0AA;
    --paper: #1B1A1A;
    --paper-2: #232120;
    --rule: #403A37;
    --accent: #FF8A7F;
    --slip: #2B2827;
    --slip-edge: #3A3533;
    --steel: #8C847E;
    --panel: #2A2523;
    --focus: #FFD9D4;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body.site { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 6px; font-weight: 700; z-index: 10; }
.skip:focus { top: 12px; }

/* --- Header ----------------------------------------------------------------------------------------------------- */
.bar { border-bottom: 1px solid var(--rule); background: var(--paper); }
.bar-in { max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--accent); }
.brand img { border-radius: 10px; display: block; }
.brand span { font: 400 28px/1 var(--head); text-transform: uppercase; letter-spacing: .5px; }
.nav { display: flex; gap: 6px 22px; flex-wrap: wrap; flex: 1; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { border-bottom-color: var(--tomato); }

/* --- Buttons ---------------------------------------------------------------------------------------------------- */
.btn { display: inline-block; font: 800 16px/1.2 var(--body); padding: 13px 20px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; }
.btn-open { background: var(--field); color: var(--on-field); padding: 10px 18px; }
.btn-open:hover, .btn-solid:hover { filter: brightness(1.08); }
.btn-solid { background: var(--field); color: var(--on-field); }
.btn-cream { background: var(--spoon); color: var(--on-spoon); }
.btn-cream:hover { background: #FFF0DC; }
.btn-line { border-color: rgba(255, 255, 255, .85); color: var(--on-field); }
.btn-line:hover { background: rgba(255, 255, 255, .12); }
.more { font-weight: 800; }

@media (max-width: 720px) {
  .bar-in { gap: 8px 16px; }
  .brand span { font-size: 24px; }
  .brand img { width: 34px; height: 34px; }
  .btn-open { margin-left: auto; font-size: 15px; padding: 9px 14px; }
  .nav { order: 3; flex-basis: 100%; gap: 4px 18px; }
  .nav a { font-size: 15px; }
}

/* --- Hero ------------------------------------------------------------------------------------------------------- */
.hero { background: var(--field); color: var(--on-field); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: end; padding-top: clamp(40px, 7vw, 88px); }
.hero-copy { padding-bottom: clamp(40px, 6vw, 80px); }
.hero h1 { font: 400 clamp(52px, 8.4vw, 112px)/.92 var(--head); text-transform: uppercase; letter-spacing: .5px; margin: 0 0 24px; max-width: 11ch; }
.hero .lede { font-size: clamp(19px, 2vw, 22px); font-weight: 700; line-height: 1.45; max-width: 36ch; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.soon { margin: 18px 0 0; font-weight: 700; font-size: 17px; }
.phone { margin: 0; justify-self: end; width: 100%; max-width: 300px; border: 10px solid #1E1E1E; border-radius: 38px; overflow: hidden; background: #1E1E1E; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.phone img { display: block; width: 100%; border-radius: 28px; }
.hero-phone { border-bottom: 0; border-radius: 38px 38px 0 0; max-width: 340px; max-height: 560px; box-shadow: none; justify-self: center; }
.hero-phone img { border-radius: 28px 28px 0 0; }
@media (max-width: 820px) {
  .hero-in { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-bottom: 32px; }
  .hero-phone { justify-self: start; max-width: 260px; max-height: 300px; }
}

/* --- The ticket rail: this week's dinners -------------------------------------------------------------------- */
.rail-sec { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--rule); }
.rail-title { font: 400 clamp(32px, 4.4vw, 48px)/1 var(--head); text-transform: uppercase; margin: 0 0 10px; }
.rail-sub { margin: 0 0 30px; color: var(--muted); max-width: 60ch; }
.rail-scroll { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.rail { list-style: none; margin: 0; padding: 22px 0 14px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; position: relative; }
/* The pass: one steel bar the slips hang from. */
.rail::before { content: ''; position: absolute; left: -6px; right: -6px; top: 0; height: 8px; border-radius: 4px; background: var(--steel); }
.slip { position: relative; transform: rotate(var(--tilt, 0deg)); transform-origin: 50% 0; }
.slip:nth-child(1) { --tilt: -1.4deg; }
.slip:nth-child(2) { --tilt: .9deg; }
.slip:nth-child(3) { --tilt: -.5deg; }
.slip:nth-child(4) { --tilt: 1.5deg; }
.slip:nth-child(5) { --tilt: -1deg; }
.slip:nth-child(6) { --tilt: .6deg; }
.slip:nth-child(7) { --tilt: -1.7deg; }
/* The clip that holds each slip to the bar. */
.slip::before { content: ''; position: absolute; top: -20px; left: 50%; width: 30px; height: 16px; margin-left: -15px; border-radius: 3px 3px 5px 5px; background: var(--tomato); z-index: 1; }
.slip a { display: flex; flex-direction: column; min-height: 200px; padding: 18px 16px 16px; background: var(--slip); color: var(--ink); text-decoration: none; border: 1px solid var(--slip-edge); border-radius: 2px 2px 4px 4px; box-shadow: 0 10px 18px -14px rgba(0, 0, 0, .45); }
.slip-day { font: 400 26px/1 var(--head); text-transform: uppercase; color: var(--accent); letter-spacing: .5px; padding-bottom: 12px; border-bottom: 2px dashed var(--slip-edge); }
.slip-day abbr { text-decoration: none; }
.slip-dish { font-weight: 800; font-size: 19px; line-height: 1.2; margin-top: 14px; flex: 1; }
.slip-time { font-size: 15px; color: var(--muted); margin-top: 14px; }
.slip a:hover .slip-dish { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .slip { transition: transform .18s ease; }
  .slip:hover, .slip:focus-within { transform: rotate(0deg) translateY(4px); }
}
@media (max-width: 960px) {
  /* The rail scrolls sideways inside itself (never the page), a slip at a time. */
  .rail-scroll { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); -webkit-overflow-scrolling: touch; }
  .rail { grid-template-columns: repeat(7, 150px); width: max-content; }
  .slip { scroll-snap-align: start; }
  .slip a { min-height: 180px; }
}

/* --- Sections ----------------------------------------------------------------------------------------------- */
.band { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(16px, 3vw, 32px); }
.band h2, .page-head h1, .feature h2, .maker h2 { font: 400 clamp(32px, 4.4vw, 48px)/1 var(--head); text-transform: uppercase; letter-spacing: .3px; margin: 0 0 18px; }
.band-sub { color: var(--muted); margin: -6px 0 24px; }
.areas { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 48px; }
.areas li { border-top: 3px solid var(--tomato); padding: 16px 0 8px; }
.areas h3 { font-size: 21px; font-weight: 800; line-height: 1.25; margin: 0 0 6px; }
.areas h3 a { color: var(--ink); text-decoration: none; }
.areas h3 a:hover { text-decoration: underline; }
.areas p { margin: 0; color: var(--muted); max-width: 52ch; }
@media (max-width: 720px) { .areas { grid-template-columns: 1fr; } }

.cards { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 36px; }
.cards a { display: flex; flex-direction: column; gap: 6px; padding: 16px 0 18px; border-top: 1px solid var(--rule); text-decoration: none; color: var(--ink); height: 100%; }
.card-title { font-weight: 800; font-size: 20px; line-height: 1.3; }
.cards a:hover .card-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; color: var(--accent); }
.card-text { color: var(--muted); }
.card-meta { font-size: 15px; font-weight: 700; color: var(--accent); }
.cards-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 40px; }
@media (max-width: 860px) { .cards, .cards-wide { grid-template-columns: 1fr; } }

.maker { background: var(--paper-2); border-top: 1px solid var(--rule); margin-top: clamp(32px, 5vw, 56px); }
.maker-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; padding-top: 48px; padding-bottom: 48px; }
.maker p { max-width: 58ch; margin: 0; }
.maker-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* --- Page heads and reading text ---------------------------------------------------------------------------- */
.page-head { padding-top: clamp(32px, 6vw, 64px); padding-bottom: 8px; }
.page-head h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: .95; max-width: 18ch; }
.page-head .lede { font-size: clamp(19px, 2vw, 21px); color: var(--muted); max-width: 54ch; margin: 0 0 8px; }
.crumb { margin: 0 0 12px; font-weight: 700; }
.crumb-day { color: var(--muted); font-weight: 600; }
.byline { color: var(--muted); font-size: 15px; margin: 12px 0 0; }

.prose { padding-bottom: 32px; }
.prose > * { max-width: 68ch; }
.prose h2 { font: 400 26px/1.1 var(--head); text-transform: uppercase; color: var(--accent); letter-spacing: .3px; margin: 36px 0 10px; }
.prose h3 { font-size: 19px; font-weight: 800; margin: 24px 0 6px; }
.prose p, .prose li, .prose dd { font-size: 18px; line-height: 1.65; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }
.prose .muted { color: var(--muted); font-size: 16px; }
.prose .box { border: 1px solid var(--rule); border-radius: 8px; padding: 4px 18px; margin: 14px 0; }
.defs dt { font-weight: 800; font-size: 19px; margin-top: 18px; }
.defs dd { margin: 4px 0 0; }
.table-wrap { overflow-x: auto; max-width: 68ch; margin: 18px 0; }
table { border-collapse: collapse; width: 100%; font-size: 17px; }
caption { text-align: left; color: var(--muted); font-size: 15px; padding-bottom: 8px; }
th, td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { border-bottom: 2px solid var(--ink); font-weight: 800; }
tbody th { font-weight: 600; }
td { font-weight: 800; white-space: nowrap; }
@media (max-width: 520px) { td { white-space: normal; } }

/* --- Features ------------------------------------------------------------------------------------------------- */
.features { display: grid; gap: 0; padding-top: 16px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 0; border-top: 1px solid var(--rule); }
.feature.has-shot { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: center; }
.feature:nth-of-type(even).has-shot .feature-text { order: 2; }
.feature h2 { font-size: clamp(30px, 3.6vw, 40px); }
.feature p { font-size: 18px; max-width: 56ch; }
.feature .phone { justify-self: center; max-width: 280px; }
@media (max-width: 760px) {
  .feature.has-shot { grid-template-columns: 1fr; }
  .feature:nth-of-type(even).has-shot .feature-text { order: 0; }
  .feature .phone { justify-self: start; max-width: 240px; }
}

/* --- Recipes ------------------------------------------------------------------------------------------------- */
.recipe-head { padding-top: clamp(32px, 6vw, 64px); }
.recipe-head h1 { font: 400 clamp(40px, 6vw, 68px)/.98 var(--head); text-transform: uppercase; margin: 0 0 16px; max-width: 20ch; }
.recipe-head .lede { font-size: clamp(19px, 2vw, 21px); color: var(--muted); max-width: 56ch; margin: 0 0 24px; }
.facts { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 8px; border-top: 3px solid var(--tomato); border-bottom: 1px solid var(--rule); }
.facts div { padding: 12px 28px 12px 0; margin-right: 28px; border-right: 1px solid var(--rule); }
.facts div:last-child { border-right: 0; margin-right: 0; }
.facts dt { font-size: 14px; color: var(--muted); font-weight: 700; }
.facts dd { margin: 2px 0 0; font-weight: 800; font-size: 18px; }
.recipe-intro { padding-top: 16px; padding-bottom: 8px; }
.recipe-body { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 40px; align-items: start; padding-top: 8px; padding-bottom: 8px; }
.recipe-body h2, .tips h2, .save-it h2 { font: 400 28px/1 var(--head); text-transform: uppercase; margin: 0 0 14px; color: var(--ink); }
.ingredients { background: var(--panel); border-radius: 6px; padding: 22px 22px 12px; }
.ingredients ul { list-style: none; margin: 0; padding: 0; }
.ingredients li { padding: 9px 0; border-bottom: 1px solid rgba(120, 80, 40, .18); font-size: 17px; line-height: 1.45; }
.ingredients li:last-child { border-bottom: 0; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px; padding: 4px 0 18px; font-size: 18px; line-height: 1.6; }
.steps li::before { content: counter(step); font: 400 30px/1.1 var(--head); color: var(--accent); }
.tips { padding-top: 24px; }
.tips h2 { color: var(--ink); }
.save-it { margin-top: 8px; margin-bottom: 24px; }
.save-it > * { max-width: 68ch; }
.save-it { border-left: 4px solid var(--tomato); padding-top: 4px; padding-bottom: 4px; }
.save-it h2 { font-size: 24px; margin-bottom: 8px; }
.save-it p { margin: 0; }
@media (max-width: 820px) {
  .recipe-body { grid-template-columns: 1fr; gap: 28px; }
  .facts div { padding-right: 16px; margin-right: 16px; }
}
@media (max-width: 420px) {
  .facts { display: grid; grid-template-columns: 1fr 1fr; }
  .facts div { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--rule); }
  .facts div:nth-last-child(-n+2) { border-bottom: 0; }
}
[data-affiliate-slot] { font: inherit; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 24px; padding-bottom: 48px; border-top: 1px solid var(--rule); margin-top: 16px; }
.pager a { text-decoration: none; color: var(--ink); font-weight: 800; font-size: 18px; line-height: 1.3; }
.pager a span { display: block; font-size: 15px; color: var(--accent); font-weight: 700; margin-bottom: 4px; }
.pager a[rel="next"] { text-align: right; }
.pager a:hover { color: var(--accent); }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager a[rel="next"] { text-align: left; } }

.legal { padding-top: 8px; padding-bottom: 48px; }

/* --- Footer --------------------------------------------------------------------------------------------------- */
.foot { border-top: 1px solid var(--rule); background: var(--paper-2); padding: 40px 0 28px; margin-top: 0; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.foot-brand p { color: var(--muted); max-width: 34ch; margin: 12px 0 0; font-size: 15px; }
.foot h2 { font-size: 15px; font-weight: 800; margin: 6px 0 8px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 6px 0; }
.foot li a { color: var(--ink); text-decoration: none; font-size: 15px; }
.foot li a:hover { text-decoration: underline; }
.foot-note { max-width: var(--wrap); margin: 20px auto 0; padding: 0 var(--gutter); font-size: 14px; color: var(--muted); }
.foot-note + .foot-note { margin-top: 6px; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

@media print {
  .bar, .foot, .pager, .save-it, .skip { display: none; }
  .ingredients { background: none; border: 1px solid #999; }
}
