/* Simply In Depth — Chef Pepper. One stylesheet for the whole site.

   Light only, deliberately. What was here before flipped to brown-black with a bright orange
   on it whenever the visitor's system was in dark mode, and that one rule did more damage to
   how the site reads than everything else put together. A product site picks a look and holds
   it.

   The palette is not invented: --accent and --gold are the two colours in the app's launcher
   icon (#B4442B and #FFD9A0), so the website and the thing it is selling are the same brand.

   Mobile first. Every layout below is one column until it has a reason not to be; the
   breakpoints start at 40rem because the phone widths that matter (360, 390, 412) all sit
   underneath, and Play sends people here on a phone. */

/* ---------------------------------------------------------------------------- typefaces */
/* Self-hosted, latin subset, variable. Self-hosted rather than linked from Google because the
   Content-Security-Policy in _headers says this site makes no third-party requests, and that
   claim is worth more than the 115 KB these two files cost. Both are SIL Open Font License
   1.1 — see fonts/LICENSE.md. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-var.7234ed860a.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-var.3100e775e8.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------------------- tokens */

:root {
  /* Surfaces, warm end of neutral. --paper is the page, --tint is the alternating band, and
     --card is plain white, which only looks crisp because it sits on warm paper. */
  --paper: #fdfaf6;
  --tint: #f7f0e7;
  --card: #ffffff;

  --ink: #1d1916;
  --ink-soft: #675c55;
  --ink-faint: #8d817a;

  --line: #e9e0d5;
  --line-strong: #d9ccbd;

  --accent: #b4442b;        /* the launcher icon's tile */
  --accent-deep: #8d3320;
  --accent-wash: #fbf0eb;
  --gold: #ffd9a0;          /* the launcher icon's chilli stem */
  --on-accent: #fff6f1;

  --radius: 14px;
  --radius-lg: 22px;

  --lift-sm: 0 1px 2px rgba(60, 40, 30, .05);
  --lift: 0 1px 2px rgba(60, 40, 30, .05), 0 10px 24px -12px rgba(60, 40, 30, .22);
  --lift-lg: 0 2px 4px rgba(60, 40, 30, .06), 0 30px 60px -28px rgba(60, 40, 30, .38);

  --display: "Fraunces", ui-serif, Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::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(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-deep); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--gold); color: var(--ink); }

/* -------------------------------------------------------------------------------- shell */

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.wrap.narrow { max-width: 42rem; }
@media (min-width: 56rem) { .wrap { padding: 0 2rem; } }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
  z-index: 10;
}
.skip:focus { left: 0; color: var(--on-accent); }

/* A band is a full-width horizontal stripe with its own background. Sections read as sections
   because the background changes under them, not because a horizontal rule was drawn between
   them. */
.band { padding: 4rem 0; }
.band--tint { background: var(--tint); }
.band--tight { padding: 2.75rem 0; }
@media (min-width: 56rem) {
  .band { padding: 5.5rem 0; }
  .band--tight { padding: 3.5rem 0; }
}

/* ------------------------------------------------------------------------------- header */

header.site {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(253, 250, 246, .88);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) {
  header.site { backdrop-filter: saturate(140%) blur(12px); }
}
header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.25rem;
  padding-top: .8rem;
  padding-bottom: .8rem;
}

.masthead {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.masthead .mark {
  width: 2rem;
  height: 2rem;
  flex: none;
  border-radius: 9px;
  box-shadow: var(--lift-sm);
}
.masthead .names { display: grid; line-height: 1.15; min-width: 0; }
.masthead .product {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.masthead .by {
  font-size: .7rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}

header.site nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.4rem;
  font-size: .93rem;
  font-weight: 500;
}
header.site nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: .15rem 0;
}
header.site nav a:hover { color: var(--accent); }
header.site nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

main { display: block; }
/* Pages that are one column of prose rather than a stack of bands — the legal documents, the
   contact page — get their breathing room here instead. */
main > .wrap { padding-top: 3rem; padding-bottom: 1rem; }

/* --------------------------------------------------------------------------- typography */

h1, h2, h3 { font-family: var(--display); font-optical-sizing: auto; }

