/* anacreon.dev
   Layout: a decision record. One reading column of argument; the record
   itself (fields, tiers, the hash that chains it) sits beside it in mono,
   the way a ledger keeps its margin. The only loud thing on the page is the
   seal a person's decision carries. */

@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --paper: #eef1f0;
  --surface: #f9fbfa;
  --ink: #16212b;
  --muted: #56646e;
  --rule: #c9d2d5;
  --accent: #2b4bb0;
  --seal: #9c2f3e;
  --seal-wash: #f6e6e8;

  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.1rem, 1.4rem + 2.6vw, 3.2rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.4vw, 4.6rem);

  --gutter: clamp(16px, 4vw, 40px);
  --measure: 38rem;
  --wide: 72rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1419;
    --surface: #161d24;
    --ink: #e3e8ec;
    --muted: #94a2ad;
    --rule: #2b353e;
    --accent: #93a8ff;
    --seal: #f2808c;
    --seal-wash: #33191e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1419;
  --surface: #161d24;
  --ink: #e3e8ec;
  --muted: #94a2ad;
  --rule: #2b353e;
  --accent: #93a8ff;
  --seal: #f2808c;
  --seal-wash: #33191e;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--body);
  font-optical-sizing: auto;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.label {
  font: 500 0.75rem/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── Header ─────────────────────────────────────────────── */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; padding-block: 1.1rem; }
.mark { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font: 800 1.2rem/1 var(--display); letter-spacing: -0.01em; margin-right: auto; }
.mark svg { width: 1.6rem; height: 1.6rem; flex: none; }
.site-nav { display: flex; gap: 0.4rem 1.4rem; flex-wrap: wrap; font: 500 0.95rem/1.2 var(--display); }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--accent); }
.site-nav .signin { color: var(--accent); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem);
}
.hero > .wrap > * { min-width: 0; }
.hero h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 .quiet { color: var(--muted); font-weight: 700; }
.hero .lede { margin-top: 1.5rem; font-size: var(--step-1); line-height: 1.5; max-width: 34rem; }
.hero .status { margin-top: 1.75rem; display: flex; gap: 0.75rem 1.25rem; flex-wrap: wrap; align-items: center; }
.button {
  display: inline-block;
  font: 700 1rem/1 var(--display);
  padding: 0.85rem 1.2rem;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.button:hover { background: var(--accent); color: var(--paper); text-decoration: none; }
.hero .note { font-size: var(--step--1); color: var(--muted); max-width: 22rem; }

/* The record card: the subject's own document. */
.record {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.4rem 1.4rem 1.2rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.5;
}
.record-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-bottom: 0.8rem; border-bottom: 1px dashed var(--rule); }
.record h2 { font: 700 1.15rem/1.3 var(--display); letter-spacing: -0.01em; margin-top: 0.9rem; max-width: 22ch; }
.record dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.45rem 1rem; margin: 1rem 0 0; }
.record dt { color: var(--muted); }
.record dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.record .quote { font-family: var(--body); font-style: italic; font-size: 0.95rem; }
.record .chain { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px dashed var(--rule); color: var(--muted); overflow-wrap: anywhere; }
.record .example { margin-top: 0.7rem; color: var(--muted); font-size: 0.72rem; }

.seal {
  position: absolute;
  right: 1.1rem;
  top: 3.2rem;
  border: 2px solid var(--seal);
  color: var(--seal);
  background: var(--seal-wash);
  border-radius: 4px;
  padding: 0.35rem 0.6rem;
  font: 800 0.72rem/1.15 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  transform: rotate(-7deg);
}
@media (prefers-reduced-motion: no-preference) {
  .seal { animation: press 0.5s cubic-bezier(.2,.9,.3,1.3) 0.6s both; }
  @keyframes press {
    from { transform: rotate(-12deg) scale(1.35); }
    to { transform: rotate(-7deg) scale(1); }
  }
}

