/* ═══════════════════════════════════════════════════════
   PULL MY FRANK — Dark Literary Underground Press
   Francis Arthur Norton IV
   ═══════════════════════════════════════════════════════ */

/* ─── CUSTOM PROPERTIES ─── */
:root {
  /* Palette — reading by lamplight in a Southern library */
  --bg-deep:        #0a0910;
  --bg-surface:     #110f18;
  --bg-card:        #16131f;
  --bg-elevated:    #1c1828;

  --ink-primary:    #d4c5a9;
  --ink-secondary:  #9e9283;
  --ink-muted:      #6b6058;
  --ink-faint:      #3a3430;

  --gold:           #c9a84c;
  --gold-dim:       #a08838;
  --gold-glow:      rgba(201, 168, 76, 0.15);

  --red:            #a03a2e;
  --red-bright:     #c44836;
  --red-glow:       rgba(196, 72, 54, 0.2);

  --cream:          #f0ebe0;
  --polaroid-white: #f5f0e4;

  /* Typography scale */
  --font-display:   'Playfair Display', 'Georgia', serif;
  --font-heading:   'Oswald', 'Arial Narrow', sans-serif;
  --font-body:      'Lora', 'Georgia', serif;
  --font-handwrite: 'Caveat', cursive;
  --font-mono:      'Space Mono', 'Courier New', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;

  /* Layout */
  --max-width: 1200px;
  --content-padding: clamp(1rem, 4vw, 3rem);
}

/* ─── RESET ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.05vw + 0.85rem, 1.2rem);
  line-height: 1.75;
  color: var(--ink-primary);
  background-color: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--cream);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* ─── GRAIN OVERLAY ─── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Vignette */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(5, 4, 8, 0.5) 100%);
}

/* ═══════════════════════════════════════════════════════
   BREAKING FRANK BANNER
   ═══════════════════════════════════════════════════════ */
.breaking-banner {
  display: none;
  background: var(--red);
  border-bottom: 3px solid var(--red-bright);
  position: relative;
  z-index: 100;
}

.breaking-banner.active {
  display: block;
  animation: breakingPulse 3s ease-in-out infinite;
}

@keyframes breakingPulse {
  0%, 100% { background-color: var(--red); }
  50% { background-color: #8a2e24; }
}

.breaking-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-sm) var(--content-padding);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.breaking-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2em 0.6em;
  white-space: nowrap;
  flex-shrink: 0;
}

.breaking-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--cream);
  flex: 1;
}

.breaking-text em {
  font-style: italic;
}

.breaking-dismiss {
  color: var(--cream);
  font-size: 1.5rem;
  opacity: 0.7;
  transition: opacity 0.2s;
  flex-shrink: 0;
  padding: 0 var(--space-sm);
}

.breaking-dismiss:hover {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════ */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 9, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-faint);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  z-index: 91;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  margin: 0 auto;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  padding: var(--space-sm) 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ═══════════════════════════════════════════════════════
   MASTHEAD
   ═══════════════════════════════════════════════════════ */
.masthead {
  padding: var(--space-2xl) var(--content-padding) var(--space-lg);
  text-align: center;
  position: relative;
}

.masthead-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.masthead-rule {
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--ink-faint) 15%,
    var(--gold-dim) 40%,
    var(--gold) 50%,
    var(--gold-dim) 60%,
    var(--ink-faint) 85%,
    transparent 100%
  );
  margin: 0 auto;
  max-width: 700px;
}

.masthead-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(3rem, 10vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: var(--space-lg) 0 var(--space-md);
  text-shadow:
    0 0 80px var(--gold-glow),
    0 2px 0 rgba(0, 0, 0, 0.4);
  position: relative;
}

.masthead-author {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.masthead-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: var(--ink-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  line-height: 1.6;
}

.dateline {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4em;
  padding-top: var(--space-md);
}

.dot {
  color: var(--gold-dim);
}

/* ═══════════════════════════════════════════════════════
   SECTION RULES (Dividers)
   ═══════════════════════════════════════════════════════ */
.section-rule {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-top: var(--space-lg);
}

.section-rule::before,
.section-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink-faint), transparent);
}

.section-rule-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  padding: 0.3em 1em;
  border: 1px solid var(--ink-faint);
  background: var(--bg-deep);
}

/* ═══════════════════════════════════════════════════════
   CONTENT AREA
   ═══════════════════════════════════════════════════════ */
.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

