
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@500;600;700;900&family=Public+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --paper: #f7f2e8;
  --paper-soft: #fffaf0;
  --ink: #17211d;
  --muted: #67716a;
  --line: #ded5c6;
  --pine: #173c32;
  --pine-soft: #e6eee7;
  --lake: #426f86;
  --stone: #4c514c;
  --sun: #c9983f;
  --clay: #9d604e;
  --white: #ffffff;
  --serif: "Noto Serif TC", "Songti TC", serif;
  --sans: "Public Sans", "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 60, 50, .035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 60, 50, .025) 1px, transparent 1px),
    var(--paper);
  background-size: 40px 40px;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--sun); outline-offset: 4px; }
img { display: block; width: 100%; height: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(24, 32, 29, .12);
  background: rgba(247, 242, 232, .88);
  backdrop-filter: blur(14px);
}
.brand {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
}
nav { display: flex; gap: 20px; color: var(--stone); font-size: 14px; font-weight: 700; }
nav a { border-bottom: 1px solid transparent; transition: border-color 180ms var(--ease), color 180ms var(--ease); }
nav a:hover { border-color: var(--sun); color: var(--ink); }
.name-inline { white-space: nowrap; }
.magazine-cover {
  position: relative;
  min-height: calc(100svh - 64px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(34px, 6vw, 76px) clamp(18px, 5vw, 72px);
  background: var(--pine);
  isolation: isolate;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-backdrop-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .48;
  filter: blur(16px) saturate(.9);
  transform: scale(1.04);
}
.cover-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 18, 14, .76), rgba(10, 18, 14, .36) 50%, rgba(10, 18, 14, .18)),
    linear-gradient(180deg, rgba(10, 18, 14, .08), rgba(10, 18, 14, .46));
}
.hero-layout {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(300px, .58fr);
  align-items: center;
  gap: clamp(28px, 5vw, 78px);
}
.cover-copy {
  min-width: 0;
  max-width: 980px;
  color: #fff;
}
.hero-frame {
  justify-self: end;
  width: fit-content;
  max-width: min(38vw, 430px);
  margin: 0;
}
.hero-frame img {
  width: auto;
  max-width: 100%;
  max-height: min(74svh, 760px);
  object-fit: contain;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 8px;
  background: rgba(255, 250, 240, .14);
  box-shadow: 0 30px 80px rgba(0,0,0,.34);
}
.hero-frame figcaption {
  color: rgba(255,255,255,.76);
  font-size: 12px;
  font-weight: 800;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cover-copy .eyebrow { color: var(--sun); }
h1, h2, h3, p { letter-spacing: 0; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 900;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
h1 { margin: 0; max-width: 880px; font-size: clamp(44px, 7.5vw, 96px); line-height: 1.02; }
.cover-copy h1 span { display: block; }
.cover-copy > p:last-of-type, .hub-copy > p, .article-header p {
  max-width: 760px;
  color: inherit;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.cover-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.metric {
  min-width: 104px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
}
.metric strong { display: block; font-size: 24px; line-height: 1; }
.metric small { color: rgba(255,255,255,.78); font-size: 12px; font-weight: 700; }
.section { padding: clamp(44px, 7vw, 90px) clamp(18px, 4vw, 58px); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 30px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.section-head h2, .article-header h1 { margin: 0; font-size: clamp(32px, 5vw, 60px); line-height: 1.08; }
.section-head p { max-width: 520px; color: var(--muted); line-height: 1.7; }
.latest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 22px;
  align-items: start;
}
.secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.feature-post,
.post-card,
.timeline-card {
  background: rgba(255, 250, 240, .92);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.feature-post:hover,
.post-card:hover,
.timeline-card:hover {
  border-color: rgba(201, 152, 63, .72);
  box-shadow: 0 16px 34px rgba(23, 33, 29, .11);
}
.feature-post a {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(280px, .72fr);
  min-height: 520px;
}
.feature-post img { height: 100%; object-fit: cover; }
.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: clamp(22px, 4vw, 42px);
}
.feature-copy h3 { margin: 0 0 18px; font-size: clamp(30px, 4vw, 54px); line-height: 1.05; }
.feature-copy p:not(.eyebrow) { margin: 0 0 22px; color: var(--stone); line-height: 1.82; }
.post-card a { display: block; height: 100%; }
.post-card img { aspect-ratio: 4 / 5; object-fit: cover; }
.post-card-copy { padding: 16px; }
.post-card-copy p { margin: 0 0 8px; color: var(--lake); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.post-card-copy h3 { margin: 0 0 12px; font-size: 21px; line-height: 1.25; }
.post-card-copy span { color: var(--muted); font-size: 14px; line-height: 1.6; }
.text-link {
  color: var(--pine);
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-bottom: 1px solid var(--sun);
  font-size: 14px;
  font-weight: 800;
}
.character-section { padding-top: 0; }
.character-stack {
  display: grid;
  gap: 16px;
}
.character-panel {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, .78);
}
.character-panel.character-ailisha { background: linear-gradient(120deg, rgba(255, 250, 240, .86), rgba(230, 238, 231, .58)); }
.character-panel.character-j { background: linear-gradient(120deg, rgba(255, 250, 240, .86), rgba(232, 241, 244, .62)); }
.character-panel.character-dorami { background: linear-gradient(120deg, rgba(255, 250, 240, .88), rgba(245, 225, 199, .62)); }
.character-panel img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.character-panel h3 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 52px); }
.character-panel p { max-width: 680px; margin: 0; color: var(--stone); line-height: 1.72; }
.panel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.panel-meta span {
  border-left: 1px solid var(--line);
  padding-left: 10px;
}
.panel-meta span:first-child { border-left: 0; padding-left: 0; }
.hub-masthead {
  padding: clamp(48px, 8vw, 110px) clamp(18px, 5vw, 72px);
  background: linear-gradient(120deg, rgba(230, 238, 231, .92), rgba(255, 250, 240, .84));
  border-bottom: 1px solid var(--line);
}
.hub-masthead.character-j { background: linear-gradient(120deg, rgba(232, 241, 244, .96), rgba(255, 250, 240, .84)); }
.hub-masthead.character-dorami { background: linear-gradient(120deg, rgba(245, 225, 199, .96), rgba(255, 250, 240, .86)); }
.hub-layout {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, 420px);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}
.hub-copy {
  min-width: 0;
}
.hub-copy h1 {
  margin: 0;
  max-width: 9ch;
  font-size: clamp(48px, 7vw, 92px);
  line-height: .94;
}
.hub-titleline {
  margin: 18px 0 0;
  max-width: 560px;
  font-family: var(--serif);
  color: var(--pine);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.18;
}
.hub-copy .cover-metrics .metric {
  border-color: var(--line);
  background: rgba(255,255,255,.58);
}
.hub-copy .metric small { color: var(--muted); }
.hub-cover-frame {
  justify-self: end;
  width: fit-content;
  max-width: min(100%, 420px);
  margin: 0;
}
.hub-cover {
  width: auto;
  max-width: 100%;
  max-height: min(68svh, 680px);
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.42);
  box-shadow: 0 26px 70px rgba(23, 33, 29, .18);
}
.hub-cover-frame figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.timeline-list {
  display: grid;
  gap: 14px;
}
.timeline-card a {
  display: grid;
  grid-template-columns: 140px 180px minmax(0, 1fr);
  align-items: stretch;
  min-height: 180px;
}
.timeline-date {
  padding: 18px;
  border-right: 1px solid var(--line);
}
.timeline-date span {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
}
.timeline-date small { color: var(--muted); font-weight: 800; }
.timeline-card img { height: 100%; object-fit: cover; }
.timeline-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
}
.timeline-copy h3 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 38px); line-height: 1.15; }
.timeline-copy p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.7; }
.hub-header, .article-header {
  padding: clamp(52px, 8vw, 104px) clamp(18px, 5vw, 72px) clamp(32px, 5vw, 68px);
}
.article { max-width: 1180px; margin: 0 auto; }
.article-header h1 { margin: 0; }
.route {
  margin: 0 clamp(18px, 5vw, 72px) 38px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.route h2 { margin: 0 0 14px; font-size: 24px; }
.route ol { margin: 0; padding-left: 22px; color: var(--muted); line-height: 1.9; }
.image-story {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 clamp(18px, 5vw, 72px) clamp(56px, 8vw, 110px);
}
figure { margin: 0; }
figure img { aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; }
figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
@media (max-width: 980px) {
  .latest-layout,
  .feature-post a,
  .hero-layout,
  .hub-layout,
  .timeline-card a {
    grid-template-columns: 1fr;
  }
  .hero-frame {
    justify-self: center;
    max-width: min(58vw, 380px);
    order: -1;
  }
  .hero-frame img { max-height: 48svh; }
  .feature-post a { min-height: auto; }
  .feature-post img { aspect-ratio: 4 / 5; }
  .timeline-card img { aspect-ratio: 16 / 10; }
  .timeline-date { border-right: 0; border-bottom: 1px solid var(--line); }
  .hub-masthead { padding-block: 38px 54px; }
  .hub-cover-frame {
    justify-self: start;
    max-width: min(64vw, 360px);
    order: -1;
  }
  .hub-cover { max-height: 46svh; }
  .hub-copy h1 { max-width: 100%; font-size: clamp(46px, 12vw, 74px); }
  .hub-titleline { font-size: clamp(22px, 5vw, 32px); }
  .character-panel { grid-template-columns: 132px minmax(0, 1fr); }
  .character-panel > .text-link { grid-column: 2; }
}
@media (max-width: 720px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 8px; }
  nav { flex-wrap: wrap; row-gap: 6px; }
  .magazine-cover { min-height: auto; padding-block: 28px 38px; }
  .secondary-grid, .image-story { grid-template-columns: 1fr; }
  .section-head { display: block; }
  h1 { font-size: clamp(34px, 10.5vw, 46px); line-height: 1.08; }
  .hero-layout,
  .hub-layout {
    width: 100%;
    max-width: calc(100vw - 36px);
  }
  .cover-copy,
  .hub-copy {
    width: 100%;
    max-width: min(100%, 330px);
  }
  .cover-copy > p:last-of-type {
    max-width: 100%;
    font-size: 16px;
    overflow-wrap: anywhere;
    word-break: normal;
    line-break: anywhere;
  }
  .hero-frame { max-width: min(74vw, 320px); }
  .hero-frame img { max-height: 44svh; }
  .hub-cover-frame { max-width: min(76vw, 320px); }
  .hub-cover { max-height: 40svh; }
  .hub-copy h1 { font-size: clamp(42px, 14vw, 58px); }
  .hub-titleline { margin-top: 12px; }
  .hub-copy > p:not(.eyebrow):not(.hub-titleline) {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    line-break: anywhere;
  }
  .hub-copy .cover-metrics {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: min(220px, 100%);
    gap: 8px;
  }
  .metric { min-width: 96px; }
  .hub-copy .cover-metrics .metric { min-width: 0; }
  .character-panel { grid-template-columns: 1fr; }
  .character-panel > .text-link { grid-column: auto; }
  .character-panel img { aspect-ratio: 16 / 10; }
}
