/* colophon.blog brand theme. A digital paper: warm broadsheet stock and warm ink by
   default, one violet accent, Fraunces over Inter. Inherits the press chrome (base.css,
   fonts, app.js) and flips it light-first; dark mode keeps the press night palette. */
@import url("base.css");
@import url("vendor/fonts.css");

:root {
  --bg: #f7f4ec; --surface: #fffdf7; --elevated: #f0ecdf; --border: #e3ddcc;
  --text: #211e19; --muted: #4c483f; --faint: #55524a; /* muted/faint >= 7:1 for WCAG AAA (1.4.6) */
  --accent: #6a4bff; --accent-2: #e9609f; --on-accent: #ffffff;
  --link: #4630c8; /* accent-as-text >= 7:1 on the paper stock */
  --accent-soft: rgba(106, 75, 255, 0.09);
  --glow-1: rgba(106, 75, 255, 0.16); --glow-2: rgba(233, 96, 159, 0.10);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --maxw: 720px;
  /* One palette for every code surface (terminals, fences, inline chips, sheet
     snippets); theme-aware, all >= 7:1 on --code-bg for WCAG AAA. */
  --code-bg: var(--elevated); --code-border: var(--border);
  --code-text: var(--text); --code-muted: var(--faint);
  --code-prompt: #a01d5e; --code-cmd: var(--link); --code-ok: #1d6b37;
}
html[data-theme="dark"] {
  --bg: #08080b; --surface: #0e0e13; --elevated: #16161d; --border: #23232e;
  --text: #ededf1; --muted: #b2b2bc; --faint: #aaaab4;
  --accent: #a594ff; --accent-2: #ff9ec9; --on-accent: #0b0b10;
  --link: #b9aaff;
  --accent-soft: rgba(165, 148, 255, 0.13);
  --glow-1: rgba(165, 148, 255, 0.34); --glow-2: rgba(255, 158, 201, 0.20);
  --code-bg: #14121c; --code-border: #262336;
  --code-text: #c9c4de; --code-muted: #7d7796;
  --code-prompt: #ff9ec9; --code-cmd: #a594ff; --code-ok: #8fd6a4;
}

/* ---------- signature: ink-reveal hero (kept from press) ---------- */
.ink { filter: url(#colo-goo); display: inline-block; }
.home-hero h1 { animation: ink-form 1.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.home-hero h1::before { content: ""; position: absolute; left: 50%; top: 55%; width: 55%; height: 80%;
  transform: translate(-50%, -50%); border-radius: 50%; background: var(--accent); filter: blur(22px);
  z-index: -1; animation: ink-blob 1.3s ease-out both; }
@keyframes ink-form { 0% { opacity: 0; filter: blur(16px); letter-spacing: 0.14em; transform: scale(0.97); }
  55% { opacity: 1; } 100% { opacity: 1; filter: blur(0); letter-spacing: -0.03em; transform: none; } }
@keyframes ink-blob { 0% { opacity: 0.55; transform: translate(-50%, -50%) scale(1.35); }
  65% { opacity: 0.22; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); } }

/* ======================================================================
   Landing page (index.html). Sections use .land-* classes; the news list
   at the bottom reuses the press .post-list styles from base.css.
   ====================================================================== */

.land-wrap { max-width: 1020px; margin: 0 auto; padding: 0 1.25rem; }

/* --- hero (illustrated: headline left, terminal right, scene behind) --- */
.land-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem; align-items: center; padding-top: 4.5rem; padding-bottom: 8.5rem; }
.hero-grid > * { min-width: 0; } /* let columns shrink below the terminal's intrinsic width */
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 7rem; } }
.hero-copy h1 { font: 600 clamp(2.3rem, 4.6vw, 3.4rem)/1.12 var(--serif); letter-spacing: -0.03em;
  margin: 1.2rem 0 0; }
.hero-copy h1 em { font-style: italic; color: var(--link); }
.hero-side .term { box-shadow: 0 30px 70px -30px rgba(30, 20, 60, 0.5); }