/* ─── LEAD GRID (Story + Sidebar) ─── */
.lead-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.lead-grid > .section-rule {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .lead-grid {
    grid-template-columns: 2fr 1fr;
  }

  .lead-grid > .section-rule {
    grid-column: 1 / -1;
  }

  .sidebar {
    border-left: 1px solid var(--ink-faint);
    padding-left: var(--space-lg);
  }
}

/* ─── LEAD STORY ─── */
.lead-story-img-wrap {
  position: relative;
  margin-bottom: var(--space-lg);
  overflow: hidden;
}

.lead-story-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.05);
  transition: filter 0.5s ease;
}

.lead-story-img-wrap:hover .lead-story-img {
  filter: grayscale(0) contrast(1.1);
}

.img-credit {
  position: absolute;
  bottom: 0;
  right: 0;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: var(--cream);
  background: rgba(0, 0, 0, 0.6);
  padding: 0.2em 0.6em;
}

.lead-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

.lead-byline {
  display: flex;
  gap: var(--space-md);
  align-items: baseline;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--ink-faint);
}

.byline-author {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.byline-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.lead-body {
  margin-bottom: var(--space-md);
  color: var(--ink-primary);
}

/* Drop cap */
.dropcap::first-letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.8em;
  float: left;
  line-height: 0.8;
  margin-right: 0.08em;
  margin-top: 0.05em;
  color: var(--gold);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.lead-body em {
  color: var(--gold-dim);
}

.lead-continue {
  margin-top: var(--space-lg);
}

.continue-link {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 2px;
  transition: border-color 0.3s, color 0.3s;
}

.continue-link:hover {
  color: var(--cream);
  border-color: var(--cream);
}

/* ─── SIDEBAR ─── */
.sidebar-section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--gold-dim);
  display: inline-block;
}

.sidebar-article {
  margin-bottom: var(--space-lg);
}

.sidebar-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--cream);
  margin-bottom: var(--space-sm);
}

.sidebar-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-primary);
  margin-bottom: var(--space-sm);
}

.sidebar-body em {
  color: var(--gold-dim);
}

.sidebar-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--ink-faint), transparent);
  margin: var(--space-lg) 0;
}

/* Frank Talk quotes in sidebar */
.frank-quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-primary);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--ink-faint);
  position: relative;
  padding-left: var(--space-lg);
}

.frank-quote::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: 0.3em;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-style: normal;
  color: var(--gold-dim);
  line-height: 1;
}

.frank-quote:last-child {
  border-bottom: none;
}

/* ═══════════════════════════════════════════════════════
   SNAPSHOTS — Polaroid Gallery
   ═══════════════════════════════════════════════════════ */
.snapshots-section {
  padding: var(--space-lg) 0 var(--space-2xl);
}

.snapshots-scroll {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  padding: var(--space-lg) var(--space-md);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-faint) transparent;
}

.snapshots-scroll::-webkit-scrollbar {
  height: 6px;
}

.snapshots-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.snapshots-scroll::-webkit-scrollbar-thumb {
  background: var(--ink-faint);
  border-radius: 3px;
}

.polaroid {
  flex: 0 0 280px;
  scroll-snap-align: center;
  transform: rotate(var(--rotate, 0deg));
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: default;
}

.polaroid:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.02);
  z-index: 2;
}

.polaroid-frame {
  background: var(--polaroid-white);
  padding: 12px 12px 0 12px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 0, 0, 0.1);
}

.polaroid-frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.85);
}

.polaroid-caption {
  font-family: var(--font-handwrite);
  font-size: 1.1rem;
  line-height: 1.3;
  color: #2a2520;
  background: var(--polaroid-white);
  padding: 14px 12px 16px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* ═══════════════════════════════════════════════════════
   LOWER GRID (Home Dirt + More Dispatches)
   ═══════════════════════════════════════════════════════ */
.lower-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .lower-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lower-col-right {
    border-left: 1px solid var(--ink-faint);
    padding-left: var(--space-xl);
  }
}

.story-card {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--ink-faint);
}

.story-card:last-child {
  border-bottom: none;
}

.story-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.25;
  color: var(--cream);
  margin-bottom: var(--space-xs);
  transition: color 0.3s;
}

.story-card:hover .story-headline {
  color: var(--gold);
}

.story-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.story-excerpt {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-primary);
  margin-bottom: var(--space-sm);
}

.story-excerpt em {
  color: var(--gold-dim);
}

