:root {
  --bg: #f4ead9;
  --bg-secondary: #efe0cc;
  --surface: rgba(255, 250, 244, 0.82);
  --surface-strong: rgba(255, 248, 239, 0.96);
  --surface-deep: #f0d9bf;
  --ink: #31231b;
  --muted: #6c6058;
  --line: rgba(94, 68, 48, 0.14);
  --accent: #cc6f39;
  --accent-deep: #8f461f;
  --accent-soft: #f2c9a7;
  --accent-alt: #d7ab7d;
  --shadow-lg: 0 24px 70px rgba(76, 51, 31, 0.12);
  --shadow-md: 0 14px 32px rgba(76, 51, 31, 0.09);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content-width: 1200px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.88), transparent 30%),
    radial-gradient(circle at right 15%, rgba(230, 184, 142, 0.35), transparent 26%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 100%);
}

body.is-lightbox-open {
  overflow: hidden;
}

body.is-gated {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 75%);
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.background-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.background-glow-left {
  top: 140px;
  left: -110px;
  background: radial-gradient(circle, rgba(255, 236, 211, 0.95), transparent 68%);
}

.background-glow-right {
  top: 520px;
  right: -120px;
  background: radial-gradient(circle, rgba(234, 192, 158, 0.7), transparent 68%);
}

.entry-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.78), transparent 28%),
    radial-gradient(circle at bottom right, rgba(215, 171, 125, 0.3), transparent 32%),
    rgba(244, 234, 217, 0.72);
  backdrop-filter: blur(26px);
}

.entry-gate[hidden] {
  display: none;
}

.entry-gate-panel {
  width: min(100%, 560px);
  padding: 34px;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background:
    radial-gradient(circle at top right, rgba(242, 201, 167, 0.4), transparent 28%),
    linear-gradient(180deg, rgba(255, 250, 244, 0.96), rgba(240, 217, 191, 0.86));
  box-shadow: 0 28px 80px rgba(76, 51, 31, 0.18);
}

.entry-gate-kicker,
.entry-gate-label {
  margin: 0;
  color: var(--accent-deep);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.entry-gate-title {
  margin: 14px 0 0;
  max-width: 11ch;
  font-size: clamp(2.5rem, 6vw, 4.3rem);
  line-height: 0.98;
}

.entry-gate-text {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.entry-gate-form {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.entry-gate-input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(143, 70, 31, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 600;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.entry-gate-input:focus {
  border-color: rgba(204, 111, 57, 0.72);
  box-shadow: 0 0 0 4px rgba(204, 111, 57, 0.14);
}

.entry-gate-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.entry-gate-submit {
  min-width: 132px;
}

.entry-gate-hint,
.entry-gate-feedback {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.entry-gate-feedback {
  min-height: 1.7em;
  color: var(--accent-deep);
  font-weight: 700;
}

.entry-gate-feedback.is-error {
  color: #a4431d;
}

.entry-gate-feedback.is-success {
  color: #6f5a22;
}

.shell {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(244, 234, 217, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.site-header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff9f3;
  font-family: "Iowan Old Style", "Palatino Linotype", "Songti SC", serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.96rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 1px;
  background: rgba(143, 70, 31, 0.28);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.38);
  transform: translateY(-1px);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav a.is-active {
  box-shadow: inset 0 0 0 1px rgba(143, 70, 31, 0.08);
}

main {
  padding: 30px 0 88px;
}

section {
  margin-bottom: 38px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 22px;
}

.hero-copy,
.hero-panel,
.intro-card,
.highlight-card,
.annual-card,
.timeline-sidecard,
.timeline-card,
.gallery-card,
.ops-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.hero-copy {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  position: relative;
  overflow: hidden;
  border-radius: 38px;
  padding: 42px;
  min-height: 460px;
  background:
    linear-gradient(90deg, rgba(226, 194, 160, 0.28) 0 78px, transparent 78px),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.72), transparent 28%),
    linear-gradient(180deg, rgba(255, 249, 242, 0.98), rgba(239, 221, 201, 0.82));
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 201, 167, 0.92), transparent 70%);
}

.hero-copy::before {
  content: "";
  position: absolute;
  left: -30px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.58), transparent 72%);
}

.hero-copy-main {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
}

.hero-copy-main::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(143, 91, 56, 0.12);
  border-radius: 28px;
  pointer-events: none;
}

.hero-copy-main::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(143, 91, 56, 0.08);
  border-radius: 22px;
  pointer-events: none;
}

