/* =========================================================
   岳耀聪 · 个人主页
   Design system: warm paper × ink × ochre
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --bg:        #f6f3ee;
  --bg-soft:   #efeae1;
  --surface:   #fffefb;
  --ink:       #16130f;
  --ink-2:     #3d3831;
  --muted:     #7a7167;
  --line:      #e0d9cd;
  --line-soft: #eae4d9;
  --accent:    #b2471c;
  --accent-2:  #8f5a33;
  --accent-w:  #f3e7dc;

  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, "SimSun", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
           "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --mono:  "SF Mono", "JetBrains Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 72px);
  --radius: 3px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-sm: 0 1px 2px rgba(22,19,15,.05), 0 4px 14px -8px rgba(22,19,15,.14);
  --shadow-md: 0 2px 6px rgba(22,19,15,.06), 0 20px 50px -24px rgba(22,19,15,.28);
}

[data-theme="dark"] {
  --bg:        #100e0c;
  --bg-soft:   #17140f;
  --surface:   #1a1612;
  --ink:       #efe9df;
  --ink-2:     #cdc5b8;
  --muted:     #948a7d;
  --line:      #2b2620;
  --line-soft: #221d18;
  --accent:    #e2763f;
  --accent-2:  #c99a6c;
  --accent-w:  #2a1d15;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5), 0 6px 18px -10px rgba(0,0,0,.7);
  --shadow-md: 0 2px 8px rgba(0,0,0,.5), 0 24px 60px -28px rgba(0,0,0,.85);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

/* paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: .032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="dark"] body::before { opacity: .05; }

/* ---------- 3. Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
  position: relative;
  z-index: 2;
}
section { position: relative; }
.section-pad { padding-block: clamp(72px, 11vw, 150px); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--accent);
  flex: none;
}
.eyebrow .num { color: var(--accent); font-weight: 600; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -.005em;
  margin: 0;
  text-wrap: balance;
}

.h-section {
  font-size: clamp(30px, 4.4vw, 52px);
  letter-spacing: -.02em;
}
.lede {
  font-size: clamp(16px, 1.35vw, 18.5px);
  line-height: 1.9;
  color: var(--ink-2);
  max-width: 60ch;
}

/* ---------- 4. Progress + Nav ---------- */
.progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0;
  background: var(--accent);
  z-index: 120;
  transition: width .1s linear;
}

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gut);
  transition: background-color .35s var(--ease), border-color .35s var(--ease),
              padding .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--line);
  padding-block: 12px;
}
.brand {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: .06em;
  display: flex; align-items: baseline; gap: 9px;
}
.brand small {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  color: var(--muted);
  text-transform: uppercase;
}
.nav-links {
  display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px);
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-size: 13.5px;
  letter-spacing: .04em;
  color: var(--ink-2);
  position: relative;
  padding-block: 4px;
  transition: color .25s;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav-links a[aria-current="true"] { color: var(--ink); }

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

.theme-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: border-color .25s, color .25s, transform .25s, background-color .25s;
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent); transform: rotate(-18deg); }
.theme-btn svg { width: 15px; height: 15px; }
.theme-btn .i-moon { display: none; }
[data-theme="dark"] .theme-btn .i-moon { display: block; }
[data-theme="dark"] .theme-btn .i-sun { display: none; }

.burger {
  display: none;
  width: 34px; height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.burger span {
  display: block; width: 14px; height: 1px;
  background: var(--ink); position: relative;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 14px; height: 1px; background: var(--ink);
  transition: transform .3s var(--ease);
}
.burger span::before { top: -4px; }
.burger span::after  { top: 4px; }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gut);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease);
}
.drawer.open { clip-path: inset(0 0 0 0); }
.drawer ol { list-style: none; margin: 0; padding: 0; }
.drawer li { border-bottom: 1px solid var(--line); }
.drawer a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 20px 0;
  font-family: var(--serif); font-size: 26px;
}
.drawer a i {
  font-family: var(--mono); font-style: normal; font-size: 11px; color: var(--accent);
}