.read-more {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-dim);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.read-more:hover {
  color: var(--gold);
}

/* ═══════════════════════════════════════════════════════
   FRANK TALK — Full Section
   ═══════════════════════════════════════════════════════ */
.frank-talk-full {
  padding-bottom: var(--space-2xl);
}

.frank-talk-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 600px) {
  .frank-talk-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .frank-talk-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.frank-quote-full {
  background: var(--bg-card);
  border: 1px solid var(--ink-faint);
  padding: var(--space-lg);
  position: relative;
  transition: border-color 0.4s ease, transform 0.4s ease;
}

.frank-quote-full:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}

.frank-quote-full::before {
  content: '\201C';
  position: absolute;
  top: 8px;
  left: 14px;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--ink-faint);
  pointer-events: none;
}

.frank-quote-full p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-primary);
  position: relative;
  z-index: 1;
}

.frank-quote-full p em {
  font-style: normal;
  color: var(--gold-dim);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg-surface);
  border-top: 3px solid var(--gold-dim);
  padding: var(--space-2xl) var(--content-padding) var(--space-xl);
  margin-top: var(--space-xl);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-rule {
  display: none; /* top border handles this */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: var(--space-md);
}

.footer-bio {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-secondary);
  margin-bottom: var(--space-sm);
}

.footer-bio em {
  color: var(--gold-dim);
}

.footer-bio strong {
  color: var(--gold);
  font-weight: 700;
}

.footer-subheading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.footer-nav li {
  margin-bottom: var(--space-sm);
}

.footer-nav a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink-secondary);
  transition: color 0.3s, padding-left 0.3s;
}

.footer-nav a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-contact-line {
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.footer-contact-line a {
  color: var(--ink-secondary);
}

.footer-contact-line a:hover {
  color: var(--gold);
}

.footer-location {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  margin-top: var(--space-md);
}

.footer-bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--ink-faint);
  text-align: center;
}

.colophon {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
  line-height: 1.8;
}

.colophon-small {
  font-size: 0.65rem;
  color: var(--ink-faint);
}

/* ═══════════════════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 80;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--ink-faint);
  color: var(--gold);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.3s;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: var(--gold);
  background: var(--bg-elevated);
}

/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.4s; }

/* Masthead entrance */
.masthead-title {
  animation: mastheadIn 1.2s ease-out;
}

@keyframes mastheadIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    letter-spacing: 0.1em;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    letter-spacing: -0.01em;
  }
}

.masthead-author {
  animation: fadeSlideUp 0.8s ease-out 0.3s both;
}

.masthead-tagline {
  animation: fadeSlideUp 0.8s ease-out 0.5s both;
}

.dateline {
  animation: fadeSlideUp 0.8s ease-out 0.7s both;
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — Mobile
   ═══════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
    position: absolute;
    left: var(--content-padding);
  }

  .nav-inner {
    position: relative;
    justify-content: center;
  }

  .nav-account {
    position: absolute;
    right: var(--content-padding);
    top: 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 9, 16, 0.97);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-xl);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 90;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 1.1rem;
    letter-spacing: 0.25em;
  }

  .nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
  }

  .nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
  }

  /* Dateline wraps more */
  .dateline {
    font-size: 0.6rem;
  }

  /* Polaroids smaller */
  .polaroid {
    flex: 0 0 240px;
  }

  /* Snapshots section full bleed */
  .snapshots-section {
    margin-left: calc(-1 * var(--content-padding));
    margin-right: calc(-1 * var(--content-padding));
  }

  .snapshots-section .section-rule {
    padding-left: var(--content-padding);
    padding-right: var(--content-padding);
  }

  /* Breaking banner stacks */
  .breaking-inner {
    flex-wrap: wrap;
  }

  .breaking-label {
    width: 100%;
    text-align: center;
    margin-bottom: var(--space-xs);
  }
}

/* ═══════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════ */
@media print {
  .grain,
  .main-nav,
  .breaking-banner,
  .back-to-top {
    display: none !important;
  }

  body::after {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .masthead-title {
    color: black;
    text-shadow: none;
  }

  a {
    color: black;
    text-decoration: underline;
  }
}

/* ═══════════════════════════════════════════════════════
   SELECTION STYLES
   ═══════════════════════════════════════════════════════ */
::selection {
  background: var(--gold);
  color: var(--bg-deep);
}

::-moz-selection {
  background: var(--gold);
  color: var(--bg-deep);
}

/* ═══════════════════════════════════════════════════════
   FOCUS STYLES (Accessibility)
   ═══════════════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════
   SINGLE POST PAGE
   ═══════════════════════════════════════════════════════ */
.post-single {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl) 0 var(--space-2xl);
}

