/* =========================================================
   缓流 · Slow Current — a personal essay journal
   Handcrafted static stylesheet
   ========================================================= */

/* ---------- Fonts & tokens ---------- */
:root {
  --paper: #f4efe4;
  --paper-2: #ece4d4;
  --paper-3: #e3d9c5;
  --ink: #1d1b17;
  --ink-2: #322e27;
  --muted: #736a5d;
  --muted-2: #948a7b;
  --line: rgba(29, 27, 23, 0.14);
  --line-strong: rgba(29, 27, 23, 0.28);
  --accent: #ac4528;
  --accent-deep: #89341d;
  --accent-soft: #dfbfa9;
  --card: rgba(255, 252, 245, 0.55);
  --header-bg: rgba(244, 239, 228, 0.82);
  --shadow: 0 24px 70px -34px rgba(46, 35, 22, 0.45);
  --radius: 3px;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1240px;
  --gutter: clamp(20px, 4.5vw, 64px);
}

html[data-theme="dark"] {
  --paper: #161512;
  --paper-2: #1e1c18;
  --paper-3: #28251f;
  --ink: #eee7d9;
  --ink-2: #d8d0c1;
  --muted: #a99e8d;
  --muted-2: #8b8172;
  --line: rgba(238, 231, 217, 0.14);
  --line-strong: rgba(238, 231, 217, 0.28);
  --accent: #e17b52;
  --accent-deep: #f09572;
  --accent-soft: #5a382a;
  --card: rgba(255, 248, 235, 0.035);
  --header-bg: rgba(22, 21, 18, 0.84);
  --shadow: 0 24px 70px -34px rgba(0, 0, 0, 0.8);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

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

::selection {
  background: var(--accent);
  color: #fff8ee;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: clamp(30px, 5vw, 54px);
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.section-head .aside {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
  padding-bottom: 6px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.3s, border-color 0.3s, gap 0.3s;
}

.link-arrow svg {
  width: 15px;
  height: 15px;
  transition: transform 0.35s var(--ease);
}

.link-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
  gap: 16px;
}

.link-arrow:hover svg {
  transform: translateX(2px);
}

section[id] {
  scroll-margin-top: 96px;
}

/* ---------- Reveal ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}

.site-header.is-scrolled,
.nav-open .site-header {
  background: var(--header-bg);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
}

.header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}

.brand-mark {
  width: 35px;
  height: 35px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent);
  transition: transform 0.6s var(--ease), border-color 0.3s;
}

.brand:hover .brand-mark {
  transform: rotate(14deg);
  border-color: var(--accent);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-text b {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.brand-text span {
  font-size: 8px;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav a {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--muted);
  transition: color 0.3s;
  padding: 6px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
}

.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

html[data-theme="light"] .icon-moon,
html[data-theme="dark"] .icon-sun {
  display: none;
}

.menu-btn {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: 132px;
  padding-bottom: clamp(60px, 9vw, 120px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 54vw;
  height: 54vw;
  max-width: 760px;
  max-height: 760px;
  right: -16vw;
  top: -16vw;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(172, 69, 40, 0.12), rgba(172, 69, 40, 0) 66%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  min-height: clamp(560px, calc(100vh - 240px), 820px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.4rem, 7.3vw, 7rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  margin: 26px 0 32px;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line > span {
  display: inline-block;
  animation: rise 1.1s var(--ease) both;
}

.hero-title .line:nth-child(2) > span {
  animation-delay: 0.12s;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92em;
  letter-spacing: 0;
}

@keyframes rise {
  from {
    transform: translateY(110%);
  }
  to {
    transform: translateY(0);
  }
}

.hero-intro {
  max-width: 33rem;
  color: var(--muted);
  font-size: 15px;
  line-height: 2.05;
  letter-spacing: 0.03em;
  border-left: 1px solid var(--line-strong);
  padding-left: 20px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 50px;
  padding: 0 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background-color 0.35s, color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s;
}

.btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.35s var(--ease);
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff6ec;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -18px rgba(137, 52, 29, 0.8);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-ghost {
  height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 54px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: 34rem;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.hero-meta b {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

/* hero art */
.hero-art {
  position: relative;
  aspect-ratio: 0.86;
  max-height: 620px;
  border: 1px solid var(--line-strong);
  padding: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  animation: artIn 1.4s var(--ease) 0.2s both;
}

@keyframes artIn {
  from {
    opacity: 0;
    transform: translateY(30px) rotate(1.5deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-art-inner {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(160deg, #d8c9ad 0%, #c4ad8b 45%, #a98d6a 100%);
}

html[data-theme="dark"] .hero-art-inner {
  background: linear-gradient(160deg, #4a4034 0%, #352d24 50%, #241f19 100%);
}

.hero-art-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 22%, rgba(255, 240, 208, 0.55), transparent 42%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-art svg.landscape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.art-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  color: #f6ecdc;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.art-caption b {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1;
}

.art-stamp {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 246, 230, 0.55);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff3e0;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
  opacity: 0.85;
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
  overflow: hidden;
  background: var(--paper-2);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 0 22px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--muted);
  white-space: nowrap;
}

.marquee span::after {
  content: "✦";
  font-size: 8px;
  color: var(--accent);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Featured ---------- */
.featured {
  padding: clamp(70px, 10vw, 130px) 0;
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  border: 1px solid var(--line-strong);
  background: var(--card);
  overflow: hidden;
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}

.featured-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.featured-media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.featured-card:hover .featured-media img {
  transform: scale(1.035);
}

.featured-media .badge {
  position: absolute;
  top: 22px;
  left: 22px;
  background: rgba(244, 239, 228, 0.92);
  color: #26221c;
  font-size: 9px;
  letter-spacing: 0.22em;
  padding: 8px 12px;
  text-transform: uppercase;
}

.featured-body {
  padding: clamp(30px, 4.5vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-body .index {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 22px;
}

.featured-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.3vw, 2.8rem);
  line-height: 1.28;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.featured-body h3 a {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.5s var(--ease);
}

.featured-body h3 a:hover {
  background-size: 100% 1px;
}

.featured-body p {
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
  max-width: 31rem;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.featured-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Essay list ---------- */
.essays {
  padding-bottom: clamp(70px, 10vw, 130px);
}

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

.essay-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 180px 130px 40px;
  align-items: center;
  gap: 26px;
  padding: 28px 6px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background-color 0.4s, padding 0.4s var(--ease);
}

.essay-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.4s var(--ease);
}

.essay-row:hover {
  background: var(--card);
  padding-inline: 20px 6px;
}

.essay-row:hover::before {
  transform: scaleY(1);
}

.essay-num {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: var(--muted-2);
}

.essay-title {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  transition: color 0.3s;
}

.essay-row:hover .essay-title {
  color: var(--accent);
}

.essay-sub {
  display: block;
  margin-top: 5px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

.essay-cat {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

.essay-date {
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.essay-arrow {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: background-color 0.35s, color 0.35s, border-color 0.35s, transform 0.45s var(--ease);
}

.essay-arrow svg {
  width: 13px;
  height: 13px;
}

.essay-row:hover .essay-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff6ec;
  transform: rotate(-45deg);
}

.list-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 32px;
}

/* ---------- Notes ---------- */
.notes {
  padding: clamp(64px, 9vw, 110px) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.notes::before {
  content: "手记";
  position: absolute;
  right: -1vw;
  top: -4vw;
  font-family: var(--serif);
  font-size: 22vw;
  line-height: 1;
  color: var(--ink);
  opacity: 0.035;
  pointer-events: none;
  letter-spacing: 0.1em;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}

.note {
  padding: clamp(24px, 3.5vw, 42px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background-color 0.4s;
}

.note:hover {
  background: var(--card);
}

.note-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.note-top .mark {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0;
}

.note p {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 2;
  color: var(--ink-2);
  letter-spacing: 0.03em;
}

.note time {
  display: block;
  margin-top: 28px;
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}

/* ---------- About strip ---------- */
.about-strip {
  padding: clamp(80px, 11vw, 150px) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 7vw, 100px);
  align-items: center;
}

.about-portrait {
  position: relative;
  border: 1px solid var(--line-strong);
  padding: 14px;
  background: var(--card);
  max-width: 440px;
}

.portrait-inner {
  aspect-ratio: 0.86;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 247, 229, 0.9), transparent 34%),
    linear-gradient(145deg, #b9a381, #8d7658 58%, #5f4e3a);
}

html[data-theme="dark"] .portrait-inner {
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 231, 198, 0.18), transparent 34%),
    linear-gradient(145deg, #4a4034, #352d24 58%, #221d17);
}

.portrait-inner::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -22%;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(243, 232, 210, 0.18);
  border: 1px solid rgba(255, 246, 230, 0.28);
  transform: translateX(-50%);
}

.portrait-inner .monogram {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: clamp(90px, 14vw, 150px);
  color: rgba(255, 248, 233, 0.82);
  letter-spacing: 0.04em;
  line-height: 1;
  mix-blend-mode: soft-light;
}

.portrait-inner .vertical-note {
  position: absolute;
  right: 18px;
  top: 18px;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: rgba(255, 249, 238, 0.75);
}

.portrait-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.about-copy h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.26;
  letter-spacing: 0.02em;
  margin: 18px 0 26px;
}

.about-copy h2 em {
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--accent);
}

.about-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 2.1;
  max-width: 34rem;
}