.hero-spine {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: space-between;
  justify-items: center;
  padding: 10px 0 6px;
  color: rgba(143, 70, 31, 0.74);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.hero-spine::before,
.hero-spine::after {
  content: "";
  width: 1px;
  background: linear-gradient(180deg, rgba(143, 91, 56, 0.12), rgba(143, 91, 56, 0.34), rgba(143, 91, 56, 0.12));
}

.hero-aside {
  display: grid;
  gap: 20px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 26px;
}

.hero-panel::before {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  top: 58px;
  height: 1px;
  background: rgba(143, 91, 56, 0.12);
}

.hero-panel::after {
  content: "";
  position: absolute;
  width: 88px;
  height: 88px;
  right: -18px;
  bottom: -18px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(204, 111, 57, 0.08), rgba(143, 70, 31, 0.18));
  transform: rotate(18deg);
}

.hero-panel-primary {
  min-height: 250px;
  background:
    radial-gradient(circle at top right, rgba(242, 201, 167, 0.32), transparent 30%),
    linear-gradient(180deg, rgba(255, 248, 239, 0.96), rgba(244, 223, 198, 0.78));
}

.hero-panel-stats {
  display: grid;
  gap: 22px;
  background:
    radial-gradient(circle at top right, rgba(242, 201, 167, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(255, 250, 244, 0.94), rgba(238, 220, 200, 0.78));
}

.eyebrow,
.intro-label,
.panel-label,
.sidecard-label,
.stat-label,
.highlight-kicker,
.annual-count,
.footer-brand {
  margin: 0;
  color: var(--accent-deep);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
}

h1,
h2,
h3,
.panel-value,
.stat-value,
.annual-year {
  font-family: "Iowan Old Style", "Palatino Linotype", "Songti SC", serif;
  letter-spacing: -0.03em;
}

h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(3.1rem, 7vw, 6rem);
  line-height: 0.95;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

h3 {
  margin: 0;
  font-size: 1.5rem;
}

.hero-text,
.intro-text,
.panel-text,
.timeline-description,
.timeline-quote,
.annual-summary,
.gallery-description,
.letter-text,
.ops-card p,
.footer-copy,
.sidecard-list {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 58ch;
  margin: 22px 0 0;
  font-size: 1.08rem;
  padding: 0 28px 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  padding: 0 28px 0 32px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding: 0 28px 0 32px;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(143, 91, 56, 0.1);
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-copy-main > .eyebrow,
.hero-copy-main > h1 {
  padding: 0 28px 0 32px;
}

.hero-copy-main > .eyebrow {
  padding-top: 28px;
}

.hero-copy-main > h1 {
  margin-top: 8px;
}

.hero-archive-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 32px 0 0;
  padding: 18px 28px 22px 32px;
  border-top: 1px solid rgba(143, 91, 56, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
}

.hero-archive-meta-item {
  display: grid;
  gap: 8px;
  padding: 0 16px;
}

.hero-archive-meta-item + .hero-archive-meta-item {
  border-left: 1px solid rgba(143, 91, 56, 0.1);
}

.hero-archive-label {
  color: rgba(143, 70, 31, 0.74);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-archive-meta-item strong {
  font-family: "Iowan Old Style", "Palatino Linotype", "Songti SC", serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:hover,
.chip:hover,
.year-link:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--accent);
  color: #fffaf5;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
}

.panel-title {
  position: relative;
  z-index: 1;
  margin: 18px 0 12px;
  font-size: 2rem;
}

.panel-text {
  position: relative;
  z-index: 1;
  margin: 0;
}

.panel-value {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  line-height: 1;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  position: relative;
  z-index: 1;
  padding-top: 4px;
}

.stat-grid > div {
  padding-top: 12px;
  border-top: 1px solid rgba(143, 91, 56, 0.1);
}

.stat-value {
  margin: 8px 0 0;
  font-size: 2.4rem;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  max-width: none;
  margin-bottom: 48px;
}

.intro-card,
.highlight-card,
.annual-card,
.timeline-sidecard,
.timeline-card,
.gallery-card,
.ops-card {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.intro-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  gap: 18px 20px;
  align-items: start;
  border-radius: 34px;
  padding: 24px 24px 22px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.6), transparent 26%),
    linear-gradient(180deg, rgba(255, 250, 244, 0.95), rgba(240, 217, 191, 0.78));
}

.intro-card-main {
  display: grid;
  align-content: start;
  gap: 12px;
  max-width: 36ch;
  padding-right: 10px;
}

.intro-title {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.08;
}

.intro-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 4px;
}

.intro-point {
  display: grid;
  gap: 6px;
  min-height: 100%;
  padding: 18px 16px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(143, 91, 56, 0.1);
  position: relative;
}

.intro-point::before {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(143, 70, 31, 0.32);
}

.intro-point-title {
  color: var(--accent-deep);
  font-weight: 700;
}

.intro-point-copy {
  color: var(--muted);
  line-height: 1.65;
}

