/* Generated from src/style.ts. */

:root {
  --ground:   #ebe5e0;
  --panel:    #faf7f5;
  --surface:  #ffffff;
  --ink:      #1e1a18;
  --muted:    #4b443f;
  --faint:    #5c534d;
  --rule:     #dbd3cd;
  --rule-2:   #c2b7b0;
  --accent:   #4e462c;   /* aged-gold ink */
  --accent-2: #6b6039;

  --fresh-fg: #14532d;
  --fresh-bg: #e4f2e8;
  --stale-fg: #7a4a12;
  --stale-bg: #f7ead2;
  --gone-fg:  #7f1d1d;
  --gone-bg:  #fbe7e5;

  --tap: 44px;

  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "Source Code Pro", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body { background: var(--ground); color: var(--ink); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

::selection { background: var(--accent); color: #fff; }

.shell { max-width: 40rem; margin: 0 auto; padding: 2.25rem 1.25rem 5rem; }
.shell.wide { max-width: 52rem; }

/* ------------------------------- typography ------------------------------- */

h1 {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 0.4rem;
}
@media (min-width: 40rem) { h1 { font-size: 1.9rem; } }

h2 { font-size: 1.25rem; font-weight: 700; margin: 1.6rem 0 0.6rem; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; font-weight: 700; margin: 1.2rem 0 0.4rem; }

.lede { color: var(--muted); margin: 0; max-width: 42ch; font-size: 1.02rem; }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 0.8rem;
}

a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; transition: text-decoration-color .15s; }
a:hover { text-decoration-color: var(--accent); }

.section { border-top: 1px solid var(--rule); padding-top: 1.4rem; margin-top: 1.7rem; }

/* --------------------------------- header -------------------------------- */

header.masthead { padding-bottom: 0.2rem; }
header.masthead a.wordmark { text-decoration: none; color: var(--ink); }

nav.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  margin: 1rem 0 0;
  padding: 0.8rem 0 0;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
}
nav.tabs a { text-decoration: none; color: var(--muted); font-weight: 500; padding: 0.2rem 0; }
nav.tabs a:hover { color: var(--accent); }
nav.tabs a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }

/* -------------------------------- home list -------------------------------- */

.grouplabel {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 0.6rem;
}

.guidelist { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.guidelist li { border-top: 1px solid var(--rule); }
.guidelist li:first-child { border-top: 0; }
.guidelist a {
  display: block;
  padding: 0.9rem 0;
  text-decoration: none;
  color: inherit;
}
.guidelist .name { font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.guidelist .dek { color: var(--muted); font-size: 0.93rem; margin-top: 0.15rem; }
.guidelist a:hover .name { color: var(--accent); }

/* --------------------------------- prose ---------------------------------- */

.prose { font-size: 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink); }
.prose p { margin: 0 0 0.9rem; }
.prose ul, .prose ol { margin: 0 0 0.9rem; padding-left: 1.4rem; }
.prose li { margin-bottom: 0.35rem; }
.prose strong { font-weight: 700; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.92rem; margin: 0 0 1rem; }
.prose td, .prose th { border: 1px solid var(--rule); padding: 0.4rem 0.6rem; text-align: left; vertical-align: top; }
.prose th { background: var(--panel); font-weight: 700; }

/* A recommendation, distinct from a plain instruction. Left rule rather than
   a filled box, so it reads as "the writer's advice" rather than a warning. */
.tip {
  border-left: 3px solid var(--accent);
  background: var(--panel);
  padding: 0.8rem 1rem;
  margin: 0 0 1.1rem;
  border-radius: 0 6px 6px 0;
}
.tip p:last-child { margin-bottom: 0; }
.tip .tip-label { display: block; font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.3rem; }

/* A screenshot slot. There is no image yet on most guides, so this is the
   thing that ships instead of a broken <img> — an owner can drop a real
   photo in later without touching the surrounding prose. */
.shot {
  border: 1px dashed var(--rule-2);
  border-radius: 8px;
  background: var(--panel);
  color: var(--faint);
  padding: 1.4rem 1rem;
  margin: 0 0 1.1rem;
  text-align: center;
  font-size: 0.85rem;
}
.shot::before { content: "\1F5BC"; display: block; font-size: 1.3rem; margin-bottom: 0.35rem; opacity: 0.6; }
.shot img { max-width: 100%; height: auto; border-radius: 6px; display: block; margin: 0 auto; }

/* -------------------------------- tool card -------------------------------- */

.toolcard {
  display: block;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
  padding: 0.85rem 1rem;
  margin: 0 0 0.7rem;
  text-decoration: none;
  color: inherit;
}
.toolcard:hover { border-color: var(--accent); }
.toolcard .toolname { font-weight: 700; color: var(--ink); }
.toolcard .toolname::after { content: " \2192"; color: var(--accent); }
.toolcard .tooldesc { color: var(--muted); font-size: 0.9rem; margin-top: 0.15rem; }

/* --------------------------------- sources --------------------------------- */

.srclist { list-style: none; margin: 0; padding: 0; font-size: 0.92rem; }
.srclist li { border-top: 1px solid var(--rule); padding: 0.7rem 0; }
.srclist li:first-child { border-top: 0; }
.srctitle { font-weight: 600; }
.srcmeta { color: var(--faint); font-size: 0.82rem; margin-top: 0.15rem; }
.srcmeta a { color: var(--faint); }

.freshtag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.14rem 0.48rem;
  border-radius: 4px;
  margin-left: 0.4rem;
}
.freshtag.fresh { color: var(--fresh-fg); background: var(--fresh-bg); }
.freshtag.stale { color: var(--stale-fg); background: var(--stale-bg); }
.freshtag.gone  { color: var(--gone-fg);  background: var(--gone-bg); }
.freshtag.unknown { color: var(--faint); background: var(--panel); border: 1px solid var(--rule-2); }

.card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin-top: 0.7rem;
}
.card.notice { border-color: var(--accent); }

footer.foot {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  color: var(--faint);
  font-size: 0.85rem;
}
footer.foot a { color: var(--faint); }
footer.foot .disclaimer {
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: 0.8rem;
  margin: 0 0 0.9rem;
}