.post-single-header {
  margin-bottom: var(--space-xl);
}

.post-category-label {
  display: inline-block;
  margin-bottom: var(--space-md);
}

.post-category-label a {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.3em 0.8em;
  border: 1px solid var(--gold-dim);
}

.post-category-label a:hover {
  background: var(--gold);
  color: var(--bg-deep);
}

.post-single-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: var(--space-md);
}

.post-image-caption {
  font-family: var(--font-handwrite);
  font-size: 1rem;
  color: var(--ink-secondary);
  padding: var(--space-sm) 0;
  font-style: italic;
}

.post-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-primary);
}

.post-body p {
  margin-bottom: var(--space-md);
}

.post-body h2, .post-body h3 {
  font-family: var(--font-display);
  color: var(--cream);
  margin: var(--space-xl) 0 var(--space-md);
}

.post-body blockquote {
  border-left: 3px solid var(--gold-dim);
  padding-left: var(--space-lg);
  margin: var(--space-lg) 0;
  font-style: italic;
  color: var(--ink-secondary);
}

.post-body img {
  max-width: 100%;
  margin: var(--space-lg) 0;
}

.post-body figure.article-inline-fig {
  margin: var(--space-xl) 0;
  text-align: center;
}

.post-body figure.article-inline-fig img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.post-body figure.article-inline-fig figcaption {
  font-size: 0.82rem;
  color: var(--ink-secondary);
  font-style: italic;
  margin-top: 0.5rem;
  line-height: 1.5;
}

.post-body a {
  color: var(--gold);
  border-bottom: 1px solid var(--gold-dim);
}

.post-body em {
  color: var(--gold-dim);
}

.post-footer {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--ink-faint);
}

/* ═══════════════════════════════════════════════════════
   GALLERY & LIGHTBOX
   ═══════════════════════════════════════════════════════ */
.post-gallery {
  margin-top: var(--space-2xl);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
}

.gallery-grid .polaroid {
  flex: none;
  cursor: pointer;
}

.gallery-count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink-muted);
  display: block;
  text-align: center;
  margin-top: var(--space-xs);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5, 4, 8, 0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-caption {
  font-family: var(--font-handwrite);
  font-size: 1.2rem;
  color: var(--ink-primary);
  margin-top: var(--space-md);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--cream);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--cream);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  cursor: pointer;
  padding: 1rem;
  z-index: 10001;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(201, 168, 76, 0.3);
}

/* ═══════════════════════════════════════════════════════
   CATEGORY PAGE
   ═══════════════════════════════════════════════════════ */
.category-page {
  padding-bottom: var(--space-2xl);
}

.category-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .category-list {
    grid-template-columns: 1fr 1fr;
  }
}

.story-card-img {
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.story-card-img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.05);
  transition: filter 0.4s, transform 0.4s;
}

.story-card:hover .story-card-img img {
  filter: grayscale(0) contrast(1.1);
  transform: scale(1.02);
}

.story-headline a {
  color: inherit;
  text-decoration: none;
}

.snapshots-grid-page {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-xl);
  padding: var(--space-lg) 0;
}

.snapshots-grid-page .polaroid {
  flex: none;
}

.polaroid a {
  text-decoration: none;
  color: inherit;
}

/* Pagination (front-end) */
.pagination-front {
  display: flex;
  gap: 0.3rem;
  justify-content: center;
  margin: var(--space-2xl) 0;
}

.pagination-front .page-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--ink-faint);
  color: var(--ink-secondary);
  transition: all 0.2s;
}

.pagination-front .page-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.pagination-front .page-link.active {
  background: var(--gold);
  color: var(--bg-deep);
  border-color: var(--gold);
}

/* ─────────────────────────────
   ACCOUNT + AUTH PAGES
   ───────────────────────────── */
.nav-account {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-left: auto;
}

.nav-user {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

.nav-role {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.15rem 0.4rem;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  background: var(--bg-card);
  color: var(--gold);
  border: 1px solid var(--ink-faint);
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  padding: 0.4rem 0.6rem;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--gold);
}

