:root {
  --paper: #f2f0e9;
  --paper-strong: #e8e4da;
  --ink: #20221f;
  --ink-soft: #666960;
  --line: rgba(32, 34, 31, 0.16);
  --accent: #b34f3e;
  --accent-dark: #7d3429;
  --accent-soft: #ead2ca;
  --white: #fbfaf6;
  --shadow: 0 24px 64px rgba(43, 38, 29, 0.1);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(32, 34, 31, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 32px, auto;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
a {
  font: inherit;
}

a {
  color: inherit;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 4;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 240, 233, 0.9);
  backdrop-filter: blur(18px);
}

.nav-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--white);
  background: var(--accent);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.nav-note {
  color: var(--ink-soft);
  font-size: 13px;
}

.hero {
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
  padding: 80px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(44px, 6.6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 720;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}

.hero-lead strong {
  color: var(--ink);
  font-weight: 680;
}

.hero-rule {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-rule span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(251, 250, 246, 0.55);
  font-size: 13px;
}

.hero-board {
  position: relative;
  min-height: 390px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid rgba(32, 34, 31, 0.12);
  border-radius: 30px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.hero-board::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 270px;
  height: 270px;
  border: 44px solid rgba(179, 79, 62, 0.55);
  border-radius: 50%;
}

.board-label {
  color: rgba(251, 250, 246, 0.6);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.board-copy {
  position: relative;
  z-index: 1;
  max-width: 330px;
  margin: 86px 0 0;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.28;
  letter-spacing: -0.035em;
  font-weight: 650;
}

.board-foot {
  position: absolute;
  left: 32px;
  bottom: 28px;
  z-index: 1;
  color: rgba(251, 250, 246, 0.62);
  font-size: 13px;
}

.records-section {
  padding: 74px 0 110px;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1.2fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 42px;
}

.section-head h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-head p {
  margin-bottom: 2px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 30px;
}

.filter-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.filter-button:hover,
.filter-button[aria-pressed="true"] {
  color: var(--white);
  background: var(--ink);
}

.filter-button:active {
  transform: translateY(1px);
}

.record-list {
  border-top: 1px solid var(--line);
}

.record-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 200px 44px;
  gap: 28px;
  align-items: center;
  padding: 30px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding 220ms cubic-bezier(0.16, 1, 0.3, 1), background 220ms ease;
}

.record-card:hover {
  padding-right: 14px;
  padding-left: 14px;
  background: rgba(251, 250, 246, 0.68);
}

.record-person {
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.record-role,
.record-period,
.record-meta {
  color: var(--ink-soft);
  font-size: 13px;
}

.record-copy h3 {
  margin-bottom: 8px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.record-copy p {
  max-width: 690px;
  margin-bottom: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.record-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.record-tags span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 680;
}

.record-tags span + span::before {
  content: "/";
  margin-right: 7px;
  color: rgba(125, 52, 41, 0.35);
}

.record-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stat strong {
  display: block;
  margin-bottom: 3px;
  font-size: 24px;
  line-height: 1;
}

.stat span {
  color: var(--ink-soft);
  font-size: 12px;
}

.record-arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-dark);
}

.empty,
.error {
  padding: 48px 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.error {
  color: var(--accent-dark);
}

.site-footer {
  padding: 30px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

:focus-visible {
  outline: 3px solid rgba(179, 79, 62, 0.35);
  outline-offset: 3px;
}

@media (max-width: 780px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .nav-note {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 58px 0 60px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .hero-board {
    min-height: 320px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .record-card {
    grid-template-columns: 1fr 42px;
    gap: 18px 12px;
  }

  .record-identity,
  .record-copy,
  .record-stats {
    grid-column: 1;
  }

  .record-copy h3 {
    font-size: 18px;
  }

  .record-stats {
    max-width: 220px;
  }

  .record-arrow {
    grid-column: 2;
    grid-row: 1;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