.about-copy p + p {
  margin-top: 16px;
}

.about-copy .link-arrow {
  margin-top: 34px;
}

/* ---------- Newsletter ---------- */
.newsletter {
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid var(--line);
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.newsletter h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.newsletter p {
  color: var(--muted);
  font-size: 13px;
}

.subscribe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  min-width: min(100%, 380px);
}

.subscribe input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 14px 0;
  font-size: 14px;
  color: var(--ink);
}

.subscribe input::placeholder {
  color: var(--muted-2);
}

.subscribe button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 0 14px 18px;
  color: var(--accent);
  transition: color 0.3s;
}

.subscribe button:hover {
  color: var(--accent-deep);
}

.subscribe-note {
  width: 100%;
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted-2);
  min-height: 1em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 8vw, 90px) 0 30px;
  position: relative;
  overflow: hidden;
}

html[data-theme="dark"] .site-footer {
  background: #0e0d0b;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(244, 239, 228, 0.16);
}

.footer-brand {
  max-width: 380px;
}

.footer-brand .brand-mark {
  border-color: rgba(244, 239, 228, 0.3);
  color: #e9a184;
}

.footer-brand .brand-text b {
  color: #f4efe4;
}

.footer-brand .brand-text span {
  color: rgba(244, 239, 228, 0.5);
}

