/* poorajith.com — Editorial Issue No. 01
   Direction: magazine-cover hero, paper grain, italic-roman serif emphasis,
   distinctive sans (Geist) and characterful display (Instrument Serif).
   No Inter, no Roboto, no system font defaults. */

:root {
  --bg: #F4F1E8;          /* warmer cream, more paper-like */
  --bg-alt: #EDE8DA;
  --fg: #161513;          /* warmer ink than pure black */
  --muted: #6E6A60;
  --muted-2: #4F4B43;
  --accent: #2A4D2A;      /* deeper, more inky green */
  --accent-glow: rgba(42, 77, 42, 0.12);
  --border: #D9D3C2;
  --border-strong: #4F4B43;
  --code-bg: #E8E2D1;
  --paper: #FAF7EE;

  --font-display: 'Instrument Serif', 'Source Serif 4', 'Times New Roman', serif;
  --font-sans: 'Geist', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-serif: 'Newsreader', 'Source Serif 4', Georgia, serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --max-prose: 680px;
  --max-grid: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

/* Paper grain — subtle SVG noise overlay, fixed, multiply blended */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Vignette */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(22, 21, 19, 0.06) 100%);
}

main, header, footer { position: relative; z-index: 2; }

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

a { color: inherit; text-decoration: none; transition: color 150ms ease, border-color 150ms ease; }

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

img { max-width: 100%; height: auto; display: block; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  top: 12px; left: 12px;
  width: auto; height: auto;
  background: var(--fg);
  color: var(--bg);
  padding: 10px 14px;
  z-index: 1000;
  border-radius: 4px;
}

/* Nav — masthead style */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 241, 232, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--max-grid);
  margin: 0 auto;
  height: 60px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.nav-brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.nav-brand:hover { color: var(--accent); }

.nav-links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted-2);
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.12em;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--fg); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px; height: 44px;
  margin-right: -10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--fg);
}

.mobile-menu {
  position: fixed;
  inset: 56px 0 0 0;
  background: var(--bg);
  z-index: 30;
  padding: 48px 24px;
  display: none;
}
.mobile-menu.open { display: block; }
.mobile-menu ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 28px;
  letter-spacing: -0.01em;
}
.mobile-menu a:hover { color: var(--accent); }

@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Layout helpers */
.container {
  max-width: var(--max-grid);
  margin: 0 auto;
  padding: 0 24px;
}
.page-shell {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 80px 24px 64px;
}
@media (min-width: 768px) {
  .page-shell { padding: 112px 24px 80px; }
}

