:root {
  --ink: #17211c;
  --muted: rgba(23, 33, 28, 0.66);
  --paper: #fbfff8;
  --paper-soft: #ffffff;
  --paper-deep: #edf7e9;
  --forest: #2f6f5d;
  --teal: #5f9aa5;
  --rust: #bf7358;
  --gold: #d8be72;
  --mint: #dfeee3;
  --line: rgba(23, 33, 28, 0.12);
  --shadow: 0 24px 72px rgba(43, 82, 64, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(223, 238, 227, 0.5), rgba(251, 255, 248, 0) 26rem),
    linear-gradient(90deg, rgba(47, 111, 93, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 72px 72px, auto;
  font-family: Gabarito, "Noto Sans TC", sans-serif;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--forest), var(--teal), var(--gold));
  transform-origin: left center;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 54px);
  color: var(--ink);
  animation: softDrop 520ms ease both;
}

.site-header.is-scrolled {
  background: rgba(252, 247, 238, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.cover-actions,
.signup-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-family: "Noto Serif TC", serif;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.03em;
  transition: transform 180ms ease, color 180ms ease;
}

.brand:hover {
  color: var(--forest);
  transform: translateY(-1px);
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 28px;
  background:
    linear-gradient(90deg, transparent 48%, rgba(47, 111, 93, 0.42) 48%, rgba(47, 111, 93, 0.42) 52%, transparent 52%),
    linear-gradient(135deg, rgba(251, 255, 248, 0.94) 0 48%, rgba(223, 238, 227, 0.88) 49% 100%);
  border: 1px solid rgba(47, 111, 93, 0.28);
  border-radius: 12px 12px 5px 5px;
  box-shadow: 0 10px 24px rgba(47, 111, 93, 0.08);
  transform: perspective(80px) rotateX(4deg);
}

.brand-mark::after {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 1px;
  height: 22px;
  content: "";
  background: var(--rust);
  opacity: 0.5;
  transform: translateX(-50%);
}

.nav {
  gap: clamp(14px, 3vw, 34px);
  font-size: 14px;
  font-weight: 700;
}

.cover {
  position: relative;
  min-height: 94vh;
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(280px, 0.26fr);
  align-items: end;
  gap: 28px;
  padding: 116px clamp(18px, 5vw, 72px) 64px;
  overflow: hidden;
}

.cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(251, 255, 248, 0.94) 0%, rgba(251, 255, 248, 0.7) 42%, rgba(251, 255, 248, 0.2) 100%),
    linear-gradient(0deg, rgba(251, 255, 248, 0.74), rgba(251, 255, 248, 0.04) 54%);
}

.cover-image {
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1519682577862-22b62b24e493?auto=format&fit=crop&w=2200&q=82");
  background-position: center;
  background-size: cover;
  filter: saturate(0.72) contrast(0.98) brightness(1.14);
  transform: scale(1.02);
  animation: quietZoom 18s ease-in-out infinite alternate;
}

.cover-meta,
.cover-copy,
.cover-note {
  position: relative;
  z-index: 1;
}

.cover-meta {
  position: absolute;
  left: clamp(18px, 5vw, 72px);
  top: 48%;
  display: flex;
  gap: 14px;
  color: var(--rust);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-90deg);
  transform-origin: left center;
}

.cover-copy {
  max-width: 790px;
  padding-left: clamp(0px, 3vw, 42px);
  animation: fadeLift 700ms ease 120ms both;
}

.eyebrow,
.rail span,
.cover-note span,
.index-list span,
.room-grid span {
  color: var(--rust);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Noto Serif TC", serif;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(44px, 6.2vw, 88px);
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(34px, 5vw, 72px);
}

.cover-copy p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(18px, 1.8vw, 22px);
}

.cover-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
button {
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 28px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(43, 82, 64, 0.13);
}

.primary,
button {
  color: var(--ink);
  background: var(--gold);
}

.secondary {
  border-color: rgba(32, 28, 22, 0.18);
  background: rgba(255, 255, 255, 0.68);
}

