:root {
  --ink: #1a1a1a;
  --paper: #fbfaf7;
  --rule: #1a1a1a;
  --muted: #6b6a66;
  --accent: #a02020;
  --max: 640px;
  --font-display: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  font-size: 17px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

header.masthead {
  padding: 36px 0 14px;
  text-align: center;
}

header.masthead .wrap { max-width: 720px; }

.masthead-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.masthead-title a { color: var(--ink); text-decoration: none; }

.masthead-tagline {
  margin: 6px 0 24px;
  color: var(--muted);
  font-weight: 300;
  font-style: italic;
  font-size: 0.85rem;
}

nav.masthead-nav {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

header.masthead { padding-bottom: 26px; }

nav.masthead-nav a {
  color: var(--ink);
  text-decoration: none;
  margin: 0 10px;
}

nav.masthead-nav a:hover { text-decoration: underline; }

main {
  padding: 60px 0 20px;
}

.dateline {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.7rem;
  color: var(--accent);
  margin: 0 0 8px;
}

h1.essay-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  margin: 0 0 10px;
  line-height: 1.15;
}

.essay-hook {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: #3a3a3a;
  margin: 0 0 26px;
  padding-left: 16px;
}

.essay-hook::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 7px;
  width: 3px;
  background: rgba(26, 26, 26, 0.75);
}

.essay-body p { margin: 0 0 1.1em; }

.essay-body sup {
  font-size: 0.7em;
  vertical-align: super;
  line-height: 0;
}

.essay-body .section-label {
  margin-top: 36px;
}

.pull-quote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  text-align: center;
  margin: 36px 0;
  padding: 4px 10px;
}

.essay-body .placeholder {
  background: #f0eeea;
  border: 1px dashed #bbb;
  padding: 14px 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-style: normal;
}

hr.rule {
  border: none;
  border-top: 1px solid #ccc;
  margin: 40px 0;
}

.references {
  font-family: var(--font-mono);
}

.references p.reference {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 0.9em;
}

.references p.reference a {
  color: var(--muted);
  word-break: break-word;
}

.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.archive-item {
  padding: 18px 0;
  border-bottom: 1px solid #ddd;
}

.archive-item:first-child { padding-top: 0; }

.archive-item .dateline { margin-bottom: 4px; }

.archive-item h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 6px;
}

.archive-item h2 a { color: var(--ink); text-decoration: none; }
.archive-item h2 a:hover { text-decoration: underline; }

.archive-item .hook {
  font-weight: 300;
  font-style: italic;
  color: #444;
  margin: 0;
}

.section-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 14px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
}

.essay-nav {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  margin: 30px 0;
}

.essay-nav a { color: var(--ink); }

.subscribe {
  background: #f0eeea;
  padding: 26px 24px;
  margin: 40px 0;
  text-align: center;
  scroll-margin-top: 24px;
}

.subscribe h2 {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.subscribe p {
  color: var(--muted);
  font-weight: 300;
  margin: 0 0 18px;
  font-size: 0.95rem;
}

.subscribe-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.subscribe-buttons a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  padding: 12px 20px;
  border-radius: 2px;
}

.subscribe-buttons a:hover { background: var(--accent); }

.subscribe-note {
  margin-top: 14px !important;
  font-size: 0.76rem !important;
}

.subscribe-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 0;
  flex-wrap: wrap;
}

.subscribe-copy code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: #fff;
  border: 1px solid #ddd;
  padding: 6px 10px;
  border-radius: 2px;
  color: var(--ink);
}

.subscribe-copy button {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 2px;
  cursor: pointer;
  min-width: 64px;
}

.subscribe-copy button:hover { background: var(--ink); color: var(--paper); }

footer {
  border-top: 3px solid var(--rule);
  padding: 24px 0 50px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-align: center;
}

footer p { margin: 0 0 8px; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .masthead-title { font-size: 2.1rem; }
  h1.essay-title { font-size: 1.6rem; }
}
