/* ============================================================
   GELLHORN WIRE — Design system
   Editorial newswire aesthetic. Florida light, not synthwave.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Archivo:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&display=swap');

:root {
  /* Color */
  --paper: #F7F3E9;
  --ink: #14110D;
  --rust: #C74A3C;
  --rust-dim: #A83D31;
  --teal: #1B6F6C;
  --sand: #E8DCC4;
  --tan: #8B7355;
  --white: #FFFDF8;

  /* Type */
  --display: 'Fraunces', Georgia, serif;
  --mono-display: 'Archivo Black', 'Archivo', sans-serif;
  --body: 'Archivo', -apple-system, sans-serif;

  /* Layout */
  --max: 1180px;
  --gutter: 24px;
  --rule: 1px solid var(--ink);
  --rule-soft: 1px solid rgba(20,17,13,0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

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

.masthead {
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}

.masthead-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px var(--gutter) 14px;
  max-width: var(--max);
  margin: 0 auto;
  gap: 16px;
  flex-wrap: wrap;
}

.masthead-date {
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--tan);
  white-space: nowrap;
}

.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 38px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}

.wordmark span {
  color: var(--rust);
  font-style: italic;
  font-weight: 500;
}

.masthead-tag {
  font-family: var(--body);
  font-size: 12px;
  color: var(--tan);
  text-align: right;
  max-width: 220px;
  line-height: 1.4;
}

.masthead-nav {
  border-top: var(--rule-soft);
}

.masthead-nav ul {
  list-style: none;
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  overflow-x: auto;
}

.masthead-nav a {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  border-right: var(--rule-soft);
  transition: background 0.15s ease, color 0.15s ease;
}

.masthead-nav li:first-child a { padding-left: 0; }

.masthead-nav a:hover,
.masthead-nav a.active {
  color: var(--rust);
}

/* ---------- Hero ---------- */

.hero {
  border-bottom: var(--rule);
  padding: 48px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--rust);
  margin: 0 0 14px;
}

.hero-headline {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}

.hero-dek {
  font-size: 19px;
  line-height: 1.5;
  color: #3a3530;
  max-width: 52ch;
  margin: 0 0 24px;
}

.hero-meta {
  font-size: 13px;
  color: var(--tan);
  display: flex;
  gap: 18px;
}

.hero-side {
  border-left: var(--rule-soft);
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-side-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--tan);
  margin-bottom: 4px;
}

.hero-side-item {
  padding-bottom: 16px;
  border-bottom: var(--rule-soft);
}

.hero-side-item:last-child { border-bottom: none; padding-bottom: 0; }

.hero-side-item a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
  display: block;
}

.hero-side-item a:hover { color: var(--rust); }

/* ---------- Section headers ---------- */

.section {
  padding: 44px 0;
  border-bottom: var(--rule-soft);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
}

.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-style: italic;
  font-size: 26px;
  margin: 0;
}

.section-more {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--rust);
}

/* ---------- Article grid / cards ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.card { display: flex; flex-direction: column; }

.card-image {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--sand);
  border: var(--rule-soft);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tan);
  font-size: 12px;
  font-family: var(--body);
}

.card-kicker {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--rust); }

.card-dek {
  font-size: 14px;
  color: #4a453e;
  line-height: 1.5;
  margin: 0 0 10px;
}

.card-meta {
  font-size: 12px;
  color: var(--tan);
  margin-top: auto;
}

/* ---------- List rows (compact article list) ---------- */

.row-list { display: flex; flex-direction: column; }

.row-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: var(--rule-soft);
}

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

.row-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  color: var(--tan);
}

