/* LazyCook site. Direction A, Tomato: one tomato field, mustard behind the capybara, warm black ink.
   Flat. Rules instead of cards. One radius (14 px). The plate is the only object with a shadow. */

@font-face { font-family: "Cabinet Grotesk"; src: url("/assets/fonts/CabinetGrotesk-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/assets/fonts/GeneralSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/assets/fonts/GeneralSans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/assets/fonts/GeneralSans-Semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* Metric-matched fallbacks, so the swap does not move anything. */
@font-face { font-family: "Cabinet Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial"); size-adjust: 96%; ascent-override: 90.6%; descent-override: 29.2%; line-gap-override: 0%; }
@font-face { font-family: "General Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 100%; ascent-override: 101%; descent-override: 24%; line-gap-override: 0%; }

:root {
  --tomato: #D7381C;
  --tomato-press: #B42E16;
  --mustard: #F5B82E;
  --ink: #1D1512;

  --field: var(--tomato);
  --on-field: #FFFFFF;
  --paper: #FFFFFF;
  --text: var(--ink);
  --muted: #6E625C;
  --line: #ECE5DF;
  --bezel: #1D1512;
  --screen: #F6F5EF;

  --r: 14px;
  --display: "Cabinet Grotesk", "Cabinet Fallback", system-ui, sans-serif;
  --body: "General Sans", "General Fallback", system-ui, sans-serif;
  --gutter: 20px;
  --max: 1200px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --field: var(--tomato-press);
    --paper: #15100E;
    --text: #F4EDE8;
    --muted: #B4A8A1;
    --line: #2E2521;
    --bezel: #463C37;
    --screen: #1F1A17;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
::selection { background: var(--mustard); color: var(--ink); }

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

h1, h2 { font-family: var(--display); font-weight: 900; text-wrap: balance; }
h1 { font-size: clamp(56px, 11vw + 14px, 132px); line-height: .9; letter-spacing: -.035em; }
h2 { font-size: clamp(38px, 4.4vw + 20px, 76px); line-height: .94; letter-spacing: -.032em; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 14px; border-radius: var(--r); background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 4px; }
.field :focus-visible, .cta :focus-visible { outline-color: #fff; }
.lazy :focus-visible { outline-color: var(--ink); }

/* Buttons. One shape, one size. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 30px; border-radius: var(--r);
  font: 600 17px/1 var(--body); letter-spacing: -.005em; text-decoration: none;
  background: var(--tomato); color: #fff;
}
.btn:hover { background: var(--tomato-press); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #FDF0CF; }

/* The tomato field: nav plus hero, one surface. */
.field { background: var(--field); color: var(--on-field); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 900 24px/1 var(--display); letter-spacing: -.02em; }
.brand .mark { width: 40px; height: 40px; border-radius: 11px; background: var(--mustard); display: grid; place-items: center; flex: none; }
.brand .mark img { width: 30px; height: 30px; }
.nav-link { font: 600 16px/1 var(--body); text-decoration: none; padding: 12px 2px; border-bottom: 2px solid rgb(255 255 255 / .55); }
.nav-link:hover { border-bottom-color: #fff; }

.hero { --plate: min(84vw, 360px); --sink: calc(var(--plate) * .34); position: relative; overflow-x: clip; }
.hero .wrap { position: relative; display: grid; padding-top: 28px; }
.hero h1 span { display: inline-block; }
.hero .lead { margin-top: 22px; max-width: 30ch; font: 500 19px/1.4 var(--body); }
.hero .act { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hero .note { font: 500 15px/1.3 var(--body); }
.plate {
  width: var(--plate); aspect-ratio: 1; border-radius: 50%;
  margin: 36px calc(var(--plate) * -.2) calc(var(--sink) * -1) auto;
  position: relative; z-index: 2;
  box-shadow: 0 22px 36px rgb(60 10 0 / .28);
  background: #E9E6E1;
}
.plate img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* Sections on paper. */
.section { padding: 88px 0; }
.how { padding-top: calc(var(--sink, 120px) + 56px); }
.section > .wrap > h2 { max-width: 14ch; }

.steps { margin-top: 44px; display: grid; gap: 44px; }
.step { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; gap: 0 18px; align-items: start; }
.step .num { font: 900 88px/.8 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.step p { font-size: 18px; line-height: 1.4; padding-top: 2px; max-width: 30ch; }
.step .shot { grid-column: 1 / -1; margin-top: 28px; align-self: end; }

/* Screens stand in a neutral phone, cut off by a shelf rule. */
.shot { border-bottom: 2px solid var(--text); display: flex; justify-content: center; align-items: flex-end; gap: 18px; padding: 0 6%; }
.phone {
  width: 100%; max-width: 270px; aspect-ratio: 600 / 700; overflow: hidden;
  border: 8px solid var(--bezel); border-bottom: 0; border-radius: 36px 36px 0 0;
  background: var(--screen);
}
.phone img { width: 100%; height: auto; }
.phone.tall { aspect-ratio: 600 / 1000; }

.more { padding-top: 0; }
.more .wrap > h2 { max-width: 20ch; }
.more-grid { display: grid; gap: 48px; margin-top: 36px; }
.ruled { border-top: 2px solid var(--text); }
.ruled div { padding: 18px 0 20px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.ruled dt { font: 600 18px/1.3 var(--body); }
.ruled dd { color: var(--muted); font-size: 17px; line-height: 1.45; max-width: 40ch; }
.more .shot { padding: 0 2%; gap: 14px; }
.more .phone { max-width: 260px; }

/* The capybara's own surface. Ink on mustard in both themes. */
.lazy { background: var(--mustard); color: var(--ink); padding: 32px 0 72px; }
.lazy .wrap { display: grid; justify-items: start; }
.lazy img { width: min(78vw, 380px); justify-self: center; }
.lazy h2 { margin-top: 20px; max-width: 11ch; }
.lazy p { margin-top: 18px; font: 500 19px/1.45 var(--body); max-width: 30ch; }

.faq .wrap { display: grid; gap: 36px; }
.faq-list { border-top: 2px solid var(--text); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font: 600 18px/1.3 var(--body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
}
.faq details[open] summary::after { background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat; }
.faq .answer { padding: 0 0 22px; color: var(--muted); max-width: 58ch; }
.faq .answer a { color: var(--text); text-underline-offset: 3px; }

.cta { background: var(--field); color: var(--on-field); padding: 72px 0; }
.cta .wrap { display: grid; gap: 28px; justify-items: start; }
.cta h2 { max-width: 10ch; }

.footer { padding: 40px 0 48px; border-top: 1px solid var(--line); }
.footer .wrap { display: grid; gap: 22px; }
.footer .brand { font-size: 22px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer nav a { font: 500 16px/1 var(--body); text-decoration: none; padding: 8px 0; }
.footer nav a:hover, .footer nav a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
.footer small { color: var(--muted); font-size: 14px; }

/* Privacy and 404. */
.page-head .wrap { padding-top: 24px; padding-bottom: 56px; }
.prose { padding-top: 48px; padding-bottom: 88px; max-width: 680px; }
.prose > p:first-child { color: var(--muted); }
.prose h2 { font-size: 30px; line-height: 1; letter-spacing: -.02em; margin: 44px 0 0; padding-top: 16px; border-top: 2px solid var(--text); }
.prose p, .prose ul { margin-top: 14px; }
.prose ul { display: grid; gap: 10px; }
.prose li { padding-left: 18px; position: relative; }
.prose li::before { content: ""; position: absolute; left: 0; top: .68em; width: 7px; height: 2px; background: currentColor; }
.prose a { text-underline-offset: 3px; }

.lost { background: var(--mustard); color: var(--ink); padding: 40px 0 80px; display: grid; align-items: center; }
.lost .wrap { display: grid; justify-items: start; }
.lost img { width: min(70vw, 300px); justify-self: center; }
.lost h1 { margin-top: 16px; font-size: clamp(52px, 8vw + 20px, 104px); }
.lost p { margin: 14px 0 28px; font: 500 19px/1.4 var(--body); }

@media (min-width: 760px) {
  :root { --gutter: 40px; }
  body { font-size: 18px; }
  .section { padding: 120px 0; }
  .more { padding-top: 0; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
  .step { border-top: 2px solid var(--text); padding-top: 18px; }
  .phone { max-width: 300px; aspect-ratio: 600 / 780; }
  .step .num { font-size: 104px; }
  .step p { font-size: 18px; }
  .step .shot { padding: 0 4%; }
  .lazy { padding: 72px 0; }
  .lazy .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 20px 56px; }
  .lazy p { font-size: 22px; }
  .lazy img { width: 100%; max-width: 440px; grid-row: 1 / 3; }
  .lazy h2 { margin-top: 0; align-self: end; }
  .lazy p { align-self: start; }
  .faq .wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; }
  .cta { padding: 96px 0; }
  .cta .wrap { grid-template-columns: 1fr auto; align-items: end; }
  .footer .wrap { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
  .footer nav { justify-content: center; }
  .lost .wrap { grid-template-columns: auto 1fr; column-gap: 56px; align-items: center; }
  .lost img { grid-row: 1 / 4; width: 320px; }
  .lost h1 { margin-top: 0; }
  .page-head .wrap { padding-top: 48px; padding-bottom: 88px; }
}

@media (min-width: 1024px) {
  .hero { --plate: min(46vw, 640px); --sink: calc(var(--plate) * .3); }
  .hero .wrap { padding-top: 40px; padding-bottom: 140px; }
  .hero .copy { width: min(800px, 100% - var(--plate) * .5); position: relative; z-index: 3; }
  .hero h1 { font-size: clamp(84px, 8.4vw, 124px); }
  .hero .lead { font-size: 22px; max-width: 28ch; margin-top: 28px; }
  .hero .act { margin-top: 36px; }
  .plate { position: absolute; margin: 0; right: calc(var(--plate) * -.16); bottom: calc(var(--sink) * -1); }
  .how { padding-top: 120px; }
  .more-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: end; margin-top: 56px; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .nav-link { transition: background-color .15s ease, border-color .15s ease; }
}
