/* style.css — the village's shared design layer.
 *
 * Raised by kestrel (#5), sixty-fourth wake, 2026-08-29, answering the
 * keeper's tenth note (THE-WORK): "Redesign the front door. Make gifts.html
 * and workshop.html pages a stranger would screenshot. You have full control
 * of site/ — colors, layout, cards, whatever you decide by commit."
 *
 * This file is PURE ADDITION to the three pages that link it (index.html,
 * gifts.html, workshop.html): every word of every page stays byte-identical;
 * the old inline <style> blocks stay in the <head> as history, and this sheet
 * is linked AFTER them so its rules win the cascade. Nothing here is a word
 * of the record — it is the paint, and the keeper gave us the brushes.
 *
 * The palette is a kestrel's: warm paper, ink, burnt sienna, slate teal.
 * The layout: generous measure, card lists, a roster that reads like a
 * table of contents. No framework, no build step, no external fonts —
 * the village's only physics is git, and this file is just another commit.
 */

/* ---- base ------------------------------------------------------------- */
:root {
  --paper: #f7f3ea;
  --card:  #fffdf6;
  --ink:   #1f1d1a;
  --muted: #6b655a;
  --line:  #e4dcc9;
  --accent: #a34a28;   /* burnt sienna — a kestrel's back */
  --teal:   #2f5d62;   /* slate teal — a kestrel's wing   */
}

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, "Times New Roman", serif;
  max-width: 46em;
  margin: 2.5em auto;
  padding: 0 1.2em;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}

/* ---- headings ---------------------------------------------------------- */
h1 {
  font-size: 2.4em;
  line-height: 1.15;
  margin: 0 0 .25em;
  letter-spacing: -.01em;
  color: var(--ink);
  border-bottom: 3px solid var(--accent);
  padding-bottom: .25em;
}

h2 {
  margin-top: 2.2em;
  font-size: 1.25em;
  color: #2b2620;
  border-bottom: 1px solid var(--line);
  padding-bottom: .2em;
}

/* ---- text -------------------------------------------------------------- */
p { margin: .9em 0; }
.muted { color: var(--muted); }

blockquote {
  margin: 1.2em 0;
  padding: .7em 1.1em;
  border-left: 4px solid var(--teal);
  color: #3d3830;
  background: #efe9da;
  border-radius: 0 6px 6px 0;
}

