/* Crumbtin website. Colours follow the app: sage and cream from the icon, terracotta accent. */

:root {
  --bg: #f6f0e4;
  --surface: #fffcf6;
  --surface-2: #efe6d6;
  --text: #2a231c;
  --muted: #6b6155;
  --border: #e3d8c6;
  --accent: #b5482f;
  --accent-text: #ffffff;
  --sage: #6e8b70;
  --sage-deep: #2f5d50;
  --butter: #ebc262;
  --cocoa: #5a3616;
  --icon-bg: #6e8b70;
  --icon-fg: #f3efe4;
  --band-bg: #6e8b70;
  --band-text: #f7f3ea;
  --shadow: 0 1px 2px rgb(60 40 20 / 0.06), 0 12px 32px -12px rgb(60 40 20 / 0.22);

  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --page: 1120px;
  --gutter: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161c18;
    --surface: #1f2722;
    --surface-2: #28322b;
    --text: #ede7da;
    --muted: #a69e90;
    --border: #334039;
    --accent: #e07a5f;
    --accent-text: #1a1411;
    --sage: #93b095;
    --sage-deep: #9cc4b4;
    --butter: #e5be62;
    --cocoa: #d9b48c;
    --icon-bg: #1e2a22;
    --icon-fg: #e7e2d4;
    --band-bg: #22302a;
    --band-text: #ede7da;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -16px rgb(0 0 0 / 0.6);
  }
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

* { 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(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  overflow-x: hidden;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

img, svg { display: block; }

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

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 8px; }

/* Header */

.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font: 700 1.35rem/1 var(--rounded); letter-spacing: -0.01em;
}
.app-icon {
  width: 36px; height: 36px; border-radius: 22.5%;
  background: var(--icon-bg); color: var(--icon-fg);
  display: grid; place-items: center; flex: none;
}
.app-icon svg { width: 76%; height: auto; fill: currentColor; }
.app-icon.large { width: 88px; height: 88px; box-shadow: var(--shadow); }

.site-nav { display: flex; gap: 4px; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 999px;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--text); }

/* Type */

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); margin: 0 0 20px; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 0 0 14px; }
h3 { font-size: 1.25rem; margin: 0 0 6px; }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block; font: 600 0.8rem/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sage-deep); margin-bottom: 14px;
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }

/* Buttons */

.soon {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text); color: var(--bg);
  border-radius: 14px; padding: 11px 18px 11px 14px;
  font-weight: 600; line-height: 1.2;
}
.soon small { display: block; font-weight: 500; font-size: 0.75rem; opacity: 0.75; letter-spacing: 0.02em; }
.soon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 28px 0 18px; }
.fine { font-size: 0.9rem; color: var(--muted); }

/* Hero */

.hero { padding: 32px 0 72px; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
.hero .wrap > * { min-width: 0; }
@media (min-width: 960px) {
  .hero { padding: 56px 0 96px; }
  .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 40px; }
}

.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative; padding: 12px 0;
}
.hero-visual .post { width: clamp(136px, 40vw, 250px); transform: rotate(-5deg) translateY(-18px); margin-right: -9%; z-index: 1; }
.hero-visual .phone { --w: clamp(188px, 52vw, 300px); z-index: 2; }

.handoff {
  position: absolute; left: 50%; top: 2px; transform: translateX(-62%);
  z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: var(--accent-text);
  font: 600 0.8rem/1 var(--sans); padding: 8px 12px; border-radius: 999px;
  box-shadow: var(--shadow); white-space: nowrap;
}
.handoff svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* The Instagram-style post (drawn, not a screenshot) */

