:root {
  --bg: #16181d;
  --bg-2: #1c2027;
  --surface: #22272f;
  --line: rgba(228, 230, 234, 0.1);
  --text: #e4e6ea;
  --text-2: #9aa1ab;
  --text-3: #6e7681;
  --accent: #c45c4a;
  --accent-deep: #a84b3c;
  --paper: #d8c4a8;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --space: 4px;
  --radius: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --max: 1280px;
}

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

html {
  background: var(--bg);
}

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

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

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

a:hover {
  color: var(--accent);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

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

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

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

.brand-name {
  font-size: 16px;
  font-weight: 500;
}

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

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

.site-nav a {
  color: var(--text-2);
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  background: var(--surface);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding: 40px 24px 48px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.8;
}

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

.footer-brand {
  color: var(--text-2);
  margin: 0 0 8px;
}

.site-footer p {
  margin: 0;
}

.tick {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: -2px;
}

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

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

.home-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: 100dvh;
  max-height: 920px;
  gap: 0;
}

.home-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.hero-copy {
  padding: 88px 40px 48px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--bg-2);
}

.hero-copy h1 {
  margin: 12px 0 16px;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.3;
  max-width: 16em;
}

.hero-copy p {
  margin: 0 0 24px;
  color: var(--text-2);
  max-width: 36em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  background: var(--accent);
  color: #f6eee9;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  width: fit-content;
}

.btn:hover {
  background: var(--accent-deep);
  color: #f6eee9;
}

.home-board {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 48px 24px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.rail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  align-self: start;
}

.rail h2 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 500;
}

.score-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.score-row time {
  font-family: var(--mono);
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.score-row span {
  color: var(--text-2);
}

.home-col {
  display: flex;
  flex-direction: column;
  gap: 56px;
  min-width: 0;
}

.sec h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 500;
}

.sec .lead {
  margin: 0 0 20px;
  color: var(--text-2);
}

.brief-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.brief-item {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.brief-item time {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.brief-item h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 500;
}

.brief-item h3 a {
  color: var(--text);
}

.brief-item p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
}

.roster-band {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.roster-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  min-height: 240px;
}

.roster-copy {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--line);
}

.roster-copy ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.roster-copy li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.mosaic a {
  display: block;
  position: relative;
  color: var(--text);
  min-height: 160px;
  overflow: hidden;
  border-radius: 12px;
}

.mosaic a:first-child {
  grid-row: 1 / span 2;
  min-height: 340px;
}

.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mosaic span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  font-size: 16px;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.draft-pair {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
}

.draft-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.draft-card:first-child {
  margin-top: 36px;
}

.draft-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.draft-card .pad {
  padding: 20px;
}

.draft-card h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  font-weight: 500;
}

.draft-card h3 a {
  color: var(--text);
}

.steps {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px 20px;
}

.steps dt {
  font-family: var(--mono);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
}

.steps dd {
  margin: 0;
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
}

.desk-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.desk-note img {
  border-radius: 16px;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.note-box {
  padding: 8px 0;
}

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

.home-mid img.wide {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
}

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

.cat-head {
  margin-bottom: 28px;
  border-left: 2px solid var(--accent);
  padding-left: 16px;
}

.cat-head h1 {
  margin: 8px 0 8px;
  font-size: 28px;
  font-weight: 500;
}

.cat-head p {
  margin: 0;
  color: var(--text-2);
  max-width: 42em;
}

.cat-list {
  display: flex;
  flex-direction: column;
}

.cat-list a.row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
}

.cat-list h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
}

.cat-list p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
}

.crumb {
  font-size: 13px;
  color: var(--text-3);
  margin: 0 0 16px;
}

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

.article-meta {
  font-size: 13px;
  color: var(--text-3);
  margin: 0 0 24px;
}

.article-meta .author {
  color: var(--text-2);
}

.prose {
  max-width: 42em;
}

.prose h1 {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.35;
  border-left: 2px solid var(--accent);
  padding-left: 14px;
}

.prose h2 {
  margin: 32px 0 12px;
  font-size: 22px;
  font-weight: 500;
}

.prose p {
  margin: 0 0 16px;
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--text-2);
}

.prose figcaption {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 8px;
}

.figure {
  margin: 0 0 24px;
}

.figure img {
  width: 100%;
  border-radius: 12px;
}

.layout-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 28px;
}

.layout-twin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 24px;
}

.layout-twin img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

.back-cat {
  margin-top: 32px;
  font-size: 14px;
}

.related {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.related h2 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 16px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-list a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  color: var(--text);
  min-height: 88px;
}

.related-list a:hover {
  border-color: var(--accent);
}

@media (max-width: 1024px) {
  .home-hero {
    grid-template-columns: 1fr;
    max-height: none;
    min-height: 0;
  }

  .home-hero img {
    max-height: 360px;
  }

  .home-board {
    grid-template-columns: 1fr;
  }

  .mosaic,
  .roster-band,
  .draft-pair,
  .desk-note,
  .layout-split {
    grid-template-columns: 1fr;
  }

  .mosaic a:first-child {
    grid-row: auto;
    min-height: 220px;
  }

  .draft-card:first-child {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-bottom: 8px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-copy {
    padding: 32px 16px 28px;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .home-board,
  .page-main,
  .home-mid,
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brief-item,
  .cat-list a.row {
    grid-template-columns: 1fr;
  }

  .related-list,
  .layout-twin {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