/* ---------- 5. Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 96px; padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  opacity: .55;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}
.hero-inner { position: relative; z-index: 2; width: 100%; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: clamp(22px, 3vw, 38px);
}
.hero-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(64px, 13.5vw, 168px);
  line-height: .92;
  letter-spacing: .02em;
  margin: 0 0 clamp(18px, 2.4vw, 30px);
  font-weight: 500;
}
.hero-name .ch {
  display: inline-block;
  animation: rise 1.1s var(--ease) both;
}
.hero-name .ch:nth-child(1) { animation-delay: .05s; }
.hero-name .ch:nth-child(2) { animation-delay: .13s; }
.hero-name .ch:nth-child(3) { animation-delay: .21s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(.28em) rotate(2deg); }
  to   { opacity: 1; transform: none; }
}

.hero-role {
  font-family: var(--serif);
  font-size: clamp(18px, 2.5vw, 30px);
  color: var(--ink-2);
  letter-spacing: .06em;
  margin: 0 0 26px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px;
}
.hero-role em { font-style: normal; color: var(--accent); }
.hero-role .sep { color: var(--line); font-size: .8em; }

.hero-desc {
  max-width: 47ch;
  color: var(--muted);
  font-size: clamp(14.5px, 1.15vw, 16.5px);
  line-height: 1.95;
  margin: 0 0 clamp(34px, 4vw, 48px);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px;
  font-size: 14px; letter-spacing: .06em;
  border-radius: 999px;
  transition: transform .3s var(--ease), background-color .3s, color .3s,
              border-color .3s, box-shadow .3s;
  will-change: transform;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translate(3px, -3px); }

.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 30px;
  z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.scroll-hint { display: flex; align-items: center; gap: 10px; }
.scroll-hint .bar {
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  position: relative; overflow: hidden;
}
.scroll-hint .bar::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  animation: drip 2.2s var(--ease) infinite;
}
@keyframes drip {
  0%   { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ---------- 6. Marquee / stats strip ---------- */
.strip {
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
}
.strip-inner {
  display: flex; align-items: center; gap: 40px;
  padding-block: 16px;
  animation: slide 42s linear infinite;
  width: max-content;
}
.strip:hover .strip-inner { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.strip-item {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.strip-item b { color: var(--ink); font-weight: 600; }
.strip-item .star { color: var(--accent); }

/* ---------- 7. About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: start;
}
.about-body p {
  margin: 0 0 1.4em;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.95;
}
.about-body p:last-child { margin-bottom: 0; }
.about-body strong { color: var(--ink); font-weight: 600; }
.about-body .mono-tag {
  font-family: var(--mono); font-size: .88em; color: var(--accent);
  letter-spacing: .02em;
}

.stat-list { display: grid; gap: 0; margin: 0; }
.stat {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}
.stat:first-child { border-top: 1px solid var(--line); }
.stat dt {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.stat dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
}
.stat dd small { font-size: 12px; font-family: var(--sans); color: var(--muted); margin-left: 3px; }

/* ---------- 8. Skills ---------- */
.skills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.skill {
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .08em;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  transition: border-color .25s, color .25s, background-color .25s;
}
.skill:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-w); }

/* ---------- 9. Experience timeline ---------- */
.timeline { margin: 0; padding: 0; list-style: none; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px;
  width: 1px; background: var(--line);
}
.tl-item { position: relative; padding-left: 40px; padding-bottom: clamp(34px, 4vw, 52px); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.tl-item:hover::before, .tl-item.now::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-w);
}
.tl-meta {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px;
  margin-bottom: 6px;
}
.tl-time {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted);
}
.tl-co { font-family: var(--serif); font-size: 20px; letter-spacing: .01em; }
.tl-role {
  font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); font-family: var(--mono);
}
.tl-desc { margin: 10px 0 0; color: var(--ink-2); font-size: 14.6px; line-height: 1.9; max-width: 66ch; }
.tl-desc li { margin-bottom: .5em; }
.tl-desc ul { margin: 0; padding-left: 1.15em; }
.tl-desc li::marker { color: var(--accent); }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tl-tags span {
  font-size: 10.5px; font-family: var(--mono); letter-spacing: .06em;
  color: var(--muted); border-bottom: 1px solid var(--line-soft); padding-bottom: 1px;
}

/* ---------- 10. Projects ---------- */
.proj-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: clamp(34px, 4.5vw, 56px);
}
.proj-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}
.card {
  position: relative;
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card.wide { grid-column: span 3; }

.card-art {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}
.card.wide .card-art { aspect-ratio: 16 / 10; }
.card-art svg { width: 100%; height: 100%; transition: transform 1s var(--ease); }
.card:hover .card-art svg { transform: scale(1.045); }
.card-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.16), transparent 55%);
  opacity: 0; transition: opacity .5s;
}
.card:hover .card-art::after { opacity: 1; }

