/* ============================================================
   Humans of ISPH — public site
   Editorial system: warm paper, ink, hairline rules, Fraunces + Inter
   ============================================================ */

:root {
  --paper: #f7f3ec;
  --paper-raised: #fffdf8;
  --ink: #1b1712;
  --ink-soft: #4c453b;
  --ink-faint: #8a8172;
  --hairline: #ded5c3;
  --hairline-strong: #1b1712;
  --accent: #9c2b23;
  --accent-deep: #741f1a;
  --gold: #a8823c;

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;

  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-hero: clamp(2.4rem, 1.2rem + 4.4vw, 5rem);
  --text-masthead: clamp(2.6rem, 1rem + 7vw, 7.5rem);

  --measure: 42rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --space-section: clamp(3.5rem, 2.5rem + 4vw, 7rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 300ms;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(168, 130, 60, 0.05), transparent 60%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 0.75rem 1.25rem;
  font-size: 0.8125rem; text-decoration: none;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Masthead ---------- */

.masthead {
  padding: 0 var(--gutter);
  max-width: 82rem;
  margin: 0 auto;
  width: 100%;
}

.masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.masthead-top .issue-date { color: var(--ink-soft); }

.staff-login {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--ink-faint);
  transition: color var(--dur) var(--ease-out);
}
.staff-login:hover, .staff-login:focus-visible { color: var(--accent); }

.wordmark {
  text-align: center;
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(1rem, 3vw, 2rem);
}

.wordmark a { text-decoration: none; }

.wordmark-title {
  font-family: var(--serif);
  font-size: var(--text-masthead);
  font-weight: 600;
  font-variation-settings: 'opsz' 144;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--ink);
}

.wordmark-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  padding: 0 0.06em;
}

.wordmark-sub {
  margin-top: 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.wordmark-sub::before,
.wordmark-sub::after {
  content: '';
  height: 1px;
  width: clamp(1.5rem, 8vw, 5rem);
  background: var(--hairline);
}

/* ---------- Rail (sticky nav) ---------- */

.rail {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 2px solid var(--hairline-strong);
  border-bottom: 1px solid var(--hairline);
}

.rail-inner {
  max-width: 82rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
}

.rail-cats {
  display: flex;
  gap: clamp(0.25rem, 1.5vw, 1rem);
  overflow-x: auto;
  scrollbar-width: none;
}
.rail-cats::-webkit-scrollbar { display: none; }

.cat-btn {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 1rem 0.35rem calc(1rem - 2px);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.cat-btn:hover { color: var(--ink); }
.cat-btn.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

.rail-search {
  position: relative;
  flex-shrink: 0;
}

.rail-search input {
  font-family: var(--sans);
  font-size: 0.8125rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 0.4rem 1.5rem 0.4rem 0.1rem;
  width: clamp(8rem, 18vw, 14rem);
  color: var(--ink);
  transition: border-color var(--dur) var(--ease-out);
}

.rail-search input:focus { outline: none; border-bottom-color: var(--accent); }
.rail-search input::placeholder { color: var(--ink-faint); }

.rail-search svg {
  position: absolute;
  right: 0.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.9rem;
  height: 0.9rem;
  stroke: var(--ink-faint);
  pointer-events: none;
}

/* ---------- Layout ---------- */

.page {
  max-width: 82rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
  flex: 1;
}

/* ---------- Hero (featured story) ---------- */

.hero {
  padding: var(--space-section) 0 calc(var(--space-section) * 0.7);
  border-bottom: 1px solid var(--hairline);
}

.hero-spread {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  cursor: pointer;
}

.hero-media {
  position: relative;
  overflow: hidden;
}

/* Photo frames hug the image: full image, natural height, never cropped. */
.media-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 34rem;
  object-fit: contain;
  transition: transform 1.2s var(--ease-out);
}

.hero-spread:hover .hero-media:not(.is-issue) .media-img { transform: scale(1.03); }

/* Newsstand treatment: digital issues are displayed as real magazine covers. */
.hero-media.is-issue {
  overflow: visible;
  width: min(100%, 24rem);
  margin: 0 auto;
  aspect-ratio: 990 / 1400;
  border: 1px solid rgba(27, 23, 18, 0.12);
  box-shadow:
    0 1px 2px rgba(27, 23, 18, 0.12),
    0 18px 40px -18px rgba(27, 23, 18, 0.45);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
  transform: rotate(-1deg);
}

.hero-media.is-issue .media-img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.hero-media.is-issue::after { display: none; }

.hero-spread:hover .hero-media.is-issue {
  transform: rotate(0deg) translateY(-6px);
  box-shadow:
    0 1px 2px rgba(27, 23, 18, 0.12),
    0 30px 60px -20px rgba(27, 23, 18, 0.5);
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0.75rem;
  border: 1px solid rgba(247, 243, 236, 0.5);
  pointer-events: none;
}

.kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.kicker::after { content: ''; width: 2.5rem; height: 1px; background: var(--accent); }

.hero-title {
  font-family: var(--serif);
  font-size: var(--text-hero);
  font-weight: 550;
  font-variation-settings: 'opsz' 144;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 1.1rem 0 1.2rem;
}

.hero-spread:hover .hero-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--hairline-strong); }

