/* Break News — modern rebuild */
:root {
  --ink: #14161a;
  --ink-soft: #4a4e57;
  --paper: #ffffff;
  --paper-soft: #f5f6f8;
  --line: #e4e6ea;
  --accent: #d1242f;
  --accent-dark: #a51d26;
  --navy: #0f1420;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(20, 22, 26, 0.06);
  --shadow-lg: 0 12px 32px rgba(20, 22, 26, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .5em;
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; }
.logo span { color: var(--accent); }
.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a { font-size: .92rem; font-weight: 600; color: var(--ink-soft); transition: color .15s; }
.main-nav a:hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  .main-nav {
    position: fixed; inset: 72px 0 0 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; padding: 24px;
    gap: 4px; transform: translateX(100%); transition: transform .25s ease;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { width: 100%; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
}

/* Hero */
.hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, var(--paper-soft), var(--paper));
}
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.hero-main { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-main img { width: 100%; height: 420px; object-fit: cover; }
.hero-main .hero-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 28px 24px;
  background: linear-gradient(0deg, rgba(0,0,0,.82), rgba(0,0,0,0));
  color: #fff;
}
.hero-caption h1 { font-size: 1.9rem; color: #fff; margin-bottom: .3em; }
.hero-caption p { color: rgba(255,255,255,.85); margin: 0; max-width: 60ch; }
.hero-side { display: flex; flex-direction: column; gap: 16px; }
.hero-side-card { display: flex; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.hero-side-card:last-child { border-bottom: none; }
.hero-side-card img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.hero-side-card h3 { font-size: .98rem; margin: .2em 0 0; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main img { height: 280px; }
}

/* Card grid */
.section { padding: 48px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.section-head h2 { font-size: 1.6rem; }
.section-head a { font-size: .85rem; font-weight: 700; color: var(--accent); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card img { width: 100%; height: 180px; object-fit: cover; background: var(--paper-soft); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 1.08rem; }
.card-body p { font-size: .9rem; color: var(--ink-soft); margin: 0; flex: 1; }
.card-meta { font-size: .78rem; color: #8a8f99; display: flex; gap: 8px; align-items: center; }

@media (max-width: 940px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.card-grid.compact { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .card-grid.compact { grid-template-columns: repeat(2, 1fr); } }

/* Category pill nav */
.category-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.category-pills a {
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line);
  font-size: .84rem; font-weight: 600; color: var(--ink-soft);
}
.category-pills a:hover, .category-pills a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Article page */
.article-header { padding: 40px 0 24px; border-bottom: 1px solid var(--line); }
.article-header .eyebrow { margin-bottom: 12px; display: inline-block; }
.article-header h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); max-width: 22ch; }
.article-meta { display: flex; gap: 14px; align-items: center; color: var(--ink-soft); font-size: .9rem; margin-top: 16px; flex-wrap: wrap; }
.article-meta .author-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-soft); }
.article-hero { margin: 28px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.article-hero img { width: 100%; max-height: 520px; object-fit: cover; }

.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; padding: 8px 0 56px; align-items: start; }
.article-body { font-size: 1.08rem; color: #22252b; max-width: 72ch; }
.article-body p { margin: 0 0 1.3em; }
.article-body h2 { font-size: 1.4rem; margin-top: 1.6em; }
.article-body h3 { font-size: 1.18rem; margin-top: 1.4em; }
.article-body img { border-radius: 8px; margin: 1.6em 0; }
.article-body a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }

.sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 28px; }
.sidebar-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.sidebar-box h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: 14px; }
.sidebar-link-list { display: flex; flex-direction: column; gap: 12px; }
.sidebar-link-list a { font-size: .92rem; font-weight: 600; line-height: 1.35; }
.sidebar-link-list a:hover { color: var(--accent); }

@media (max-width: 940px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

/* Forms */
.form-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--paper-soft); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: .95rem; background: #fff;
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; border: none; padding: 13px 26px;
  border-radius: 8px; font-weight: 700; font-size: .95rem; cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--accent-dark); }
.form-msg { font-size: .9rem; margin-top: 12px; display: none; padding: 10px 14px; border-radius: 8px; }
.form-msg.success { display: block; background: #e6f6ec; color: #1a7a3d; }
.form-msg.error { display: block; background: #fdeaea; color: var(--accent-dark); }

/* Newsletter */
.newsletter {
  background: var(--navy); color: #fff; border-radius: 16px; padding: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.newsletter h3 { color: #fff; font-size: 1.4rem; margin-bottom: .2em; }
.newsletter p { color: rgba(255,255,255,.7); margin: 0; }
.newsletter form { display: flex; gap: 10px; flex: 1; max-width: 420px; min-width: 260px; }
.newsletter input { flex: 1; padding: 12px 14px; border-radius: 8px; border: none; font-family: inherit; }
.newsletter .btn { flex-shrink: 0; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); margin-top: 40px; }
.footer-top { padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-grid a { display: block; color: rgba(255,255,255,.65); font-size: .9rem; padding: 6px 0; }
.footer-grid a:hover { color: #fff; }
.footer-logo { font-family: var(--font-display); font-size: 1.4rem; color: #fff; margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: .82rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Misc pages */
.page-header { padding: 48px 0 20px; text-align: center; }
.page-header h1 { font-size: 2.2rem; }
.page-header p { color: var(--ink-soft); max-width: 60ch; margin: 10px auto 0; }
.prose { max-width: 72ch; margin: 0 auto; font-size: 1.05rem; }
.prose p { margin-bottom: 1.2em; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.sitemap-list { columns: 3; column-gap: 32px; }
.sitemap-list a { display: block; padding: 6px 0; font-size: .9rem; break-inside: avoid; }
@media (max-width: 860px) { .sitemap-list { columns: 1; } }

.error-page { text-align: center; padding: 100px 0; }
.error-page .code { font-family: var(--font-display); font-size: 6rem; color: var(--accent); font-weight: 700; }

.breadcrumb { font-size: .82rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--accent); }
