
:root {
  --bg: #fbfaf7;
  --paper: #ffffff;
  --paper-warm: #f4efe8;
  --ink: #1f2328;
  --muted: #635f5a;
  --soft: #8a837a;
  --line: rgba(31, 35, 40, 0.12);
  --accent: #8a4f2b;
  --accent-strong: #6f3f22;
  --accent-soft: #f1e2d4;
  --blue: #2463ad;
  --green: #2f7d5c;
  --shadow: 0 14px 50px rgba(31,35,40,0.08), 0 2px 10px rgba(31,35,40,0.05);
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(138, 79, 43, 0.12), transparent 32rem),
    linear-gradient(180deg, #fffdf9 0%, var(--bg) 42%, #f7f3ed 100%);
  font-size: 17px;
  line-height: 1.62;
}

a { color: var(--accent-strong); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--blue); }
img { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: white;
  padding: .7rem 1rem; z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(251,250,247,0.88);
  backdrop-filter: blur(14px);
}
.nav {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line); background: white;
}
.nav-links { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 650;
  padding: .45rem .65rem; border-radius: 999px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: rgba(138,79,43,.09); }

main { width: min(100% - 2rem, var(--max)); margin: 0 auto; }
.hero { padding: clamp(3.5rem, 8vw, 7rem) 0 3.5rem; display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; color: var(--accent-strong); background: var(--accent-soft); border: 1px solid rgba(138,79,43,.18); border-radius: 999px; padding: .35rem .7rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -0.045em; margin: 0; }
h1 { font-size: clamp(2.65rem, 8vw, 5.8rem); max-width: 11ch; }
h2 { font-size: clamp(2rem, 4.8vw, 3.8rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); margin-bottom: .55rem; }
.lede { font-size: clamp(1.13rem, 2.3vw, 1.45rem); color: var(--muted); line-height: 1.48; max-width: 46rem; margin: 1.3rem 0 0; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .72rem 1rem; border-radius: 999px; font-weight: 760; text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,.72); }
.button.primary { background: var(--ink); color: white; border-color: var(--ink); }
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(31,35,40,.10); }

.portrait-card { background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px); box-shadow: var(--shadow); padding: .75rem; transform: rotate(1deg); }
.portrait-card img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.portrait-caption { margin: .85rem .35rem .25rem; color: var(--muted); font-size: .9rem; }

.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section-header { max-width: 760px; margin-bottom: 1.8rem; }
.kicker { color: var(--accent-strong); text-transform: uppercase; letter-spacing: .09em; font-weight: 850; font-size: .82rem; margin-bottom: .6rem; }
.section-intro { color: var(--muted); font-size: 1.12rem; max-width: 44rem; }

.grid { display: grid; gap: 1rem; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { background: rgba(255,255,255,.78); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 2.2vw, 1.55rem); box-shadow: 0 1px 0 rgba(31,35,40,.03); }
.card.featured { box-shadow: var(--shadow); background: var(--paper); }
.card p { color: var(--muted); margin: .4rem 0 0; }
.card .meta { color: var(--soft); font-size: .9rem; font-weight: 680; }
.card-link { display: inline-flex; margin-top: .85rem; font-weight: 760; text-decoration: none; }

.band { margin-inline: calc(50% - 50vw); padding: clamp(3.5rem, 7vw, 6rem) max(1rem, calc((100vw - var(--max))/2)); background: var(--paper-warm); border-block: 1px solid var(--line); }

.pubs { display: grid; gap: .8rem; }
.pub { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; display: grid; gap: .25rem; }
.pub-title { font-weight: 790; line-height: 1.28; }
.pub-meta { color: var(--muted); font-size: .95rem; }
.bibliography { list-style: none; padding: 0; margin: 1rem 0 2.4rem; display: grid; gap: .7rem; }
.bib-item { display: grid; grid-template-columns: 4.5rem 1fr; gap: .75rem; align-items: start; padding: .85rem 0; border-top: 1px solid var(--line); }
.bib-year { color: var(--accent-strong); font-weight: 850; font-size: .9rem; line-height: 1.45; }
.bib-citation { color: var(--muted); line-height: 1.55; }
@media (max-width: 520px) {
  .bib-item { grid-template-columns: 1fr; gap: .2rem; }
}
.badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.badge { display: inline-flex; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .2rem .55rem; font-size: .78rem; font-weight: 760; color: var(--muted); }
.badge.good { color: var(--green); background: rgba(47,125,92,.09); border-color: rgba(47,125,92,.18); }

.game-card { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; align-items: start; }
.game-card img { border-radius: 12px; border: 1px solid var(--line); background: #eee; }

.todo-box { border: 2px dashed rgba(138,79,43,.42); background: rgba(241,226,212,.58); border-radius: 14px; padding: 1rem; color: #5b331c; font-weight: 650; }
.todo-box strong { display: block; margin-bottom: .3rem; }

.page-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 2rem; max-width: 860px; }
.page-hero h1 { max-width: 14ch; }
.content { max-width: 860px; padding-bottom: 5rem; }
.content h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-top: 3rem; }
.content h3 { margin-top: 2rem; }
.content p, .content li { color: var(--muted); }
.content li + li { margin-top: .35rem; }

.footer { margin-top: 3rem; border-top: 1px solid var(--line); background: rgba(255,255,255,.55); }
.footer-inner { width: min(100% - 2rem, var(--max)); margin: 0 auto; padding: 2rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.footer a { color: var(--muted); }

@media (max-width: 820px) {
  body { font-size: 16.5px; }
  .site-header { position: static; }
  .nav { align-items: flex-start; flex-direction: column; padding: .85rem 0; }
  .nav-links { justify-content: flex-start; gap: .1rem; }
  .nav-links a { padding: .45rem .55rem; }
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .portrait-card { max-width: 360px; transform: none; }
  .grid.three, .grid.two { grid-template-columns: 1fr; }
  .game-card { grid-template-columns: 96px 1fr; }
}

@media (max-width: 520px) {
  main { width: min(100% - 1.1rem, var(--max)); }
  .nav { width: min(100% - 1.1rem, var(--max)); }
  .hero-actions .button { width: 100%; }
  .game-card { grid-template-columns: 1fr; }
  .game-card img { width: min(220px, 100%); }
  .card { padding: 1rem; }
}
