/* SCOBY BOO landing. Tokens from SCOBY_BOO_brand_docs/design.md section 4.
   Fixed light theme on purpose: Cream paper is the brand's base surface,
   and the olive sections already give the page its dark moments. */
/* Self-hosted from Google Fonts (OFL), latin subset only. */
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/fredoka-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Gaegu";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/gaegu-700-latin.woff2") format("woff2");
}

:root {
  --sage: #8BA38A;
  --olive: #3F513C;
  --olive-soft: #4E6149;
  --cream: #F7F3E9;
  --butter: #F6E4B6;
  --peach: #EBD0C1;
  --toast: #8B6F56;
  --ink: #2B3528;
  --white: #FFFFFF;

  --display: "Fredoka", ui-rounded, system-ui, sans-serif;
  --hand: "Gaegu", "Comic Sans MS", cursive;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius-card: 20px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--olive);
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
}

/* Bubble cursor for mouse users; links keep the browser's hand cursor so they still read as clickable. */
@media (hover: hover) and (pointer: fine) {
  html { cursor: url("cursor-bubble.svg") 14 14, auto; }
}

.defs { position: absolute; }

h1, h2 { font-weight: 700; line-height: 1.05; margin: 0; }
p { margin: 0; }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; border-radius: 4px; }
.meet :focus-visible, .launch :focus-visible { outline-color: var(--butter); }

.hand { font-family: var(--hand); font-weight: 700; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--olive); color: var(--cream); padding: .75rem 1rem; border-radius: 8px;
}
.skip:focus { top: 1rem; }

/* Header: two nav destinations fit beside the brand even at 320px, so no menu toggle. */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--gutter);
  position: relative; z-index: 2;
}
.brand { font-weight: 700; font-size: 1.25rem; letter-spacing: .02em; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: clamp(.5rem, 3vw, 1.75rem); }
.site-nav a { font-weight: 500; text-decoration: none; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; padding: 0 .25rem; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.site-nav a:hover { text-decoration-line: underline; }
.site-nav a[aria-current="page"] { font-weight: 600; text-decoration-line: underline; text-decoration-color: var(--sage); }
@media (max-width: 374px) {
  .brand { font-size: 1.05rem; }
  .site-nav { gap: .25rem; }
  .site-nav a { font-size: .95rem; padding: 0 .2rem; }
}

/* Buttons: the one pill radius on the page, reserved for the main action. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: .75rem 1.6rem;
  background: var(--olive); color: var(--cream);
  border-radius: 999px; font-weight: 600; text-decoration: none; text-align: center;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-light { background: var(--butter); color: var(--olive); }
.btn-light:hover { background: var(--cream); }

.text-link { font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 2px; min-height: 44px; display: inline-flex; align-items: center; }
.text-link:hover { text-decoration-color: var(--sage); }

/* Hero: RTP3 composition. Butter sun top right, sage moss bottom left, two sprouts. */
.hero {
  position: relative;
  padding: clamp(2.5rem, 8vw, 5rem) var(--gutter) clamp(4rem, 12vw, 7.5rem);
  margin-top: -76px; padding-top: calc(76px + clamp(2.5rem, 8vw, 5rem));
  text-align: center;
  isolation: isolate;
  overflow: clip;
}
.hero-sun {
  position: absolute; z-index: -1; top: -18vw; right: -16vw;
  width: clamp(260px, 52vw, 640px); aspect-ratio: 1; border-radius: 50%; background: var(--butter);
}
.bubble { position: absolute; border: 2.5px solid var(--sage); border-radius: 50%; }
.b1 { width: 12px; height: 12px; left: 22%; bottom: 34%; }
.b2 { width: 20px; height: 20px; left: 26%; bottom: 24%; }
.b3 { width: 34px; height: 34px; left: 18%; bottom: 12%; }
.hero-moss {
  position: absolute; z-index: -1; bottom: -14vw; left: -20vw;
  width: clamp(240px, 46vw, 560px); aspect-ratio: 1; border-radius: 50%; background: #DFE3D5;
}
.hero-sprout { position: absolute; z-index: -1; width: clamp(48px, 7vw, 80px); height: clamp(120px, 17.5vw, 200px); bottom: 0; }
.hero-sprout.left { left: clamp(.5rem, 6vw, 6rem); }
.hero-sprout.right { right: clamp(.5rem, 6vw, 6rem); transform: scaleX(-1); }

.hero-inner { max-width: 44rem; margin: 0 auto; }
.wordmark {
  position: relative; display: inline-flex; flex-direction: column; align-items: center;
  font-size: clamp(4.25rem, 19vw, 10rem); line-height: .92; letter-spacing: .01em;
}
.spark { fill: var(--sage); position: absolute; width: .24em; height: .24em; }
.s1 { left: -.22em; top: .08em; }
.s2 { right: -.18em; bottom: .3em; width: .16em; height: .16em; }
.heart { width: 28px; height: 26px; fill: var(--toast); margin: 1.5rem auto .5rem; display: block; }
/* Toast on Cream is 4.21:1, so it only carries text at large size (Gaegu 1.75rem+). */
.tagline { font-size: clamp(1.75rem, 5.5vw, 2.5rem); color: var(--olive); line-height: 1.2; }
.lede { margin: 1.25rem auto 0; max-width: 34rem; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: center; align-items: center; }

/* Meet Boo: RTP5 olive block. Asymmetric split so it reads differently from the centered hero. */
.meet {
  background: var(--olive); color: var(--cream);
  padding: clamp(3.5rem, 9vw, 6.5rem) var(--gutter);
  display: grid; gap: 2.5rem; align-items: center;
}
.meet-art {
  justify-self: center;
  width: min(100%, 420px); aspect-ratio: 1; border-radius: 50%;
  background: var(--olive-soft); display: grid; place-items: center;
}
.meet-art svg { width: 82%; height: auto; overflow: visible; }
/* Eye-follow (script in index.html): quick while looking, slower when settling back. */
.meet-art .boo-eyes { transition: transform .25s ease-out; }
.meet-art .boo-eyes.is-resting { transition-duration: .6s; }
.meet-copy { max-width: 32rem; }
.kicker { color: var(--butter); font-size: clamp(1.5rem, 4vw, 1.9rem); line-height: 1.2; }
.meet h2 { font-size: clamp(2.4rem, 7vw, 4rem); margin: .35rem 0 1.25rem; }
.meet .quote { margin-top: 1.5rem; font-family: var(--hand); font-weight: 700; font-size: 1.6rem; color: var(--peach); }

@media (min-width: 760px) {
  .meet { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); padding-left: max(var(--gutter), calc((100vw - 1100px) / 2)); padding-right: max(var(--gutter), calc((100vw - 1100px) / 2)); }
}

