:root {
  --paper: #f4f1eb;
  --card: #fff;
  --ink: #1c1a17;
  --muted: #7a7469;
  --line: #ddd8ce;
  --divider: #eae5dc;
  --gold: #b8832a;
  --gold-pale: #fbf3e4;
  --moon: #2e4e8a;
  --moon-pale: #ebf0fa;
  --green: #1a5a3a;
  --green-pale: #e0f5ea;
  --red: #8b2a00;
  --red-pale: #fbe8dc;
  --shadow: 0 1px 6px rgba(28, 26, 23, 0.07);
  --serif: "EB Garamond", Georgia, serif;
  --mono: "Space Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1180px, calc(100% - 36px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.wordmark {
  text-decoration: none;
  font-weight: 600;
  font-size: 25px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.wordmark span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold); }

.nav-subscribe, .button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: white;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.button:hover, .nav-subscribe:hover { background: var(--gold); border-color: var(--gold); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button.ghost:hover { color: var(--gold); border-color: var(--gold); }
.button:disabled { cursor: not-allowed; opacity: 0.55; }

.menu-button { display: none; border: 0; background: transparent; padding: 8px; font-family: var(--mono); }

.container { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 36px)); margin-inline: auto; }

.eyebrow, .kicker, .meta, .field-label, .issue-number, .archive-count, .small-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow, .kicker, .small-label { color: var(--gold); }
.meta, .archive-count { color: var(--muted); }

.hero {
  padding: 78px 0 56px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: 72px;
}

.hero h1 {
  max-width: 760px;
  margin: 13px 0 20px;
  font-size: clamp(46px, 7vw, 88px);
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 0.96;
}