.accent-card {
  background:
    linear-gradient(180deg, rgba(242, 201, 167, 0.56), rgba(255, 250, 244, 0.9));
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading.compact {
  margin-bottom: 14px;
}

.chapter-section {
  position: relative;
  padding-top: 18px;
}

.chapter-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(143, 91, 56, 0.2), rgba(143, 91, 56, 0.05));
}

.chapter-intro {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px 18px;
  align-items: start;
  margin-bottom: 18px;
}

.chapter-kicker {
  margin: 0;
  color: rgba(143, 70, 31, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}

.chapter-title {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Songti SC", serif;
  font-size: 1.26rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.chapter-copy {
  margin: 8px 0 0;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.72;
}

.overview-intro {
  margin: 0 0 22px;
  max-width: 50ch;
  color: var(--muted);
  line-height: 1.75;
}

.annual-intro {
  margin: 0 0 22px;
  max-width: 54ch;
  color: var(--muted);
  line-height: 1.75;
}

.overview-grid,
.annual-grid,
.gallery-grid,
.ops-grid {
  display: grid;
  gap: 18px;
}

.overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chapter-section-highlights .overview-grid {
  gap: 20px;
}

.highlight-card {
  min-height: 240px;
  display: grid;
  align-content: start;
  gap: 14px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(242, 201, 167, 0.36), transparent 30%),
    linear-gradient(180deg, rgba(255, 250, 244, 0.96), rgba(240, 217, 191, 0.76));
}

.highlight-card::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -26px;
  width: 110px;
  height: 110px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(204, 111, 57, 0.1), rgba(143, 70, 31, 0.22));
  transform: rotate(18deg);
}

.highlight-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.highlight-meta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.highlight-title {
  position: relative;
  z-index: 1;
  font-size: 1.8rem;
}

.highlight-body {
  margin: 0;
  position: relative;
  z-index: 1;
  color: var(--muted);
  line-height: 1.75;
}

.highlight-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
}

.highlight-link::after {
  content: "→";
  margin-left: 8px;
}

.annual-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  padding-top: 6px;
}

.annual-card {
  grid-column: span 2;
  min-height: 196px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(239, 222, 201, 0.82));
  border-radius: 28px 28px 24px 24px;
  box-shadow: 0 20px 46px rgba(79, 43, 17, 0.12);
}

.annual-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: linear-gradient(90deg, rgba(143, 70, 31, 0.86), rgba(204, 111, 57, 0.48), rgba(242, 201, 167, 0.22));
}

.annual-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 22px;
}

.annual-year {
  margin: 0;
  font-size: clamp(2.4rem, 4.2vw, 3.3rem);
  line-height: 0.92;
}

.annual-count {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(143, 91, 56, 0.1);
}

.annual-summary {
  margin: 0;
  position: relative;
  z-index: 1;
  max-width: 24ch;
}

.annual-card::before {
  content: "YEAR";
  position: absolute;
  right: 18px;
  top: 18px;
  color: rgba(143, 70, 31, 0.1);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  font-weight: 700;
}

.annual-card:nth-child(1) {
  grid-column: span 3;
  min-height: 228px;
}

.annual-card:nth-child(3n) {
  background:
    radial-gradient(circle at top right, rgba(242, 201, 167, 0.2), transparent 36%),
    linear-gradient(180deg, rgba(255, 249, 242, 0.98), rgba(236, 216, 191, 0.8));
}

.annual-card:nth-child(2n) {
  transform: translateY(14px);
}

.timeline-section {
  padding-top: 20px;
  margin-top: 14px;
}

.timeline-head {
  display: block;
  margin-bottom: 22px;
}

.timeline-lead {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.75;
}

.timeline-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 14px 18px;
  margin-bottom: 22px;
}

.timeline-toolbar-group {
  display: grid;
  gap: 8px;
}

.timeline-toolbar-group-years {
  justify-items: end;
}

.timeline-toolbar-label {
  color: rgba(143, 70, 31, 0.72);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.chip-group,
.year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip,
.year-link {
  border: 1px solid rgba(143, 91, 56, 0.12);
  background: rgba(255, 250, 244, 0.58);
  color: rgba(49, 35, 27, 0.88);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.94rem;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.chip.is-active,
.year-link.is-active,
.chip:hover,
.year-link:hover {
  background: rgba(204, 111, 57, 0.92);
  border-color: rgba(204, 111, 57, 0.92);
  color: #fffaf5;
}

.timeline-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding-top: 10px;
}

.timeline-sidecard {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  background:
    radial-gradient(circle at top left, rgba(242, 201, 167, 0.24), transparent 30%),
    linear-gradient(180deg, rgba(255, 250, 244, 0.92), rgba(240, 217, 191, 0.72));
}

.sidecard-list {
  margin: 18px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 30px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, rgba(204, 111, 57, 0.42), rgba(143, 91, 56, 0.12));
}