/* The ceiling is 3.3rem rather than something grander because of one word: at 3.9rem
   "Restaurant-quality" no longer fits the hero column and breaks at its own hyphen, which
   looks like a typesetting accident rather than a headline. */
h1 {
  font-size: clamp(2.05rem, 5.4vw, 3.3rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.022em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.018em;
  margin: 0 0 .9rem;
  text-wrap: balance;
}
h3 {
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
  margin: 0 0 .4rem;
}
/* Inside a long legal document the headings sit in running prose, so they need the space above
   them that a band would otherwise have provided. */
main > .wrap h2 { margin-top: 2.9rem; }
main > .wrap h3 { margin-top: 1.7rem; }

p, li { margin: .7rem 0; }
ol, ul { padding-left: 1.25rem; }
li::marker { color: var(--ink-faint); }

.lede {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0 0 1.75rem;
  text-wrap: pretty;
}
.muted { color: var(--ink-soft); }
.fine { font-size: .93rem; color: var(--ink-faint); }

.eyebrow {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .9rem;
}

code {
  background: var(--tint);
  border: 1px solid var(--line);
  padding: .08rem .35rem;
  border-radius: 5px;
  font-size: .88em;
}
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* ------------------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.2;
  box-shadow: var(--lift);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover {
  background: var(--accent-deep);
  color: var(--on-accent);
  transform: translateY(-1px);
  box-shadow: var(--lift-lg);
}
.btn:active { transform: none; }
.btn.ghost {
  background: var(--card);
  color: var(--accent);
  border: 1px solid var(--line-strong);
  box-shadow: var(--lift-sm);
}
.btn.ghost:hover { background: var(--accent-wash); color: var(--accent-deep); }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin: 1.6rem 0 0;
}

/* The app is not on Play yet. That fact used to be a greyed-out button, which reads as broken
   rather than as forthcoming — so it is now a status, styled as a status. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: .55rem 1.1rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-soft);
  box-shadow: var(--lift-sm);
}
.chip .dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* --------------------------------------------------------------------------------- hero */

.hero { position: relative; overflow: hidden; padding: 3.25rem 0 3.5rem; }
/* Warmth under the fold without a photograph: two very soft washes, one rust and one gold,
   bleeding out of the top corners. Decorative only, and behind everything. */
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 130%;
  background:
    radial-gradient(60% 55% at 78% 12%, rgba(180, 68, 43, .13), transparent 68%),
    radial-gradient(52% 48% at 12% 4%, rgba(255, 217, 160, .42), transparent 66%);
  pointer-events: none;
  z-index: 0;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 20ch; }

.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) {
  .hero { padding: 4.5rem 0 5rem; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3.5rem; }
}

/* ---------------------------------------------------------------------------- the phone */

/* The screenshots are 360x800 and are shown at a size that resolution can actually carry. No
   fake device bezel: a rounded corner, a hairline and a real shadow. */
.phone {
  width: 100%;
  max-width: 15.5rem;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--card);
  box-shadow: var(--lift-lg);
}
.phone img { display: block; width: 100%; height: auto; }

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}
/* A rounded warm panel behind the phone, so the screenshot is standing on something. */
.phone-stage::before {
  content: "";
  position: absolute;
  inset: 12% 0 6%;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--accent-wash), var(--tint) 70%);
  border: 1px solid var(--line);
}
.phone-stage .phone { position: relative; }

/* ----------------------------------------------------------------------------- features */

