/* Enough: the website. The pictures of the dinners lead and the type stays quiet.
   One family (Archivo): regular for text, one heavier weight for headings.
   White page, black ink, a pale tint of the tablecloth in the pictures, one colour
   per week as a small marker, and one accent (--go) kept for the buy button. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 62% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #000;
  --paper: #fff;
  --soft: #4a4a4a;        /* secondary text; 8.9:1 on white, 5.3:1 on the tablecloth */
  --cloth: #D9C6B6;       /* the tablecloth in the pictures; shown while a picture loads */
  --linen: #F5EFE9;       /* the same cloth, much lighter: the band behind the paper pages */
  --line: #DDD5CC;        /* hairlines */
  --go-dark: #AE2413;     /* the buy button under the pointer */
  --heavy: 660;           /* the one heavier weight */
  --gutter: 20px;
  --wk: #000;
}
.wk1 { --wk: var(--wk1); }
.wk2 { --wk: var(--wk2); }
.wk3 { --wk: var(--wk3); }
.wk4 { --wk: var(--wk4); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-stretch: 100%;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: lining-nums;
  text-align: left;
}
h1, h2, h3, p, ul, ol, dl, dd, dt, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { text-wrap: pretty; }
.nw { white-space: nowrap; }

/* ------------------------------------------------------------ type */
h1, h2, h3, .wordmark { font-weight: var(--heavy); }
h1 {
  font-stretch: 90%;
  font-size: clamp(33px, 8.8vw, 44px); line-height: 1.06;
  letter-spacing: -0.015em; text-wrap: balance;
}
h2 {
  font-stretch: 90%;
  font-size: clamp(27px, 6.6vw, 38px); line-height: 1.1;
  letter-spacing: -0.01em; text-wrap: balance;
  max-width: 20em;
}
h3 { font-size: 18px; line-height: 1.25; }
.wordmark { font-stretch: 70%; font-size: 29px; line-height: 1; letter-spacing: -0.012em; }
.lede { font-size: 18px; line-height: 1.45; max-width: 30em; }
.fine { font-size: 15px; line-height: 1.45; color: var(--soft); max-width: 36em; }
.fine a { color: var(--ink); }

/* ------------------------------------------------------------ actions */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 10px 28px;
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 8px;
  font: inherit; font-size: 18px; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
}
.btn:hover { background: var(--linen); }
.btn.go { background: var(--go); border-color: var(--go); color: #fff; font-weight: var(--heavy); }
.btn.go:hover { background: var(--go-dark); border-color: var(--go-dark); }
.btn.compact { min-height: 46px; padding: 6px 20px; font-size: 16px; }
.textlink {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.textlink:hover { text-decoration-thickness: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, h1:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 3px;
}
.skip {
  position: absolute; left: var(--gutter); top: -80px; z-index: 6;
  background: var(--ink); color: var(--paper); padding: 12px 16px;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ the top: the table, then what this is
   On a phone the picture sits above the headline and fills what is left of the first screen.
   On a wide screen the headline sits on the empty cloth to the left of the two plates. */
.hero { display: grid; grid-template-rows: auto minmax(180px, 1fr) auto; min-height: 100vh; min-height: 100svh; }
.hero:not(.has-pic) { grid-template-rows: auto auto; align-content: start; min-height: 0; background: var(--linen); }
.top { padding: 14px var(--gutter) 13px; }
.table { position: relative; display: block; background: var(--cloth); min-height: 0; }
.table img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.pitch { padding: 22px var(--gutter) 30px; }
.pitch .lede { margin-top: 10px; max-width: 24em; }
.actions { display: grid; justify-items: start; gap: 2px; margin-top: 20px; }
.actions .btn { width: 100%; }
.pitch .fine { margin-top: 6px; }
.launch { font-weight: var(--heavy); font-size: 18px; line-height: 1.3; margin-top: 14px; max-width: 30em; }

/* ------------------------------------------------------------ the buy button stays in reach
   Both bars live inside .after, so neither shows until the top of the page has scrolled away. */
.bar-top { display: none; }
.bar-foot {
  position: sticky; bottom: 0; z-index: 4;
  padding: 18px var(--gutter) max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, #fff 74%, rgba(255, 255, 255, 0));
}
.bar-foot .btn { width: 100%; }

/* ------------------------------------------------------------ the label: four facts, ruled like a food label */
.facts { padding: 34px var(--gutter) 0; }
.strip { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.strip div { padding: 11px 0 10px; border-bottom: 1px solid var(--line); }
.strip div:nth-last-child(-n + 2) { border-bottom: 0; }
.strip dt { font-size: 14px; line-height: 1.3; color: var(--soft); }
.strip dd { font-weight: var(--heavy); font-stretch: 88%; font-size: 21px; line-height: 1.2; font-variant-numeric: lining-nums tabular-nums; }
.facts .fine { margin-top: 12px; }

/* ------------------------------------------------------------ sections */
.band { padding: 68px var(--gutter) 0; }
.band > h2 + .lede { margin-top: 12px; }
.band > .lede + .fine { margin-top: 6px; }

/* ------------------------------------------------------------ the dinners, a week at a time */
.weeks { display: grid; gap: 46px; margin-top: 30px; }
.week-head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; row-gap: 2px; padding-bottom: 14px; }
.week-head h3 { display: flex; align-items: center; column-gap: 9px; font-size: 20px; }
.week-head h3::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--wk); }
.week-note { font-size: 15px; line-height: 1.4; color: var(--soft); }
.week-note a { color: var(--ink); text-underline-offset: 3px; }
.dishes { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 14px; }
.dish { min-width: 0; }
.dish.lead { grid-column: 1 / -1; }
.pic { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--cloth); }
.dish.lead .pic { aspect-ratio: 4 / 3; }
.nopic { background: var(--linen); border: 1px solid var(--line); }
.dish .t { margin-top: 10px; font-weight: var(--heavy); font-size: 16px; line-height: 1.25; text-wrap: balance; }
.nums { display: flex; flex-wrap: wrap; column-gap: 14px; row-gap: 2px; margin-top: 6px; font-size: 12.5px; line-height: 1.3; color: var(--soft); }
.nums > span { display: grid; }
.nums .n { font-size: 16px; line-height: 1.25; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }

/* ------------------------------------------------------------ inside the pack: real pages, laid on the cloth */
.inside { margin-top: 72px; padding-top: 60px; padding-bottom: 64px; background: var(--linen); }
.sheets { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 18px; margin-top: 30px; align-items: start; }
.sheet img {
  width: 100%; background: #fff; border-radius: 3px;
  box-shadow: 0 1px 2px rgba(70, 45, 25, 0.2), 0 12px 26px -10px rgba(70, 45, 25, 0.35);
}
.sheet.phone img { width: 58%; border-radius: 12px; }
.sheet figcaption { margin-top: 16px; }
.sheet h3 { font-size: 17px; }
.sheet p { margin-top: 4px; font-size: 15.5px; line-height: 1.4; max-width: 22em; }

/* ------------------------------------------------------------ free week and full pack */
.offers { display: grid; gap: 16px; margin-top: 28px; }
.offer { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; padding: 20px 20px 18px; }
.offer.whole { border: 1.5px solid var(--ink); }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-bottom: 18px; max-width: 330px; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 5px; background: var(--cloth); }
.offer h3 { font-size: 21px; font-stretch: 92%; }
.has { margin-top: 8px; }
.has li { padding: 7px 0 6px; border-bottom: 1px solid var(--line); }
.has li:last-child { border-bottom: 0; }
.offer .btn { margin-top: auto; }
.offer .has { margin-bottom: 14px; }
.offer .fine { margin-top: 10px; }
.placeholder { display: inline-block; white-space: nowrap; outline: 2px dashed var(--ink); outline-offset: -1px; padding: 0 6px; }
.signup { margin-top: 6px; }
.signup label { display: block; font-weight: var(--heavy); font-size: 16px; }
.signup .field { display: grid; gap: 12px; margin-top: 8px; }
.signup input {
  min-width: 0; min-height: 56px; width: 100%; padding: 8px 14px;
  border: 1.5px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink);
  font: inherit; font-size: 18px;
}
.signup .fine { margin-top: 10px; }

/* ------------------------------------------------------------ questions */
.prose { display: grid; gap: 12px; max-width: 36em; margin-top: 20px; }
.qa { border-top: 1px solid var(--ink); max-width: 44em; margin-top: 24px; }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; column-gap: 16px;
  min-height: 54px; padding: 12px 0 11px;
  font-size: 18px; line-height: 1.25;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-size: 26px; line-height: 0.8; flex: none; color: var(--soft); }
.qa details[open] summary::after { content: "\2013"; }
.qa details p { padding: 0 0 16px; max-width: 36em; color: var(--soft); }
.qa details p a { color: var(--ink); }