.hero-deck {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 1.6rem;
}

.byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.byline img {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--hairline);
}

.byline .name { color: var(--ink); font-weight: 600; }
.byline .dot { opacity: 0.5; }

/* ---------- Stories section ---------- */

.stories { padding: calc(var(--space-section) * 0.7) 0 var(--space-section); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  font-weight: 600;
  font-variation-settings: 'opsz' 100;
  letter-spacing: -0.01em;
}

.section-head .count {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 3vw, 2.5rem);
}

.story {
  cursor: pointer;
  padding: 1.75rem 0 2rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.story-media {
  position: relative;
  overflow: hidden;
  order: -1;
}

.story-media .media-img { transition: transform 0.9s var(--ease-out); }

.story:hover .story-media:not(.is-issue) .media-img { transform: scale(1.04); }

.story-media.is-issue {
  overflow: visible;
  aspect-ratio: 990 / 1400;
  width: min(100%, 17rem);
  margin: 0 auto 0.5rem;
  border: 1px solid rgba(27, 23, 18, 0.12);
  box-shadow:
    0 1px 2px rgba(27, 23, 18, 0.12),
    0 14px 30px -14px rgba(27, 23, 18, 0.4);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.story-media.is-issue .media-img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.story:hover .story-media.is-issue {
  transform: translateY(-6px);
  box-shadow:
    0 1px 2px rgba(27, 23, 18, 0.12),
    0 26px 50px -18px rgba(27, 23, 18, 0.5);
}

.story-kicker {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.story-kicker .read-time { color: var(--ink-faint); font-weight: 500; letter-spacing: 0.1em; }

.story h3 {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem);
  font-weight: 600;
  font-variation-settings: 'opsz' 100;
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition: color var(--dur) var(--ease-out);
}

.story:hover h3 { color: var(--accent-deep); }

.story p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.story-foot .author { font-weight: 600; color: var(--ink-soft); }

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
  padding: 0.25rem 0.4rem;
  transition: color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

.like-btn svg { width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor; stroke-width: 1.6; transition: fill var(--dur) var(--ease-out); }
.like-btn:hover { color: var(--accent); }
.like-btn.liked { color: var(--accent); }
.like-btn.liked svg { fill: var(--accent); stroke: var(--accent); }
.like-btn.pop { animation: likePop 0.4s var(--ease-out); }

@keyframes likePop {
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* Skeletons */
.skeleton { pointer-events: none; }
.skeleton .sk {
  background: linear-gradient(100deg, var(--hairline) 40%, #ece5d6 50%, var(--hairline) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-line { height: 0.9rem; margin-bottom: 0.6rem; }
.sk-media { aspect-ratio: 3 / 2; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 1rem;
  border-top: 1px solid var(--hairline);
}
.empty-state h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin-bottom: 0.6rem; }
.empty-state p { color: var(--ink-faint); font-size: 0.9rem; }

/* ---------- Reader overlay ---------- */

.reader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--paper);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: none;
}
.reader.open { display: block; animation: readerIn 0.45s var(--ease-out); }

@keyframes readerIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.reader-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem var(--gutter);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.reader-bar .brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.reader-bar .brand em { font-style: italic; color: var(--accent); font-weight: 400; }

.reader-close {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--hairline);
  border-radius: 2rem;
  transition: all var(--dur) var(--ease-out);
}
.reader-close:hover { border-color: var(--ink); color: var(--ink); }

.reader-body { max-width: 52rem; margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) 6rem; }

.reader-head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }

.reader-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.2rem + 3.6vw, 4rem);
  font-weight: 550;
  font-variation-settings: 'opsz' 144;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 1.2rem auto 1.4rem;
  max-width: 18ch;
}

.reader-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}
.reader-meta img { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; }
.reader-meta .name { color: var(--ink); font-weight: 600; }

.reader-hero { margin: 0 auto clamp(2rem, 5vw, 3.5rem); }
.reader-hero img { width: 100%; height: auto; }
.reader-hero figcaption { font-size: 0.75rem; color: var(--ink-faint); padding-top: 0.6rem; border-bottom: 1px solid var(--hairline); padding-bottom: 0.75rem; }

.reader-text {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 18;
  font-size: 1.1875rem;
  line-height: 1.8;
  color: var(--ink);
  max-width: var(--measure);
  margin: 0 auto;
  white-space: pre-line;
}