.features { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 40rem) { .features { grid-template-columns: 1fr 1fr; gap: 1.1rem; } }
@media (min-width: 72rem) { .features { grid-template-columns: repeat(4, 1fr); } }

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--lift-sm);
}
.feature .icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--accent-wash);
  color: var(--accent);
  margin-bottom: 1rem;
}
.feature .icon svg { width: 1.35rem; height: 1.35rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* -------------------------------------------------------------------------- screen tour */

.shots {
  display: grid;
  gap: 2rem 1.5rem;
  grid-template-columns: 1fr;
  margin-top: 2.5rem;
  justify-items: center;
}
@media (min-width: 34rem) { .shots { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .shots { grid-template-columns: repeat(4, 1fr); } }
.shot { max-width: 15.5rem; width: 100%; }
.shot .phone { max-width: none; }
.shot .label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 1rem 0 .2rem;
}
.shot p { margin: 0; font-size: .94rem; color: var(--ink-soft); }

/* ---------------------------------------------------------------------------- two lists */

/* What a generated recipe actually carries. Plain columns of facts — this is the part of the
   page that should look like documentation rather than like marketing. */
.spec {
  display: grid;
  gap: 0 2.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 34rem) { .spec { grid-template-columns: 1fr 1fr; } }
@media (min-width: 56rem) { .spec { grid-template-columns: repeat(4, 1fr); } }
.spec li {
  margin: 0;
  padding: .7rem 0;
  border-top: 1px solid var(--line-strong);
  font-weight: 500;
  font-size: .97rem;
}

.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.split > div > :first-child { margin-top: 0; }

/* -------------------------------------------------------------------------- closing CTA */

/* One saturated band, at the end, where a decision is being asked for. This is the only place
   on the site that inverts — it is a full stop, not a theme. */
.band--accent {
  background: linear-gradient(150deg, var(--accent), var(--accent-deep));
  color: var(--on-accent);
  text-align: center;
}
.band--accent h2 { color: var(--on-accent); }
.band--accent p { color: rgba(255, 246, 241, .82); max-width: 38rem; margin-inline: auto; }
.band--accent .btn-row { justify-content: center; }
.band--accent .btn { background: var(--on-accent); color: var(--accent-deep); }
.band--accent .btn:hover { background: #fff; color: var(--accent-deep); }
.band--accent .btn.ghost {
  background: transparent;
  color: var(--on-accent);
  border-color: rgba(255, 246, 241, .45);
  box-shadow: none;
}
.band--accent .btn.ghost:hover { background: rgba(255, 246, 241, .12); color: var(--on-accent); }
.band--accent .chip {
  background: rgba(255, 246, 241, .12);
  border-color: rgba(255, 246, 241, .3);
  color: var(--on-accent);
  box-shadow: none;
}
.band--accent .chip .dot { background: var(--gold); }

/* -------------------------------------------------------------------------------- cards */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  margin: 1.25rem 0;
  box-shadow: var(--lift-sm);
}
.card.route { border-left: 3px solid var(--accent); }
.card.kept { background: var(--accent-wash); border-color: #f0dcd3; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-top: 0; }

/* ---------------------------------------------------------------------------- long docs */

.scroll, .wrap-table { overflow-x: auto; }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: .95rem;
  margin: 1rem 0;
}
th, td {
  border-bottom: 1px solid var(--line);
  padding: .6rem .7rem;
  text-align: left;
  vertical-align: top;
}
th { font-weight: 600; }
.scroll table th, .scroll table td { border: 1px solid var(--line); }
.scroll table th { background: var(--tint); }

/* The document footer inside <main> on the legal pages, distinct from the site footer. */
main .wrap > footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: .92rem;
}

/* Contents list on the long legal pages. The sections are numbered in the document itself, so
   the list carries no markers of its own. */
.toc {
  font-size: .95rem;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.4rem;
  margin: 1.75rem 0 2.5rem;
}
.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .1rem;
}
@media (min-width: 34rem) { .toc ul { grid-template-columns: 1fr 1fr; gap: .1rem 1.75rem; } }
.toc li { margin: .18rem 0; }
.toc a { color: var(--ink); text-decoration: none; font-weight: 500; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

/* ------------------------------------------------------------------------------- footer */

footer.site {
  background: var(--tint);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .93rem;
}
footer.site .wrap { padding-top: 3rem; padding-bottom: 3rem; }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 40rem) { .foot-grid { grid-template-columns: 1.4fr 1fr; gap: 3rem; } }

.foot-brand .masthead { margin-bottom: .9rem; }
.foot-brand p { margin: .4rem 0; max-width: 30rem; }

footer.site nav { display: grid; gap: .5rem; align-content: start; }
footer.site nav a { color: var(--ink-soft); text-decoration: none; }
footer.site nav a:hover { color: var(--accent); }
footer.site nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.foot-head {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}
.foot-legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
  color: var(--ink-faint);
  font-size: .87rem;
}
.foot-legal p { margin: .3rem 0; }
