/* Simply In Depth — one stylesheet for the company site and the Chef Pepper product pages.
   Mobile first: every layout below is a single 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 the Play Store sends people here on a phone. */

:root {
  --ground: #fdf8f5;
  --surface: #f6ece6;
  --ink: #2b211d;
  --ink-soft: #6b5a52;
  --line: #e2d1c7;
  --accent: #b23c1c;
  --accent-ink: #ffffff;
  --warn-ground: #fbeae4;
  --shadow: 0 1px 2px rgba(43, 33, 29, .05), 0 8px 24px rgba(43, 33, 29, .06);
  --serif: ui-serif, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #17120f;
    --surface: #221a16;
    --ink: #f2e7e1;
    --ink-soft: #b9a79e;
    --line: #3a2c25;
    --accent: #e8734a;
    --accent-ink: #1a120e;
    --warn-ground: #2e1b14;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); }
img { max-width: 100%; }

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

.wrap { max-width: 60rem; margin: 0 auto; padding: 0 1.25rem; }
.wrap.narrow { max-width: 42rem; }

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--ground);
}
header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: .02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand-sep { color: var(--line); }
.brand-product { color: var(--accent); text-decoration: none; white-space: nowrap; }
header.site nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.15rem;
  font-size: .92rem;
}
header.site nav a { color: var(--ink-soft); text-decoration: none; }
header.site nav a:hover,
header.site nav a[aria-current="page"] { color: var(--accent); }

main { padding: 2.5rem 0 1rem; }

footer.site {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .9rem;
}
footer.site .wrap { padding-top: 1.5rem; padding-bottom: 3rem; }
footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.1rem;
  margin-bottom: .75rem;
}
footer.site nav a { color: var(--ink-soft); text-decoration: none; }
footer.site nav a:hover { color: var(--accent); }
footer.site p { margin: .35rem 0; }

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

h1 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 6vw, 2.9rem);
  line-height: 1.15;
  margin: 0 0 .5rem;
  text-wrap: balance;
  letter-spacing: -.01em;
}
h2 {
  font-size: clamp(1.2rem, 3.4vw, 1.45rem);
  line-height: 1.3;
  margin: 2.75rem 0 .6rem;
  text-wrap: balance;
}
h3 { font-size: 1.02rem; margin: 1.5rem 0 .35rem; }
p, li { margin: .6rem 0; }
ol, ul { padding-left: 1.3rem; }
.lede {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  margin: 0 0 1.75rem;
  max-width: 34rem;
  text-wrap: pretty;
}
.muted { color: var(--ink-soft); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .75rem;
  color: var(--ink-soft);
  margin: 0 0 .6rem;
}
code {
  background: var(--surface);
  padding: .1rem .35rem;
  border-radius: 4px;
  font-size: .9em;
}
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* --------------------------------------------------------------- pieces */

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  padding: .7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .97rem;
}
.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--line);
}
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.5rem 0 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin: 1rem 0;
}
.card.route { border-left: 3px solid var(--accent); }
.card.kept { background: var(--warn-ground); }
.card h3:first-child { margin-top: 0; }

/* The product list on the company homepage, and the feature blocks on the product page.
   One column on a phone; two only when there is genuinely room. */
.stack { display: grid; gap: 1rem; }
@media (min-width: 40rem) {
  .stack.two { grid-template-columns: 1fr 1fr; }
}

.feature { padding: 1.75rem 0; border-top: 1px solid var(--line); }
.feature h3 { font-size: 1.15rem; margin: 0 0 .3rem; }
.feature p { margin: 0; color: var(--ink-soft); max-width: 34rem; }

/* Screenshots. Rounded containers, no drop-shadow theatre, no device chrome mock-up:
   the screenshots are 360x800 and are allowed to be exactly that. */
.shots {
  display: grid;
  gap: 1.75rem 1.25rem;
  grid-template-columns: 1fr;
  margin: 1.5rem 0 0;
  justify-items: center;
}
@media (min-width: 30rem) { .shots { grid-template-columns: 1fr 1fr; } }
@media (min-width: 52rem) { .shots { grid-template-columns: repeat(4, 1fr); } }
.shot { max-width: 15rem; width: 100%; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.shot .label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  color: var(--ink-soft);
  margin: .75rem 0 .15rem;
}
.shot p { margin: 0; font-size: .9rem; color: var(--ink-soft); }

.hero-shot { max-width: 16rem; margin: 2rem auto 0; }

/* Long legal documents: tables that scroll rather than squeeze. */
.scroll, .wrap-table { overflow-x: auto; }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: .95rem;
  margin: .75rem 0;
}
th, td {
  border-bottom: 1px solid var(--line);
  padding: .5rem .6rem;
  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(--surface); }

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

/* 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(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 2rem;
}
.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.5rem; } }
.toc li { margin: .15rem 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