.footer-brand p {
  margin-top: 24px;
  color: rgba(244, 239, 228, 0.58);
  font-size: 13px;
  line-height: 2;
}

.footer-cols {
  display: flex;
  gap: clamp(40px, 7vw, 100px);
}

.footer-col h4 {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 239, 228, 0.4);
  margin-bottom: 18px;
  font-weight: 500;
}

.footer-col a,
.footer-col span {
  display: block;
  font-size: 13px;
  color: rgba(244, 239, 228, 0.75);
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: #e9a184;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(244, 239, 228, 0.38);
  text-transform: uppercase;
}

.footer-word {
  font-family: var(--serif);
  font-size: clamp(4rem, 14vw, 13rem);
  line-height: 0.8;
  color: rgba(244, 239, 228, 0.07);
  letter-spacing: 0.08em;
  text-align: center;
  margin-top: 40px;
  user-select: none;
  white-space: nowrap;
}

/* ---------- Page heads (essays / about) ---------- */
.page-head {
  padding-top: 150px;
  padding-bottom: clamp(40px, 6vw, 70px);
  border-bottom: 1px solid var(--line-strong);
  position: relative;
  overflow: hidden;
}

.page-head::after {
  content: attr(data-bg);
  position: absolute;
  right: var(--gutter);
  top: 100px;
  font-family: var(--serif);
  font-size: clamp(5rem, 16vw, 15rem);
  line-height: 1;
  color: var(--ink);
  opacity: 0.04;
  pointer-events: none;
  letter-spacing: 0.06em;
}

.page-head h1 {
  font-family: var(--serif);
  text-wrap: balance;
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 22px 0 24px;
}

.page-head p {
  max-width: 38rem;
  color: var(--muted);
  font-size: 14px;
  line-height: 2.05;
}

.page-head .count {
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--accent);
}

/* ---------- Filters / archive ---------- */
.archive {
  padding: clamp(50px, 7vw, 90px) 0 clamp(80px, 10vw, 130px);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 46px;
}

.filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  padding: 9px 18px;
  border-radius: 100px;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: all 0.3s;
}

.filter-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.filter-count {
  margin-left: auto;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 12px;
  color: var(--muted-2);
}

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

.archive-item {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 200px 44px;
  gap: 30px;
  align-items: center;
  padding: 30px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s, padding 0.4s var(--ease);
}

.archive-item:hover {
  background: var(--card);
  padding-inline: 16px;
}

.archive-item[hidden] {
  display: none;
}

.archive-item .date {
  font-family: Georgia, serif;
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.05em;
}

.archive-item h3 {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 500;
  transition: color 0.3s;
}

.archive-item:hover h3 {
  color: var(--accent);
}

.archive-item .excerpt {
  display: block;
  color: var(--muted-2);
  font-size: 12px;
  margin-top: 6px;
  line-height: 1.8;
}

