/* small yesterday — the landing page. Same water as the pond: tokens are read by pond.js from :root. */
@font-face { font-family: "Noto Serif Display"; font-weight: 700; font-display: swap; src: url("fonts/noto-serif-display-700.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 100 900; font-display: swap; src: url("fonts/geist-mono.woff2") format("woff2"); }

:root,
:root[data-theme="pond"] {
  /* pond: deep lake teal */
  --pond: #0e2a32; --deep: #0a2027; --line: #1f4a55;
  --ink: #ebe6dc; --soft: #b9d3d6;
  --accent: #e8784f; --accent-soft: #f4a07e; --on-accent: #1a120d; --ghost: #3f7480;
  --koi-light: #ece6da; --koi-dark: #3a3632;
  --title-from: #ffffff; --title-to: #9b9b9b;
  color-scheme: dark;
}
:root[data-theme="black"] {
  --pond: #0d1315; --deep: #080c0d; --line: #26302f;
  --ink: #ebe6dc; --soft: #b8c2c1;
  --accent: #e8784f; --accent-soft: #f4a07e; --on-accent: #1a120d; --ghost: #4a5655;
  --koi-light: #ece6da; --koi-dark: #3a3632;
  --title-from: #ffffff; --title-to: #9b9b9b;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --pond: #e9e4da; --deep: #dfd9cd; --line: #c8bfae;
  --ink: #1c1a17; --soft: #4a453e;
  --accent: #9e3214; --accent-soft: #9e3214; --on-accent: #fff7f0; --ghost: #8a8170;
  --koi-light: #f7f2e8; --koi-dark: #2b2723;
  --title-from: #000000; --title-to: #666666;
  /* dark letters cast their glow as a shadow: keep it faint */
  --title-glow: 0.3;
  color-scheme: light;
}
:root { --gutter: clamp(16px, 4.5vw, 64px); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--pond); color: var(--ink);
  font: 400 16px/1.6 "Geist Mono", ui-monospace, Menlo, monospace;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--accent); color: #111; padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.accent { color: var(--accent); }
.glyph { color: var(--accent); font-weight: 700; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 14px;
  background: color-mix(in srgb, var(--pond) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { text-decoration: none; font-weight: 700; font-size: 17px; white-space: nowrap; }
.nav nav { display: flex; gap: 36px; font-size: 14px; }
.nav nav a { text-decoration: none; color: var(--soft); }
.nav nav a:hover { color: var(--ink); }

/* buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; font: 700 14px/1 inherit; font-family: inherit; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 44px; padding: 0 18px; }
.btn-solid { background: var(--accent); color: var(--on-accent); }
.btn-ghost { border-color: var(--ghost); color: var(--ink); }
.btn-ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn-dark { background: #14110f; color: #f4a07e; }
.link { color: var(--accent); font-weight: 700; font-size: 14px; }

/* hero: the live pond behind the words */
.hero { position: relative; min-height: calc(100svh - 72px); display: flex; overflow: hidden; border-bottom: 1px solid var(--line); cursor: pointer; touch-action: pan-y; }
#pond { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--pond) 70%, transparent) 0%, transparent 65%); }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; width: 100%; padding: clamp(48px, 9vh, 112px) var(--gutter) 40px; pointer-events: none; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; max-width: 760px; }
.hero-copy a { pointer-events: auto; }
.eyebrow { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-soft); }
.wordmark { display: block; max-width: 100%; }
.mark-glow { position: absolute; z-index: -1; pointer-events: none; filter: blur(14px); }
.hero-copy { position: relative; isolation: isolate; }
.hero-head { font-size: clamp(26px, 3.4vw, 44px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.lede { font-size: clamp(16px, 1.3vw, 18px); color: var(--soft); max-width: 58ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.ticker { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--soft); }
.pond-hint { position: absolute; right: var(--gutter); bottom: 40px; z-index: 1; margin: 0; font-size: 12px; color: color-mix(in srgb, var(--ink) 65%, transparent); pointer-events: none; }
.pond-hint b { color: var(--ink); font-weight: 500; }

/* sections */
.section { padding: clamp(64px, 10vw, 120px) var(--gutter); border-bottom: 1px solid var(--line); }
.band { background: var(--deep); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.section-head > div, .split-copy { display: flex; flex-direction: column; gap: 14px; }
h2 { font-size: clamp(32px, 4.4vw, 56px); }
h3 { font-size: clamp(20px, 1.8vw, 24px); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.card { display: flex; flex-direction: column; gap: 18px; padding: 32px; border-right: 1px solid var(--line); transition: background .2s ease; }
.card:last-child { border-right: 0; }
.card:hover { background: rgba(232, 120, 79, .06); }
.card p { font-size: 14px; color: var(--soft); }
.art { margin: 0; min-height: 64px; color: var(--accent); font: 700 14px/1.25 inherit; font-family: inherit; }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.split-copy { gap: 22px; }
.stats { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.stats > div { padding: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats > div:nth-child(2n) { border-right: 0; }
.stats > div:nth-child(n+3) { border-bottom: 0; }
.stats dt { font-size: clamp(36px, 4vw, 52px); font-weight: 700; color: var(--accent); line-height: 1.1; }
.stats dd { margin: 6px 0 0; font-size: 14px; color: var(--soft); }

.works { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.work { display: flex; flex-direction: column; gap: 16px; }
.work-art { margin: 0; padding: 24px; min-height: 280px; display: grid; place-content: center; border: 1px solid var(--line); background: var(--deep); color: var(--accent); font: 500 clamp(11px, 1.1vw, 15px)/1.3 inherit; font-family: inherit; overflow-x: auto; transition: border-color .2s ease; }
.work:hover .work-art { border-color: var(--accent); }
.work-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tag { font-size: 13px; color: var(--accent-soft); white-space: nowrap; }

.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news li { display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.news time { font-size: 14px; color: var(--soft); }

.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; padding: clamp(72px, 11vw, 128px) var(--gutter); background: #e8784f; color: #14110f; }
.cta h2 { font-size: clamp(40px, 6.5vw, 88px); max-width: 16ch; }
.cta-art { font-weight: 700; font-size: clamp(14px, 1.4vw, 18px); white-space: pre; overflow: hidden; max-width: 100%; }
.cta-mail { font-weight: 700; }

.foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 32px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--soft); }
.foot nav { display: flex; gap: 28px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .card:nth-child(2) { border-right: 0; }
  .card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split, .works { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav nav { display: none; }
  .grid-4 { grid-template-columns: 1fr; }
  .card { border-right: 0; border-bottom: 1px solid var(--line); }
  .card:last-child { border-bottom: 0; }
  .news li { grid-template-columns: 1fr; gap: 8px; }
  .pond-hint { display: none; }
  .hero::after { background: color-mix(in srgb, var(--pond) 55%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .work-art { transition: none; }
}

/* about page */
.nav nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); }
.hero-short { min-height: min(72svh, 680px); }
.prose { display: flex; flex-direction: column; gap: 20px; font-size: clamp(16px, 1.3vw, 18px); color: var(--soft); max-width: 62ch; }
.founder { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.badge { overflow-x: auto; max-width: 100%; }
.badge pre { margin: 0; padding: 28px; font: 700 clamp(12px, 1.2vw, 16px)/1.35 inherit; font-family: inherit; color: var(--accent); border: 1px solid var(--line); background: var(--pond); box-shadow: 10px 10px 0 color-mix(in srgb, var(--accent) 30%, transparent); }
.pill { align-self: flex-start; padding: 8px 14px; font-size: 14px; font-weight: 700; color: var(--on-accent); background: var(--accent); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.grid-3 .card:last-child { border-right: 0; }
.timeline time { color: var(--accent); font-weight: 700; }
@media (max-width: 1000px) {
  .founder { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-3 .card { border-right: 0; border-bottom: 1px solid var(--line); }
  .grid-3 .card:last-child { border-bottom: 0; }
}

/* the three waters: a switch in the nav, a ripple when it changes */
.themes { display: flex; gap: 2px; font-size: 12px; letter-spacing: .04em; }
.themes button {
  font: inherit; letter-spacing: inherit; color: var(--soft); cursor: pointer;
  background: none; border: 1px solid transparent; padding: 0 10px; min-height: 36px;
  display: inline-flex; align-items: center;
}
.themes button:hover { color: var(--ink); }
.themes button[aria-checked="true"] { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.themes button::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 45%, transparent); }
.themes [data-theme-pick="pond"]::before { background: #0e2a32; }
.themes [data-theme-pick="black"]::before { background: #0d1315; }
.themes [data-theme-pick="light"]::before { background: #e9e4da; }
.nav-end { display: flex; align-items: center; gap: 16px; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 9999; }
@media (max-width: 860px) { .themes button { padding: 0 6px; font-size: 0; } .themes button::before { margin-right: 0; width: 12px; height: 12px; } }
@media (max-width: 420px) { .nav-end .btn-sm { display: none; } }
