:root {
  --ink: #14171c;
  --muted: #5b6370;
  --paper: #fbfaf7;
  --alt: #f1eee7;
  --line: #e2ddd2;
  --accent: #c8102e;
  --accent-dark: #a00c24;
  --dark: #12161d;
  --radius: 10px;
  --serif: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(251, 250, 247, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--serif); font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--accent); }

/* Hero */
.hero { padding: 88px 0 72px; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 600; color: var(--accent); margin: 0 0 8px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.75rem); font-weight: 800; letter-spacing: -0.02em; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 36ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.photo-placeholder { aspect-ratio: 4 / 5; border-radius: var(--radius); background: linear-gradient(135deg, var(--dark), #2b3340); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 4rem; font-weight: 800; }

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: background 0.15s, color 0.15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--dark); }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--alt); }
.section-dark { background: var(--dark); color: #e9ecf1; }
.section-dark .section-title { color: #fff; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.4rem); position: relative; padding-bottom: 12px; margin-bottom: 28px; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 4px; background: var(--accent); }
.center .section-title::after { left: 50%; transform: translateX(-50%); }
.subsection-title { font-size: 1.3rem; margin-top: 40px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.card h3 { font-size: 1.2rem; }
.card-meta { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 8px; }
.card-link { margin-top: auto; font-weight: 600; text-decoration: none; }
.media-placeholder { aspect-ratio: 16 / 9; background: var(--dark); color: #9aa3b2; border-radius: 6px; display: grid; place-items: center; margin-bottom: 16px; font-size: 0.9rem; }

/* Resume */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { padding: 0 0 20px 20px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.timeline-head span { color: var(--muted); font-size: 0.9rem; }
.timeline p { margin: 4px 0 0; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 32px; }
.tags li { background: var(--alt); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; font-size: 0.9rem; }

/* Contact */
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 28px; list-style: none; padding: 0; margin: 24px 0 0; }
.socials a { color: #e9ecf1; text-decoration: none; font-weight: 500; }
.socials a:hover { color: #fff; text-decoration: underline; }

/* Footer */
.site-footer { padding: 24px 0; font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); }

/* Placeholder marker: remove the class once real content is in */
.placeholder { background: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(200, 16, 46, 0.06) 6px 12px); outline: 1px dashed rgba(200, 16, 46, 0.35); outline-offset: 2px; }

@media (max-width: 760px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.85rem; }
  .hero { padding: 48px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { order: -1; max-width: 220px; }
  .section { padding: 56px 0; }
}
@media (max-width: 420px) {
  .brand { font-size: 1.05rem; }
  .nav-links { gap: 10px; }
}

/* Stats band */
.stats { background: var(--dark); color: #fff; padding: 32px 0; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { display: block; font-family: var(--serif); font-weight: 800; font-size: 2rem; color: #fff; }
.stat-label { display: block; font-size: 0.85rem; color: #aab2bf; }

.subsection-title.first { margin-top: 0; }
.section-intro { color: var(--muted); margin-top: -4px; }
.cards-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.more-link { margin: 20px 0 0; font-weight: 600; }
.more-link a { text-decoration: none; }
.timeline-place { font-size: 0.85rem; }
.bullets { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.bullets li { padding: 0; margin-bottom: 4px; }
.bullets li::before { display: none; }

@media (max-width: 760px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .cards-2 { grid-template-columns: 1fr; }
}

/* Top story spotlight */
.top-story { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 32px; margin-bottom: 48px; }
.top-story h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.top-story-embed { min-width: 0; }
.top-story-embed .twitter-tweet { margin: 0 auto !important; }
.top-story-embed blockquote { margin: 0; padding: 16px; border-left: 3px solid var(--line); }
@media (max-width: 760px) {
  .top-story { grid-template-columns: 1fr; padding: 20px; }
}
.top-story-embed blockquote + blockquote { margin-top: 16px; }

.top-story-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; margin-bottom: 20px; background: var(--alt); }

.headshot { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: var(--radius); }

/* Top story v2 */
.top-story { grid-template-columns: 1fr 1fr; align-items: stretch; padding: 0; overflow: hidden; gap: 0; }
.top-story .top-story-img { width: 100%; height: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: center; border-radius: 0; margin: 0; }
.top-story-text { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.top-story-text > p:not(.kicker):not(.card-meta):not(.x-links) { margin-top: 0; }
.top-story-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
@media (max-width: 900px) {
  .top-story { grid-template-columns: 1fr; }
  .top-story .top-story-img { height: auto; }
  .top-story-text { padding: 24px 20px; }
}
.top-story { align-items: stretch; }
.top-story .top-story-img { height: 100%; min-height: 320px; object-position: 10% center; }
@media (max-width: 900px) { .top-story .top-story-img { height: auto; min-height: 0; } }
.x-links { margin: 16px 0 0; font-size: 0.9rem; color: var(--muted); }
.x-links a { font-weight: 600; text-decoration: none; }
.x-links a:hover { text-decoration: underline; }
.top-story-text > p.x-links { margin-top: 20px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; }
.socials .icon { width: 18px; height: 18px; flex: none; }

/* Social media */
.tweet-text { font-size: 1.05rem; color: var(--ink); }
.tweet-stats { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; padding: 0; margin: 4px 0 20px; color: var(--muted); font-size: 0.9rem; }
.tweet-stats strong { color: var(--ink); font-family: var(--serif); font-size: 1.15rem; margin-right: 2px; }

.tweet-card { padding: 20px; }
.tweet-views { margin: 0 0 12px; color: var(--muted); font-size: 0.95rem; }
.tweet-views strong { font-family: var(--serif); font-size: 1.8rem; color: var(--accent); margin-right: 4px; }
.tweet-card blockquote.twitter-tweet { margin: 0; padding: 0; border: 0; }
.tweet-card .twitter-tweet-rendered { margin: 0 !important; }
.tweet-card blockquote.twitter-tweet { display: flex; flex-direction: column; flex: 1; }
.tweet-card .tweet-text { margin: 0 0 10px; font-size: 1.05rem; line-height: 1.55; color: var(--ink); }
.tweet-by { margin: 0 0 16px; font-size: 0.85rem; color: var(--muted); }
.tweet-likes strong { font-size: 1.3rem; color: var(--ink); margin-left: 6px; }
#social .cards { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { #social .cards { grid-template-columns: 1fr; } }

/* ===== Mobile polish ===== */
@media (max-width: 760px) {
  html { scroll-padding-top: 104px; }
  .nav { height: auto; flex-direction: column; align-items: stretch; padding-top: 10px; padding-bottom: 0; gap: 2px; }
  .brand { font-size: 1.15rem; text-align: center; }
  .nav-links { justify-content: space-between; gap: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { display: block; padding: 12px 8px; font-size: 0.9rem; white-space: nowrap; }
  .hero { padding: 32px 0 40px; }
  .hero-inner { gap: 24px; }
  .hero-photo { max-width: 200px; margin: 0 auto; }
  .hero-text { text-align: center; }
  .lede { font-size: 1.05rem; margin-left: auto; margin-right: auto; }
  .hero-cta { flex-direction: column; gap: 10px; }
  .hero-cta .btn { text-align: center; }
  .stats { padding: 24px 0; }
  .stats-inner { gap: 20px 12px; }
  .stat-num { font-size: 1.6rem; }
  .section { padding: 48px 0; }
  .section-title { margin-bottom: 22px; }
  .card { padding: 20px; }
  .card h3 { font-size: 1.1rem; }
  .cards-2 { grid-template-columns: 1fr; }
  .top-story .top-story-img { aspect-ratio: 3 / 2; height: auto; min-height: 0; }
  .top-story-actions .btn { width: 100%; text-align: center; }
  .card-link, .x-links a, .more-link a { display: inline-block; padding: 6px 0; }
  .timeline-head { flex-direction: column; gap: 0; }
  .socials { flex-direction: column; align-items: center; gap: 4px; }
  .socials a { padding: 10px 12px; }
  .btn-light { word-break: break-all; }
}
@media (max-width: 360px) {
  .container { padding: 0 16px; }
  .nav-links a { padding: 12px 6px; font-size: 0.85rem; }
  h1 { font-size: 2.3rem; }
}

/* Coverage highlights */
.highlights { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.highlight { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; }
.highlight strong { display: block; font-family: var(--serif); font-size: 1.05rem; line-height: 1.3; color: var(--ink); }
.highlight span { display: block; margin-top: 6px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* Whole story card is clickable */
.card:not(.tweet-card) { position: relative; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:not(.tweet-card) .card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card:not(.tweet-card):hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(20,23,28,.08); transform: translateY(-2px); }
.card:not(.tweet-card):focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Story card photos */
.card-img { display: block; width: calc(100% + 48px); max-width: none; margin: -24px -24px 18px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; background: var(--alt); }
@media (max-width: 760px) { .card-img { width: calc(100% + 40px); margin: -20px -20px 16px; } }

/* Whole top story tile is clickable; X links stay on top */
.top-story { position: relative; transition: box-shadow .15s, transform .15s; }
.top-story .top-story-actions .btn::after { content: ""; position: absolute; inset: 0; }
.top-story .x-links { position: relative; z-index: 1; }
.top-story:hover { box-shadow: 0 8px 22px rgba(20,23,28,.10); transform: translateY(-2px); }

/* Story category tags */
.story-tag { display: inline-block; align-self: flex-start; margin: 0 0 10px; padding: 3px 10px; border-radius: 999px; background: rgba(200,16,46,.08); color: var(--accent-dark); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.top-story .story-tag { margin-left: 8px; vertical-align: middle; }

/* Phones: story cards become compact rows (thumbnail, tag, date, headline) */
@media (max-width: 760px) {
  #work .cards { gap: 12px; }
  #work .cards .card { display: grid; grid-template-columns: 96px 1fr; column-gap: 14px; align-items: start; align-content: start; padding: 12px; }
  #work .cards .card-img { grid-column: 1; grid-row: 1 / span 4; width: 96px; height: 96px; aspect-ratio: 1; margin: 0; border-radius: 8px; }
  #work .cards .card > :not(.card-img) { grid-column: 2; }
  #work .cards .story-tag { margin: 0 0 6px; padding: 2px 8px; font-size: 0.65rem; justify-self: start; }
  #work .cards .card-meta { font-size: 0.7rem; margin: 0 0 4px; }
  #work .cards .card h3 { font-size: 1rem; line-height: 1.3; margin: 0; }
  #work .cards .card > p:not(.card-meta) { display: none; }
  #work .cards .card-link { height: 0; padding: 0; margin: 0; opacity: 0; overflow: visible; }
}
