/* Aphys and Alcove public pages (Trenton 2026-10-23). Brand: docs/BRAND.md, palette "Linen and Ink", IBM Plex
   self-hosted. Calm and plain: linen background, ink text, ink blue as the only accent, no gradients or glows. */
@font-face { font-family: "IBM Plex Serif"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-serif-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-serif-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }

:root {
  --ink: #1C2230; --brand: #2C3E5C; --stone: #6B665F; --pebble: #8A8580; --sand: #D9D2C5; --linen: #F4F0E9; --white: #FFFFFF;
  --bg: var(--linen); --text: var(--ink); --muted: var(--stone); --line: var(--sand); --card: var(--white); --accent: var(--brand); --accent-on: var(--white);
  --serif: "IBM Plex Serif", Georgia, Cambria, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --wide: 1080px; --read: 68ch;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: var(--ink); --text: var(--linen); --muted: #A9A39C; --line: #3A4254; --card: #252C3D; --accent: #8FA3C4; --accent-on: var(--ink); }
  img.logo-light { display: none !important; }
}
/* Logos: the color one on linen, the reversed one on ink (only one ever shows). */
@media not (prefers-color-scheme: dark) { img.logo-dark { display: none !important; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 500; letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3.2vw, 30px); }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wide), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; }
.skip:focus { left: 16px; z-index: 10; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; padding-block: 12px; }
.site-head img { height: 36px; width: auto; display: block; }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 16px; }
.site-nav a { color: var(--text); text-decoration: none; padding: 6px 0; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.site-nav a:hover { color: var(--accent); }

/* Sections */
section { padding-block: clamp(48px, 8vw, 88px); }
section + section { border-top: 1px solid var(--line); }
.hero { padding-block: clamp(56px, 10vw, 112px); }
.hero .lockup { height: 56px; width: auto; margin-bottom: 28px; display: block; }
.lede { font-family: var(--serif); font-size: clamp(19px, 2.2vw, 22px); color: var(--muted); max-width: var(--read); }
.read { max-width: var(--read); }
.eyebrow { font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 6px; background: var(--accent); color: var(--accent-on); font: 500 16px/1 var(--sans); text-decoration: none; border: 1px solid var(--accent); }
.button.quiet { background: transparent; color: var(--accent); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 22px 22px 8px; }
.card p { color: var(--muted); font-size: 16px; }
.who { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.who li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; background: var(--card); }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px 32px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.checks strong { font-weight: 500; display: block; }
.checks span { color: var(--muted); font-size: 16px; }
.note { font-size: 15px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 14px; margin-top: 28px; max-width: var(--read); }
.split { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.quote { font-family: var(--serif); font-size: 22px; line-height: 1.45; margin: 0; }
.demo-frame { width: 100%; height: min(820px, 80vh); border: 1px solid var(--line); border-radius: 10px; background: var(--card); display: block; }

/* Privacy Policy and Terms of Service */
.legal h1 { margin-bottom: .2em; }
.legal .effective { color: var(--muted); font-size: 15px; margin-bottom: 2em; }
.legal h2 { font-size: 21px; margin-top: 1.8em; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .4em; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: 15px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot img { height: 24px; width: auto; vertical-align: middle; }