.timeline-year-label {
  margin: 6px 0 0;
  color: var(--accent-deep);
  font-size: 1.45rem;
  font-weight: 700;
  font-family: "Iowan Old Style", "Palatino Linotype", "Songti SC", serif;
}

.timeline-year-group {
  display: grid;
  gap: 18px;
}

.timeline-year-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 2px;
}

.timeline-year-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.timeline-year-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(242, 201, 167, 0.34);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.timeline-year-button,
.timeline-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(143, 91, 56, 0.18);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.82);
  color: var(--accent-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.timeline-year-button:hover,
.timeline-load-more:hover,
.timeline-year-button:focus-visible,
.timeline-load-more:focus-visible {
  transform: translateY(-1px);
  background: rgba(242, 201, 167, 0.3);
  border-color: rgba(143, 91, 56, 0.28);
}

.timeline-load-more.is-secondary {
  background: transparent;
}

.timeline-year-collapsed {
  margin: 0;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 250, 244, 0.68);
  border: 1px dashed rgba(143, 91, 56, 0.2);
  color: var(--muted);
}

.timeline-year-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 2px;
}

.timeline-item {
  position: relative;
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 460ms ease forwards;
}

.timeline-item:nth-child(2) {
  animation-delay: 50ms;
}

.timeline-item:nth-child(3) {
  animation-delay: 100ms;
}

.timeline-item:nth-child(4) {
  animation-delay: 150ms;
}

.timeline-item:nth-child(5) {
  animation-delay: 200ms;
}

.timeline-marker {
  position: absolute;
  left: -30px;
  top: 26px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffaf5, var(--accent) 66%, var(--accent-deep));
  box-shadow: 0 0 0 6px rgba(242, 201, 167, 0.54);
}

.timeline-card {
  background: var(--surface-strong);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.timeline-item:hover .timeline-card,
.timeline-item:focus-within .timeline-card {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(79, 43, 17, 0.14);
  border-color: rgba(143, 91, 56, 0.18);
}

.timeline-card-top,
.timeline-meta,
.timeline-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.timeline-card-top {
  justify-content: space-between;
  gap: 16px;
}

.timeline-date {
  margin: 0;
  font-weight: 700;
}

.timeline-age,
.timeline-stage,
.timeline-tag,
.timeline-location,
.gallery-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(242, 201, 167, 0.5);
  color: var(--accent-deep);
  font-size: 0.88rem;
}

.timeline-title {
  margin: 14px 0 10px;
  font-size: 1.8rem;
}

.timeline-description,
.timeline-quote {
  margin: 0;
}

.timeline-media-wrap {
  display: none;
  margin-top: 16px;
  position: relative;
  overflow: hidden;
  padding: 14px 14px 64px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(242, 201, 167, 0.26), transparent 28%),
    radial-gradient(circle at bottom left, rgba(206, 156, 118, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(248, 241, 232, 0.98), rgba(229, 210, 189, 0.94));
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(143, 91, 56, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 18px 34px rgba(93, 60, 36, 0.08);
}

.timeline-media-wrap.has-image {
  display: block;
}

.timeline-media-wrap.has-gallery {
  padding-bottom: 92px;
}

.timeline-media-wrap.is-interactive {
  cursor: pointer;
}

.timeline-media-wrap.is-interactive:focus-visible {
  outline: 3px solid rgba(204, 111, 57, 0.38);
  outline-offset: 4px;
}

.timeline-media-stage {
  position: absolute;
  inset: 14px 14px 64px 14px;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(42, 28, 19, 0.05), rgba(42, 28, 19, 0.18)),
    linear-gradient(180deg, rgba(247, 238, 228, 0.42), rgba(210, 187, 160, 0.18));
  border: 1px solid rgba(91, 58, 34, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(255, 250, 244, 0.42),
    0 12px 28px rgba(53, 34, 20, 0.12);
}

.timeline-media-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 18, 12, 0.04), transparent 28%, rgba(26, 18, 12, 0.24) 100%),
    linear-gradient(90deg, rgba(255, 250, 244, 0.12), transparent 24%, transparent 76%, rgba(255, 250, 244, 0.08));
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.timeline-media[hidden],
.gallery-stage-image[hidden],
.memory-detail-image[hidden],
.lightbox-image[hidden],
.media-play-button[hidden],
.gallery-stage-hint[hidden],
.memory-detail-video-note[hidden] {
  display: none !important;
}

.timeline-media-wrap.is-video .timeline-media-stage::before,
.gallery-thumb-image-wrap.is-video::before {
  content: "▶";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(26, 18, 12, 0.66);
  color: #fffaf5;
  font-size: 1.2rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  box-shadow: 0 10px 24px rgba(26, 18, 12, 0.24);
}