/* ─── Sections ───────────────────────────────────────────── */
section.band { border-top: 1px solid var(--rule); }
section.band > .wrap { padding-block: clamp(3rem, 6vw, 5rem); }
.section-head { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 1rem 3rem; align-items: baseline; }
.section-head h2 { font-size: var(--step-3); font-weight: 800; }
.section-head p { grid-column: 2; max-width: var(--measure); color: var(--muted); font-size: var(--step-1); line-height: 1.5; }

/* Tiers: a real escalation, so the numbers carry meaning. */
.tiers { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.tiers li { padding: 1.4rem 1.5rem 0 0; display: grid; gap: 0.6rem; align-content: start; }
.tiers li + li { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
.tiers .who { font: 500 0.8rem/1.3 var(--mono); color: var(--muted); }
.tiers h3 { font-size: var(--step-1); font-weight: 700; }
.tiers p { max-width: 30rem; }
.tiers li.human h3 { color: var(--seal); }

/* Feature list: built vs in design, labelled honestly. */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 3rem; margin-top: 2.5rem; }
.feature { display: grid; gap: 0.5rem; align-content: start; min-width: 0; }
.feature h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.feature p { color: var(--ink); max-width: var(--measure); }
.pill { justify-self: start; font: 500 0.7rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.45rem; border-radius: 3px; border: 1px solid currentColor; }
.pill.built { color: var(--accent); }
.pill.design { color: var(--muted); border-style: dashed; }

/* The meeting flow: a true sequence. */
.flow { list-style: none; counter-reset: step; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.flow li { counter-increment: step; display: grid; gap: 0.5rem; align-content: start; padding-top: 1rem; border-top: 1px solid var(--rule); min-width: 0; }
.flow li::before { content: counter(step); font: 500 0.8rem/1 var(--mono); color: var(--muted); }
.flow h3 { font-size: 1.1rem; font-weight: 700; }
.flow li.confirm { border-top: 2px solid var(--seal); }
.flow li.confirm h3 { color: var(--seal); }

.prose { max-width: var(--measure); display: grid; gap: 1rem; margin-top: 2rem; }
.prose.offset { margin-left: calc(14rem + 3rem); }
.gate { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; gap: 0.5rem; }
.gate li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); }
.gate li::before { content: "□"; font-family: var(--mono); color: var(--muted); }

.name-note { font-style: italic; color: var(--muted); }

/* ─── Footer ─────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--rule); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; padding-block: 2rem 2.5rem; font-size: var(--step--1); color: var(--muted); }
.site-foot .wrap > :first-child { margin-right: auto; }

/* ─── Narrow ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .section-head p { grid-column: 1; }
  .prose.offset { margin-left: 0; }
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .tiers li, .tiers li + li { padding: 1.25rem 0; border-left: 0; }
  .tiers li + li { border-top: 1px solid var(--rule); }
  .features { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .seal { position: static; display: inline-block; margin-top: 0.9rem; }
}

/* ─── Two ways in ────────────────────────────────────────── */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 2.5rem; border-top: 2px solid var(--ink); }
.way { display: grid; gap: 0.8rem; align-content: start; padding: 1.5rem 1.75rem 0 0; min-width: 0; scroll-margin-top: 1rem; }
.way + .way { padding-left: 1.75rem; border-left: 1px solid var(--rule); }
.way h3 { font-size: var(--step-2); font-weight: 800; display: grid; gap: 0.35rem; }
.way .host { font: 500 0.95rem/1.3 var(--mono); letter-spacing: 0; color: var(--accent); overflow-wrap: anywhere; }
.way ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; max-width: var(--measure); }
.way .note { color: var(--muted); font-size: var(--step--1); }
.way-link { font: 700 1rem/1.3 var(--display); }
@media (max-width: 860px) {
  .ways { grid-template-columns: minmax(0, 1fr); }
  .way, .way + .way { padding: 1.5rem 0; border-left: 0; }
  .way + .way { border-top: 1px solid var(--rule); }
}