.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 0;
}
.page-title em { font-style: italic; color: var(--accent); }
.page-subtitle {
  margin-top: 18px;
  color: var(--muted-2);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  letter-spacing: -0.005em;
  max-width: 52ch;
}
.page-header {
  margin-bottom: 64px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-header::before {
  content: attr(data-folio);
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

/* Magazine masthead row above hero */
.masthead {
  max-width: var(--max-grid);
  margin: 0 auto;
  padding: 32px 28px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: end;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}
.masthead .left { text-align: left; }
.masthead .center { text-align: center; }
.masthead .right { text-align: right; }
.masthead .vol {
  font-family: var(--font-display);
  font-style: italic;
  text-transform: none;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.masthead .rule {
  grid-column: 1 / -1;
  height: 1px;
  background: var(--border-strong);
  margin-top: 12px;
  opacity: 0.4;
}
@media (max-width: 640px) {
  .masthead { grid-template-columns: 1fr 1fr; font-size: 10px; }
  .masthead .center { display: none; }
}

/* Hero — magazine cover */
.hero {
  position: relative;
  padding: 80px 0 56px;
  max-width: var(--max-grid);
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}
@media (min-width: 768px) {
  .hero { padding: 120px 28px 96px; }
}
.hero-issue {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-issue::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 8.5vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 16ch;
  color: var(--fg);
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.hero h1 .ornament {
  display: inline-block;
  font-style: italic;
  color: var(--accent);
  transform: translateY(-0.15em);
  font-size: 0.7em;
  margin: 0 0.05em;
}
.hero .lede {
  margin-top: 40px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.65;
  letter-spacing: -0.005em;
  color: var(--muted-2);
  max-width: 56ch;
}
.hero .lede a {
  color: var(--fg);
  border-bottom: 1px solid var(--border-strong);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.2em;
  line-height: 1;
}
.hero .lede a:hover { color: var(--accent); border-color: var(--accent); }
.hero .actions {
  margin-top: 48px;
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}
.hero .actions a {
  position: relative;
  padding-bottom: 2px;
}
.hero .actions a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.hero .actions a:hover { color: var(--accent); }
.hero .actions a:hover::after { background: var(--accent); transform: scaleX(1); }
.dot { color: var(--border-strong); user-select: none; opacity: 0.6; }

/* Marquee strip */
.marquee {
  position: relative;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  background: var(--bg);
  overflow: hidden;
  padding: 14px 0;
  margin-top: 56px;
}
.marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted-2);
}
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after {
  content: "✦";
  color: var(--accent);
  font-style: normal;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Vertical edge label */
.edge-label {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted-2);
  pointer-events: none;
  z-index: 5;
  white-space: nowrap;
  opacity: 0.7;
}
@media (max-width: 1024px) { .edge-label { display: none; } }

/* Home sections — asymmetric editorial grid */
.home-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  position: relative;
}
.home-section::before {
  content: attr(data-folio);
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  opacity: 0.5;
}
.home-section .row {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) {
  .home-section .row {
    grid-template-columns: 220px 1fr;
    gap: 64px;
  }
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin: 0;
  position: relative;
  padding-left: 28px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--accent);
  transform: translateY(-50%);
}
.eyebrow .seq {
  display: inline-block;
  font-style: italic;
  font-family: var(--font-display);
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--fg);
  margin-right: 8px;
}
.home-content { max-width: 60ch; }
.home-content > p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.65;
  margin: 0;
  letter-spacing: -0.005em;
}
.home-content > p a {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1em;
  border-bottom: 1px solid var(--border-strong);
  color: var(--fg);
}
.home-content > p a:hover { color: var(--accent); border-color: var(--accent); }

/* Lists of items (writing index, building) */
.entry-list {
  list-style: none;
  padding: 0; margin: 0;
}
.entry-list > li { padding: 40px 0; border-top: 1px solid var(--border); }
.entry-list > li:first-child { border-top: 0; padding-top: 8px; }

.entry-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.entry-title a:hover { color: var(--accent); }

.entry-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 8px 0 0;
}
.entry-meta-inline {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0 0;
}

.entry-dek {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.6;
}

.entry-body {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.7;
  margin: 20px 0 0;
  max-width: var(--max-prose);
}

.entry-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
}
.entry-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

.entry-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 8px;
}

/* Compact preview list (home) */
.preview-list { list-style: none; padding: 0; margin: 0; max-width: var(--max-prose); }
.preview-list > li { margin-bottom: 32px; }
.preview-list h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.625rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
}
.preview-list h3 a:hover { color: var(--accent); }
.preview-list .dek { color: var(--muted); font-size: 15px; margin: 4px 0 0; line-height: 1.5; }
.preview-list .meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); margin: 8px 0 0; letter-spacing: 0.04em; }

.link-underline {
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
}
.link-underline:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Article (writing post) */
.article {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 80px 24px 64px;
}
@media (min-width: 768px) {
  .article { padding: 112px 24px 80px; }
}
.article-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: -0.028em;
  margin: 0;
}
.article-title em { font-style: italic; color: var(--accent); }
.article-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 16px 0 48px;
}
.prose {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.7;
  letter-spacing: -0.005em;
  color: var(--fg);
}
.prose p { margin: 0 0 24px; }
.prose strong { font-weight: 600; }
.prose a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 4px;
}
.prose a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.prose h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2rem);
  margin: 64px 0 24px;
  letter-spacing: -0.01em;
}
.prose h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.375rem;
  margin: 48px 0 16px;
}
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 24px; }
.prose li { margin: 0 0 8px; }
.prose blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  color: var(--muted);
  font-style: italic;
  margin: 24px 0;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 3px;
}
.prose pre {
  font-family: var(--font-mono);
  background: var(--code-bg);
  padding: 20px;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  margin: 24px 0;
}
.prose pre code { background: transparent; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 48px 0; }

