:root {
  --ink: #f7f3eb;
  --muted: #c8bda9;
  --paper: #f6f1e8;
  --paper-ink: #211d18;
  --paper-muted: #5f564b;
  --black: #080808;
  --panel: #151515;
  --line: rgba(247, 243, 235, .16);
  --paper-line: rgba(33, 29, 24, .16);
  --gold: #e9bd65;
  --ember: #d96135;
  --cyan: #4ed5de;
  --green: #bedb64;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { background: var(--black); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--black);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, iframe, object { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 4px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: 0; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.skip-link {
  position: absolute;
  left: 20px;
  top: 12px;
  z-index: 60;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--black);
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 8, .86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.05;
}
.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  padding: 9px 10px;
  border-radius: 8px;
  color: rgba(247, 243, 235, .84);
  font-size: 13px;
  font-weight: 720;
  white-space: nowrap;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  background: rgba(247, 243, 235, .1);
}
.hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: #080808;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .86), rgba(0, 0, 0, .36) 58%, rgba(0, 0, 0, .1)),
    linear-gradient(0deg, rgba(8, 8, 8, .96), rgba(8, 8, 8, 0) 44%);
  pointer-events: none;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 120px 0 58px;
}
.kicker {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
}
.hero h1, .page-hero h1 {
  max-width: 980px;
  margin-bottom: 18px;
  font-size: clamp(42px, 8vw, 92px);
  line-height: .98;
}
.hero p, .page-hero p {
  max-width: 820px;
  color: rgba(247, 243, 235, .86);
  font-size: clamp(17px, 2vw, 23px);
  overflow-wrap: anywhere;
}
.hero-name {
  margin: -8px 0 12px;
  color: var(--gold) !important;
  font-size: clamp(18px, 2vw, 24px) !important;
  font-weight: 820;
}
.page-hero {
  padding: 94px 0 34px;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(233, 189, 101, .56);
  border-radius: 8px;
  background: var(--gold);
  color: #15110c;
  font-weight: 820;
  text-decoration: none;
}
.button.secondary {
  background: transparent;
  color: var(--ink);
}
.archive-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 28px 0;
  content-visibility: auto;
  contain-intrinsic-size: 360px;
}
.archive-card {
  min-height: 160px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(247, 243, 235, .08), rgba(247, 243, 235, .03));
  color: var(--ink);
  text-decoration: none;
}
.archive-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}
.archive-card strong {
  display: block;
  margin-bottom: 10px;
  line-height: 1.18;
}
.archive-card small {
  color: var(--muted);
  line-height: 1.4;
}
.content-band {
  background: var(--paper);
  color: var(--paper-ink);
  padding: 48px 0 74px;
  content-visibility: auto;
  contain-intrinsic-size: 2400px;
}
.entry-content {
  max-width: 980px;
  font-size: 18px;
}
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 {
  color: #15110c;
  line-height: 1.15;
}
.entry-content h1 { font-size: clamp(34px, 5vw, 58px); }
.entry-content h2 {
  margin-top: 1.8em;
  padding-top: .45em;
  border-top: 1px solid var(--paper-line);
  font-size: clamp(28px, 4vw, 44px);
}
.entry-content h3 { margin-top: 1.5em; font-size: 24px; }
.entry-content p, .entry-content li { color: var(--paper-ink); }
.entry-content a {
  color: #7a3c1d;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.entry-content figure {
  margin: 28px 0;
}
.entry-content figcaption {
  margin-top: 8px;
  color: var(--paper-muted);
  font-size: 14px;
}
.entry-content .wp-block-gallery,
.entry-content .blocks-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}
.entry-content .wp-block-image img,
.entry-content .wp-block-gallery img,
.entry-content .blocks-gallery-grid img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  background: #fff;
}
.entry-content th,
.entry-content td {
  border: 1px solid rgba(33, 29, 24, .16);
  padding: 10px;
  vertical-align: top;
}
.entry-content th {
  background: #ebe3d5;
  text-align: left;
}
.wp-block-file {
  padding: 18px;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .62);
}
.wp-block-file__button {
  display: inline-flex;
  margin-left: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #211d18;
  color: #fff !important;
  text-decoration: none;
}
.static-notice {
  max-width: 760px;
  padding: 44px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.static-notice h1 { color: #15110c; }
.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #080808;
  color: var(--muted);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.footer-grid strong { color: var(--ink); }
.footer-grid p { margin-bottom: 0; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: start;
}
canvas {
  max-width: 100%;
  margin: 20px 0;
}
@media (max-width: 900px) {
  .nav { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .nav-links { justify-content: flex-start; width: 100%; }
  .archive-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-content .wp-block-gallery,
  .entry-content .blocks-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .wrap { width: min(1120px, calc(100% - 28px)); }
  .hero { min-height: 76svh; }
  .hero h1, .page-hero h1 {
    font-size: 36px;
    line-height: 1.05;
    overflow-wrap: break-word;
  }
  .hero p, .page-hero p {
    width: 100%;
    max-width: calc(100vw - 48px);
    font-size: 16px;
    line-height: 1.5;
  }
  .page-hero { padding-top: 54px; }
  .archive-strip { grid-template-columns: 1fr; }
  .entry-content { font-size: 16px; }
  .entry-content .wp-block-gallery,
  .entry-content .blocks-gallery-grid { grid-template-columns: 1fr; }
  .static-notice { padding: 26px; }
  .footer-grid { flex-direction: column; }
}

.essay-page .essay-hero h1 { max-width: 1040px; }
.essay-page .essay-note {
  padding: 18px;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .68);
  color: var(--paper-muted);
  font-size: 15px;
}
.essay-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .essay-index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .essay-index { grid-template-columns: 1fr; } }
