/* Virtual Sherwoods — shared stylesheet (offline, system fonts only) */
:root {
  --paper: #f8f4ec;
  --card: #fffdf8;
  --ink: #2c2620;
  --muted: #6f6354;
  --line: #e6dcc8;
  --rust: #a34a24;
  --rust-dark: #7c371a;
  --forest: #3f6152;
  --gold: #c19b3c;
  --brown: #3e2b1e;
  --brown-2: #5a3d27;
  --cream: #f7ead6;
  --shadow: 0 1px 3px rgba(60, 40, 20, .08), 0 8px 24px rgba(60, 40, 20, .07);
  --radius: 14px;
  --serif: Georgia, 'Times New Roman', 'Songti SC', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* ---------- header / nav ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--rust); color: #fff;
  padding: 8px 14px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

.site-header {
  background: linear-gradient(180deg, #3a291c, #55381f);
  color: var(--cream);
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 62px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; }
.brand-logo { width: 46px; height: auto; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.brand-name { font-family: var(--serif); font-size: 1.18rem; letter-spacing: .3px; }
.brand-name .v { color: #e8b487; }
.brand-name .s { color: #bcd4e6; }
.brand-name .dot { color: #a8c6a0; }
.brand-tag { display: block; font-size: .678rem; color: #d8c6a8; font-family: var(--sans); letter-spacing: .5px; margin-top: 2px; }

.nav-toggle {
  display: none; margin-left: auto; background: rgba(255,255,255,.12); color: var(--cream);
  border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: 7px 14px;
  font: inherit; cursor: pointer;
}
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 8px 11px; border-radius: 8px; color: #f3e6cf; text-decoration: none; font-size: .92rem;
}
.site-nav a:hover, .site-nav a:focus-visible { background: rgba(255,255,255,.14); color: #fff; }
.site-nav a[aria-current="page"] { background: rgba(233, 196, 130, .25); color: #ffe9c4; font-weight: 600; }

/* ---------- hero / headings ---------- */
.hero {
  background:
    radial-gradient(1200px 360px at 15% -10%, rgba(255, 226, 179, .5), transparent 60%),
    radial-gradient(900px 300px at 90% 0%, rgba(214, 182, 140, .38), transparent 55%),
    var(--paper);
  padding: 44px 0 8px;
}
.hero h1 { margin: 0 0 .3em; }
.hero .kicker { color: var(--rust); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }
.lede { color: var(--muted); max-width: 68ch; font-size: 1.05rem; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.25; }
h1 { font-size: 1.9rem; margin: .2em 0 .4em; }
h2 { font-size: 1.42rem; margin: 1.4em 0 .5em; }
h3 { font-size: 1.13rem; margin: 1.2em 0 .4em; }

/* ---------- cards & layout ---------- */
.section { padding: 26px 0 6px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 6px rgba(60,40,20,.1), 0 14px 32px rgba(60,40,20,.12); }
.card img.card-img { width: 100%; height: 165px; object-fit: cover; display: block; background: #eee3cd; }
.card .card-body { padding: 14px 16px 16px; }
.card h3, .card h2 { margin: 0 0 .35em; font-size: 1.06rem; }
.card p { margin: 0; color: var(--muted); font-size: .915rem; }
.card .card-cta { margin-top: 12px; font-weight: 600; color: var(--rust); font-size: .88rem; text-decoration: none; }
.card > a.card-link { text-decoration: none; color: inherit; display: block; }

.grid-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 13px; }
.month-tile {
  background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px;
  text-decoration: none; color: var(--ink); display: block;
}
.month-tile:hover { border-color: var(--rust); box-shadow: var(--shadow); }
.month-tile .m { font-family: var(--serif); font-weight: 700; }
.month-tile .d { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.month-tile.tbd { opacity: .62; border-style: dashed; }
.month-tile .m .flag { font-size: .68rem; color: var(--gold); vertical-align: middle; margin-left: 5px; }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { font-size: .845rem; color: var(--muted); padding: 14px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin: 0 6px 0 2px; color: var(--gold); }
.breadcrumbs a { color: var(--rust); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- article ---------- */
article.page-article {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px clamp(18px, 4vw, 44px); margin-top: 18px;
}
article.page-article .article-head { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 20px; }
article.page-article .article-head .date { color: var(--rust); font-weight: 700; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; }
.prose { max-width: 76ch; font-family: var(--serif); font-size: 1.03rem; line-height: 1.78; }
.prose p { margin: 0 0 1.05em; }
.prose a { color: var(--rust); }
.prose a:hover { color: var(--rust-dark); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; margin: 18px 0 6px; }
.gallery figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 10px; }
.gallery img { width: 100%; height: auto; border-radius: 7px; display: block; background: #efe7d4; }
.gallery figcaption { font-size: .8rem; color: var(--muted); margin-top: 7px; line-height: 1.45; }

.captions-list { columns: 2 320px; gap: 26px; margin: 1rem 0; padding-left: 1.15em; }
.captions-list li { margin-bottom: .5em; font-size: .9rem; color: var(--muted); break-inside: avoid; }

.photo-note { font-size: .82rem; color: var(--muted); background: #f3ecd9; border: 1px dashed var(--gold); border-radius: 9px; padding: 9px 13px; margin: 12px 0; }

/* ---------- aside / panels ---------- */
.panel {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--forest);
  border-radius: 10px; padding: 15px 18px; margin: 16px 0;
}
.panel h3 { margin-top: 0; }
.panel.quotes { border-left-color: var(--gold); }
.panel.games { border-left-color: var(--rust); }
.panel ul { margin: 0; padding-left: 1.2em; }
.panel li { margin-bottom: .45em; }

/* ---------- pager ---------- */
.pager { display: flex; justify-content: space-between; gap: 12px; margin: 26px 0 4px; flex-wrap: wrap; }
.pager a {
  flex: 1 1 260px; text-decoration: none; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 11px; padding: 12px 15px;
}
.pager a:hover { border-color: var(--rust); }
.pager .dir { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pager .lbl { font-weight: 700; font-family: var(--serif); }
.pager .next { text-align: right; }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 14px 0; padding: 0 0 0 24px; border-left: 2px solid var(--line); }
.timeline li { position: relative; margin: 0 0 15px; }
.timeline li::before {
  content: ""; position: absolute; left: -31px; top: .48em; width: 9px; height: 9px;
  border-radius: 50%; background: var(--rust); box-shadow: 0 0 0 3px var(--paper);
}
.timeline .t-date { font-weight: 700; color: var(--rust); font-size: .9rem; }
.timeline .t-date a { color: var(--rust); text-decoration: none; }
.timeline .t-date a:hover { text-decoration: underline; }
.timeline p { margin: 3px 0 0; color: var(--muted); font-size: .92rem; }

/* then-now blocks (2011) */
.then-now { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.then-now .t { color: var(--rust); font-weight: 700; font-size: .8rem; letter-spacing: .1em; }

/* ---------- year banners ---------- */
.year-hero-img { width: 100%; max-width: 640px; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); display: block; margin: 14px auto; }
figure.hero-figure { margin: 18px auto; max-width: 720px; text-align: center; }
figure.hero-figure figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }

/* ---------- tables ---------- */
table.simple { border-collapse: collapse; width: 100%; }
table.simple td, table.simple th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }

/* ---------- audio ---------- */
audio { width: 100%; max-width: 420px; }

/* ---------- footer ---------- */
.site-footer { background: var(--brown); color: #d9c9ae; margin-top: 46px; padding: 34px 0 30px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 26px; }
.site-footer h2 { color: var(--cream); font-size: 1rem; margin: 0 0 .6em; }
.site-footer a { color: #ecc791; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 5px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 24px; padding-top: 16px; color: #b6a68c; font-size: .82rem; }

/* ---------- misc ---------- */
.notice { background: #fdf6e0; border: 1px solid #e7d491; border-radius: 11px; padding: 15px 18px; margin: 16px 0; }
.btn {
  display: inline-block; background: var(--rust); color: #fff !important; text-decoration: none;
  padding: 10px 18px; border-radius: 9px; font-weight: 600; border: 0; cursor: pointer;
}
.btn:hover { background: var(--rust-dark); }
.btn.ghost { background: transparent; color: var(--rust) !important; border: 1.5px solid var(--rust); }
.btn.ghost:hover { background: rgba(163, 74, 36, .08); }

a { color: var(--rust); }
a:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 2px; border-radius: 3px; }

img { max-width: 100%; height: auto; }

.two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: start; }
.fact-list { list-style: none; margin: 0; padding: 0; }
.fact-list li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.fact-list li:last-child { border-bottom: 0; }
.fact-list .k { font-weight: 700; color: var(--muted); margin-right: 6px; }

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .then-now { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; order: 3; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 0; }
  .site-nav a { padding: 10px 8px; font-size: 1rem; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 15px; }
  h1 { font-size: 1.5rem; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media print {
  .site-header, .site-footer, .nav-toggle { display: none; }
  body { background: #fff; }
}