:root {
  --ink: #000;
  --paper: #f0ece3;
  --muted: #a39f98;
  --line: rgba(240, 236, 227, 0.22);
  --line-soft: rgba(240, 236, 227, 0.1);
  --shell: min(1280px, calc(100vw - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--paper); outline-offset: 5px; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -100px; padding: 8px 12px; background: var(--paper); color: var(--ink); z-index: 10; }
.skip-link:focus { top: 12px; }

.site-header { min-height: 88px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line-soft); }
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; font-family: "Noto Serif TC", serif; font-size: 16px; font-weight: 700; letter-spacing: .12em; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
nav { display: flex; gap: 24px; color: var(--muted); font-size: 13px; }
nav a:hover, .tool-link:hover, .footer-links a:hover { color: var(--paper); }
.tool-link { justify-self: end; font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 3px; }

.hero { min-height: min(800px, calc(100vh - 88px)); padding: 35px 0 40px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: visible; }
.eyebrow, .issue, .section-index { margin: 0; color: var(--muted); font-size: 11px; letter-spacing: .18em; }
.hero-topline { display: flex; justify-content: space-between; align-items: center; }
.hero-edition { margin: 0; color: var(--muted); font-size: 11px; letter-spacing: .15em; }
.hero-grid { display: block; }
.hero-copy { position: relative; z-index: 2; width: min(100%, 850px); padding: 75px 0 28px; }
.issue { margin: 0 0 20px; }
h1, h2 { margin: 0; font-family: "Noto Serif TC", serif; font-weight: 600; letter-spacing: -.04em; line-height: 1.22; }
h1 { font-size: clamp(47px, 7vw, 104px); }
h2 { font-size: clamp(34px, 4vw, 62px); }
.hero-copy > p:not(.issue):not(.tags) { max-width: 27em; font-family: "Noto Serif TC", serif; font-size: clamp(18px, 1.8vw, 25px); line-height: 1.75; margin: 32px 0 24px; }
.tags { color: var(--muted); font-size: 12px; letter-spacing: .11em; margin: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 44px; }
.hero-map { position: absolute; z-index: 1; width: min(54vw, 880px); right: clamp(24px, 4vw, 72px); bottom: clamp(18px, 3vw, 52px); margin: 0; pointer-events: none; }
.hero-map img { width: 100%; display: block; opacity: .58; mix-blend-mode: screen; }
.button { display: inline-flex; gap: 34px; align-items: center; padding: 11px 14px; border: 1px solid var(--line); font-size: 13px; transition: background .2s, color .2s; }
.button-primary { background: var(--paper); color: var(--ink); }
.button-primary:hover { background: transparent; color: var(--paper); }
.button-quiet:hover { background: var(--paper); color: var(--ink); }

.work { border-top: 1px solid var(--line); padding: 100px 0 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 40px; }
.section-heading h2 { margin-top: 10px; }
.data-status { margin: 0; max-width: 220px; text-align: right; color: var(--muted); font-size: 11px; }
.post-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.post { display: grid; grid-template-columns: 88px minmax(0, 1fr) minmax(190px, .36fr); gap: 32px; min-height: 205px; padding: 31px 0; border-bottom: 1px solid var(--line-soft); transition: padding-left .25s, background .25s; }
.post:hover { padding-left: 14px; background: rgba(240, 236, 227, .03); }
.post-rank, .post-meta { color: var(--muted); font-size: 12px; }
.post-title { display: block; font-family: "Noto Serif TC", serif; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.45; letter-spacing: -.025em; }
.post-excerpt { max-width: 54em; color: var(--muted); margin: 10px 0 0; font-size: 13px; }
.post-engagement { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 17px; color: var(--muted); font-size: 11px; }
.post-engagement span { display: inline-flex; align-items: center; gap: 5px; }
.metric-icon { color: var(--paper); font-size: 14px; line-height: 1; }
.post-meta { display: flex; flex-direction: column; align-items: end; justify-content: space-between; text-align: right; }
.post-views { color: var(--paper); font: 600 clamp(30px, 3.1vw, 48px)/1 "Noto Serif TC", serif; letter-spacing: -.05em; }
.post-views small { display: block; margin-top: 8px; color: var(--muted); font: 10px "Noto Sans TC", sans-serif; letter-spacing: .16em; }
.threads-badge, .threads-footer-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.threads-badge:hover, .threads-footer-link:hover { color: var(--paper); }
.threads-glyph { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }
.post-loading { padding: 30px 0; color: var(--muted); }
.show-more { display: inline-flex; align-items: center; gap: 40px; margin: 26px 0 0 auto; padding: 9px 12px; border: 1px solid var(--line); background: transparent; color: var(--paper); font: 12px "Noto Sans TC", sans-serif; cursor: pointer; }
.show-more:hover { background: var(--paper); color: var(--ink); }

.about, .collaboration { display: grid; grid-template-columns: 88px minmax(0, 1.2fr) minmax(260px, .62fr); gap: 32px; padding: 150px 0; border-bottom: 1px solid var(--line); }
.about-copy .eyebrow, .collaboration .eyebrow { margin-bottom: 18px; }
.about-detail, .collaboration-detail { color: var(--muted); padding-top: 36px; }
.about-detail p, .collaboration-detail p { margin: 0 0 22px; }
.contact-link { display: inline-flex; gap: 38px; margin-top: 22px; padding-bottom: 5px; border-bottom: 1px solid var(--paper); color: var(--paper); }

.site-footer { padding: 34px 0 42px; display: grid; grid-template-columns: 1fr 1.3fr auto; column-gap: 42px; row-gap: 26px; align-items: start; color: var(--muted); font-size: 12px; }
.site-footer .brand { color: var(--paper); }
.site-footer > p { margin: 0; max-width: 340px; }
.footer-links { display: flex; gap: 20px; justify-content: flex-end; }
.site-footer small { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line-soft); color: #77746e; }

@media (max-width: 760px) {
  :root { --shell: min(100% - 36px, 1280px); }
  .site-header { min-height: 76px; grid-template-columns: 1fr auto; }
  nav { display: none; }
  .brand img { width: 34px; height: 34px; }
  .hero { min-height: auto; padding: 28px 0 0; }
  .hero-topline { margin-bottom: 34px; }
  .hero-grid, .about, .collaboration { grid-template-columns: 1fr; gap: 25px; }
  .hero-copy { width: 100%; padding: 42px 0 35px; }
  .hero-map { position: relative; width: 100%; right: auto; bottom: auto; margin: 0 0 8px; }
  .hero-map img { width: 100%; opacity: .55; }
  .work { padding-top: 80px; }
  .section-heading { align-items: start; }
  .data-status { text-align: left; max-width: 130px; }
  .post { grid-template-columns: 42px 1fr; gap: 14px; min-height: auto; }
  .post-meta { grid-column: 2; flex-direction: row; align-items: center; text-align: left; gap: 18px; }
  .post-views { font-size: 31px; }
  .post-engagement { gap: 7px 12px; }
  .show-more { margin-top: 18px; }
  .about, .collaboration { padding: 92px 0; }
  .section-index { margin-bottom: 8px; }
  .about-detail, .collaboration-detail { padding-top: 0; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; flex-wrap: wrap; }
}