.cover-note {
  align-self: center;
  max-width: 280px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(32, 28, 22, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  animation: fadeLift 700ms ease 320ms both;
}

.cover-note p {
  margin: 10px 0 0;
  font-family: "Noto Serif TC", serif;
  font-size: 19px;
  line-height: 1.45;
}

.float-note {
  animation: floatNote 5.5s ease-in-out infinite;
}

.editorial-grid,
.current-issue,
.issue-index,
.themes {
  display: grid;
  grid-template-columns: minmax(120px, 0.24fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(64px, 9vw, 124px) clamp(18px, 5vw, 72px);
}

.editorial-grid,
.current-issue,
.issue-index,
.themes,
.subscribe,
.article-page {
  animation: sectionIn 680ms ease both;
  animation-timeline: view();
  animation-range: entry 0% cover 22%;
}

.rail {
  padding-top: 10px;
}

.rail strong {
  display: block;
  margin-top: 22px;
  color: rgba(32, 28, 22, 0.14);
  font-family: "Noto Serif TC", serif;
  font-size: clamp(78px, 10vw, 170px);
  line-height: 0.8;
}

.letter {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(320px, 0.58fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: end;
}

.letter p {
  color: var(--muted);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.9;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
}

.error-page .letter {
  display: block;
  width: min(100%, 760px);
}

.error-page h1 {
  margin-top: 18px;
}

.error-page .button {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
}

.current-issue {
  background: linear-gradient(180deg, rgba(237, 247, 233, 0.72), rgba(251, 255, 248, 0.94));
}

.essay-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.62fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: end;
  padding: clamp(30px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(32, 28, 22, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.essay-hero h2 {
  max-width: 760px;
}

.essay-summary p {
  color: var(--muted);
  font-size: 20px;
}

.text-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--rust);
  font-weight: 800;
  border-bottom: 2px solid currentColor;
  transition: color 180ms ease, letter-spacing 180ms ease;
}

.text-link:hover {
  color: var(--forest);
  letter-spacing: 0.02em;
}

.issue-index {
  padding-top: clamp(36px, 5vw, 76px);
}

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

.index-list a {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) minmax(220px, 0.42fr);
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 180ms ease, color 180ms ease, background 180ms ease;
}

.index-list a:hover {
  padding-left: 14px;
  color: var(--forest);
  background: rgba(223, 238, 227, 0.28);
}

.index-list strong {
  font-family: "Noto Serif TC", serif;
  font-size: clamp(22px, 2.8vw, 38px);
  line-height: 1.2;
}

.index-list em {
  color: var(--muted);
  font-style: normal;
}

.themes {
  padding-top: clamp(36px, 5vw, 76px);
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.room-grid article {
  min-height: 190px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(32, 28, 22, 0.1);
  border-radius: 8px;
  box-shadow: 0 16px 54px rgba(66, 48, 30, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.room-grid article:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 68px rgba(43, 82, 64, 0.12);
}

.room-grid p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.subscribe {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: end;
  padding: clamp(64px, 9vw, 124px) clamp(18px, 5vw, 72px);
  background: var(--paper-deep);
}

.subscribe p:not(.eyebrow) {
  max-width: 660px;
  color: var(--muted);
  font-size: 21px;
}

.signup {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.signup label {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

.signup-row {
  gap: 12px;
  flex-wrap: wrap;
}

input {
  flex: 1 1 230px;
  min-height: 48px;
  min-width: 0;
  padding: 12px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 28px;
  font: inherit;
}

.form-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--teal);
  font-weight: 700;
}

.kit-signup-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: #fffaf2;
  background: var(--ink);
  font-weight: 800;
}

.article-header {
  position: sticky;
  background: rgba(252, 247, 238, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.article-page {
  display: grid;
  grid-template-columns: minmax(120px, 0.24fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  padding: 118px clamp(18px, 5vw, 72px) clamp(64px, 9vw, 124px);
}

.article-rail {
  position: sticky;
  top: 96px;
  align-self: start;
  color: var(--rust);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-rail strong {
  display: block;
  margin-top: 12px;
  color: rgba(32, 28, 22, 0.42);
}

.article-hero,
.article-content,
.article-cta {
  grid-column: 2;
  max-width: 860px;
}

.article-hero {
  margin-bottom: clamp(42px, 7vw, 88px);
}

.article-dek {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.8;
}

.article-content {
  color: rgba(32, 28, 22, 0.82);
  font-family: "Noto Serif TC", serif;
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 2.05;
}

.article-content h2 {
  margin-top: clamp(44px, 6vw, 76px);
  margin-bottom: 18px;
  font-size: clamp(28px, 3.5vw, 46px);
}

.article-content p {
  margin-bottom: 1.15em;
}

.article-content blockquote {
  margin: clamp(32px, 5vw, 56px) 0;
  padding: 26px clamp(24px, 5vw, 48px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  border-left: 4px solid var(--gold);
  box-shadow: 0 18px 60px rgba(66, 48, 30, 0.08);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.45;
}

@keyframes quietZoom {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.075) translate3d(1.2%, -0.8%, 0);
  }
}

@keyframes fadeLift {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softDrop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatNote {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes sectionIn {
  from {
    opacity: 0.35;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

.article-cta {
  margin-top: clamp(60px, 9vw, 120px);
  padding: clamp(30px, 5vw, 58px);
  background: var(--paper-deep);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-cta h2 {
  font-size: clamp(34px, 4vw, 58px);
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
  }

  .cover-note,
  .cover-meta {
    display: none;
  }

  .nav {
    margin-left: auto;
    gap: 0;
  }

  .nav a {
    display: none;
  }

  .nav a:last-child {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .cover,
  .editorial-grid,
  .current-issue,
  .issue-index,
  .themes,
  .letter,
  .essay-hero,
  .subscribe,
  .article-page {
    grid-template-columns: 1fr;
  }

  .article-rail,
  .article-hero,
  .article-content,
  .article-cta {
    grid-column: 1;
  }

  .article-rail {
    position: static;
  }

  .cover {
    min-height: 720px;
    padding-top: 96px;
  }

  .rail strong {
    font-size: 84px;
  }

  .room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 34px;
  }

  .cover {
    min-height: 670px;
  }

  .editorial-grid,
  .current-issue,
  .issue-index,
  .themes,
  .subscribe,
  .article-page {
    padding-left: 20px;
    padding-right: 20px;
  }

  .essay-hero {
    padding: 24px;
  }

  .index-list a {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .room-grid article {
    min-height: 150px;
  }

  .footer {
    display: block;
  }

  .footer span {
    display: block;
    margin-bottom: 8px;
  }
}