.row-title {
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.row-title:hover { color: var(--rust); }

.row-meta {
  font-size: 12px;
  color: var(--tan);
  white-space: nowrap;
}

/* ---------- Tool promo strip ---------- */

.tool-strip {
  background: var(--ink);
  color: var(--paper);
  padding: 40px 0;
}

.tool-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.tool-strip-text h3 {
  font-family: var(--display);
  font-weight: 600;
  font-style: italic;
  font-size: 26px;
  margin: 0 0 8px;
}

.tool-strip-text p {
  margin: 0;
  color: #C9C3B6;
  font-size: 14px;
  max-width: 48ch;
}

.btn {
  display: inline-block;
  background: var(--rust);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  padding: 13px 26px;
  text-decoration: none;
  border: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn:hover { background: var(--rust-dim); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--paper);
  color: var(--paper);
}

.btn-outline:hover { background: var(--paper); color: var(--ink); }

/* ---------- Newsletter strip ---------- */

.newsletter {
  background: var(--sand);
  border-top: var(--rule);
  border-bottom: var(--rule);
  padding: 36px 0;
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.newsletter-text h4 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 4px;
}

.newsletter-text p {
  margin: 0;
  font-size: 13px;
  color: var(--tan);
}

.newsletter-form {
  display: flex;
  gap: 0;
}

.newsletter-form input {
  font-family: var(--body);
  font-size: 14px;
  padding: 12px 16px;
  border: 2px solid var(--ink);
  border-right: none;
  background: var(--white);
  width: 240px;
  outline: none;
}

.newsletter-form button {
  font-family: var(--body);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  cursor: pointer;
}

.newsletter-form button:hover { background: var(--rust); border-color: var(--rust); }

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

.site-footer {
  padding: 48px 0 28px;
  border-top: 2px solid var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand .wordmark { font-size: 26px; }

.footer-brand p {
  font-size: 13px;
  color: var(--tan);
  max-width: 32ch;
  margin-top: 12px;
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--tan);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  text-decoration: none;
  font-size: 14px;
}

.footer-col a:hover { color: var(--rust); }

.footer-bottom {
  border-top: var(--rule-soft);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--tan);
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Article page ---------- */

.article-header {
  padding: 40px 0 32px;
  border-bottom: var(--rule);
  max-width: 760px;
  margin: 0 auto;
}

.article-kicker {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 14px;
  text-transform: none;
}

.article-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(32px, 4.5vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

.article-dek {
  font-size: 19px;
  color: #3a3530;
  line-height: 1.5;
  margin: 0 0 20px;
}

.article-byline {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 13px;
  color: var(--tan);
  padding-top: 16px;
  border-top: var(--rule-soft);
}

.article-body {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 0;
  font-size: 18px;
  line-height: 1.7;
}

.article-body p { margin: 0 0 24px; }

.article-body h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
  margin: 44px 0 18px;
}

.article-body h3 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 19px;
  margin: 32px 0 14px;
}

.article-body blockquote {
  border-left: 3px solid var(--rust);
  margin: 32px 0;
  padding-left: 22px;
  font-family: var(--display);
  font-style: italic;
  font-size: 21px;
  line-height: 1.5;
}

.article-body img {
  margin: 36px 0;
  border: var(--rule-soft);
}

.article-body figcaption {
  font-size: 13px;
  color: var(--tan);
  margin-top: 8px;
}

.article-body ul, .article-body ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.article-body li { margin-bottom: 10px; }

.article-tags {
  max-width: 700px;
  margin: 0 auto;
  padding-bottom: 40px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border: var(--rule-soft);
  text-decoration: none;
  color: var(--ink);
}

.tag:hover { border-color: var(--rust); color: var(--rust); }

/* ---------- Placeholder / commented-out block marker ---------- */

.stub {
  border: 2px dashed var(--tan);
  padding: 28px;
  text-align: center;
  color: var(--tan);
  font-size: 13px;
  font-family: var(--body);
  margin: 20px 0;
}

/* ---------- Utility ---------- */

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--rust);
}

.center { text-align: center; }

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

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-side { border-left: none; padding-left: 0; border-top: var(--rule-soft); padding-top: 24px; }
  .grid-3 { grid-template-columns: 1fr; gap: 28px; }
  .grid-2 { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .row-item { grid-template-columns: 40px 1fr; }
  .row-meta { grid-column: 2; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
  .newsletter-form input { width: 100%; }
  .newsletter-form { width: 100%; }
  .newsletter-form input { flex: 1; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .masthead-tag { display: none; }
  .article-body { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Visible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}