.archive-item .cat {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

.archive-item .read {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: all 0.35s;
}

.archive-item:hover .read {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff6ec;
}

.archive-item .read svg {
  width: 13px;
  height: 13px;
}

/* ---------- Article ---------- */
.reading-progress {
  position: fixed;
  left: 0;
  top: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 200;
  transition: width 0.1s linear;
}

.article-head {
  padding-top: 148px;
  padding-bottom: clamp(34px, 5vw, 56px);
}

.article-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.article-kicker .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.article-kicker .cat {
  color: var(--accent);
}

.article-head h1 {
  font-family: var(--serif);
  text-wrap: balance;
  font-weight: 500;
  font-size: clamp(2.4rem, 5.8vw, 4.8rem);
  line-height: 1.22;
  letter-spacing: 0.02em;
  max-width: 16em;
}

.article-deck {
  margin-top: 24px;
  max-width: 40rem;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
  font-family: var(--serif);
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 760px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.article-byline .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--accent);
  text-transform: none;
  letter-spacing: 0;
}

.article-byline b {
  color: var(--ink);
  font-weight: 500;
  text-transform: none;
}

.article-cover {
  margin: 10px auto clamp(44px, 7vw, 72px);
  border: 1px solid var(--line-strong);
  padding: 12px;
  background: var(--card);
  max-width: 1120px;
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 8.4;
  object-fit: cover;
}

.article-cover figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 2px 0;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.article-body {
  max-width: calc(720px + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
  padding-bottom: clamp(60px, 8vw, 100px);
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.5vw, 1.13rem);
  line-height: 2.15;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}

.article-body > p {
  margin-bottom: 1.55em;
}

.article-body > p.lead {
  font-size: 1.08em;
  color: var(--ink);
}

.article-body .dropcap::first-letter {
  float: left;
  font-size: 3.6em;
  line-height: 0.84;
  padding: 0.08em 0.12em 0 0;
  color: var(--accent);
  font-family: var(--serif);
}

.article-body h2 {
  font-family: var(--serif);
  font-size: 1.42em;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin: 2.6em 0 1em;
  padding-top: 0.4em;
  position: relative;
}

.article-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.article-body blockquote {
  margin: 2.4em 0;
  padding: 6px 0 6px 28px;
  border-left: 1px solid var(--accent);
  font-size: 1.18em;
  line-height: 1.9;
  color: var(--ink);
  font-style: italic;
}

.article-body blockquote cite {
  display: block;
  margin-top: 14px;
  font-size: 0.62em;
  font-style: normal;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.article-body .divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 3em 0;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.4em;
}

.article-body .divider::before,
.article-body .divider::after {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--line-strong);
}

.article-body figure {
  margin: 2.4em 0;
}

.article-body figure img {
  width: 100%;
  border: 1px solid var(--line);
}

.article-body figcaption {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2.4em;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-tags span {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 100px;
  text-transform: uppercase;
}

.article-end {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 46px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.article-end::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--accent);
}

.article-nav {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1120px;
  margin: 0 auto clamp(70px, 9vw, 110px);
}

.article-nav a {
  padding: clamp(26px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background-color 0.4s;
}

.article-nav a:first-child {
  border-right: 1px solid var(--line);
}

.article-nav a:last-child {
  text-align: right;
  align-items: flex-end;
}

.article-nav a:hover {
  background: var(--card);
}

.article-nav small {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.article-nav strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  transition: color 0.3s;
}

.article-nav a:hover strong {
  color: var(--accent);
}

/* ---------- About page ---------- */
.about-page {
  padding: clamp(50px, 7vw, 90px) 0 clamp(80px, 10vw, 130px);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(40px, 8vw, 110px);
  align-items: start;
}

.about-main .lead {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  line-height: 1.85;
  color: var(--ink);
  letter-spacing: 0.03em;
  margin-bottom: 40px;
}

.about-main h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 50px 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.about-main p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 2.15;
  margin-bottom: 16px;
}

.about-main p strong {
  color: var(--ink);
  font-weight: 500;
}

.about-side {
  position: sticky;
  top: 110px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  padding: 28px;
}

.about-side .portrait-inner {
  aspect-ratio: 1;
  margin-bottom: 22px;
}

.about-side .portrait-inner .monogram {
  font-size: 100px;
}

.about-side dl {
  margin: 0;
}

.about-side dt {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-top: 16px;
}

.about-side dd {
  margin: 5px 0 0;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-2);
}

.about-side .contact-link {
  display: inline-flex;
  margin-top: 26px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

.timeline {
  margin-top: 10px;
  border-left: 1px solid var(--line-strong);
  padding-left: 22px;
}

.timeline li {
  position: relative;
  padding-bottom: 22px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--accent);
}