/* Product: text left, bottle right, bottle breaks the section's bottom edge on wide screens. */
.product {
  max-width: 1100px; margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6rem) var(--gutter) clamp(2rem, 5vw, 3rem);
  display: grid; gap: 2rem; align-items: end;
}
.product h2 { font-size: clamp(2.4rem, 7vw, 4.25rem); margin-bottom: 1.75rem; }
.spec { margin: 0; display: grid; gap: 0; border-top: 2px solid var(--olive); max-width: 26rem; }
.spec div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid #C9D3C4; }
.spec dt { font-weight: 500; color: var(--olive-soft); }
.spec dd { margin: 0; font-weight: 600; }
.bottle { margin: 0; justify-self: center; width: min(62vw, 260px); }
.bottle svg { width: 100%; height: auto; display: block; }

@media (min-width: 760px) {
  .product { grid-template-columns: 1.3fr 1fr; }
  .bottle { margin-bottom: -5.5rem; position: relative; z-index: 1; }
}

/* Process: butter band, deliberately the quietest section, text only. */
.process {
  background: var(--butter);
  padding: clamp(3rem, 8vw, 7rem) var(--gutter) clamp(3rem, 7vw, 4.5rem);
}
.process > * { max-width: 40rem; margin-left: auto; margin-right: auto; }
.process h2 { font-size: clamp(1.9rem, 5vw, 2.75rem); margin-bottom: 1rem; }
.process-note { margin-top: 1.5rem; font-size: clamp(1.6rem, 4.5vw, 2rem); line-height: 1.2; }
.process-more { margin-top: 1rem; }

/* Launch: RTP11. The single butter accent on olive is the date. */
.launch {
  position: relative;
  background: var(--olive); color: var(--cream); text-align: center;
  padding: clamp(3.5rem, 9vw, 6rem) var(--gutter);
}
.launch h2 { font-size: clamp(3.5rem, 14vw, 7rem); display: flex; flex-direction: column; align-items: center; }
.launch .date { color: var(--butter); font-size: .55em; margin-top: .25rem; }
.launch .kicker { color: var(--cream); font-size: clamp(1.8rem, 5vw, 2.4rem); }
.countdown { margin-top: 1rem; font-size: 1.2rem; font-weight: 500; }
.launch-art {
  margin: 2rem auto; width: min(100%, 360px); aspect-ratio: 1; border-radius: 50%;
  background: var(--olive-soft); display: grid; place-items: center;
}
.launch-art svg { width: 76%; height: auto; }
.launch-note { margin-bottom: 1.25rem; }
.launch .spark { fill: var(--butter); width: 22px; height: 22px; }
.l1 { left: 12%; top: 40%; }
.l2 { right: 12%; top: 12%; }

