:root {
  --night: #171b19;
  --panel: #202622;
  --raised: #29302b;
  --text: #d8ddd7;
  --text-strong: #f0efea;
  --muted: #9da49f;
  --line: #3c4540;
  --line-strong: #59645e;
  --mineral: #7fa28f;
  --papaya: #c98a6f;
  --caramel: #aa805c;
  --wine: #a2677a;
  --violet: #9890b0;
  --citron: #b4a568;
  --teal: #6f9792;
  --shell: 1240px;
  --reading: 720px;
  color-scheme: dark;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--night);
  color: var(--text);
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--night);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--mineral), transparent 45%);
  text-underline-offset: 0.24em;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

a:hover {
  color: var(--mineral);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--papaya);
  outline-offset: 4px;
}

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

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

.shell {
  width: min(var(--shell), calc(100% - 96px));
  margin-inline: auto;
}

.reading-column {
  width: min(var(--reading), 100%);
  max-width: 720px;
  margin-inline: auto;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  vertical-align: -0.18em;
}

.site-header {
  position: relative;
  z-index: 10;
  width: min(var(--shell), calc(100% - 96px));
  min-height: 88px;
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wordmark {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.wordmark strong {
  color: var(--text-strong);
  font-family: "Noto Serif TC", serif;
  font-size: 17px;
  font-weight: 700;
}

.wordmark span {
  padding-left: 16px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-family: "Noto Serif TC", serif;
  font-size: 13px;
}

.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.site-nav a,
.site-footer nav a {
  min-height: 44px;
  padding-inline: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.home-intro {
  --map-drift: 0px;
  position: relative;
  isolation: isolate;
  min-height: 420px;
  padding-block: 86px 98px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(940px, 88vw);
  aspect-ratio: 1280 / 663;
  right: -7%;
  top: 50%;
  background: url("/assets/world-map.png") center / contain no-repeat;
  opacity: 0.03;
  transform: translate3d(var(--map-drift), calc(-50% + var(--map-drift)), 0);
  transition: transform 120ms linear;
  pointer-events: none;
}

.eyebrow,
.section-kicker > p,
.row-category,
.article-id {
  margin: 0;
  color: var(--mineral);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}

.intro-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 72px;
  align-items: end;
}

.intro-grid h1 {
  margin: 0;
  color: var(--text-strong);
  font-family: "Noto Serif TC", serif;
  font-size: 58px;
  font-weight: 600;
  line-height: 1.22;
}

.intro-note {
  padding: 20px 0 20px 28px;
  border-left: 2px solid var(--papaya);
}

.intro-note p {
  margin: 0;
  color: var(--text);
  font-family: "Noto Serif TC", serif;
  font-size: 17px;
  line-height: 1.9;
}

.featured-band {
  padding-block: 92px 108px;
  border-block: 1px solid var(--line);
  background: var(--panel);
}

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

.section-kicker > p,
.latest-aside > a,
.archive-total {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-kicker h2 {
  margin: 0;
  color: var(--text-strong);
  font-family: "Noto Serif TC", serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.featured-story {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--raised);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  transition: border-color 180ms ease, transform 220ms ease;
}

.featured-story:hover {
  border-color: var(--mineral);
  transform: translateY(-2px);
}

.story-media-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--line-strong);
  background: #111512;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--night);
  text-decoration: none;
}

.story-media-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111512;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.story-media-stage:hover img {
  transform: scale(1.012);
}

.story-cover {
  position: absolute;
  inset: 0;
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto;
  align-items: start;
}

.accent-01 .story-cover {
  background: var(--papaya);
}

.accent-02 .story-cover {
  background: var(--violet);
}

.accent-03 .story-cover {
  background: var(--citron);
}

.accent-04 .story-cover {
  background: var(--teal);
}

.story-cover > .icon {
  width: 34px;
  height: 34px;
  stroke-width: 1.35;
}

.story-cover-number {
  justify-self: end;
  font-family: "Noto Serif TC", serif;
  font-size: 74px;
  font-weight: 500;
  line-height: 0.85;
}

.story-cover-mark {
  grid-column: 1 / -1;
  align-self: end;
  border-top: 1px solid color-mix(in srgb, var(--night), transparent 55%);
  padding-top: 12px;
  font-size: 11px;
  font-weight: 700;
}

.story-copy {
  min-width: 0;
  min-height: 228px;
  padding: 30px 32px 32px;
  display: flex;
  flex-direction: column;
}

.story-copy > p {
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.story-copy > p > span {
  margin-right: 5px;
  color: var(--papaya);
  font-weight: 700;
}

.featured-story:nth-child(2) .story-copy > p > span {
  color: var(--violet);
}

.featured-story:nth-child(3) .story-copy > p > span {
  color: var(--citron);
}

.featured-story:nth-child(4) .story-copy > p > span {
  color: var(--teal);
}

.story-copy h3 {
  margin: 0 0 28px;
  color: var(--text-strong);
  font-family: "Noto Serif TC", serif;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.story-copy h3 a,
.story-link {
  text-decoration: none;
}

.story-link {
  width: fit-content;
  margin-top: auto;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.latest-band {
  padding-block: 112px;
}

.latest-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 80px;
}

.latest-aside {
  align-self: start;
  position: sticky;
  top: 28px;
}

.latest-aside h2 {
  margin: 18px 0 22px;
  color: var(--text-strong);
  font-family: "Noto Serif TC", serif;
  font-size: 30px;
  font-weight: 600;
}

.latest-aside > p:not(.eyebrow) {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 13px;
}

.latest-aside > a {
  color: var(--mineral);
  font-size: 12px;
  text-decoration: none;
}

.article-list {
  min-width: 0;
  border-top: 1px solid var(--line-strong);
}

.article-row {
  min-height: 154px;
  border-bottom: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr) 48px;
  gap: 24px;
  align-items: center;
  transition: background-color 160ms ease;
}

.article-row:hover {
  background: color-mix(in srgb, var(--raised), transparent 55%);
}

.article-row[hidden] {
  display: none;
}

.article-row time {
  align-self: start;
  padding-top: 35px;
  color: var(--muted);
  font-family: "Noto Serif TC", serif;
  font-size: 11px;
}

.article-row h3 {
  margin: 7px 0 6px;
  color: var(--text-strong);
  font-family: "Noto Serif TC", serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.55;
}

.article-row h3 a {
  text-decoration: none;
}

.row-category {
  color: var(--papaya);
}

.article-row:nth-child(4n + 2) .row-category {
  color: var(--violet);
}

.article-row:nth-child(4n + 3) .row-category {
  color: var(--citron);
}

.article-row:nth-child(4n + 4) .row-category {
  color: var(--teal);
}

.row-excerpt {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.row-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  display: grid;
  place-items: center;
  color: var(--mineral);
  text-decoration: none;
}

.row-arrow:hover {
  border-color: var(--line-strong);
  color: var(--papaya);
}

.murmurs-band {
  padding-block: 96px;
  border-block: 1px solid var(--line);
  background: var(--panel);
}

.murmur-list {
  border-top: 1px solid var(--line-strong);
}

.murmur-list > a {
  min-height: 112px;
  border-bottom: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 40px;
  gap: 24px;
  align-items: center;
  text-decoration: none;
}

.murmur-list time,
.murmur-list span {
  color: var(--mineral);
  font-size: 11px;
}

.murmur-list p {
  margin: 0;
  color: var(--text-strong);
  font-family: "Noto Serif TC", serif;
  line-height: 1.8;
}

.year-map-band {
  padding-block: 98px 112px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.year-map-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 148px;
  gap: 64px;
  align-items: end;
}

.year-map-layout .section-kicker {
  margin: 0;
  display: block;
}

.year-map-layout .section-kicker > p {
  display: flex;
}

.year-map-layout .section-kicker h2 {
  margin-top: 16px;
}

.year-map {
  border-top: 1px solid var(--line-strong);
}

.year-map-row {
  min-height: 56px;
  border-bottom: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 34px;
  gap: 20px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.year-map-row i {
  height: 4px;
  background: var(--line);
}

.year-map-row b {
  height: 100%;
  display: block;
  background: var(--violet);
}

.year-map-row:nth-child(2n) b {
  background: var(--papaya);
}

.year-map-row strong {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

.archive-total {
  min-height: 148px;
  padding: 22px;
  border: 1px solid var(--mineral);
  border-radius: 4px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  color: var(--text-strong);
  text-decoration: none;
}

.archive-total span {
  font-size: 11px;
}

.archive-total strong {
  color: var(--mineral);
  font-family: "Noto Serif TC", serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
}

.archive-page {
  padding-block: 88px 120px;
}

.page-heading {
  max-width: 720px;
  margin-bottom: 56px;
}

.page-heading h1,
.not-found h1 {
  margin: 18px 0 20px;
  color: var(--text-strong);
  font-family: "Noto Serif TC", serif;
  font-size: 46px;
  font-weight: 600;
  line-height: 1.3;
}

.page-heading > p:last-child,
.not-found p:not(.eyebrow) {
  color: var(--muted);
}

.archive-filters {
  margin-bottom: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 180px 220px minmax(260px, 1fr);
  gap: 24px;
}

.archive-filters label {
  color: var(--muted);
  font-size: 11px;
}

.archive-filters label:has(.icon) {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 6px;
}

.archive-filters label:has(.icon) input {
  grid-column: 1 / -1;
}

.archive-filters select,
.archive-filters input {
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--panel);
  color: var(--text-strong);
  font-size: 13px;
}

.result-count {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.article-shell {
  width: min(1060px, calc(100% - 96px));
  margin-inline: auto;
  padding-block: 92px 120px;
}

.article-heading {
  padding-bottom: 58px;
  border-bottom: 1px solid var(--line-strong);
}

.article-heading h1 {
  margin: 22px 0 30px;
  color: var(--text-strong);
  font-family: "Noto Serif TC", serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.article-id {
  color: var(--muted);
}

.article-content {
  padding-block: 68px 48px;
  color: var(--text);
  font-size: 17px;
  line-height: 2;
  overflow-wrap: anywhere;
}

.article-content p {
  margin: 0 0 1.7em;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 2.5em 0 0.9em;
  color: var(--text-strong);
  font-family: "Noto Serif TC", serif;
  font-weight: 600;
  line-height: 1.55;
}

.article-content h2 {
  font-size: 26px;
}

.article-content h3 {
  font-size: 22px;
}

.article-content blockquote {
  margin: 2.2em 0;
  padding: 5px 0 5px 26px;
  border-left: 2px solid var(--wine);
  color: var(--muted);
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.7em;
  padding-left: 1.45em;
}

.article-content a {
  color: var(--mineral);
}

.article-content img,
.article-content video,
.article-content iframe {
  width: 100%;
  height: auto;
  margin-block: 32px;
}

.article-content iframe,
.article-content video {
  min-height: 405px;
  border: 0;
  border-radius: 3px;
  background: var(--raised);
  aspect-ratio: 16 / 9;
}

.article-content .media-frame,
.article-content .wp-caption,
.article-content > .media-placeholder {
  width: min(1060px, calc(100vw - 96px));
  max-width: none;
  margin: 46px 0 46px 50%;
  transform: translateX(-50%);
}

.article-content .media-frame img,
.article-content .wp-caption img {
  margin: 0;
}

.wp-caption figcaption,
.wp-caption-text {
  margin-top: 11px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.media-placeholder {
  min-height: 260px;
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--raised);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
}

.media-placeholder span {
  color: var(--text-strong);
  font-family: "Noto Serif TC", serif;
  font-size: 18px;
}

.media-placeholder small {
  margin-top: 8px;
  font-size: 11px;
}

.post-navigation {
  width: min(var(--reading), 100%);
  margin: 52px auto 0;
  padding-top: 34px;
  border-top: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.post-navigation a {
  color: var(--text);
  font-family: "Noto Serif TC", serif;
  font-size: 14px;
  line-height: 1.75;
  text-decoration: none;
}

.post-navigation a span {
  display: block;
  margin-bottom: 8px;
  color: var(--mineral);
  font-family: "Noto Sans TC", sans-serif;
  font-size: 10px;
}

.post-navigation .next {
  text-align: right;
}

.not-found {
  min-height: 68vh;
  padding-block: 120px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mineral);
  font-size: 13px;
  text-decoration: none;
}

.site-footer {
  width: min(var(--shell), calc(100% - 96px));
  min-height: 138px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 11px;
}

.site-footer > div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-footer strong {
  color: var(--text-strong);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .latest-layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 48px;
  }

  .year-map-layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .archive-total {
    grid-column: 2;
    min-height: 100px;
  }
}

@media (max-width: 760px) {
  .shell,
  .site-header,
  .site-footer {
    width: calc(100% - 32px);
  }

  .site-header {
    min-height: 72px;
    gap: 14px;
  }

  .wordmark span,
  .site-nav a span {
    display: none;
  }

  .site-nav {
    gap: 2px;
  }

  .site-nav a {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .home-intro {
    min-height: 360px;
    padding-block: 62px 70px;
  }

  .home-intro::before {
    width: 115vw;
    right: -4%;
    opacity: 0.025;
  }

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

  .intro-grid h1 {
    font-size: 42px;
  }

  .intro-note {
    padding: 14px 0 14px 20px;
  }

  .featured-band,
  .latest-band,
  .murmurs-band,
  .year-map-band {
    padding-block: 72px;
  }

  .section-kicker {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .featured-story {
    grid-template-rows: auto 1fr;
  }

  .story-cover {
    padding: 24px;
  }

  .story-copy {
    min-height: 0;
    padding: 27px 24px 29px;
  }

  .story-copy h3 {
    font-size: 21px;
  }

  .latest-layout,
  .year-map-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .latest-aside {
    position: static;
  }

  .article-row {
    min-height: 0;
    padding-block: 27px;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 12px;
  }

  .article-row time {
    grid-column: 1 / -1;
    padding-top: 0;
  }

  .row-excerpt {
    display: none;
  }

  .article-row h3 {
    font-size: 18px;
  }

  .murmur-list > a {
    padding-block: 24px;
    grid-template-columns: 1fr 36px;
    gap: 10px;
  }

  .murmur-list time {
    grid-column: 1 / -1;
  }

  .year-map-row {
    min-height: 58px;
  }

  .archive-total {
    grid-column: 1;
  }

  .archive-page {
    padding-block: 64px 88px;
  }

  .page-heading h1,
  .not-found h1 {
    font-size: 36px;
  }

  .archive-filters {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .article-shell {
    width: calc(100% - 32px);
    padding-block: 64px 88px;
  }

  .article-heading h1 {
    font-size: 29px;
    line-height: 1.58;
  }

  .article-content {
    padding-top: 50px;
    font-size: 16px;
    line-height: 1.95;
  }

  .article-content .media-frame,
  .article-content .wp-caption,
  .article-content > .media-placeholder {
    width: calc(100vw - 32px);
  }

  .article-content iframe,
  .article-content video {
    min-height: 0;
  }

  .post-navigation {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .post-navigation .next {
    text-align: left;
  }

  .site-footer {
    padding-block: 34px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .site-footer > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .site-footer nav a {
    padding-inline: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .home-intro::before {
    transform: translate3d(0, -50%, 0);
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