.timeline b {
  display: block;
  font-family: Georgia, serif;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-weight: 400;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .essay-row {
    grid-template-columns: 52px minmax(0, 1fr) 150px 110px 36px;
    gap: 18px;
  }
  .featured-card {
    grid-template-columns: 1fr 1fr;
  }
  .hero-title {
    font-size: clamp(3.2rem, 7.6vw, 5.6rem);
  }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 78px 0 auto;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--gutter) 22px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, transform 0.35s var(--ease), visibility 0.35s;
    box-shadow: 0 30px 40px -30px rgba(0, 0, 0, 0.35);
  }
  .nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .nav a::after {
    display: none;
  }
  .nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }
  .nav-open .menu-btn .menu-line:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
  }
  .nav-open .menu-btn .menu-line:nth-child(2) {
    transform: translateY(-3px) rotate(-45deg);
  }
  .menu-line {
    display: block;
    width: 15px;
    height: 1px;
    background: currentColor;
    transition: transform 0.3s;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-art {
    max-width: 480px;
    width: 100%;
    justify-self: center;
    margin-top: 10px;
  }
  .hero-meta {
    margin-top: 38px;
  }
  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .featured-body {
    padding: 32px 26px 36px;
  }
  .notes-grid {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-portrait {
    max-width: 360px;
  }
  .archive-item {
    grid-template-columns: 80px minmax(0, 1fr) 36px;
    gap: 18px;
  }
  .archive-item .cat {
    display: none;
  }
  .about-layout {
    grid-template-columns: 1fr;
  }
  .about-side {
    position: static;
    max-width: 420px;
  }
  .page-head::after {
    top: 120px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 68px;
  }
  .nav {
    top: 68px;
  }
  .brand-text span {
    display: none;
  }
  .hero {
    padding-top: 108px;
  }
  .hero-title {
    font-size: clamp(2.9rem, 13vw, 4.2rem);
    margin: 18px 0 24px;
  }
  .hero-intro {
    font-size: 14px;
    line-height: 1.95;
  }
  .hero-cta {
    gap: 18px;
    margin-top: 28px;
  }
  .btn {
    height: 46px;
    padding: 0 20px;
  }
  .hero-meta {
    gap: 22px;
    flex-wrap: wrap;
  }
  .hero-meta b {
    font-size: 19px;
  }
  .hero-art {
    padding: 10px;
  }
  .art-caption b {
    font-size: 20px;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
  }
  .section-head .aside {
    padding-bottom: 0;
  }
  .essay-row {
    grid-template-columns: 36px minmax(0, 1fr) 32px;
    gap: 14px;
    padding: 22px 2px;
  }
  .essay-cat,
  .essay-date {
    display: none;
  }
  .essay-title {
    font-size: 1.1rem;
  }
  .essay-sub {
    font-size: 11px;
    line-height: 1.7;
  }
  .essay-arrow {
    width: 30px;
    height: 30px;
  }
  .notes-grid {
    border-left: 0;
  }
  .note {
    border-left: 0;
  }
  .note p {
    font-size: 1rem;
  }
  .newsletter-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .subscribe {
    width: 100%;
  }
  .footer-top {
    flex-direction: column;
    gap: 42px;
  }
  .footer-cols {
    gap: 50px;
  }
  .footer-word {
    font-size: 22vw;
  }
  .page-head {
    padding-top: 118px;
  }
  .archive-item {
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 14px;
    padding: 24px 2px;
  }
  .archive-item .date {
    grid-column: 1 / -1;
    font-size: 10px;
    margin-bottom: -6px;
  }
  .archive-item .excerpt {
    display: none;
  }
  .filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 30px;
  }
  .filter-btn {
    width: 100%;
    padding: 9px 4px;
    font-size: 10px;
  }
  .filter-count {
    display: none;
  }
  .page-head h1 {
    font-size: clamp(2.05rem, 8.4vw, 3.2rem);
  }
  .article-head {
    padding-top: 112px;
  }
  .article-head h1 {
    font-size: clamp(1.75rem, 7.4vw, 2.8rem);
  }
  .article-deck {
    font-size: 14px;
    line-height: 1.9;
  }
  .article-cover {
    padding: 7px;
  }
  .article-cover img {
    aspect-ratio: 4 / 3;
  }
  .article-body {
    line-height: 2.05;
  }
  .article-body blockquote {
    padding-left: 18px;
    font-size: 1.06em;
  }
  .article-nav {
    grid-template-columns: 1fr;
  }
  .article-nav a:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .article-nav a:last-child {
    text-align: left;
    align-items: flex-start;
  }
  .article-nav a {
    padding: 26px 20px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 2.65rem;
  }
  .brand-text b {
    font-size: 17px;
  }
}
