:root {
  color-scheme: light;
  --bg: #f7f1e7;
  --paper: #fffaf1;
  --ink: #20201d;
  --muted: #6d695f;
  --line: rgba(32, 32, 29, 0.14);
  --moss: #496b4b;
  --brick: #b6543e;
  --saffron: #d7a335;
  --sky: #507a8b;
  --shadow: 0 24px 70px rgba(52, 44, 32, 0.16);
  --radius: 8px;
  --display: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --body: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171915;
  --paper: #22261f;
  --ink: #f4eddf;
  --muted: #b8ad9c;
  --line: rgba(244, 237, 223, 0.16);
  --moss: #91b482;
  --brick: #de8061;
  --saffron: #e0b95c;
  --sky: #8eb6bf;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(32, 32, 29, 0.035) 1px, transparent 1px) 0 0 / 44px 44px,
    radial-gradient(circle at 20% 0%, rgba(215, 163, 53, 0.16), transparent 34rem),
    var(--bg);
  font-family: var(--body);
  line-height: 1.72;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.26) 1px, transparent 1px);
  background-size: 11px 11px;
  mix-blend-mode: soft-light;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 22px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  box-shadow: 0 10px 30px rgba(36, 31, 23, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--saffron);
  color: #17140f;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.site-nav a,
.filter-pill,
.primary-action,
.text-action,
.mail-card button,
.icon-button {
  min-height: 42px;
  border-radius: var(--radius);
}

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

.site-nav a:hover {
  background: rgba(73, 107, 75, 0.12);
  color: var(--ink);
}

.icon-button {
  display: grid;
  width: 42px;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100svh - 94px);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 90px) 0 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brick);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  line-height: 1.12;
}

h1 {
  max-width: 8.5em;
  font-size: clamp(52px, 8vw, 104px);
  font-weight: 900;
}

.hero-lede {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-weight: 700;
}

.primary-action {
  background: var(--ink);
  color: var(--paper);
}

.text-action {
  border: 1px solid var(--line);
  color: var(--ink);
}

.hero-visual {
  position: relative;
  margin: 0;
  transform: rotate(1.4deg);
}

.hero-visual img {
  aspect-ratio: 16 / 10;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.hero-visual figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(310px, calc(100% - 36px));
  padding: 15px 16px;
  border: 1px solid rgba(255, 250, 241, 0.48);
  border-radius: var(--radius);
  background: rgba(29, 28, 22, 0.74);
  color: #fffaf1;
  backdrop-filter: blur(12px);
}

.hero-visual figcaption span,
.hero-visual figcaption strong {
  display: block;
}

.hero-visual figcaption span {
  color: rgba(255, 250, 241, 0.72);
  font-size: 12px;
}

.hero-visual figcaption strong {
  margin-top: 4px;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.24;
}

.ticker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 72px;
  border-block: 1px solid var(--line);
}

.ticker div {
  min-width: 0;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.ticker div:last-child {
  border-right: 0;
}

.ticker strong {
  display: block;
  font-family: var(--display);
  font-size: 34px;
  line-height: 1;
}

.ticker span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.content-shell,
.review-lane,
.split-band,
.about-band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(34px, 4.5vw, 60px);
}

.tools-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.search-box {
  display: grid;
  grid-template-columns: auto minmax(140px, 280px);
  gap: 10px;
  align-items: center;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.search-box span {
  color: var(--muted);
  font-size: 13px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-pill {
  border: 1px solid var(--line);
  padding: 7px 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.filter-pill.is-active {
  border-color: var(--moss);
  background: var(--moss);
  color: var(--paper);
}

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

.article-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(38, 31, 22, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.article-card:hover {
  border-color: color-mix(in srgb, var(--brick) 46%, var(--line));
  box-shadow: 0 22px 44px rgba(38, 31, 22, 0.12);
  transform: translateY(-4px);
}

.article-card time,
.article-card .tag {
  color: var(--muted);
  font-size: 13px;
}

.article-card h3 {
  margin: 16px 0 12px;
  font-size: 28px;
}

.article-card p {
  margin: 0;
  color: var(--muted);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.read-link {
  color: var(--brick);
  font-weight: 800;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  margin-top: 96px;
  padding: 54px 0;
  border-block: 1px solid var(--line);
}

.split-band p {
  max-width: 510px;
  color: var(--muted);
  font-size: 18px;
}

.topic-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.topic-board a {
  display: flex;
  min-height: 92px;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 68%, transparent);
  font-family: var(--display);
  font-size: 24px;
}

.topic-board span {
  color: var(--sky);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 800;
}

.review-lane {
  margin-top: 86px;
}

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

.timeline article {
  padding: 22px;
  border-top: 4px solid var(--saffron);
  background: rgba(255, 250, 241, 0.46);
}

[data-theme="dark"] .timeline article {
  background: rgba(34, 38, 31, 0.72);
}

.timeline time {
  color: var(--brick);
  font-weight: 800;
}

.timeline h3 {
  margin-top: 14px;
  font-size: 26px;
}

.timeline p {
  margin-bottom: 0;
  color: var(--muted);
}

.about-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px;
  align-items: stretch;
  margin-top: 96px;
}

.about-card,
.mail-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.about-card {
  padding: clamp(26px, 4vw, 44px);
}

.about-card p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.mail-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: end;
  padding: 24px;
}

.mail-card label {
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
}

.mail-card div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.mail-card input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: transparent;
  color: var(--ink);
}

.mail-card button {
  border: 0;
  padding: 10px 16px;
  background: var(--brick);
  color: #fffaf1;
  cursor: pointer;
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  width: min(1180px, calc(100% - 32px));
  margin: 80px auto 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: space-between;
    order: 3;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }

  .hero,
  .split-band,
  .about-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  h1 {
    max-width: 9em;
    font-size: clamp(44px, 15vw, 76px);
  }

  .ticker,
  .article-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .tools-row {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-group {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header,
  .hero,
  .ticker,
  .content-shell,
  .review-lane,
  .split-band,
  .about-band,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .brand small {
    max-width: 150px;
  }

  .site-nav a {
    padding-inline: 8px;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-lede,
  .split-band p,
  .about-card p:last-child {
    font-size: 16px;
  }

  .hero-visual {
    transform: none;
  }

  .hero-visual figcaption {
    position: static;
    width: 100%;
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .ticker,
  .article-grid,
  .timeline,
  .topic-board {
    grid-template-columns: 1fr;
  }

  .ticker div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ticker div:last-child {
    border-bottom: 0;
  }

  .search-box,
  .mail-card div {
    grid-template-columns: 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