/* ------------------------------------------------------------ the close, and the foot */
.close { padding-top: 76px; }
.close-after { display: grid; justify-items: start; padding: 10px var(--gutter) 64px; }
.foot { margin: 0 var(--gutter); padding: 18px 0 44px; border-top: 1px solid var(--ink); display: grid; gap: 8px; font-size: 15px; line-height: 1.45; color: var(--soft); }
.foot p { max-width: 40em; }
.foot a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ------------------------------------------------------------ preview builds only */
.preview-banner { background: var(--ink); color: var(--paper); font-size: 14px; line-height: 1.3; padding: 9px var(--gutter); }
.preview-banner:target { background: var(--wk2); }

/* ------------------------------------------------------------ wider than a phone */
@media (min-width: 600px) {
  .actions { grid-auto-flow: column; justify-content: start; align-items: center; column-gap: 24px; }
  .actions .btn, .bar-foot .btn { width: auto; }
  .signup .field { grid-template-columns: 1fr auto; }
  /* the week's first dinner large, the other four beside it */
  .dishes { grid-template-columns: repeat(4, 1fr); gap: 22px 16px; }
  .dish.lead { grid-column: span 2; grid-row: span 2; }
  .dish.lead .pic { aspect-ratio: 1; }
  .dish.lead .t { font-size: 19px; }
  .offers { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (min-width: 760px) {
  :root { --gutter: 40px; }
  body { font-size: 18px; }
  .strip { grid-template-columns: repeat(4, 1fr); column-gap: 0; }
  .strip div { border-bottom: 0; padding: 14px 20px 13px; border-left: 1px solid var(--line); }
  .strip div:first-child { border-left: 0; padding-left: 0; }
  .strip dd { font-size: 20px; }
  .sheets { grid-template-columns: 1fr 1fr 1fr 0.58fr; gap: 28px; align-items: end; }
  .sheet.phone img { width: 100%; }
  .band { padding-top: 88px; }
  .inside { margin-top: 92px; padding-top: 76px; padding-bottom: 76px; }
  .offer { padding: 26px 26px 22px; }
  .thumbs.all { grid-template-columns: repeat(10, 1fr); max-width: none; }
  .thumbs { max-width: 50%; }
}

/* ------------------------------------------------------------ desktop: the headline on the tablecloth */
@media (min-width: 900px) {
  :root { --gutter: max(clamp(40px, 4.5vw, 72px), calc((100vw - 1360px) / 2)); }
  .hero.has-pic {
    position: relative; isolation: isolate;
    display: grid; grid-template-rows: none; align-items: center;
    min-height: min(100vh, 66.67vw, 1200px); min-height: min(100svh, 66.67vw, 1200px);
  }
  .hero.has-pic .table { position: absolute; inset: 0; z-index: -1; }
  .hero.has-pic .table img { object-position: 100% 50%; }
  .hero.has-pic .top { position: absolute; top: 0; left: 0; right: 0; padding-top: 26px; }
  /* the plates begin at 41% of the picture's width; the words stop short of them */
  .hero.has-pic .pitch { width: min(calc(39vw - var(--gutter)), 540px); margin-left: var(--gutter); padding: 90px 0 60px; }
  h1 { font-size: clamp(38px, 4.1vw, 60px); }
  .pitch .lede { margin-top: 16px; font-size: 19px; }
  .actions { grid-auto-flow: row; row-gap: 6px; margin-top: 26px; }
  .pitch .fine { margin-top: 4px; }

  .bar-top {
    position: sticky; top: 0; z-index: 5;
    display: flex; justify-content: space-between; align-items: center; column-gap: 24px;
    padding: 9px var(--gutter);
    background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line);
  }
  .bar-actions { display: flex; align-items: center; column-gap: 26px; }
  .bar-top .textlink { font-size: 16px; }
  .bar-foot { position: static; background: none; padding: 26px var(--gutter) 0; }

  .dishes { grid-template-columns: repeat(5, 1fr); gap: 22px; }
  .dish.lead { grid-column: auto; grid-row: auto; }
  .dish.lead .t { font-size: 16px; }
  .weeks { gap: 52px; }
  .facts { padding-top: 44px; }
  .strip dd { font-size: 23px; }
  .offers { max-width: 1040px; gap: 24px; }
  .close-after { padding-bottom: 88px; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .textlink { transition: background-color 120ms linear, border-color 120ms linear; }
}
@media print {
  .preview-banner, .bar, .skip { display: none; }
}
