:root {
  --paper: #f7f5f0;
  --surface: #fffefa;
  --ink: #151515;
  --muted: #626262;
  --line: #d9d5cc;
  --navy: #17324d;
  --navy-dark: #10263a;
  --red: #a61b1b;
  --red-soft: #f4e8e5;
  --max: 1180px;
  --reading: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; }
.container { width: calc(100% - 32px); max-width: var(--max); margin-inline: auto; }

.header { position: sticky; top: 0; z-index: 20; background: var(--surface); border-top: 4px solid var(--red); border-bottom: 1px solid var(--ink); }
.nav { min-height: 60px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; color: var(--surface); background: var(--navy); }
.brand-mark svg { width: 17px; height: 17px; }
.nav-spacer { flex: 1; }
.menu-toggle { width: 44px; height: 44px; padding: 11px; border: 1px solid var(--line); background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; color: var(--ink); }
.menu-toggle span { display: block; width: 20px; height: 2px; background: currentColor; transition: transform .18s ease, opacity .18s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-links { display: none; position: absolute; top: 61px; left: 0; right: 0; padding: 8px 16px 18px; background: var(--surface); border-bottom: 1px solid var(--ink); flex-direction: column; }
.nav-links.is-open { display: flex; }
.nav-links a { min-height: 46px; display: flex; align-items: center; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.nav-links a:last-child { border-bottom: 0; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; }
.eyebrow { color: var(--red); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.chip, .badge { display: inline-flex; align-items: center; border: 1px solid var(--navy); padding: 5px 8px; color: var(--navy); background: transparent; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

.hero { padding: 34px 0 20px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; }
.hero h1 { max-width: 760px; margin: 10px 0 16px; font-size: clamp(42px, 14vw, 64px); line-height: .94; letter-spacing: -.055em; }
.gradient-text { color: var(--red); }
.hero-copy { max-width: 820px; margin-bottom: 0; color: #454545; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.65; }
.searchbar { margin-top: 24px; display: flex; min-height: 48px; max-width: 640px; border: 1px solid var(--ink); background: var(--surface); }
.searchbar svg { width: 18px; margin-left: 13px; color: var(--muted); align-self: center; }
.searchbar input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 10px 12px; color: var(--ink); background: transparent; }
.searchbar button, .button { min-height: 46px; border: 0; padding: 10px 17px; background: var(--navy); color: white; cursor: pointer; font-weight: 700; }
.searchbar button:hover, .button:hover { background: var(--navy-dark); }

.section { padding: 30px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding-bottom: 9px; border-bottom: 2px solid var(--ink); }
.section-title { margin: 0; font-size: 28px; line-height: 1.05; letter-spacing: -.035em; }
.section-sub { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.featured { display: grid; border-top: 4px solid var(--navy); background: var(--surface); }
.featured-art { min-height: 240px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; color: white; background: var(--navy); }
.featured-kicker { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.featured-art h2 { max-width: 720px; margin: 26px 0 0; font-size: 32px; line-height: 1.05; letter-spacing: -.04em; }
.featured-side { padding: 20px 0 0; }
.featured-side p { margin: 15px 0 18px; color: #454545; }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.story-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #9c9c9c; }
.read-link { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 3px; border-bottom: 2px solid var(--red); color: var(--navy); font-size: 14px; font-weight: 800; }

.main-grid { display: grid; gap: 30px; }
.story-list { display: grid; }
.story-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); background: transparent; }
.story-card:first-child { padding-top: 0; }
.story-art { min-height: 92px; padding: 9px; display: flex; align-items: flex-end; color: white; background: var(--navy); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.story-art[data-category="Safety"] { background: #7c2328; }
.story-art[data-category="Trends"] { background: #735126; }
.story-art[data-category="Research"] { background: #26615b; }
.story-art[data-category="Dating Tech"] { background: #275781; }
.story-card h3 { margin: 5px 0 6px; font-size: 18px; line-height: 1.18; letter-spacing: -.02em; }
.story-card h3 a:hover { color: var(--red); }
.story-card p { display: none; color: var(--muted); font-size: 14px; margin: 0; }
.sidebar { display: grid; gap: 16px; }
.side-card { border-top: 3px solid var(--ink); padding: 14px 0; }
.side-card h3 { margin-bottom: 12px; font-family: Arial, Helvetica, sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.source-list { display: grid; gap: 8px; }
.source-row { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 13px; }
.source-row span:last-child { color: var(--muted); }
.topic-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.method-box { padding: 24px; background: var(--navy); color: white; }
.method-box h2 { margin-bottom: 8px; font-size: 28px; }
.method-box p { max-width: 700px; margin: 0 0 18px; color: #d8e0e7; }
.method-box .button { background: white; color: var(--navy); }
.home-guide { padding-top: 8px; }
.guide-panel { border-top: 4px solid var(--red); padding: 24px 0 0; display: grid; gap: 18px; }
.guide-panel h2 { margin: 9px 0 0; font-size: 27px; line-height: 1.12; }
.guide-copy p { margin-bottom: 16px; color: #404040; font-family: Georgia, "Times New Roman", serif; font-size: 16px; line-height: 1.72; }
.guide-copy a { color: var(--navy); font-family: Arial, Helvetica, sans-serif; font-weight: 700; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.footer { margin-top: 34px; padding: 24px 0 36px; border-top: 1px solid var(--ink); color: var(--muted); font-size: 12px; }
.footer-row, .footer-links { display: flex; gap: 16px; }
.footer-row { align-items: flex-start; flex-direction: column; }

.article-shell { max-width: var(--reading); margin: 0 auto; padding: 34px 0 16px; }
.breadcrumb { margin-bottom: 18px; color: var(--muted); font-size: 12px; }
.article-shell h1 { margin: 12px 0 16px; font-size: clamp(38px, 11vw, 58px); line-height: 1.02; letter-spacing: -.045em; }
.article-deck { margin: 24px 0; padding: 16px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); color: #444; font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.55; }
.article-prose { margin: 28px 0; }
.article-prose p, .article-section p, .article-copy p { margin: 0 0 20px; color: #292929; font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.78; }
.article-section { margin: 28px 0; }
.article-section h2 { font-size: 23px; }
.article-rule { height: 1px; margin: 26px 0; background: var(--line); }
.source-section { margin-top: 30px; }
.sources { display: grid; }
.source-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 15px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.source-card strong, .source-card span { display: block; }
.source-card span { color: var(--muted); font-size: 12px; }
.source-card a { color: var(--navy); font-size: 13px; font-weight: 800; white-space: nowrap; }
.article-nav { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.article-nav a { min-width: 0; padding: 16px 12px 18px 0; display: flex; flex-direction: column; gap: 5px; }
.article-nav a + a { padding-right: 0; padding-left: 12px; border-left: 1px solid var(--line); text-align: right; align-items: flex-end; }
.article-nav-label { color: var(--red); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.article-nav-title { font-family: Georgia, "Times New Roman", serif; font-size: 14px; line-height: 1.3; }
.article-nav a:hover .article-nav-title { color: var(--red); }
.category-hero { padding: 34px 0 10px; }
.category-hero h1, .category-hero .section-title { margin: 8px 0; font-size: 40px; }
.empty { display: none; padding: 26px 0; border-bottom: 1px solid var(--line); text-align: center; color: var(--muted); }

:focus-visible { outline: 3px solid #e5a329; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

@media (min-width: 700px) {
  .container { width: calc(100% - 48px); }
  .nav { min-height: 66px; }
  .brand { font-size: 21px; }
  .brand-mark { width: 32px; height: 32px; }
  .nav-links { top: 67px; padding-inline: 24px; }
  .hero { padding: 46px 0 28px; }
  .hero h1 { font-size: 68px; }
  .hero-copy { font-size: 18px; }
  .section { padding: 38px 0; }
  .featured { grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); }
  .featured-art { min-height: 330px; padding: 28px; }
  .featured-art h2 { font-size: 40px; }
  .featured-side { padding: 28px; }
  .story-card { grid-template-columns: 130px minmax(0, 1fr); gap: 18px; }
  .story-art { min-height: 116px; padding: 12px; font-size: 10px; }
  .story-card h3 { font-size: 21px; }
  .story-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .guide-panel { grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 42px; }
  .footer-row { justify-content: space-between; align-items: center; flex-direction: row; }
  .article-shell { padding-top: 50px; }
  .article-nav a { padding: 20px 22px 22px 0; }
  .article-nav a + a { padding-left: 22px; }
  .article-nav-title { font-size: 16px; }
}

@media (min-width: 980px) {
  .header { position: static; }
  .nav { min-height: 76px; }
  .menu-toggle { display: none; }
  .nav-links { position: static; display: flex; padding: 0; border: 0; background: transparent; flex-direction: row; gap: 20px; }
  .nav-links a { min-height: auto; border: 0; font-size: 13px; }
  .nav-links a:hover { color: var(--red); }
  .hero { padding: 56px 0 32px; }
  .hero h1 { font-size: 76px; }
  .main-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 42px; align-items: start; }
  .sidebar { position: sticky; top: 24px; }
  .story-card { grid-template-columns: 150px minmax(0, 1fr); padding: 18px 0; }
  .story-card h3 { font-size: 23px; }
}