.site-footer {
  padding: 3rem var(--gutter) 3.5rem; text-align: center;
}
.site-footer p + p { margin-top: .5rem; }
.signoff { font-family: var(--hand); font-weight: 700; font-size: 1.75rem; line-height: 1.2; margin-bottom: 1rem; }
.site-footer a { font-weight: 600; text-underline-offset: 4px; }
.small { font-size: .9rem; color: var(--olive-soft); }

/* Articles (/artikel/). Same paper, narrower measure for long reading. */
.article-head {
  position: relative; isolation: isolate; overflow: clip;
  padding: clamp(1.5rem, 5vw, 3rem) var(--gutter) clamp(2.5rem, 7vw, 4rem);
}
.article-sun {
  position: absolute; z-index: -1; top: -12rem; right: -10rem;
  width: clamp(240px, 40vw, 460px); aspect-ratio: 1; border-radius: 50%; background: var(--butter);
}
.article-head > * { max-width: 42rem; margin-left: auto; margin-right: auto; }
.crumbs ol { list-style: none; margin: 0 auto 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0 .5rem; font-size: .95rem; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--toast); }
.crumbs a { text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.article-head h1 { font-size: clamp(2.3rem, 7vw, 3.75rem); line-height: 1.08; }
.article-head .lede { margin: 1.25rem auto 0; font-size: 1.2rem; max-width: 42rem; }
.article-meta { margin-top: 1.25rem; font-size: .95rem; color: var(--olive-soft); }

.prose { box-sizing: content-box; max-width: 42rem; margin: 0 auto; padding: 0 var(--gutter) clamp(3rem, 8vw, 5rem); font-size: 1.125rem; line-height: 1.7; }
.prose h2 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); line-height: 1.15; margin: 3rem 0 1rem; }
.prose p + p { margin-top: 1rem; }
.prose a { font-weight: 600; text-underline-offset: 4px; }
.prose dfn { font-style: normal; font-weight: 600; }

/* Jar diagram: numbered markers in the drawing match the list below it. */
.jar { margin: 1.75rem 0 1.5rem; background: var(--white); border-radius: var(--radius-card); padding: 1.25rem 1rem .5rem; }
.jar svg { display: block; width: min(100%, 360px); height: auto; margin: 0 auto; }
.jar figcaption { text-align: center; font-size: .95rem; color: var(--olive-soft); padding: .5rem 0 .75rem; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.25rem 1fr; gap: .9rem; }
.steps li::before {
  content: counter(step); width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--olive); color: var(--cream); font-weight: 600; display: grid; place-items: center; margin-top: .1rem;
}
.steps strong { display: block; }
.steps + p { margin-top: 1.5rem; }

.sources { margin-top: 3rem; padding-top: 1.25rem; border-top: 2px solid var(--olive); font-size: 1rem; }
.sources h2 { font-size: 1.25rem; margin: 0 0 .75rem; }
.sources ol { margin: 0; padding-left: 1.25rem; display: grid; gap: .6rem; }
.sources a { overflow-wrap: anywhere; }

/* Closing band: the article's one olive moment, Boo plus the one action. */
.article-end { background: var(--olive); color: var(--cream); padding: clamp(3rem, 8vw, 5rem) var(--gutter); display: grid; gap: 2rem; align-items: center; }
.article-end :focus-visible { outline-color: var(--butter); }
.article-end .meet-art { width: min(100%, 300px); }
.article-end h2 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 1rem; }
.article-end .quote { margin: 1.25rem 0 1.75rem; font-family: var(--hand); font-weight: 700; font-size: 1.6rem; color: var(--peach); }
@media (min-width: 760px) {
  .article-end { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); padding-left: max(var(--gutter), calc((100vw - 980px) / 2)); padding-right: max(var(--gutter), calc((100vw - 980px) / 2)); }
}

/* Article index */
.article-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--olive); }
.article-list li { border-bottom: 1px solid #C9D3C4; }
.article-list a { display: block; padding: 1.5rem 0; text-decoration: none; font-weight: inherit; }
.article-list a:hover h2 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.article-list h2 { font-size: clamp(1.4rem, 4vw, 1.75rem); margin: 0 0 .5rem; line-height: 1.2; }
.article-list p + p { margin-top: .5rem; }