.nav-link-ghost {
  border: 1px solid var(--ink-faint);
  background: rgba(255, 255, 255, 0.03);
}

.auth-page {
  display: flex;
  justify-content: center;
  padding: 4rem var(--content-padding);
}

.auth-card {
  width: min(560px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--ink-faint);
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.auth-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--cream);
  margin-bottom: 0.3rem;
}

.auth-subtitle {
  color: var(--ink-secondary);
  margin-bottom: 1.5rem;
}

.auth-form label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}

.auth-form input,
.auth-form textarea {
  width: 100%;
  margin-bottom: 1.1rem;
  padding: 0.8rem;
  background: var(--bg-deep);
  border: 1px solid var(--ink-faint);
  color: var(--ink-primary);
  font-family: var(--font-mono);
}

.auth-form input:focus,
.auth-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.btn-primary,
.btn-ghost {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 0.8rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-deep);
}

.btn-primary:hover {
  background: #d4b85c;
  color: var(--bg-deep);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--ink-faint);
  color: var(--ink-secondary);
}

.btn-ghost:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.auth-alert {
  border: 1px solid var(--red);
  background: rgba(160, 58, 46, 0.2);
  color: var(--red-bright);
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
}

.auth-alert.success {
  border-color: #4a8c5c;
  color: #8ed1a0;
  background: rgba(74, 140, 92, 0.2);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-transform: uppercase;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  margin: 1.2rem 0;
}

.auth-divider span {
  padding: 0 0.6rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ink-faint);
}

.auth-footer {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--ink-secondary);
}

/* ─────────────────────────────
   POST SHARE
   ───────────────────────────── */
.post-share {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.post-share-label {
  color: var(--gold);
}

/* ─────────────────────────────
   COMMENTS
   ───────────────────────────── */
.comments-section {
  margin-top: 3rem;
  padding-bottom: 3rem;
}

.comment-note {
  color: var(--ink-secondary);
  margin-bottom: 1rem;
}

.comment-form textarea {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--ink-faint);
  color: var(--ink-primary);
  padding: 0.9rem;
  margin-bottom: 0.8rem;
  font-family: var(--font-body);
}

.comment-login {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.comment-list {
  margin-top: 2rem;
}

.comment {
  border-bottom: 1px solid var(--ink-faint);
  padding: 1.2rem 0;
}

.comment-inner {
  display: grid;
  gap: 0.6rem;
}

.comment-meta {
  display: flex;
  gap: 0.8rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
}

.comment-author {
  color: var(--gold);
}

.comment-pending {
  color: var(--red-bright);
}

.comment-text {
  color: var(--ink-primary);
}

.comment-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.comment-react {
  color: var(--ink-secondary);
  border: 1px solid var(--ink-faint);
  padding: 0.3rem 0.6rem;
}

.comment-react.active {
  border-color: var(--gold);
  color: var(--gold);
}

.comment-react.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.comment-reply {
  color: var(--ink-secondary);
}

.comment-depth-note {
  color: var(--ink-faint);
}

.comment-reply-form {
  display: none;
  margin-top: 0.6rem;
}

.comment-reply-form.open {
  display: block;
}

.comment-reply-form textarea {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--ink-faint);
  color: var(--ink-primary);
  padding: 0.7rem;
  margin-bottom: 0.6rem;
}

.comment-children {
  margin-left: 1.5rem;
  border-left: 1px solid var(--ink-faint);
  padding-left: 1.5rem;
}

.comment-more {
  margin-top: 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.hidden-reply {
  display: none;
}

.comment-empty {
  margin-top: 1.5rem;
  color: var(--ink-secondary);
}

/* ─── FRANK TALK THUMBNAILS ─── */
.frank-quote-full.has-thumb,
.frank-quote.has-thumb {
  overflow: hidden;
}

.frank-quote-full .frank-thumb {
  float: left;
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin: 0.15rem 1rem 0.5rem 0;
  border: 2px solid var(--gold);
  filter: grayscale(30%) sepia(20%);
  display: block;
}

.frank-quote .frank-thumb {
  float: left;
  width: 52px;
  height: 52px;
  object-fit: cover;
  margin: 0.1rem 0.75rem 0.25rem 0;
  border: 1px solid var(--gold-dim);
  filter: grayscale(30%) sepia(20%);
  display: block;
}

.frank-quote-full.has-thumb::after,
.frank-quote.has-thumb::after {
  content: '';
  display: table;
  clear: both;
}
