:root {
  --bg: #f4f1eb;
  --surface: #fffcf7;
  --surface-low: #ece7de;
  --ink: #1c1915;
  --muted: #6a655c;
  --line: #ddd6ca;
  --primary: #3e5348;
  --primary-soft: #dce6df;
  --gold: #8c7344;
  --gold-soft: #efe4cc;
  --danger-soft: #f3e4dc;
  --radius: 12px;
  --radius-lg: 20px;
  --elev-1: 0 1px 2px rgba(28, 25, 21, 0.06), 0 1px 3px rgba(28, 25, 21, 0.04);
  --elev-2: 0 4px 12px rgba(28, 25, 21, 0.07);
  --pad: clamp(1.5rem, 4vw, 3.5rem);
  --page: 88rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  font-size: 1.02rem;
}
a { color: var(--primary); text-underline-offset: 0.16em; }
a:hover { color: var(--gold); }
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: var(--pad);
  top: 1rem;
  background: var(--surface);
  padding: .5rem .8rem;
  z-index: 20;
}

.wrap {
  width: min(100%, var(--page));
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.25rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.logo-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  background: transparent;
}
nav {
  display: flex;
  gap: .15rem;
  font-size: .95rem;
  font-weight: 600;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  padding: .45rem .9rem;
  border-radius: 999px;
}
nav a[aria-current="page"],
nav a:hover {
  color: var(--ink);
  background: var(--primary-soft);
}

.page-hero {
  padding-block: 2.75rem 1.75rem;
}
.page-hero h1 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 560;
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 .75rem;
}
.eyebrow {
  margin: 0 0 .55rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}
.lede {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.12rem;
}
.hero-row {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
}
.hero-meta {
  color: var(--muted);
  font-size: .95rem;
  white-space: nowrap;
}
.hero-meta b { color: var(--ink); font-weight: 700; }

.filters { padding-bottom: 3rem; }
.filter-bar {
  display: grid;
  gap: 1.1rem;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-1);
}
.search input {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.search input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: transparent;
  background: var(--surface);
}
fieldset { border: 0; margin: 0; padding: 0; }
legend {
  margin-bottom: .45rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips button {
  min-height: 2rem;
  padding: .28rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.chips button:hover { border-color: var(--primary); background: var(--primary-soft); }
.chips button.is-on {
  background: var(--primary);
  border-color: var(--primary);
  color: #f7f4ee;
}
.count {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: .92rem;
}

.cards {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
  gap: 1.1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-1);
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--elev-2);
}
.card a {
  display: block;
  height: 100%;
  padding: 1.2rem 1.25rem 1.3rem;
  color: inherit;
  text-decoration: none;
}
.card h2 {
  margin: .55rem 0 .4rem;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.38rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.card p { margin: 0; color: var(--muted); }
.card .platforms {
  margin-top: .9rem;
  color: var(--gold);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.card-meta { display: flex; flex-wrap: wrap; gap: .35rem; }
.pill {
  padding: .15rem .6rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
}
.pill.muted {
  background: var(--gold-soft);
  color: #6d5a34;
}
.empty { color: var(--muted); }

.reserved {
  padding-block: 1rem 3.5rem;
  color: var(--muted);
}
.reserved h2 {
  margin: 0 0 .4rem;
  font-family: "Newsreader", Georgia, serif;
  color: var(--ink);
  font-weight: 600;
}
.reserved ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: .85rem;
}
.reserved li {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-detail {
  padding-block: 2.25rem 4rem;
}
.tool {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(16rem, .7fr);
  gap: 1.5rem 2rem;
  align-items: start;
}
.tool-main,
.tool-side,
.prose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-1);
  padding: clamp(1.5rem, 3vw, 2.4rem);
}
.prose { width: 100%; }
.page-hero + .page-detail { padding-top: 0; }
.tool-main h1,
.prose h1,
.tool-side h2,
.prose h2 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.tool-main h1 {
  margin: .2rem 0 .7rem;
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  line-height: 1.15;
}
.tool-main h2,
.prose h2,
.tool-side h2 {
  margin: 1.6rem 0 .55rem;
  font-size: 1.2rem;
}
.tool-main section:first-of-type h2 { margin-top: 1.4rem; }
.crumb {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: .92rem;
}
.pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.tool-main .lede { max-width: none; margin-bottom: 1rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: .65rem 1.15rem;
  border-radius: 10px;
  background: var(--primary);
  color: #f6f3ec;
  text-decoration: none;
  font-weight: 700;
}
.btn:hover { color: #f6f3ec; background: #32443b; }
.fine, .sources { color: var(--muted); font-size: .94rem; }
.sources { margin-top: 1.5rem; }
.sources a { word-break: break-all; }
.tool-side h2:first-child { margin-top: 0; }
.actions { margin: 0 0 1rem; }

.feed {
  list-style: none;
  margin: 0 0 3.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.feed li {
  padding: 1.35rem 1.5rem 1.45rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-1);
}
.feed time {
  color: var(--gold);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.feed h2 {
  margin: .3rem 0 .45rem;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.2rem;
  color: var(--muted);
  font-size: .92rem;
}

@media (max-width: 860px) {
  .hero-row, .tool, .feed { grid-template-columns: 1fr; }
  .hero-meta { white-space: normal; }
  .header-row { min-height: 3.6rem; }
}

/* Keep the shared column even if a combined class sets width or padding. */
.wrap {
  width: min(100%, var(--page));
  max-width: var(--page);
  padding-inline: var(--pad);
}