.post {
  container-type: inline-size;
  background: #ffffff; color: #1c1c1c;
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid rgb(0 0 0 / 0.06);
}
.post-head { display: flex; align-items: center; gap: 3cqi; padding: 4cqi 5cqi; font-size: 5.4cqi; font-weight: 600; }
.post-head .avatar { width: 11cqi; height: 11cqi; border-radius: 50%; background: linear-gradient(135deg, #ebc262, #c8553d); flex: none; }
.post-head .dots { margin-left: auto; letter-spacing: 1px; color: #888; }
.post-photo { aspect-ratio: 1; background: #e9dcc6; }
.post-photo svg { width: 100%; height: 100%; }
.post-actions { display: flex; gap: 4cqi; padding: 4cqi 5cqi 1cqi; }
.post-actions svg { width: 8cqi; height: 8cqi; fill: none; stroke: #1c1c1c; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.post-caption {
  font-size: 5.1cqi; line-height: 1.45; padding: 1cqi 5cqi 5cqi; margin: 0;
  max-height: 44cqi; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
  mask-image: linear-gradient(#000 60%, transparent);
}
.post-caption .tag { color: #2f5aa8; }

/* The phone with a Crumbtin recipe (drawn, not a screenshot) */

.phone {
  --w: 300px;
  container-type: inline-size;
  width: var(--w);
  aspect-ratio: 9 / 19;
  border-radius: calc(var(--w) * 0.16);
  padding: calc(var(--w) * 0.03);
  background: #1b1a19;
  box-shadow: var(--shadow), inset 0 0 0 calc(var(--w) * 0.006) #4a4744;
}
.screen {
  height: 100%; border-radius: 13cqi; overflow: hidden;
  background: var(--surface); color: var(--text);
  position: relative; font-size: 4.7cqi; line-height: 1.4;
}
.screen .island {
  position: absolute; top: 2.6cqi; left: 50%; transform: translateX(-50%);
  width: 30cqi; height: 8.6cqi; border-radius: 99px; background: #0d0d0d; z-index: 2;
}
.screen .photo { aspect-ratio: 3 / 2.4; background: #e9dcc6; }
.screen .photo svg { width: 100%; height: 100%; }
.screen .body { padding: 5cqi 6cqi; }
.screen .title { font: 700 7.6cqi/1.15 var(--sans); letter-spacing: -0.01em; margin: 0 0 1.5cqi; }
.screen .source { color: var(--muted); font-size: 4.3cqi; margin: 0 0 3.5cqi; }
.screen .chips { display: flex; flex-wrap: wrap; gap: 2cqi; margin: 0 0 5cqi; padding: 0; list-style: none; }
.screen .chips li { background: var(--surface-2); border-radius: 99px; padding: 1cqi 3.2cqi; font-size: 4cqi; font-weight: 500; }
.screen .chips li.accent { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.screen .row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.4cqi; }
.screen .row b { font-size: 5.6cqi; }
.stepper {
  display: inline-flex; align-items: center; gap: 2.6cqi;
  background: var(--surface-2); border-radius: 99px; padding: 0.8cqi 3cqi; font-size: 4.2cqi; font-weight: 600;
}
.stepper i { font-style: normal; color: var(--accent); font-size: 5.2cqi; line-height: 1; }
.screen ul.ing { list-style: none; margin: 0; padding: 0; }
.screen ul.ing li { padding: 1.6cqi 0; border-bottom: 1px solid var(--border); }
.screen ul.ing li:last-child { border-bottom: 0; }
.screen ul.ing .conv { color: var(--muted); }
.screen .method { margin-top: 5cqi; }
.screen ol.steps-mini { margin: 0; padding: 0; list-style: none; }
.screen ol.steps-mini li { display: flex; gap: 2.6cqi; padding: 1.6cqi 0; }
.screen ol.steps-mini span { color: var(--accent); font-weight: 700; }

/* Sections */

.section { padding: 80px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 40em; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.steps { display: grid; gap: 20px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps li {
  counter-increment: step; background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 26px 24px 20px;
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--butter); color: #3b2a12; font: 700 1rem/1 var(--rounded); margin-bottom: 16px;
}
.steps p { color: var(--muted); margin: 0; }

.features { display: grid; gap: 32px 40px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature .glyph {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--sage) 18%, transparent); color: var(--sage-deep); margin-bottom: 14px;
}
.feature .glyph svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature p { color: var(--muted); margin: 0; }
.feature q { quotes: none; font-weight: 600; color: var(--text); white-space: nowrap; }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.split p { color: var(--muted); font-size: 1.1rem; }

.cookbooks { display: grid; gap: 14px; max-width: 460px; margin: 0 auto; width: 100%; }
.cookbook {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px;
  box-shadow: var(--shadow);
}
.cookbook .cover { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.cookbook b { display: block; font-size: 1.05rem; }
.cookbook span { color: var(--muted); font-size: 0.92rem; }
.cookbook .people { margin-left: auto; display: flex; }
.cookbook .people i {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font: 600 0.75rem/1 var(--rounded); font-style: normal; color: #fff;
  border: 2px solid var(--bg); margin-left: -8px;
}
.cookbook:nth-child(2) { margin-left: 24px; margin-right: -12px; }
@media (max-width: 480px) { .cookbook:nth-child(2) { margin-left: 12px; margin-right: 0; } }

.promises { display: grid; gap: 16px; padding: 0; margin: 28px 0 0; list-style: none; }
.promises li { display: flex; gap: 14px; align-items: flex-start; }
.promises li svg { flex: none; width: 24px; height: 24px; margin-top: 2px; fill: none; stroke: var(--sage-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.promises b { display: block; color: var(--text); }
.promises span { color: var(--muted); }

.band { background: var(--band-bg); color: var(--band-text); text-align: center; padding: 88px 0; }
.band .app-icon { margin: 0 auto 24px; background: var(--band-text); color: var(--band-bg); }
.band h2 { margin-bottom: 10px; }
.band p { opacity: 0.85; font-size: 1.1rem; }
.band a { color: inherit; font-weight: 600; }
.band .soon { background: var(--band-text); color: var(--band-bg); margin-top: 12px; }

/* Documents: privacy and support */

.doc { max-width: 720px; margin: 0 auto; padding: 24px var(--gutter) 64px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.5rem; margin: 2.2em 0 0.5em; }
.doc h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 650; letter-spacing: 0; margin: 1.6em 0 0.3em; }
.doc ul { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: 0.35em; }
.updated { color: var(--muted); margin-bottom: 2em; }
.summary {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 22px 24px 8px; margin: 0 0 1em;
}
.summary h2 { margin-top: 0; }

.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.15s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > :not(summary) { margin-inline: 20px; }
.faq details > :last-child { margin-bottom: 18px; }
.faq em { font-style: normal; font-weight: 600; }

.contact { display: grid; gap: 12px; margin-top: 12px; }
@media (min-width: 640px) { .contact { grid-template-columns: repeat(3, 1fr); } }
.contact div { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.contact b { display: block; }
.contact span { display: block; color: var(--muted); font-size: 0.92rem; margin-bottom: 6px; }

/* Footer */

.site-footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: grid; gap: 10px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer p { margin: 0; }
.cookbook .cover.sage { background: linear-gradient(135deg, #8aa58b, #5f7c62); }
.cookbook .cover.terracotta { background: linear-gradient(135deg, #d4694f, #a8402a); }
.cookbook .cover.butter { background: linear-gradient(135deg, #f0cf7d, #d6a53c); }
.cookbook .people .p1 { background: #2f5d50; }
.cookbook .people .p2 { background: #b5482f; }
.cookbook .people .p3 { background: #8a5a2b; }