.timeline-media-wrap.is-interactive:hover .timeline-media-stage::after,
.timeline-media-wrap.is-interactive:focus-visible .timeline-media-stage::after {
  opacity: 1;
}

.timeline-media-wrap[data-count]::before {
  content: attr(data-count) " 项";
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(26, 18, 12, 0.72);
  color: #fffaf5;
  font-size: 0.82rem;
  font-weight: 700;
}

.timeline-media-status {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.88);
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(76, 51, 31, 0.08);
}

.timeline-media-wrap[data-count] .timeline-media-status {
  right: 14px;
}

.timeline-media-strip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: auto;
  max-width: min(320px, calc(100% - 28px));
  height: 64px;
  z-index: 2;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 64px;
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(59, 39, 25, 0.78), rgba(33, 21, 13, 0.84));
  box-shadow:
    inset 0 0 0 1px rgba(255, 245, 235, 0.08),
    0 14px 24px rgba(38, 24, 15, 0.16);
}

.timeline-media-thumb {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  overflow: hidden;
  width: 64px;
  height: 52px;
  min-width: 0;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.12), rgba(255, 250, 244, 0.04));
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.timeline-media-thumb:hover,
.timeline-media-thumb:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: 0 12px 24px rgba(12, 7, 4, 0.32);
}

.timeline-media-thumb.is-video::after {
  content: "▶";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(26, 18, 12, 0.62);
  color: #fffaf5;
  font-size: 0.82rem;
}

.timeline-media-thumb-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-media-thumb-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(26, 18, 12, 0.52);
  color: #fffaf5;
  font-weight: 700;
}

.timeline-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 18px;
  filter: saturate(1.02) contrast(1.02);
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.14), rgba(255, 250, 244, 0.04)),
    rgba(32, 21, 14, 0.1);
}

.timeline-video {
  background: #1c1410;
}

.timeline-media-hint {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.9);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(76, 51, 31, 0.08);
}

.timeline-media-duration,
.gallery-duration {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: none;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(26, 18, 12, 0.72);
  color: #fffaf5;
  font-size: 0.82rem;
  font-weight: 700;
}

.timeline-media-status + .timeline-media-duration.has-duration {
  right: 14px;
  bottom: 50px;
}

.timeline-media-duration.has-duration,
.gallery-duration.has-duration {
  display: inline-flex;
}

.timeline-meta {
  margin-top: 16px;
}

.timeline-location.is-empty {
  display: none;
}

.timeline-quote {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-style: italic;
}

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

.gallery-carousel {
  display: grid;
  gap: 18px;
}

.gallery-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  align-items: stretch;
}

.gallery-stage-visual,
.gallery-stage-copy,
.gallery-thumb {
  background: rgba(255, 250, 244, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.gallery-stage-visual {
  position: relative;
  min-height: 520px;
  padding: 18px;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.26), transparent 28%),
    linear-gradient(135deg, rgba(67, 50, 38, 0.8), rgba(123, 93, 68, 0.88));
}

.gallery-stage-visual.is-illustrated {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.72), transparent 18%),
    radial-gradient(circle at 76% 24%, rgba(255, 238, 219, 0.3), transparent 22%),
    linear-gradient(135deg, rgba(204, 111, 57, 0.55), rgba(143, 70, 31, 0.82));
}

.gallery-stage-image {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 22px;
  object-fit: contain;
  background: rgba(255, 248, 239, 0.94);
}

.media-play-button {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  border: 0;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(26, 18, 12, 0.8);
  color: #fffaf5;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(26, 18, 12, 0.26);
  transition: transform 180ms ease, background-color 180ms ease;
  z-index: 2;
}

.media-play-button:hover {
  transform: translateX(-50%) translateY(-2px);
  background: rgba(26, 18, 12, 0.9);
}

.media-play-button::before {
  content: "▶";
  margin-right: 10px;
}

.gallery-stage-video,
.memory-detail-video,
.lightbox-video {
  background: #1c1410;
}

.gallery-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(242, 201, 167, 0.72);
  color: var(--accent-deep);
  font-size: 0.88rem;
}

.gallery-stage-badge {
  position: absolute;
  top: 22px;
  right: 22px;
}

.gallery-media-count {
  position: absolute;
  top: 22px;
  left: 22px;
  background: rgba(26, 18, 12, 0.78);
  color: #fffaf5;
}

.gallery-duration {
  right: 22px;
  bottom: 22px;
}

.gallery-stage-copy {
  display: grid;
  align-content: start;
  gap: 14px;
  border-radius: 30px;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(242, 201, 167, 0.3), transparent 30%),
    linear-gradient(180deg, rgba(255, 250, 244, 0.96), rgba(240, 217, 191, 0.78));
}