/* the illustration's palette, both themes */
.ha-sun-in { stop-color: var(--glow-1); }
.ha-sun-mid { stop-color: var(--glow-2); }
.ha-sun-out { stop-color: transparent; }
.ha-path { stroke: var(--faint); stroke-width: 2; stroke-dasharray: 1 14; stroke-linecap: round; opacity: 0.55; }
.ha-wing { fill: var(--surface); stroke: var(--faint); stroke-width: 1.6; stroke-linejoin: round; }
.ha-belly { fill: var(--accent-soft); stroke: var(--faint); stroke-width: 1.6; stroke-linejoin: round; }
.ha-hill { stroke: var(--border); stroke-width: 1.5; }
.ha-hill-back { fill: var(--elevated); }
.ha-hill-front { fill: var(--surface); }
.ha-print { stroke: var(--border); stroke-width: 2; stroke-dasharray: 14 10; stroke-linecap: round; opacity: 0.7; }
html[data-theme="dark"] .ha-wing { fill: var(--elevated); }
/* stacked layout: keep the glow and hills, retire the flock (it would collide with copy) */
@media (max-width: 900px) { .ha-sheet, .ha-path { display: none; } }

.land-eyebrow { font: 600 0.78rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 1.4rem; }
.land-eyebrow a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--border); }
.land-eyebrow a:hover { color: var(--link); border-color: currentColor; }
.land-sub { max-width: 34em; margin: 1.3rem 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }

.land-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn { display: inline-block; font: 600 0.95rem/1 var(--sans); padding: 0.85rem 1.4rem;
  border-radius: 999px; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--link); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--link); color: var(--link); }

.land-install { margin: 1.6rem 0 0; display: inline-flex; align-items: center; gap: 0.6rem;
  font: 0.78rem/1.4 ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  background: var(--code-bg); border: 1px solid var(--code-border); border-radius: 10px;
  padding: 0.65rem 1rem; color: var(--code-text); overflow-x: auto; max-width: 100%;
  white-space: nowrap; }
.land-install::before { content: "$"; color: var(--code-prompt); }

/* --- terminal mockup --- */
.land-demo { margin: 3.5rem auto 0; max-width: 760px; }
.term { background: var(--code-bg); border: 1px solid var(--code-border); border-radius: 12px;
  box-shadow: 0 18px 50px -22px rgba(30, 20, 60, 0.35); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--code-border); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--code-border); }
.term-bar i:first-child { background: var(--accent); opacity: 0.8; }
.term pre { margin: 0; padding: 1.1rem 1.2rem 1.3rem; font: 0.83rem/1.75 ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color: var(--code-text); overflow-x: auto; }
.term .c { color: var(--code-muted); }   /* comment  */
.term .p { color: var(--code-prompt); }  /* prompt   */
.term .k { color: var(--code-cmd); }     /* command  */
.term .o { color: var(--code-ok); }      /* ok/output*/

/* --- section scaffolding --- */
.land-sec { padding: 4.5rem 0 0.5rem; }
.land-sec > .land-wrap > h2 { font: 600 clamp(1.7rem, 3.4vw, 2.3rem)/1.2 var(--serif);
  letter-spacing: -0.02em; margin: 0 0 0.5rem; }
.land-sec > .land-wrap > .land-sec-sub { color: var(--muted); max-width: 46em; margin: 0 0 2.2rem;
  font-size: 1.02rem; line-height: 1.7; }

/* --- write/read split: markdown in, paper out --- */
.land-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: stretch; }
@media (max-width: 820px) { .land-split { grid-template-columns: 1fr; } }
.sheet { background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.4rem 1.6rem; box-shadow: 0 14px 40px -24px rgba(30, 20, 60, 0.35); }
.sheet-label { font: 600 0.72rem/1 var(--sans); letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 1rem; }
.sheet pre { margin: 0; font: 0.82rem/1.7 ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  background: var(--code-bg); border: 1px solid var(--code-border); border-radius: 10px;
  padding: 0.9rem 1.1rem; color: var(--code-muted); white-space: pre-wrap; }
.sheet pre b { color: var(--code-text); font-weight: 600; }
.sheet pre i { color: var(--code-cmd); font-style: normal; }
.mini-post h3 { font: 600 1.35rem/1.25 var(--serif); letter-spacing: -0.01em; margin: 0 0 0.35rem; }
.mini-post .mini-byline { font: 0.78rem/1 var(--sans); color: var(--faint); margin: 0 0 1rem; }
.mini-post p { margin: 0 0 0.8rem; font-size: 0.92rem; line-height: 1.7; color: var(--text); }
.mini-post .mini-callout { border-left: 3px solid var(--accent); background: var(--accent-soft);
  border-radius: 0 8px 8px 0; padding: 0.6rem 0.9rem; font-size: 0.88rem; color: var(--muted); margin: 0 0 0.8rem; }