.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-kind {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent);
}
.card-title { font-family: var(--serif); font-size: 20px; line-height: 1.35; letter-spacing: .005em; }
.card-desc { font-size: 13.4px; line-height: 1.85; color: var(--muted); margin: 0; }
.card-foot {
  margin-top: auto; padding-top: 14px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.card-foot span {
  font-size: 10.5px; font-family: var(--mono); letter-spacing: .06em;
  color: var(--muted); padding: 3px 9px;
  border: 1px solid var(--line-soft); border-radius: 999px;
}

/* ---------- 11. Writing ---------- */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-item {
  position: relative;
  border-top: 1px solid var(--line);
  padding-block: clamp(22px, 2.6vw, 32px);
}
.post-item:last-child { border-bottom: 1px solid var(--line); }
.post-link {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 30px;
  gap: clamp(16px, 3vw, 40px);
  align-items: baseline;
  transition: opacity .3s;
}
.post-item:hover .post-link { opacity: .98; }
.post-date { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.post-title {
  font-family: var(--serif); font-size: clamp(19px, 2.3vw, 27px); line-height: 1.35;
  letter-spacing: .005em;
  transition: color .3s;
}
.post-item:hover .post-title { color: var(--accent); }
.post-sub { display: block; margin-top: 8px; font-size: 13.6px; color: var(--muted); line-height: 1.8; max-width: 62ch; }
.post-arrow {
  justify-self: end;
  color: var(--muted);
  transition: transform .4s var(--ease), color .3s;
}
.post-item:hover .post-arrow { transform: translate(4px, -4px); color: var(--accent); }
.post-arrow svg { width: 16px; height: 16px; }

/* ---------- 12. Contact ---------- */
.contact-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(32px, 6vw, 76px);
  position: relative;
  overflow: hidden;
}
.contact-wrap::before {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-w), transparent 68%);
  pointer-events: none;
}
.contact-title { font-size: clamp(28px, 4.6vw, 56px); margin-bottom: 18px; }
.contact-lede { color: var(--muted); max-width: 48ch; margin: 0 0 clamp(30px, 4vw, 44px); }
.contact-rows { display: grid; gap: 0; position: relative; }
.crow {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-block: 17px;
  border-top: 1px solid var(--line);
  transition: padding-left .35s var(--ease), color .3s;
}
.crow:last-child { border-bottom: 1px solid var(--line); }
.crow:hover { padding-left: 10px; }
.crow dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.crow dd { margin: 0; font-family: var(--serif); font-size: clamp(16px, 2vw, 21px); }
.crow dd a { transition: color .25s; }
.crow:hover dd a { color: var(--accent); }
.crow .copy-hint {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); opacity: 0;
  transition: opacity .3s;
}
.crow:hover .copy-hint { opacity: 1; }

/* ---------- 13. Footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 38px 48px;
  margin-top: clamp(60px, 8vw, 110px);
}
.foot-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.foot-inner a:hover { color: var(--accent); }
.foot-mid { display: flex; gap: 22px; }

/* ---------- 14. Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }

/* ---------- 15. Article page ---------- */
.article-head { padding-top: clamp(110px, 14vw, 180px); }
.article-head .back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 34px;
  transition: color .25s, gap .3s;
}
.article-head .back:hover { color: var(--accent); gap: 12px; }
.article-title {
  font-size: clamp(32px, 5.2vw, 62px);
  line-height: 1.16;
  letter-spacing: -.015em;
  margin-bottom: 22px;
  max-width: 20ch;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  color: var(--muted); text-transform: uppercase;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.prose {
  max-width: 68ch;
  margin-top: clamp(38px, 5vw, 58px);
  font-size: clamp(15.5px, 1.2vw, 17px);
  line-height: 2.05;
  color: var(--ink-2);
}
.prose > p { margin: 0 0 1.5em; }
.prose > p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 3.1em;
  float: left;
  line-height: .82;
  padding: .1em .12em 0 0;
  color: var(--accent);
}
.prose h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 2.4em 0 .8em;
  color: var(--ink);
  letter-spacing: -.01em;
}
.prose h3 { font-size: clamp(17px, 1.9vw, 20px); margin: 2em 0 .6em; color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1.5em; padding-left: 1.3em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.7;
  color: var(--ink);
}
.prose blockquote p { margin: 0; }
.prose code {
  font-family: var(--mono); font-size: .88em;
  background: var(--bg-soft); padding: .16em .45em; border-radius: 2px;
  border: 1px solid var(--line-soft);
}
.prose a { color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.prose a:hover { border-bottom-color: var(--accent); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.6em 0; }
.prose figure { margin: 2.2em 0; }
.prose figcaption {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  color: var(--muted); margin-top: 12px; text-align: center;
}
.article-foot {
  margin-top: clamp(50px, 7vw, 80px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
}
.article-foot .btn { font-size: 13px; }

/* ---------- 16. Responsive ---------- */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .card, .card.wide { grid-column: span 3; }
  .card.wide .card-art { aspect-ratio: 4 / 3; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .burger { display: grid; }
  .post-link { grid-template-columns: 1fr 24px; gap: 10px; }
  .post-date { grid-column: 1 / -1; order: -1; }
  .post-arrow { grid-column: 2; grid-row: 2; }
  .hero-foot { font-size: 9.5px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .card, .card.wide { grid-column: span 6; }
  .hero { min-height: auto; padding-top: 130px; padding-bottom: 80px; }
  .hero-foot { position: static; margin-top: 54px; }
  .crow { flex-wrap: wrap; gap: 4px; }
  .crow .copy-hint { display: none; }
  .article-head .back { margin-bottom: 24px; }
  .contact-wrap { padding: 26px 20px; }
}

/* print */
@media print {
  .nav, .progress, .drawer, .hero-foot, .strip, .theme-btn, .burger { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