.gallery-stage-hint,
.memory-detail-video-note {
  margin: -4px 0 0;
  color: var(--accent-deep);
  font-size: 0.92rem;
  font-weight: 600;
}

.gallery-stage-eyebrow {
  margin: 0;
  color: var(--accent-deep);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.gallery-date {
  margin: 0;
  color: var(--accent-deep);
  font-weight: 700;
}

.gallery-stage-title {
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.02;
}

.gallery-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.gallery-quote {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-style: italic;
  line-height: 1.7;
}

.gallery-stage-meta,
.gallery-stage-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-stage-pill,
.gallery-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 700;
}

.gallery-stage-pill {
  background: rgba(255, 255, 255, 0.76);
  color: var(--accent-deep);
}

.gallery-nav-button {
  border: 1px solid rgba(143, 91, 56, 0.16);
  background: rgba(255, 250, 244, 0.72);
  color: var(--ink);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.gallery-nav-button:hover {
  transform: translateY(-2px);
}

.gallery-detail-link {
  width: fit-content;
}

.gallery-fullscreen-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.gallery-thumb {
  padding: 10px;
  border-radius: 24px;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
  transform: translateY(-2px);
  border-color: rgba(204, 111, 57, 0.36);
  background: rgba(255, 248, 239, 0.96);
}

.gallery-thumb-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.5), transparent 28%),
    linear-gradient(135deg, rgba(204, 111, 57, 0.42), rgba(143, 70, 31, 0.72));
}

.gallery-thumb-image-wrap.is-illustrated {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.74), transparent 18%),
    radial-gradient(circle at 78% 26%, rgba(255, 238, 219, 0.34), transparent 20%),
    linear-gradient(135deg, rgba(204, 111, 57, 0.55), rgba(143, 70, 31, 0.82));
}

.gallery-thumb-image-wrap.is-video::after {
  content: "VIDEO";
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(26, 18, 12, 0.72);
  color: #fffaf5;
  font-size: 0.74rem;
  font-weight: 700;
}

.gallery-thumb-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-thumb-copy {
  display: grid;
  gap: 6px;
  padding: 12px 4px 4px;
}

.gallery-thumb-badge {
  color: var(--accent-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-thumb-title {
  font-size: 1rem;
}

.gallery-thumb-date {
  color: var(--muted);
  font-size: 0.88rem;
}

.memory-page {
  padding-top: 30px;
}

.memory-back-row {
  margin-bottom: 18px;
}

.memory-back-link {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
}

.memory-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 22px;
  align-items: stretch;
}

.memory-detail-visual-stack {
  display: grid;
  gap: 14px;
}

.memory-detail-visual,
.memory-detail-copy {
  background: rgba(255, 250, 244, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.memory-detail-visual {
  position: relative;
  min-height: 560px;
  padding: 18px;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.26), transparent 28%),
    linear-gradient(135deg, rgba(67, 50, 38, 0.8), rgba(123, 93, 68, 0.88));
}

.memory-detail-visual.is-illustrated,
.memory-detail-visual.is-loading {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.72), transparent 18%),
    radial-gradient(circle at 76% 24%, rgba(255, 238, 219, 0.3), transparent 22%),
    linear-gradient(135deg, rgba(204, 111, 57, 0.55), rgba(143, 70, 31, 0.82));
}

.memory-detail-image {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 24px;
  object-fit: contain;
  background: rgba(255, 248, 239, 0.94);
}

.memory-media-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 10px;
}

.memory-media-thumb {
  position: relative;
  border: 1px solid rgba(143, 91, 56, 0.12);
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 250, 244, 0.68);
  cursor: pointer;
}

.memory-media-thumb.is-active {
  box-shadow: 0 0 0 3px rgba(204, 111, 57, 0.2);
}

.memory-media-thumb.is-video::after {
  content: "▶";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(26, 18, 12, 0.62);
  color: #fffaf5;
  font-size: 0.9rem;
  pointer-events: none;
}

.memory-media-thumb-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.memory-detail-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(242, 201, 167, 0.72);
  color: var(--accent-deep);
  font-size: 0.88rem;
}

.memory-video-button {
  bottom: 28px;
}

.memory-detail-copy {
  display: grid;
  align-content: start;
  gap: 16px;
  border-radius: 34px;
  padding: 30px;
  background:
    radial-gradient(circle at top right, rgba(242, 201, 167, 0.3), transparent 30%),
    linear-gradient(180deg, rgba(255, 250, 244, 0.96), rgba(240, 217, 191, 0.78));
}

.memory-detail-date {
  margin: 0;
  color: var(--accent-deep);
  font-weight: 700;
}

