:root {
  --ink: #171717;
  --muted: #5f6468;
  --line: #d7dadd;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --accent: #0b6b57;
  --accent-2: #b3362d;
  --wash: #edf4f1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-serif, Georgia, "Times New Roman", "Noto Serif TC", serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
}

.language-switcher label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.language-switcher select {
  min-width: 138px;
  padding: 7px 32px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.home,
.article-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.lead {
  min-height: 128px;
  display: grid;
  align-items: end;
  padding: 20px 0 18px;
  border-bottom: 3px double var(--line);
}

.lead h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 3.5vw, 44px);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead p:not(.section-label) {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.section-label,
.kicker {
  display: block;
  margin: 0 0 10px;
  color: var(--accent-2);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.front-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
  gap: 26px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.side-stack {
  display: grid;
  gap: 0;
}

.story {
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.story-link {
  display: block;
  padding: 14px 0;
}

.story h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: 0;
}

.story p {
  margin: 9px 0 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.side-stack .story h2 {
  font-size: 22px;
}

.side-stack .story p {
  -webkit-line-clamp: 2;
}

.story time,
.meta {
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
}

.story-featured {
  border-bottom: 0;
}

.story-featured .story-link {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 24px;
  border-left: 6px solid var(--accent);
  background: linear-gradient(135deg, var(--wash), #fff 70%);
}

.story-featured h2 {
  max-width: 780px;
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.12;
}

.story-featured.headline-long h2 {
  font-size: clamp(28px, 2.65vw, 38px);
  line-height: 1.12;
}

.story-featured.headline-xlong h2 {
  font-size: clamp(25px, 2.25vw, 32px);
  line-height: 1.16;
}

.story-featured p {
  max-width: 720px;
  font-size: 17px;
  -webkit-line-clamp: 2;
}

.latest {
  padding: 34px 0 60px;
}

.latest-link {
  display: flex;
  justify-content: flex-end;
  padding: 24px 0 56px;
}

.latest-link a {
  color: var(--accent);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 16px;
}

.section-heading a {
  color: var(--accent);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.latest > h2,
.section-heading h2,
.related h2 {
  margin: 0;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
}

.story-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 28px;
}

.archive {
  width: min(820px, calc(100% - 72px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.archive-header {
  padding: 12px 0 28px;
  border-bottom: 3px double var(--line);
}

.archive-header h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.04;
}

.archive-header p:not(.section-label) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.archive-list {
  display: block;
  padding-top: 22px;
}

.archive-list .story {
  margin-bottom: 14px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.archive-list .story-link {
  display: block;
  padding: 20px 0;
}

.archive-list .story h2 {
  font-size: 24px;
  line-height: 1.18;
}

.archive-list .story p {
  max-width: 680px;
  margin-bottom: 10px;
  -webkit-line-clamp: 2;
}

.archive-list .story time {
  display: block;
  padding-top: 0;
  text-align: left;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 22px 0 0;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.pagination a,
.pagination span,
.pagination strong {
  min-width: 76px;
  text-align: center;
  font-size: 14px;
}

.pagination a {
  color: var(--accent);
  font-weight: 800;
}

.pagination span {
  color: var(--muted);
}

.article-page {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 1fr);
  gap: 56px;
  padding: 42px 0 72px;
}

.article-body h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
}

.dek {
  margin: 18px 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.55;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.prose {
  padding-top: 18px;
  font-size: 20px;
  line-height: 1.86;
}

.prose h2 {
  margin: 34px 0 10px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 22px;
}

.references {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.references h2 {
  margin: 0 0 12px;
  font-size: 16px;
  letter-spacing: 0;
}

.references ol {
  margin: 0;
  padding-left: 22px;
}

.references li {
  margin: 8px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.references a {
  color: var(--accent);
  font-weight: 700;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--accent);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.related {
  position: sticky;
  top: 86px;
  align-self: start;
  padding-top: 8px;
  border-top: 3px solid var(--ink);
}

.related a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.related strong,
.related span {
  display: block;
}

.related span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.empty-state {
  width: min(720px, calc(100% - 32px));
  margin: 80px auto;
  padding: 32px 0;
  border-top: 3px solid var(--ink);
}

.legal-page {
  width: min(860px, calc(100% - 36px));
  margin: 54px auto 82px;
}

.legal-body {
  border-top: 3px solid var(--ink);
  padding-top: 28px;
}

.legal-body h1 {
  max-width: 760px;
  margin: 0 0 14px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 0.98;
}

.legal-body h2 {
  margin: 34px 0 10px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 19px;
}

.legal-body p {
  max-width: 760px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.85;
}

.legal-body .dek,
.legal-body .updated {
  color: var(--muted);
}

.legal-body a {
  color: var(--accent);
  font-weight: 700;
}

.site-footer {
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
}

.site-footer a {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 820px) {
  .site-header {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .brand {
    font-size: 24px;
  }

  nav {
    order: 3;
    width: 100%;
    gap: 14px;
  }

  .front-grid,
  .article-page,
  .story-list {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .pagination {
    align-items: flex-start;
  }

  .archive {
    width: min(100% - 34px, 820px);
  }

  .archive-list .story {
    padding: 0 18px;
  }

  .archive-list .story-link {
    display: block;
  }

  .archive-list .story h2 {
    font-size: 24px;
  }

  .archive-list .story time {
    display: block;
    padding-top: 0;
    text-align: left;
  }

  .pagination {
    justify-content: space-between;
    gap: 8px;
  }

  .story-featured .story-link {
    min-height: 210px;
    padding: 20px;
  }

  .story-featured h2 {
    font-size: 31px;
  }

  .story-featured.headline-long h2 {
    font-size: 28px;
  }

  .story-featured.headline-xlong h2 {
    font-size: 25px;
  }

  .article-page {
    gap: 34px;
  }

  .related {
    position: static;
  }
}