.article-footer {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* Work timeline */
.role { padding: 40px 0; border-top: 1px solid var(--border); }
.role:first-child { border-top: 0; padding-top: 8px; }
.role h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.role .org {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 0;
}
.role p {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.7;
  margin: 16px 0 0;
}

.certs {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.certs h2 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 16px;
}
.certs p { font-family: var(--font-mono); font-size: 14px; margin: 0; }
.certs p + p { color: var(--muted); margin-top: 8px; }

/* Contact */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  font-family: var(--font-mono);
  font-size: 14px;
}
.contact-list li { margin: 0 0 12px; }
.contact-meta { color: var(--muted); font-size: 14px; margin: 40px 0 0; }

/* Footer */
.site-footer {
  margin-top: 128px;
  border-top: 1px solid var(--border);
}
.site-footer .container { padding-top: 56px; padding-bottom: 56px; }
.footer-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 0;
}
.footer-line { color: var(--muted); margin: 4px 0 0; font-size: 15px; }
.footer-links {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  color: var(--muted);
  font-size: 15px;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  margin: 40px 0 0;
}

/* === Enhancements === */

/* Reading progress bar (article pages) */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 50;
  transition: width 100ms linear;
  pointer-events: none;
}

/* Drop cap on first paragraph of articles */
.prose.has-dropcap > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  float: left;
  font-size: 5.6rem;
  line-height: 0.85;
  padding: 8px 14px 0 0;
  color: var(--accent);
}

/* Pull quote */
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--fg);
  border: 0;
  margin: 56px -32px;
  padding: 32px;
  position: relative;
  text-align: center;
}
.pull-quote::before, .pull-quote::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto;
}
.pull-quote::before { margin-bottom: 28px; }
.pull-quote::after { margin-top: 28px; }
.pull-quote em { color: var(--accent); }

/* Stack tag pills (building page) */
.tag-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-list li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  color: var(--muted-2);
  background: transparent;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}
.tag-list li:hover { color: var(--fg); background: var(--paper); }
.entry-list > li:hover .tag-list li { border-color: rgba(45, 95, 63, 0.25); }

/* Status pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}
.status-pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
}
.status-pill.is-active { color: var(--accent); }
.status-pill.is-active::before {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 95, 63, 0.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(45, 95, 63, 0.18); }
  50% { box-shadow: 0 0 0 5px rgba(45, 95, 63, 0.08); }
}

/* External link arrow */
.ext::after {
  content: " ↗";
  font-feature-settings: "ss01";
  display: inline-block;
  margin-left: 2px;
  color: var(--muted);
  transition: transform 200ms ease, color 200ms ease;
}
.ext:hover::after {
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* Hover translate on list entries (subtle) */
@media (prefers-reduced-motion: no-preference) {
  .entry-list > li {
    transition: transform 250ms cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .entry-list > li:hover {
    transform: translateX(4px);
  }
}

/* Year marker (writing index) */
.year-marker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.year-marker:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.year-marker h2 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0;
}
.year-marker .rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Copy email button */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  margin-left: 8px;
  transition: border-color 150ms ease, color 150ms ease;
  vertical-align: middle;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.copy-btn[data-copied="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

/* Reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms ease, transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease, border-color 150ms ease, color 150ms ease;
  z-index: 30;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Section index (small jump-list near hero) */
.section-index {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}
.section-index a {
  position: relative;
  padding-left: 18px;
}
.section-index a::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 12px; height: 1px;
  background: var(--border);
  transform: translateY(-50%);
  transition: background 200ms ease, width 200ms ease;
}
.section-index a:hover { color: var(--accent); }
.section-index a:hover::before { background: var(--accent); width: 16px; }

/* Article enhancements */
.article-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 16px 0 48px;
}
.article-byline .sep {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--border);
}

/* Hero fade-up animation */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 400ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  }
  .fade-up.delay-1 { animation-delay: 100ms; }
  .fade-up.delay-2 { animation-delay: 200ms; }
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