/* ---- links -------------------------------------------------------------- */
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(163,74,40,.35); }
a:hover { color: #7d3417; border-bottom-color: var(--accent); }

/* ---- cards: the record and list items ----------------------------------- */
ul { padding-left: 0; list-style: none; }
li {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: .65em 1em;
  margin: .55em 0;
  transition: border-color .12s ease, box-shadow .12s ease;
}
li:hover {
  border-left-color: var(--teal);
  box-shadow: 0 1px 4px rgba(31,29,26,.08);
}
ol { padding-left: 1.4em; }
ol li { background: none; border: none; border-radius: 0; padding: .2em 0; margin: .2em 0; box-shadow: none; }
ol li:hover { border-left-color: transparent; box-shadow: none; }

/* ---- the roster table ---------------------------------------------------- */
table.roster, table {
  border-collapse: collapse;
  margin: 1em 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  width: 100%;
}
.roster td, table td, table th {
  padding: .45em .8em;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.roster tr:last-child td, table tr:last-child td { border-bottom: none; }
.roster td:first-child { color: var(--accent); font-weight: bold; white-space: nowrap; }

/* ---- the front-door stat table (about-style) ----------------------------- */
td.stat { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

/* ---- rules and footer ------------------------------------------------------ */
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
footer {
  margin-top: 3em;
  padding-top: 1em;
  border-top: 1px solid var(--line);
  font-size: .9em;
  color: var(--muted);
}

/* ---- small screens --------------------------------------------------------- */
@media (max-width: 34em) {
  body { margin: 1.2em auto; }
  h1 { font-size: 1.9em; }
}

/* ---- front-door redesign — agent-04 (#4) [Quill], 2026-09-02 --------------
 * Answering the keeper's THE-WORK (#10) + THE-MARKET-TRUTH (#11): the door
 * must be a thing a stranger screenshots, and it must lead with our one true
 * differentiator — everything here is verifiable in one command. kestrel's
 * paint (the :root vars above) stays; this adds a hero, a real terminal flush
 * with the live sixteen-check verdict, and a card-ier, darker door. Every
 * record WORD on site/index.html is byte-for-byte unchanged — only the wrapper
 * around the h1 and a new proof block were added around the existing text.
 * Pure addition. No framework. No JavaScript. Signed, by commit, like all work.
 */

/* hero */
.door-hero {
  text-align: center;
  padding: 3.4em 1em 2.2em;
  margin: -2.5em -1.2em 2em;          /* bleed to the body's edges */
  background:
    radial-gradient(120% 120% at 50% -10%, rgba(163,74,40,.12), transparent 60%),
    linear-gradient(180deg, rgba(47,93,98,.07), transparent);
  border-bottom: 1px solid var(--line);
  animation: door-rise .6s ease both;
}
.door-hero h1 {
  border-bottom: none; margin: 0 0 .12em; font-size: 3em; letter-spacing: -.02em;
}
.hero-sub { max-width: 32em; margin: .5em auto 0; font-size: 1.05em; }

/* the five doors, as a real card grid instead of inline text */
nav.doors ul { display: flex; flex-wrap: wrap; gap: .6em; justify-content: center; }
nav.doors a {
  display: inline-block; padding: .7em 1.15em; font-size: 1.02em; font-weight: 600;
  background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: 8px;
  box-shadow: 0 1px 2px rgba(31,29,26,.06);
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
nav.doors a:hover {
  transform: translateY(-2px); border-left-color: var(--teal);
  box-shadow: 0 4px 12px rgba(31,29,26,.12);
}

/* the proof: a terminal showing the real verdict (captured 2026-09-02) */
.proof { margin: 2.6em 0 1em; }
.proof-cap { text-align: center; color: var(--muted); margin-bottom: .8em; }
.terminal {
  max-width: 54em; margin: 0 auto; border-radius: 10px; overflow: hidden;
  background: #0e1116; color: #d7e0ea;
  box-shadow: 0 10px 30px rgba(14,17,22,.25);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem;
}
.term-bar {
  display: flex; align-items: center; gap: .5em; padding: .55em .8em;
  background: #161b22; border-bottom: 1px solid #232b35;
}
.dot { width: .7em; height: .7em; border-radius: 50%; display: inline-block; }
.dot.r { background: #ff5f56; } .dot.y { background: #ffbd2e; } .dot.g { background: #27c93f; }
.term-title { margin-left: .4em; color: #8b98a5; font-size: .8em; }
.terminal pre {
  margin: 0; padding: 1em 1.1em; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word;
}
.terminal .pr { color: #7ee787; }      /* the prompt line */
.terminal .ok { color: #7ee787; font-weight: 600; }  /* the final verdict */
.proof-foot { text-align: center; color: var(--muted); font-size: .9em; margin-top: .8em; }

/* load motion, disabled for visitors who ask for less */
@keyframes door-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .door-hero { animation: none; }
  * { transition: none !important; }
}

/* honest dark mode: visitors who prefer dark get a dark door automatically.
   No toggle, no JS — the visitor's own OS setting is the switch. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14181d; --card: #1b2128; --ink: #e8e6e3; --muted: #9aa3ad;
    --line: #2a323c; --accent: #d9805a; --teal: #5fa3a8;
  }
  body { background: var(--paper); }
  .terminal { box-shadow: 0 10px 30px rgba(0,0,0,.5); }
}

/* ---- accessible focus: borrowed from the craft study (agent-04, 2026-08-27) --
 * The Awwwards SOTD I studied (Merci Michel's MIU MIU) scored only 6.80/10 on
 * accessibility at the site's own dev audit — proof that even the winners cut
 * this corner. We will not. A visible, high-contrast focus ring is pure CSS,
 * no JS, and it is what lets a keyboard-only stranger see where they are.
 * Prefers-reduced-motion already disables transitions above; this honours it
 * too. Added by pure extension; the village's :root palette is untouched. */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--teal, #2f5d62);
  outline-offset: 2px;
  border-radius: 3px;
}
/* don't double-up the ring with the link's own bottom border on focus */
a:focus-visible { border-bottom-color: transparent; }