.mini-post .mini-audio { display: flex; align-items: center; gap: 0.6rem; border: 1px solid var(--border);
  border-radius: 999px; padding: 0.45rem 0.9rem; font: 0.78rem/1 var(--sans); color: var(--faint); width: max-content; }
.mini-post .mini-audio i { width: 22px; height: 22px; border-radius: 50%; background: var(--link);
  position: relative; flex: none; }
.mini-post .mini-audio i::after { content: ""; position: absolute; left: 8px; top: 6px;
  border: 5px solid transparent; border-left: 8px solid var(--on-accent); }
.mini-post .mini-wave { flex: 1; min-width: 90px; height: 14px; background:
  repeating-linear-gradient(90deg, var(--border) 0 2px, transparent 2px 5px); border-radius: 2px; }

/* --- feature grid --- */
.land-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 900px) { .land-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .land-grid { grid-template-columns: 1fr; } }
.feat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.25rem 1.3rem 1.35rem; display: flex; flex-direction: column; gap: 0.45rem; }
.feat:hover { border-color: color-mix(in srgb, var(--link) 40%, var(--border)); }
.feat svg { width: 22px; height: 22px; color: var(--link); flex: none; }
.feat h3 { font: 600 1.02rem/1.3 var(--sans); margin: 0.2rem 0 0; letter-spacing: -0.01em; }
.feat p { margin: 0; font-size: 0.88rem; line-height: 1.65; color: var(--muted); }
.feat a { color: var(--link); }

/* --- publish-anywhere chips --- */
.land-hosts { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.host { font: 500 0.85rem/1 var(--sans); border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); border-radius: 999px; padding: 0.55rem 1rem; }

/* --- news (a .land-sec; heading scale comes from the section styles) --- */
.land-news { padding-bottom: 3rem; }
.land-news .post-list { padding: 0 0 1rem; }
.land-news .post-row { padding: 1.05rem 0; }
.land-news .pt { font-size: 1.15rem; }

/* --- product nav (replaces the press blog topbar) --- */
.pnav-bar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.pnav { max-width: 1020px; margin: 0 auto; padding: 0.7rem 1.25rem; display: flex;
  align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pnav .brand { text-decoration: none; color: var(--text); }
.pnav-links { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.pnav-links a { font: 500 0.92rem/1 var(--sans); color: var(--muted); text-decoration: none;
  padding: 0.45rem 0.15rem; }
.pnav-links a:hover { color: var(--link); }
.pnav-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.pnav-gh { display: inline-flex; align-items: center; gap: 0.4rem; }
.pnav-gh svg { width: 16px; height: 16px; }
@media (max-width: 560px) { .pnav-links { gap: 0.8rem; } .pnav-links a { font-size: 0.88rem; } }

/* --- product pages (page.html: features / get started / about) ---
   Uses press's .post-wrap/.rail/.toc layout (base.css) for the sticky contents nav;
   only the header and cover are ours. */
.ppage .ppage-hero { padding: 1.5rem 0 0.5rem; }
.ppage-hero h1 { font: 600 clamp(2rem, 4.5vw, 3rem)/1.15 var(--serif); letter-spacing: -0.025em; margin: 0; }
.ppage-lede { color: var(--muted); font-size: 1.1rem; line-height: 1.7; max-width: 46em; margin: 1rem 0 0; }
.ppage-cover { margin: 1.75rem 0 0; }
.ppage-cover img { width: 100%; border-radius: 12px; border: 1px solid var(--border); }
.ppage .prose > :first-child { margin-top: 1.5rem; } /* no cavern between the lede and the first heading */

/* Every code surface on the site — fences, inline code, the install pill, terminals and
   sheet snippets — shares the --code-* palette, so all of it flips together with the theme. */
.prose pre { background: var(--code-bg); border: 1px solid var(--code-border); color: var(--code-text);
  box-shadow: 0 14px 40px -28px rgba(30, 20, 60, 0.35); }
.prose code, .feat code, .land-sec-sub code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.85em; background: var(--code-bg); border: 1px solid var(--code-border); border-radius: 5px;
  padding: 0.1em 0.45em; color: var(--code-cmd); }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }

/* footer links */
.foot a { color: var(--faint); }
.foot a:hover { color: var(--link); }

/* hero centres text; the terminal must not inherit that */
.land-demo, .term pre { text-align: left; }