.memory-detail-title {
  max-width: none;
  font-size: clamp(2.5rem, 4vw, 4rem);
}

.memory-detail-description,
.memory-detail-quote {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.memory-detail-quote {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-style: italic;
}

.memory-detail-meta,
.memory-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.memory-detail-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--accent-deep);
  font-weight: 700;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(26, 18, 12, 0.88);
  backdrop-filter: blur(10px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-image {
  max-width: min(100%, 1200px);
  max-height: calc(100vh - 80px);
  border-radius: 24px;
  background: rgba(255, 248, 239, 0.96);
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.88);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.lightbox-close {
  top: 24px;
  right: 24px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav-prev {
  left: 24px;
}

.lightbox-nav-next {
  right: 24px;
}

.ops-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ops-card h3 {
  margin-bottom: 12px;
}

.ops-card p {
  margin: 0;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(244, 234, 217, 0.6);
  backdrop-filter: blur(18px);
}

.footer-inner {
  padding: 26px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer-brand {
  margin-bottom: 8px;
}

.footer-copy {
  margin: 0;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-filing-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}

.icp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
}

.icp-link:hover {
  color: var(--accent-deep);
}

.mps-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.empty-state {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 244, 0.78);
  border: 1px dashed rgba(143, 91, 56, 0.22);
  color: var(--muted);
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-weight: 700;
  color: var(--ink);
}

.field textarea {
  width: 100%;
  border: 1px solid rgba(143, 91, 56, 0.16);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  resize: vertical;
}

.field-full {
  grid-column: 1 / -1;
}

.guestbook-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 20px;
}

.guestbook-card {
  display: grid;
  align-content: start;
  gap: 16px;
  border-radius: var(--radius-lg);
  padding: 26px;
  background:
    radial-gradient(circle at top right, rgba(242, 201, 167, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(255, 250, 244, 0.95), rgba(240, 217, 191, 0.76));
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.guestbook-card-form {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.98), rgba(240, 222, 202, 0.82));
}

.guestbook-card-form::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 96px;
  height: 96px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(231, 210, 186, 0.64));
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  border-left: 1px solid rgba(143, 91, 56, 0.08);
  border-bottom: 1px solid rgba(143, 91, 56, 0.08);
}

.guestbook-card-list {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(245, 232, 217, 0.88));
}

.guestbook-card-list::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(204, 111, 57, 0.42), rgba(143, 70, 31, 0.16));
}

.guestbook-card-list::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(143, 91, 56, 0.06) 1px, transparent 1px);
  background-size: 100% 42px;
  opacity: 0.55;
  pointer-events: none;
}

