:root {
  --page-bg: #FAF4DA;
  --canvas: #F4F0E0;
  --card: #FFFFFF;
  --ink: #161513;
  --ink-soft: #5C594F;
  --ink-mute: #9A968C;
  --line: rgba(22,21,19,0.10);
  --gold: #FFC30B;
  --gold-deep: #AD8300;
  --gold-light: #E8C456;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--page-bg); }
body {
  background: var(--page-bg);
  color: var(--ink);
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
  padding: 24px;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

em, .it { font-family: 'Lora', serif; font-style: italic; }
.serif { font-family: 'Lora', serif; }
.mono { font-family: 'Geist Mono', monospace; }

.shell {
  max-width: 1480px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 12px 48px rgba(122,96,23,0.08);
}

/* NAV */
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 22px 36px;
  border-bottom: 1px solid var(--line);
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 38%),
    linear-gradient(135deg, var(--gold-deep) 0%, var(--gold) 35%, var(--gold-light) 50%, var(--gold) 65%, var(--gold-deep) 100%);
  background-size: 100% 100%, 220% 220%;
  background-position: 0 0, 0% 50%;
  animation: shimmer-mark 3.6s linear infinite;
  box-shadow: 0 0 0 1px rgba(122,96,23,0.25), 0 1px 2px rgba(122,96,23,0.18);
  position: relative;
}
@keyframes shimmer-mark {
  0%   { background-position: 0 0,   0% 50%; }
  100% { background-position: 0 0, 220% 50%; }
}
.shimmer-text {
  background: linear-gradient(
    100deg,
    var(--gold-deep) 0%,
    var(--gold-deep) 30%,
    var(--gold-light) 48%,
    #FFF3C2 52%,
    var(--gold-light) 56%,
    var(--gold-deep) 75%,
    var(--gold-deep) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  animation: shimmer-text 4.5s linear infinite;
}
@keyframes shimmer-text {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.nav-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 14px;
  color: var(--ink-soft);
}
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink);
  color: var(--card);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  transition: all .25s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-cta:hover { background: var(--gold); color: var(--ink); }

/* BACK LINK */
.back-row { padding: 28px 36px 0; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: all .25s;
}
.back-link:hover { background: var(--ink); color: var(--card); border-color: var(--ink); }
.back-link .arr { color: var(--gold); transition: color .25s; }
.back-link:hover .arr { color: var(--gold-light); }

