:root {
  --bg: #f4f1ea;
  --text: #161616;
  --muted: #6d6a63;
  --surface: #ffffff;
  --surface-2: #eee7db;
  --line: #d8d1c4;
  --accent: #c44d2d;
  --accent-2: #1f6f78;
  --highlight: #e6b84e;
  --shadow: 0 24px 70px rgba(42, 31, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(216, 209, 196, 0.45) 1px, transparent 1px),
    linear-gradient(180deg, rgba(216, 209, 196, 0.36) 1px, transparent 1px);
  background-size: 72px 72px;
}

button {
  font: inherit;
  cursor: pointer;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 18px 0 46px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.brand strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.nav-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  padding: 8px 12px;
}

.nav-chip.is-active {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.cover-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: stretch;
  padding-top: 22px;
}

.cover-story,
.cover-aside,
.index-card,
.note-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(42, 31, 20, 0.05);
}

.cover-story {
  min-height: 420px;
  padding: clamp(24px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.cover-story::after {
  content: "";
  position: absolute;
  right: clamp(20px, 5vw, 52px);
  bottom: clamp(20px, 5vw, 52px);
  width: 128px;
  height: 18px;
  background: var(--accent);
}

.story-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cover-story h1 {
  max-width: 820px;
  margin: 34px 0 20px;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: normal;
  line-break: strict;
}

.cover-story h1 span {
  display: block;
}

.cover-story p {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
  text-wrap: pretty;
}

.story-link {
  width: fit-content;
  margin-top: 28px;
  color: var(--accent-2);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.cover-aside {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.aside-block {
  padding: 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.aside-block:last-child {
  border-bottom: 0;
}

.aside-block.accent {
  background: var(--text);
  color: var(--bg);
}

.aside-label,
.source-label {
  display: block;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.aside-block.accent .aside-label {
  color: var(--highlight);
}

.aside-block p {
  margin: 12px 0 0;
  color: inherit;
  font-size: 18px;
  line-height: 1.55;
  text-wrap: pretty;
}

.ticker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
  overflow: hidden;
}

.ticker-item {
  color: inherit;
  text-decoration: none;
  padding: 16px;
  border-right: 1px solid var(--line);
  transition: background 150ms ease;
}

.ticker-item:hover {
  background: rgba(255, 255, 255, 0.54);
}

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

.ticker span {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.ticker strong {
  font-size: 16px;
  line-height: 1.45;
  text-wrap: pretty;
}

.search-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(42, 31, 20, 0.05);
}

.search-strip label {
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-strip input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 18px;
}

.search-strip input::placeholder {
  color: rgba(109, 106, 99, 0.78);
}

.search-strip button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 8px 11px;
}

.content-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.left-column {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 12px;
}

.index-card {
  padding: 16px;
}

.index-card h2,
.section-heading h2 {
  margin: 0;
  font-family: "Space Grotesk", "Noto Sans TC", sans-serif;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
}

.index-card ol {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.index-card li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.index-card li:first-child {
  border-top: 0;
}

.index-card li span {
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.index-card li strong {
  line-height: 1.45;
  text-wrap: pretty;
}

.index-card.quiet {
  background: var(--surface-2);
}

.index-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
  text-wrap: pretty;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding-top: 14px;
  margin-bottom: 14px;
  border-top: 2px solid var(--text);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.note-list {
  display: grid;
  gap: 12px;
}

.note-card {
  padding: 18px;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.note-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(42, 31, 20, 0.09);
}

.note-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.note-tag {
  display: inline-flex;
  border: 0;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(31, 111, 120, 0.1);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
}

.note-tag:nth-child(2n) {
  background: rgba(196, 77, 45, 0.1);
  color: var(--accent);
}

.note-meta {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.note-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0;
  text-wrap: pretty;
}

.note-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  text-wrap: pretty;
}

.note-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.note-actions a {
  color: var(--accent-2);
  font-weight: 700;
  text-decoration: none;
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

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

@media (max-width: 980px) {
  .site-header,
  .cover-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .left-column {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-bottom: 28px;
  }

  .cover-story {
    min-height: auto;
  }

  .cover-story::after {
    position: static;
    display: block;
    margin-top: 28px;
    width: 92px;
  }

  .story-meta,
  .section-heading,
  .note-top,
  .note-actions,
  .site-footer {
    display: block;
  }

  .story-meta span + span,
  .note-meta,
  .note-actions span {
    display: block;
    margin-top: 8px;
  }

  .cover-story h1 {
    font-size: 42px;
  }

  .cover-story p,
  .aside-block p {
    font-size: 17px;
  }

  .search-strip {
    grid-template-columns: 1fr;
  }

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

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

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

  .left-column {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    margin-top: 10px;
  }
}