.reader-text::first-letter {
  font-size: 4.4em;
  font-weight: 600;
  float: left;
  line-height: 0.78;
  padding: 0.08em 0.12em 0 0;
  color: var(--accent);
  font-variation-settings: 'opsz' 144;
}

.reader-end {
  max-width: var(--measure);
  margin: 3rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--hairline);
  padding-top: 1.5rem;
}

.reader-end .mark { font-family: var(--serif); color: var(--accent); font-size: 1.3rem; }

/* Issuu embed */
.issuu-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--ink);
}
.issuu-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .issuu-frame { aspect-ratio: 3 / 4; } }

/* ---------- Login modal ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(27, 23, 18, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-backdrop.open { display: flex; animation: fadeIn 0.25s var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; } }

.login-card {
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  max-width: 24rem;
  width: 100%;
  padding: 2.5rem 2.25rem 2.25rem;
  position: relative;
  animation: cardIn 0.35s var(--ease-out);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } }

.login-card::before {
  content: '';
  position: absolute;
  inset: 0.5rem;
  border: 1px solid var(--hairline);
  pointer-events: none;
}

.login-card h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.3rem;
}
.login-card .sub {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.75rem;
}

.field { margin-bottom: 1.1rem; position: relative; z-index: 1; }
.field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.field input {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 0.1rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  transition: border-color var(--dur) var(--ease-out);
}
.field input:focus { outline: none; border-bottom-color: var(--accent); }

.btn-ink {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.85rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background var(--dur) var(--ease-out);
}
.btn-ink:hover { background: var(--accent-deep); }
.btn-ink:disabled { opacity: 0.6; cursor: wait; }

.modal-close-x {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  color: var(--ink-faint);
  font-size: 1.1rem;
  transition: color var(--dur) var(--ease-out);
}
.modal-close-x:hover { color: var(--ink); }

.login-error {
  color: var(--accent);
  font-size: 0.8rem;
  text-align: center;
  margin-top: 0.9rem;
  min-height: 1.2em;
  position: relative;
  z-index: 1;
}

/* ---------- Toast ---------- */

.toast-root { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 500; display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }

.toast {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8125rem;
  padding: 0.7rem 1.4rem;
  border-radius: 2rem;
  box-shadow: 0 8px 30px rgba(27, 23, 18, 0.25);
  animation: toastIn 0.35s var(--ease-out);
  white-space: nowrap;
}
.toast.error { background: var(--accent-deep); }
.toast.leaving { opacity: 0; transform: translateY(8px); transition: all 0.3s var(--ease-out); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Footer ---------- */

.colophon {
  margin-top: auto;
  background: var(--ink);
  color: #b8ae9c;
}

.colophon-inner {
  max-width: 82rem;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) 0;
}

.colophon-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.colophon .fm-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
  font-weight: 550;
  color: var(--paper);
  line-height: 1;
  letter-spacing: -0.015em;
}
.colophon .fm-title em { font-style: italic; font-weight: 400; color: #d8a05f; }

.colophon .fm-desc { margin-top: 1.1rem; font-size: 0.875rem; line-height: 1.7; max-width: 26rem; }

.colophon h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 1.2rem;
}

.colophon ul { list-style: none; }
.colophon li { margin-bottom: 0.65rem; }
.colophon ul button, .colophon ul a {
  font-size: 0.875rem;
  color: #b8ae9c;
  text-decoration: none;
  transition: color var(--dur) var(--ease-out);
  padding: 0;
}
.colophon ul button:hover, .colophon ul a:hover { color: var(--paper); }

.newsletter-row { display: flex; border-bottom: 1px solid #4c453b; margin-top: 0.4rem; }
.newsletter-row input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--paper);
  font: inherit;
  font-size: 0.875rem;
  padding: 0.6rem 0.1rem;
}
.newsletter-row input:focus { outline: none; }
.newsletter-row input::placeholder { color: #8a8172; }
.newsletter-row button {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d8a05f;
  padding: 0.6rem 0.2rem;
  transition: color var(--dur) var(--ease-out);
}
.newsletter-row button:hover { color: var(--paper); }

.colophon .contact { font-size: 0.875rem; line-height: 1.9; }

.colophon-bottom {
  border-top: 1px solid #37312a;
  padding: 1.4rem 0 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #8a8172;
}

/* ---------- Reveal on load ---------- */

.reveal { opacity: 0; transform: translateY(18px); animation: reveal 0.7s var(--ease-out) forwards; }
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.16s; }
.reveal.d3 { animation-delay: 0.26s; }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .colophon-grid { grid-template-columns: 1fr 1fr; }
  .colophon-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .hero-spread { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-media { order: -1; }
  .masthead-top .tagline { display: none; }
}

@media (max-width: 560px) {
  .story-grid { grid-template-columns: 1fr; }
  .colophon-grid { grid-template-columns: 1fr; }
  .rail-search input { width: 7.5rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Focus ---------- */

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