.hero h1 em { color: var(--gold); font-weight: 400; }
.hero-copy { max-width: 620px; margin: 0; color: #4b4740; font-size: clamp(20px, 2vw, 25px); line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.orbit-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.orbit-card::before,
.orbit-card::after,
.orbit-ring {
  content: "";
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.orbit-card::before { width: 370px; height: 370px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.orbit-card::after { width: 248px; height: 248px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.orbit-ring { width: 126px; height: 126px; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--gold-pale); border-color: #e5c68e; }
.orbit-core { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); color: var(--gold); font-size: 64px; z-index: 2; }
.orbit-note { position: absolute; z-index: 3; padding: 7px 10px; border-radius: 3px; font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.orbit-note.one { top: 34px; left: 28px; background: var(--moon-pale); color: var(--moon); }
.orbit-note.two { right: 24px; top: 118px; background: var(--green-pale); color: var(--green); }
.orbit-note.three { bottom: 40px; left: 44px; background: var(--red-pale); color: var(--red); }

.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-header { display: flex; justify-content: space-between; align-items: end; gap: 22px; margin-bottom: 28px; }
.section-title { margin: 7px 0 0; font-size: clamp(36px, 5vw, 54px); font-weight: 500; letter-spacing: -0.035em; line-height: 1; }
.text-link { color: var(--gold); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-underline-offset: 4px; }

.feature-card {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr);
  min-height: 360px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.feature-art { position: relative; display: grid; place-items: center; min-height: 290px; overflow: hidden; background: var(--ink); color: white; }
.feature-art::before { content: ""; position: absolute; width: 300px; height: 300px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; }
.feature-art::after { content: ""; position: absolute; width: 180px; height: 180px; border: 1px solid var(--gold); border-radius: 50%; }
.feature-moon { z-index: 1; font-size: 88px; color: var(--gold); }
.feature-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(30px, 5vw, 64px); }
.feature-content h3 { max-width: 660px; margin: 14px 0; font-size: clamp(32px, 4vw, 50px); font-weight: 500; line-height: 1.08; letter-spacing: -.025em; }
.feature-content p { max-width: 650px; margin: 0 0 23px; color: #565148; font-size: 20px; }

.issue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 14px; }
.issue-card { min-height: 300px; display: flex; flex-direction: column; overflow: hidden; border: 1.5px solid var(--line); border-radius: 7px; background: var(--card); box-shadow: var(--shadow); text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.issue-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.issue-card-thumb { overflow: hidden; aspect-ratio: 8 / 5; border-bottom: 1px solid var(--divider); background: #fff; }
.issue-card-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.issue-card-content { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.issue-number { color: var(--gold); }
.issue-card h3 { margin: 28px 0 13px; font-size: 27px; font-weight: 500; letter-spacing: -.02em; line-height: 1.12; }
.issue-card p { margin: 0 0 24px; color: #5a554d; font-size: 17px; line-height: 1.45; }
.issue-card .meta { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--divider); }

.subscribe-band { background: var(--ink); color: white; }
.subscribe-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 70px; }
.subscribe-band .section-title { color: white; }
.subscribe-band p { color: #d3cfc8; }
.beehiiv-wrap { min-height: 145px; padding: 22px; border: 1px solid rgba(255,255,255,.18); border-radius: 7px; background: rgba(255,255,255,.045); }
.subscribe-fallback { display: flex; align-items: center; justify-content: center; min-height: 100px; text-align: center; }
.beehiiv-wrap .subscribe-direct { margin: 14px 0 0; color: #d3cfc8; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-align: center; }
.subscribe-direct a { color: white; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.subscribe-direct a:hover { color: var(--gold-pale); }

.page-hero { padding: 70px 0 42px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 880px; margin: 10px 0 14px; font-size: clamp(46px, 7vw, 76px); font-weight: 500; line-height: .98; letter-spacing: -.045em; }
.page-hero p { max-width: 680px; margin: 0; color: #5a554d; font-size: 21px; }

.welcome-hero { padding: 78px 0 48px; text-align: center; }
.welcome-intro { display: flex; flex-direction: column; align-items: center; }
.welcome-mark { position: relative; display: grid; width: 132px; height: 132px; margin-bottom: 30px; place-items: center; border: 1px solid #e5c68e; border-radius: 50%; background: var(--gold-pale); color: var(--gold); }
.welcome-mark::before { content: ""; position: absolute; inset: 16px; border: 1px solid #e5c68e; border-radius: 50%; }
.welcome-mark span { position: relative; z-index: 1; font-family: var(--mono); font-size: 38px; font-weight: 700; }
.welcome-hero h1 { margin: 12px 0 10px; font-size: clamp(64px, 10vw, 112px); font-weight: 500; letter-spacing: -.055em; line-height: .9; }
.welcome-hero p { max-width: 600px; margin: 0; color: #5a554d; font-size: 23px; }
.welcome-section { padding-top: 28px; }
.welcome-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(250px, .85fr); align-items: center; gap: 52px; padding: clamp(28px, 6vw, 58px); border: 1.5px solid var(--line); border-radius: 7px; background: var(--card); box-shadow: var(--shadow); }
.welcome-card h2 { max-width: 520px; margin: 10px 0 14px; font-size: clamp(36px, 5vw, 52px); font-weight: 500; letter-spacing: -.035em; line-height: 1; }
.welcome-card p { max-width: 560px; margin: 0; color: #5a554d; font-size: 19px; }
.welcome-actions { display: grid; gap: 10px; }
.welcome-actions .button { width: 100%; text-align: center; }

.archive-tools { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.search-field { width: min(100%, 360px); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 4px; background: var(--card); color: var(--ink); font-family: var(--mono); font-size: 11px; }
.search-field:focus { outline: 2px solid var(--gold-pale); border-color: var(--gold); }

.issue-hero { padding: 56px 0 34px; }
.issue-hero .back-link { display: inline-block; margin-bottom: 34px; }
.issue-hero h1 { max-width: 900px; margin: 14px 0 16px; font-size: clamp(43px, 7vw, 72px); font-weight: 500; letter-spacing: -.04em; line-height: 1.02; }
.issue-deck { max-width: 760px; margin: 0; color: #575149; font-size: 22px; line-height: 1.45; }
.issue-byline { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.issue-cover { overflow: hidden; margin: 0 0 18px; border: 1.5px solid var(--line); border-radius: 7px; background: white; box-shadow: var(--shadow); }
.issue-cover img { display: block; width: 100%; height: auto; }

.reading-note { display: flex; gap: 12px; margin: 0 0 14px; padding: 13px 16px; border-left: 4px solid var(--gold); background: var(--gold-pale); color: #6d552a; font-family: var(--mono); font-size: 9px; line-height: 1.55; letter-spacing: .04em; text-transform: uppercase; }
.article-card { overflow: hidden; padding: clamp(28px, 7vw, 72px); border: 1.5px solid var(--line); border-radius: 7px; background: var(--card); box-shadow: var(--shadow); }
.article-body { user-select: none; -webkit-user-select: none; }
.article-body h2, .article-body h3, .article-body h4 { scroll-margin-top: 100px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.article-body h2 { margin: 56px 0 16px; padding-top: 26px; border-top: 2px solid var(--ink); font-size: 38px; }
.article-body h3 { margin: 34px 0 10px; font-size: 29px; }
.article-body h4 { margin: 27px 0 8px; color: var(--gold); font-size: 22px; }
.article-body p { margin: 0 0 20px; font-size: 20px; line-height: 1.65; }
.article-body > p:first-child { color: var(--gold); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .07em; line-height: 1.55; text-transform: uppercase; }
.article-body a { color: var(--moon); text-underline-offset: 3px; }
.article-body ul, .article-body ol { margin: 0 0 24px 22px; padding: 0; }
.article-body li { margin: 8px 0; padding-left: 5px; font-size: 19px; }
.article-body blockquote { margin: 28px 0; padding: 20px 24px; border-left: 4px solid var(--gold); background: var(--gold-pale); font-size: 22px; font-style: italic; }
.article-body hr { width: 84px; height: 2px; margin: 42px auto; border: 0; background: var(--ink); }
.article-body figure { margin: 30px -16px; text-align: center; }
.article-body figure img { display: block; width: 100%; border-radius: 5px; background: var(--paper); }
.article-body figcaption { margin-top: 8px; color: var(--muted); font-family: var(--mono); font-size: 9px; }

.issue-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 72px; }
.issue-pagination a { min-height: 110px; padding: 18px; border: 1.5px solid var(--line); border-radius: 7px; background: var(--card); text-decoration: none; }
.issue-pagination a:last-child { text-align: right; }
.issue-pagination strong { display: block; margin-top: 8px; font-size: 18px; font-weight: 500; }

.auth-card, .downloads-card, .about-card { padding: clamp(26px, 5vw, 48px); border: 1.5px solid var(--line); border-radius: 7px; background: var(--card); box-shadow: var(--shadow); }
.auth-card { max-width: 620px; margin: 0 auto; }
.auth-card h2, .downloads-card h2, .about-card h2 { margin: 0 0 10px; font-size: 36px; font-weight: 500; }
.auth-card p, .downloads-card p { color: #5a554d; }
.auth-form { display: grid; gap: 11px; margin-top: 24px; }
.field-label { color: var(--muted); }
.text-input { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); }
.text-input:focus { outline: 2px solid var(--gold-pale); border-color: var(--gold); }
.form-message { min-height: 26px; margin: 8px 0 0; color: var(--moon); font-size: 16px; }
.form-message.error { color: var(--red); }
.config-note { margin-top: 20px; padding: 14px; border: 1px solid #e5c68e; background: var(--gold-pale); color: #6d552a; font-family: var(--mono); font-size: 9px; line-height: 1.55; }
.download-list { display: grid; gap: 10px; margin-top: 24px; }
.download-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; padding: 18px; border: 1px solid var(--divider); border-radius: 5px; }
.download-row h3 { margin: 0 0 4px; font-size: 23px; font-weight: 500; }
.download-row p { margin: 0; font-family: var(--mono); font-size: 9px; text-transform: uppercase; }

.site-footer { padding: 34px 0; border-top: 2px solid var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; }
.footer-note { max-width: 600px; margin: 12px 0 0; color: var(--muted); font-size: 16px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.footer-links a { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.copyright { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }

[hidden] { display: none !important; }

@media (max-width: 900px) {
  .hero-grid, .subscribe-grid, .feature-card, .welcome-card { grid-template-columns: 1fr; }
  .hero-grid { gap: 42px; }
  .orbit-card { min-height: 340px; }
  .issue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-art { min-height: 270px; }
}

@media (max-width: 700px) {
  body { font-size: 17px; }
  .nav { min-height: 64px; }
  .menu-button { display: block; }
  .nav-links { position: absolute; inset: 64px 0 auto; display: none; padding: 18px; border-bottom: 1px solid var(--line); background: var(--paper); flex-direction: column; align-items: flex-start; }
  .nav-links.open { display: flex; }
  .nav-subscribe { margin-left: auto; padding-inline: 12px; }
  .hero { padding-top: 52px; }
  .welcome-hero { padding-top: 54px; }
  .welcome-mark { width: 108px; height: 108px; }
  .issue-grid { grid-template-columns: 1fr; }
  .issue-card { min-height: 250px; }
  .archive-tools, .section-header { align-items: flex-start; flex-direction: column; }
  .issue-pagination { grid-template-columns: 1fr; }
  .issue-pagination a:last-child { text-align: left; }
  .issue-pagination { margin-bottom: 48px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .article-card { margin-inline: -4px; }
  .article-body p { font-size: 18px; }
  .article-body h2 { font-size: 32px; }
  .article-body figure { margin-inline: -8px; }
}

@media print {
  .site-header, .site-footer, .reading-note, .issue-pagination, .subscribe-band { display: none !important; }
  body { background: white; }
  .article-card { border: 0; box-shadow: none; padding: 0; }
}

