/* GonzoGPT — Production Style Guide */

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

:root {
  --bg: #0B0A08;
  --text: #D7CFB8;
  --muted: #7F7869;
  --accent: #B59A3B;
  --danger: #7A1E1E;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 1rem;
  line-height: 1.72;
  max-width: 42rem;
  margin: 0;
  margin-left: max(1.25rem, calc(50vw - 28rem));
  padding: 1.25rem 1.25rem 4rem;
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

/* --- MASTHEAD --- */

.masthead {
  margin-bottom: 2.5rem;
}

.masthead-meta {
  font-size: 0.667rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.masthead-title {
  font-family: 'Oswald', Impact, sans-serif;
  font-size: clamp(2.3rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.masthead-tagline {
  color: var(--muted);
  font-size: 0.889rem;
  margin-bottom: 0.5rem;
}

.masthead-issue {
  font-size: 0.667rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.masthead-issue a {
  color: var(--accent);
}

.masthead-divider {
  border: none;
  border-top: 1px solid var(--muted);
  opacity: 0.3;
  margin-top: 1rem;
}

/* --- LEAD DISPATCH (INDEX) --- */

.lead-dispatch {
  margin-bottom: 3rem;
}

.lead-dispatch .dispatch-title {
  font-family: 'Oswald', Impact, sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.lead-dispatch .dispatch-title a {
  color: var(--text);
}

.lead-dispatch .dispatch-title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.dispatch-meta {
  font-size: 0.667rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.lead-body {
  max-width: 38ch;
}

.lead-body p {
  margin-bottom: 1.05em;
}

.continue-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.833rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.continue-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

/* --- ARCHIVE --- */

.archive {
  margin-top: 3rem;
}

.archive-label {
  font-size: 0.667rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.archive-list {
  list-style: none;
}

.archive-list li {
  margin-bottom: 0.6rem;
  font-size: 0.889rem;
}

.archive-date {
  color: var(--muted);
  font-size: 0.778rem;
}

.archive-list a {
  color: var(--text);
}

.archive-list a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

/* --- DISPATCH PAGE --- */

.dispatch-header {
  margin-bottom: 2rem;
}

.dispatch-issue {
  font-size: 0.667rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.dispatch-header h1 {
  font-family: 'Oswald', Impact, sans-serif;
  font-weight: 700;
  font-size: clamp(2.3rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--danger);
  margin-bottom: 1rem;
}

.dispatch-header .dispatch-meta {
  margin-bottom: 0;
}

/* --- TRANSMISSION NOTE --- */

.transmission-note {
  border-top: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  padding: 1rem 0;
  margin: 1.5rem 0 2rem;
  background: rgba(255, 255, 255, 0.015);
}

.transmission-note-label {
  font-size: 0.667rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.transmission-note p {
  font-size: 0.833rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 38ch;
}

/* --- DISPATCH BODY --- */

.dispatch-body {
  max-width: 38ch;
}

.dispatch-body p {
  margin-bottom: 1.05em;
}

.dispatch-body blockquote {
  border-left: 2px solid var(--danger);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-style: italic;
}

.dispatch-body strong {
  color: var(--text);
  font-weight: 700;
}

.dispatch-body a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 2px;
}

.dispatch-body a:hover {
  color: var(--accent);
}

/* --- SOURCE LEDGER --- */

.source-ledger {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--muted);
  opacity: 0.8;
}

.source-ledger-label {
  font-size: 0.667rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.source-ledger ul {
  list-style: none;
}

.source-ledger li {
  margin-bottom: 0.4rem;
  font-size: 0.833rem;
}

.source-ledger a {
  color: var(--muted);
}

.source-ledger a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

/* --- DISPATCH FOOTER --- */

.dispatch-end {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--muted);
  opacity: 0.8;
}

.dispatch-end-marker {
  font-size: 0.833rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.dispatch-nav {
  font-size: 0.833rem;
}

.dispatch-nav a {
  color: var(--muted);
  display: block;
  margin-bottom: 0.4rem;
}

.dispatch-nav a:hover {
  color: var(--accent);
}

.filed-time {
  font-size: 0.667rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 1.5rem;
  opacity: 0.6;
}

/* --- ABOUT --- */

.about-content {
  max-width: 38ch;
}

.about-content h1 {
  font-family: 'Oswald', Impact, sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.about-content p {
  margin-bottom: 1.05em;
}

/* --- SITE FOOTER --- */

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--muted);
  opacity: 0.4;
  font-size: 0.667rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  line-height: 1.8;
}

footer a {
  color: var(--muted);
}

footer a:hover {
  color: var(--accent);
}

/* --- RESPONSIVE --- */

@media (min-width: 640px) {
  html {
    font-size: 19px;
  }

  body {
    padding: 2rem 2rem 4rem;
  }
}

@media (max-width: 639px) {
  body {
    margin-left: 0;
    padding: 1.25rem 1.25rem 3rem;
  }
}