/* ARTICLE HEADER */
.article-head {
  padding: 56px 36px 48px;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.article-meta {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  margin-bottom: 36px;
}
.article-meta .cat { color: var(--gold); }
.article-meta .dot { color: var(--ink-mute); opacity: 0.5; }
.article-title {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  color: var(--ink);
}
.article-title em { font-style: italic; }
.article-dek {
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 700px;
  margin: 0 auto 36px;
}
.article-byline {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.article-byline strong { color: var(--ink); font-weight: 500; }

/* HERO IMAGE */
.article-hero {
  margin: 0 36px 64px;
  padding: 0;
}
.article-hero.tall,
.article-hero.portrait {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.article-hero.portrait { max-width: 640px; }
.article-hero-img {
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background: var(--canvas);
  position: relative;
}
.article-hero-img.tall { aspect-ratio: 4 / 5; }
.article-hero-img.portrait { aspect-ratio: 3 / 4; }
.article-hero-img.wide { aspect-ratio: 16 / 9; }
.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-hero figcaption {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  margin-top: 14px;
  padding: 0 4px;
  line-height: 1.55;
}

/* BODY */
.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 36px;
  font-size: 18px;
  line-height: 1.72;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.article-body > p { margin-bottom: 1.4em; }
.article-body > p:first-of-type::first-letter {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 5.4em;
  line-height: 0.86;
  float: left;
  padding: 4px 14px 0 0;
  color: var(--gold-deep);
  font-style: italic;
}
.article-body em { font-style: italic; }
.article-body h2 {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-style: italic;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 2.2em 0 0.8em;
  color: var(--ink);
}
.article-body blockquote {
  margin: 2.2em -8px;
  padding: 0 0 0 28px;
  border-left: 2px solid var(--gold);
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.article-body hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 2.6em auto;
  width: 80px;
}
.article-body a {
  border-bottom: 1px solid var(--gold);
  color: var(--ink);
  transition: color .2s;
}
.article-body a:hover { color: var(--gold-deep); }

/* INLINE FIGURE */
.body-figure {
  margin: 2.6em auto;
  max-width: 1080px;
  padding: 0 36px;
}
.body-figure-img {
  border-radius: 14px;
  overflow: hidden;
  background: var(--canvas);
  aspect-ratio: 3 / 2;
  max-width: 100%;
}
.body-figure-img img { width: 100%; height: 100%; object-fit: cover; }
.body-figure-img.tall {
  aspect-ratio: 4 / 5;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.body-figure-img.portrait {
  aspect-ratio: 3 / 4;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.body-figure-img.wide { aspect-ratio: 16 / 9; }
.body-figure-img.three-two { aspect-ratio: 3 / 2; }
.body-figure figcaption {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  margin-top: 14px;
  padding: 0 4px;
  line-height: 1.55;
}
.body-figure:has(.body-figure-img.portrait) figcaption {
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.body-figure:has(.body-figure-img.tall) figcaption {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.body-figure figcaption .label {
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-right: 6px;
  text-transform: uppercase;
}

/* PULL QUOTE */
.pull-quote {
  max-width: 920px;
  margin: 56px auto;
  padding: 0 36px;
  text-align: center;
}
.pull-quote-text {
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.22;
  letter-spacing: -0.018em;
  color: var(--ink);
  position: relative;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pull-quote-text::before {
  content: '"';
  display: block;
  font-family: 'Lora', serif;
  font-size: 64px;
  line-height: 0;
  margin-bottom: 24px;
  color: var(--gold);
}
.pull-quote-attr {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  margin-top: 22px;
}
.pull-quote-attr strong { color: var(--ink); font-weight: 500; }

/* GALLERY */
.gallery {
  max-width: 1240px;
  margin: 64px auto 80px;
  padding: 0 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  background: var(--canvas);
  aspect-ratio: 3 / 4;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .gallery-caption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--card);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 7px 11px;
  border-radius: 999px;
}

/* AUTHOR CARD */
.author-card {
  max-width: 720px;
  margin: 0 auto 64px;
  padding: 28px;
  background: var(--canvas);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: center;
}
.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--canvas);
  box-shadow: 0 0 0 1px rgba(122,96,23,0.25);
}
.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-info .name {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-style: italic;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.author-info .bio {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.author-info .bio a { border-bottom: 1px solid var(--line); }

/* FOOTER */
.foot {
  padding: 28px 36px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.foot a { transition: color .2s; }
.foot a:hover { color: var(--ink); }
.foot .gold { color: var(--gold); }

@media (max-width: 720px) {
  body { padding: 12px; }
  .shell { border-radius: 18px; }
  .nav { padding: 16px 18px; grid-template-columns: 1fr auto; gap: 12px; }
  .nav-links { display: none; }
  .back-row { padding: 18px 18px 0; }
  .article-head { padding: 36px 22px 32px; }
  .article-hero-img { margin: 0 18px 40px; border-radius: 14px; aspect-ratio: 4 / 3; }
  .article-body { padding: 0 22px; font-size: 17px; }
  .article-body > p:first-of-type::first-letter { font-size: 4.4em; }
  .body-figure { padding: 0 22px; margin: 1.8em auto; }
  .pull-quote { padding: 0 22px; margin: 40px auto; }
  .gallery { grid-template-columns: 1fr; padding: 0 22px; gap: 10px; }
  .author-card { margin: 0 18px 48px; padding: 22px; grid-template-columns: 44px 1fr; }
  .author-avatar { width: 44px; height: 44px; }
  .foot { flex-direction: column; gap: 10px; padding: 18px 22px; text-align: center; }
}
