:root {
  --bg: #161410;
  --surface: #211e18;
  --surface-2: #2a261f;
  --line: rgba(235, 230, 217, 0.1);
  --text: #ebe6d9;
  --muted: #9a9284;
  --faint: #6e675c;
  --accent: #c9d44a;
  --accent-deep: #8a9428;
  --serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --space: 4px;
  --radius: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --max: 1280px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover { color: #dce66a; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(22, 20, 16, 0.94);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  flex-shrink: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  min-height: 40px;
  cursor: pointer;
  font-family: var(--sans);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.sideline {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

.kicker {
  font-size: 13px;
  color: var(--accent-deep);
  margin: 0 0 8px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 16px;
}

h1 { font-size: 36px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }

.muted { color: var(--muted); }
.faint { color: var(--faint); }

.mast {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 24px;
  padding: 32px 0 48px;
  min-height: 72dvh;
  align-items: stretch;
}

.mast-visual {
  position: relative;
  min-height: 420px;
}

.mast-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.mast-copy {
  position: absolute;
  left: 24px;
  bottom: 24px;
  right: 24px;
  max-width: 520px;
  background: rgba(22, 20, 16, 0.78);
  padding: 24px;
  border-radius: 12px;
}

.mast-copy p { margin: 0 0 12px; color: var(--muted); }

.mast-board {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mast-board h2 { font-size: 20px; margin-bottom: 16px; }

.slate-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  font-size: 14px;
}

.slate-row:last-child { border-bottom: 0; }
.slate-row time { color: var(--faint); font-variant-numeric: tabular-nums; }
.slate-row strong { font-weight: 500; }

.desk-rail {
  padding: 48px 0;
}

.desk-rail .rail-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}

.rail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

.rail-card img { border-radius: 12px; margin-bottom: 12px; }
.rail-card h2 { font-size: 22px; }
.rail-card p { color: var(--muted); margin: 0; }

.league-band {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  padding: 48px 0;
  align-items: center;
}

.league-band img { border-radius: 16px; }
.league-band p { color: var(--muted); }

.pitch-feature {
  padding: 48px 0;
}

.pitch-frame {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 0;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
}

.pitch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.pitch-text { padding: 32px; }
.pitch-text p { color: var(--muted); }

.roster-split {
  padding: 48px 0;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
}

.roster-main img,
.roster-side img { border-radius: 12px; margin-bottom: 12px; }
.roster-side {
  background: var(--surface);
  padding: 24px;
  border-radius: 16px;
}

.calendar-dense {
  padding: 48px 0;
}

.cal-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.cal-item {
  display: grid;
  grid-template-columns: 120px 1fr 160px;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.cal-item a { color: var(--text); }
.cal-item a:hover { color: var(--accent); }

.sideline-pair {
  padding: 48px 0;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 24px;
}

.talk-card {
  background: var(--surface);
  padding: 28px;
  border-radius: 16px;
}

.talk-card img { border-radius: 12px; margin-bottom: 16px; }
.talk-card p { color: var(--muted); }

.author-board {
  padding: 48px 0;
}

.author-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 16px;
}

.author-cell {
  border-left: 3px solid var(--accent);
  padding: 12px 0 12px 16px;
  background: transparent;
}

.author-cell h3 { margin-bottom: 4px; font-size: 16px; }
.author-cell p { margin: 0; font-size: 13px; color: var(--muted); }

.cat-index {
  padding: 48px 0 72px;
}

.cat-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.cat-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.cat-row a { color: var(--text); font-family: var(--serif); font-size: 22px; }
.cat-row span { color: var(--muted); font-size: 14px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 24px 56px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-brand {
  font-family: var(--serif);
  color: var(--text);
  font-size: 18px;
  margin: 0 0 12px;
}

.site-footer p { margin: 0 0 6px; }

.page-main { padding: 32px 0 72px; }

.crumb {
  font-size: 13px;
  color: var(--faint);
  margin-bottom: 20px;
}

.crumb a { color: var(--muted); }

.cat-hero {
  margin-bottom: 32px;
}

.cat-list {
  display: grid;
  gap: 24px;
}

.cat-entry {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.cat-entry img { border-radius: 12px; }
.cat-entry h2 { font-size: 22px; }
.cat-entry h2 a { color: var(--text); }
.cat-entry p { margin: 0; color: var(--muted); }

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(240px, 1fr);
  gap: 40px;
  align-items: start;
}

.article-shell.layout-stack {
  grid-template-columns: 1fr;
}

.article-shell.layout-stack .article-aside {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.article-meta {
  font-size: 13px;
  color: var(--faint);
  margin-bottom: 20px;
}

.article-body p {
  margin: 0 0 16px;
  max-width: 42em;
}

.article-body h2 {
  margin-top: 32px;
}

.article-body figure {
  margin: 24px 0;
}

.article-body figcaption {
  font-size: 13px;
  color: var(--faint);
  margin-top: 8px;
}

.article-body .lead-img {
  margin: 8px 0 24px;
}

.article-aside {
  background: var(--surface);
  padding: 20px;
  border-radius: 16px;
  position: sticky;
  top: 96px;
}

.article-aside h2 {
  font-size: 16px;
  margin-bottom: 12px;
}

.article-aside ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-aside li {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.article-aside a { color: var(--text); }
.article-aside a:hover { color: var(--accent); }

.back-cat {
  display: inline-block;
  margin-top: 32px;
  color: var(--muted);
}

.faq dt {
  font-weight: 500;
  margin-top: 12px;
}

.faq dd {
  margin: 4px 0 0;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .mast,
  .rail-grid,
  .league-band,
  .pitch-frame,
  .roster-split,
  .sideline-pair,
  .article-shell,
  .cat-entry {
    grid-template-columns: 1fr;
  }

  .cal-item,
  .cat-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .author-grid { grid-template-columns: 1fr 1fr; }

  .article-shell.layout-stack .article-aside {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner { padding: 12px 16px; }
  .wrap { padding: 0 16px; }
  h1 { font-size: 28px; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: var(--bg);
    flex-direction: column;
    padding: 12px 16px 24px;
    border-bottom: 1px solid var(--line);
    margin-left: 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 4px; min-height: 44px; }
  .mast { min-height: 0; padding-top: 16px; }
  .mast-copy { position: static; max-width: none; margin-top: 12px; background: transparent; padding: 0; }
  .author-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a, button { transition: none; }
}
