/* eavesong.com
   Night above the eaves (hero, footer), plain daylight below for reading.
   Moss is the owl and the brand; amber is the owl's eye and marks a ready reply;
   rust marks something to look at yourself. Nothing else carries colour. */

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-var.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-next-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --night: #172033;
  --night-2: #202b42;
  --night-line: #2e3b56;
  --moon: #e9eef5;
  --moon-dim: #a7b2c4;

  --bg: #f2f4f7;
  --surface: #ffffff;
  --ink: #1b2534;
  --muted: #566173;
  --line: #d8dee7;

  --moss: #2f5d50;
  --moss-soft: #e3ece8;
  --amber: #f2b632;
  --amber-ink: #8a5a00;
  --amber-wash: #fbf1d8;
  --rust: #a8432a;
  --rust-wash: #f8e5df;
  --focus: #f2b632;

  --serif: "Source Serif 4", "Iowan Old Style", Charter, Georgia, serif;
  --sans: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b2435;
    --surface: #222d42;
    --ink: #e6ebf2;
    --muted: #a3aec0;
    --line: #33405a;
    --moss: #7fb8a4;
    --moss-soft: #22362f;
    --amber-ink: #f2b632;
    --amber-wash: #322a17;
    --rust: #f08a6c;
    --rust-wash: #3a2520;
    color-scheme: dark;
  }
}

* { 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(--ink);
  font: 17px/1.6 var(--sans);
}
.sprite { display: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; }
h2 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.12; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 700; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Header: sits on the night sky, the top of the same scene. */
.site-head { background: var(--night); color: var(--moon); }
.head-row { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 650 21px/1 var(--serif); letter-spacing: -0.01em; }
.brand img { display: block; }
.site-head nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.site-head nav a { text-decoration: none; color: var(--moon-dim); }
.site-head nav a:hover { color: var(--moon); }
.site-head .nav-cta { color: var(--moon); border: 1px solid var(--night-line); padding: 7px 16px; border-radius: 999px; }
.site-head .nav-cta:hover { border-color: var(--amber); }