.guestbook-form,
.guestbook-list {
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.guestbook-intro {
  margin: -4px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.guestbook-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.guestbook-status,
.guestbook-time {
  margin: 0;
  color: rgba(108, 96, 88, 0.86);
  font-size: 0.94rem;
  line-height: 1.65;
}

.guestbook-item,
.guestbook-empty {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(143, 91, 56, 0.12);
}

.guestbook-item {
  display: grid;
  gap: 10px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease,
    background-color 220ms ease;
}

.guestbook-item:hover,
.guestbook-item:focus-within {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(143, 91, 56, 0.18);
  box-shadow: 0 18px 36px rgba(79, 43, 17, 0.1);
}

.guestbook-item-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.guestbook-ip {
  margin: 0;
  color: var(--accent-deep);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.guestbook-copy,
.guestbook-empty {
  margin: 0;
  color: var(--ink);
  line-height: 1.8;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero,
  .timeline-layout,
  .overview-grid,
  .gallery-grid,
  .ops-grid,
  .intro,
  .guestbook-layout {
    grid-template-columns: 1fr;
  }

  .annual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .annual-card,
  .annual-card:nth-child(1) {
    grid-column: span 1;
  }

  .annual-card:nth-child(2n) {
    transform: none;
  }

  .timeline-sidecard {
    position: static;
  }

  .gallery-stage,
  .gallery-thumbs,
  .memory-detail,
  .intro-card {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px;
  }

  .hero-spine {
    writing-mode: horizontal-tb;
    grid-auto-flow: column;
    justify-content: start;
    justify-items: start;
    gap: 12px;
    padding: 0;
  }

  .hero-spine::before,
  .hero-spine::after {
    width: 28px;
    height: 1px;
  }

  .hero-copy-main > .eyebrow,
  .hero-copy-main > h1,
  .hero-text,
  .hero-actions,
  .hero-notes,
  .hero-archive-meta {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero-copy-main > .eyebrow {
    padding-top: 22px;
  }

  .hero-archive-meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-archive-meta-item {
    padding: 0;
  }

  .hero-archive-meta-item + .hero-archive-meta-item {
    border-left: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(143, 91, 56, 0.1);
  }

  .intro-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .chapter-intro {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 20px), var(--content-width));
  }

  .site-header-inner,
  .timeline-head,
  .footer-inner {
    flex-direction: column;
    align-items: start;
  }

  .site-nav {
    gap: 12px;
  }

  section {
    margin-bottom: 30px;
  }

  .intro-card {
    padding: 20px;
    border-radius: 24px;
  }

  .intro-title {
    font-size: 1.55rem;
  }

  .chapter-title {
    font-size: 1.12rem;
  }

  .intro-points {
    grid-template-columns: 1fr;
  }

  .hero-notes {
    margin-top: 20px;
  }

  .hero-note {
    width: fit-content;
  }

  .entry-gate {
    padding: 16px;
  }

  .entry-gate-panel {
    padding: 24px 20px;
    border-radius: 26px;
  }

  .entry-gate-title {
    max-width: none;
    font-size: clamp(2.2rem, 11vw, 3.5rem);
  }

  .entry-gate-input {
    min-height: 54px;
    border-radius: 18px;
  }

  .entry-gate-actions {
    align-items: stretch;
  }

  .entry-gate-submit {
    width: 100%;
  }

  .hero-copy,
  .hero-panel,
  .intro-card,
  .highlight-card,
  .annual-card,
  .timeline-sidecard,
  .timeline-card,
  .gallery-copy,
  .ops-card {
    padding: 20px;
    border-radius: 22px;
  }

  .highlight-top {
    flex-direction: column;
    align-items: start;
  }

  .hero-copy {
    gap: 14px;
    padding: 20px;
    min-height: auto;
  }

  .hero-copy-main::before,
  .hero-copy-main::after {
    inset: 0;
    border-radius: 18px;
  }

  .hero-copy-main::after {
    inset: 10px;
  }

  .hero-copy-main > .eyebrow,
  .hero-copy-main > h1,
  .hero-text,
  .hero-actions,
  .hero-notes,
  .hero-archive-meta {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-copy-main > .eyebrow {
    padding-top: 16px;
  }

  .hero-archive-meta {
    margin-top: 24px;
    padding-top: 16px;
    padding-bottom: 18px;
  }

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

  .gallery-stage-visual {
    min-height: 280px;
    border-radius: 24px;
    padding: 14px;
  }

  .gallery-stage-copy,
  .memory-detail-copy {
    padding: 22px;
    border-radius: 24px;
  }

  .gallery-stage-title,
  .memory-detail-title {
    font-size: 2rem;
  }

  .gallery-thumbs {
    gap: 12px;
  }

  .memory-detail-visual {
    min-height: 320px;
    padding: 14px;
    border-radius: 24px;
  }

  .lightbox {
    align-content: center;
    gap: 12px;
    padding: 18px;
  }

  .lightbox-close,
  .lightbox-nav {
    position: static;
    transform: none;
  }

  .timeline-list {
    padding-left: 24px;
  }

  .timeline-year-header {
    align-items: start;
  }

  .timeline-media-wrap {
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    padding: 12px 12px 64px;
  }

  .timeline-media-wrap.has-gallery {
    padding-right: 0;
    padding-bottom: 92px;
  }

  .timeline-media-stage {
    inset: 12px 12px 64px 12px;
  }

  .timeline-media-strip {
    left: 12px;
    bottom: 14px;
    max-width: calc(100% - 24px);
    height: 62px;
    grid-auto-flow: column;
    grid-auto-columns: 60px;
  }

  .timeline-media-status {
    top: 12px;
    right: 12px;
  }

  .timeline-media-status + .timeline-media-duration.has-duration {
    bottom: 48px;
  }

  .timeline-media-duration,
  .gallery-duration {
    right: 12px;
    bottom: 12px;
  }

  .timeline-media-status + .timeline-media-duration.has-duration {
    bottom: 48px;
  }

  .timeline-list::before {
    left: 9px;
  }

  .timeline-marker {
    left: -24px;
    width: 20px;
    height: 20px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.7rem, 12vw, 4.3rem);
  }

  .timeline-title,
  .highlight-title {
    font-size: 1.5rem;
  }

  .site-footer {
    padding-bottom: 8px;
  }

  .footer-inner {
    padding: 18px 0 20px;
    gap: 10px;
  }

  .footer-brand {
    margin-bottom: 4px;
  }

  .footer-copy,
  .footer-meta,
  .icp-link {
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .footer-meta {
    gap: 8px;
  }

  .footer-filing-links {
    gap: 6px 10px;
  }

  .mps-icon {
    width: 16px;
    height: 16px;
  }

  .guestbook-card-list::before {
    left: 12px;
  }
}