/* Hero */
.hero { background: var(--night); color: var(--moon); padding: 40px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 64px; align-items: start; }
.pitch { padding-top: 56px; }
.hero h1 { font-size: clamp(44px, 6vw, 74px); line-height: 1.02; font-weight: 600; font-variation-settings: "opsz" 60; max-width: 12.5ch; margin-bottom: 28px; }
.lede { font-size: 19px; line-height: 1.6; color: var(--moon-dim); max-width: 34em; margin: 0 0 14px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin: 34px 0 0; }
.button { display: inline-block; background: var(--amber); color: #1b1608; font-weight: 700; text-decoration: none; padding: 13px 24px; border-radius: 999px; }
.button:hover { background: #ffc94d; }
.text-link { color: var(--moon); text-underline-offset: 4px; text-decoration-color: var(--night-line); text-decoration-thickness: 2px; }
.text-link:hover { text-decoration-color: var(--amber); }

/* The scene: the one illustrated thing on the page. */
.scene { margin: 0; position: relative; }
.roofline { position: relative; height: 140px; }
.eave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 64px; }
.roof { fill: #26324b; }
.shingles { fill: none; stroke: #1a2438; stroke-width: 2; }
.gutter { fill: #3a4762; }
.perched { position: absolute; right: 56px; bottom: 61px; width: 96px; height: auto; }
.owl-body { fill: #3e7766; }
.owl-belly { fill: #d9d0bb; }
.owl-marks { fill: none; stroke: #9a8f76; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.owl-eye-w { fill: #f4f1e8; }
.owl-iris { fill: var(--amber); }
.owl-pupil { fill: #141b2a; }
.owl-beak { fill: #e3a22a; }
.owl-feet { stroke: #e3a22a; stroke-width: 3.5; stroke-linecap: round; }

.overheard { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.said { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 12px; padding: 16px 18px; font-size: 15px; line-height: 1.55; }
.said.s2 { margin-left: 36px; }
.said.s3 { margin-left: 12px; }
.said p { margin: 0; }
.said .who { display: flex; align-items: center; gap: 8px; color: var(--moon-dim); font-size: 13.5px; margin-bottom: 6px; }
.said .who b { color: var(--moon); font-weight: 650; }
.text { color: var(--moon); }
.draft { margin-top: 12px; padding: 10px 14px; border-left: 3px solid var(--amber); background: #33301f; border-radius: 0 8px 8px 0; color: var(--moon); }
.said .draft-head { display: flex; align-items: center; gap: 6px; color: var(--amber); font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.draft-head .ic { width: 16px; height: 16px; }
.said .verdict { margin-top: 8px; font-size: 13px; color: var(--moon-dim); }
.said .verdict.flag { color: #f3a18a; }

/* One load sequence: the posts are overheard one after another, then the draft appears. */
@media (prefers-reduced-motion: no-preference) {
  .said, .draft { animation: overhear .6s cubic-bezier(.2, .7, .2, 1) both; }
  .s1 { animation-delay: .25s; }
  .s2 { animation-delay: .7s; }
  .s3 { animation-delay: 1.15s; }
  .s1 .draft { animation-delay: 1.9s; }
  @keyframes overhear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* Tiles for sources: a letter on the platform's own colour. */
.tile { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: #fff; font: 700 12px/1 var(--sans); flex: none; }
.t-hn { background: #e3631c; }
.t-reddit { background: #e0441a; }
.t-lobsters { background: #a3261d; }
.t-github { background: #3d4655; }
.t-bsky { background: #1f78e8; }
.t-mastodon { background: #5b47d6; }
.t-x { background: #15181d; }
.t-so { background: #d9760f; }
.t-dev { background: #2b2b2b; }
.t-yt { background: #d61f1f; }
.t-fb { background: #1764e0; }
.t-google { background: #3a77e0; }

/* Sections below the eaves */
.how, .features, .sources { padding: 96px 0; }
.features, .run { border-top: 1px solid var(--line); }
.section-lede { color: var(--muted); margin: 12px 0 0; max-width: 40em; }

/* A real sequence, so it is numbered. */
.steps { list-style: none; counter-reset: step; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); font: 600 20px/1 var(--serif); color: var(--moss); }
.steps li::after { content: ""; position: absolute; top: 22px; left: 56px; right: -20px; border-top: 1px dashed var(--line); }
.steps li:last-child::after { display: none; }
.steps li:nth-child(3)::before { background: var(--amber-wash); border-color: var(--amber); color: var(--amber-ink); }
.steps p { color: var(--muted); margin: 8px 0 0; }

.feature-list { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 40px; }
.feature-list li { display: flex; gap: 16px; }
.feature-list .ic { width: 42px; height: 42px; padding: 9px; border-radius: 10px; background: var(--moss-soft); color: var(--moss); stroke-width: 1.6; }
.feature-list p { color: var(--muted); margin: 6px 0 0; }

.readonly { background: var(--moss); color: #f1f6f3; padding: 72px 0; }
@media (prefers-color-scheme: dark) { .readonly { background: #24463c; } }
.readonly-row { display: flex; gap: 28px; align-items: flex-start; }
.ic-big { width: 52px; height: 52px; stroke-width: 1.4; color: #cfe3dc; margin-top: 4px; }
.readonly h2 { color: #fff; }
.readonly p { font-size: 19px; max-width: 38em; margin: 14px 0 0; color: #d5e5df; }

.source-grid { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.source-grid li { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-weight: 600; font-size: 15.5px; }

.run { padding: 96px 0 112px; }
.run-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.run-grid > div > p { color: var(--muted); margin: 16px 0 0; max-width: 34em; }
.facts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.facts li { display: flex; align-items: center; gap: 12px; }
.facts .ic { color: var(--moss); }
.terminal { background: var(--night); border-radius: 14px; overflow: hidden; border: 1px solid var(--night-line); }
.term-bar { display: flex; gap: 7px; margin: 0; padding: 13px 16px; border-bottom: 1px solid var(--night-line); }
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--night-line); }
.terminal pre { margin: 0; padding: 22px 24px 26px; overflow-x: auto; font: 15px/1.75 var(--mono); color: var(--moon); }
.terminal .c { color: #7f8ba0; }

/* Footer: back under the night sky. */
.site-foot { background: var(--night); color: var(--moon-dim); padding: 64px 0 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding-bottom: 48px; }
.foot-brand .brand { color: var(--moon); font-size: 24px; }
.foot-brand p { margin: 16px 0 0; max-width: 30em; }
.foot-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot-col h2 { font: 700 15px/1.3 var(--sans); letter-spacing: 0; color: var(--moon); margin-bottom: 4px; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { color: var(--moon); text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 4px; }
.foot-col p { margin: 0; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--night-line); padding-top: 24px; font-size: 14px; }
.foot-base p { margin: 0; }

@media (max-width: 960px) {
  .hero-grid, .run-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pitch { padding-top: 24px; }
  .roofline { margin-right: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .steps li:nth-child(2)::after { display: none; }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .hero { padding-bottom: 64px; }
  .lede { font-size: 17px; }
  .said.s2, .said.s3 { margin-left: 0; }
  .perched { right: 24px; width: 80px; }
  .roofline { height: 124px; }
  .how, .features, .sources { padding: 64px 0; }
  .steps, .feature-list { grid-template-columns: minmax(0, 1fr); }
  .steps li::after { display: none; }
  .readonly-row { flex-direction: column; gap: 16px; }
  .run { padding: 64px 0 80px; }
  .foot-grid { gap: 32px; }
}

/* 404 page */
.lost { background: var(--night); }
.lost-main { min-height: calc(100vh - 80px); padding-top: 80px; }
.lost-main h1 { margin-top: 28px; }
