@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #FFFFFF;
  --panel: #F4F7F4;
  --ink: #1E2A24;
  --ink-soft: #51655C;
  --gold: #C98A2B;
  --gold-deep: #9C6A1E;
  --teal: #2F6F62;
  --line: #DCE3DE;
  --max: 1100px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 .35em;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* header */
.site-header { border-bottom: 2px solid var(--ink); background: var(--bg); }
.masthead { text-align: center; padding: 30px 0 16px; }
.masthead .brand-text { font-family: 'Fraunces', serif; font-weight: 700; font-size: 2.2rem; letter-spacing: -0.01em; }
.masthead .brand-tag { display:block; font-size: .82rem; color: var(--ink-soft); margin-top: 2px; font-style: italic; }
.nav-strip { border-top: 1px solid var(--line); }
.nav-strip .wrap { display: flex; justify-content: center; gap: 32px; padding: 12px 0; }
.nav-strip a { font-size: .92rem; font-weight: 600; color: var(--ink-soft); padding-bottom: 3px; border-bottom: 2px solid transparent; }
.nav-strip a:hover, .nav-strip a.active { color: var(--teal); border-color: var(--gold); }

/* hero */
.hero { padding: 44px 0 36px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero .cat-tag { color: var(--teal); font-weight: 600; font-size: .88rem; }
.hero h1 { font-size: 2.7rem; max-width: 16ch; margin-top: 8px; }
.hero .dek { color: var(--ink-soft); font-size: 1.12rem; max-width: 48ch; font-family: 'Fraunces', serif; font-weight: 500; }
.hero .byline { font-size: .85rem; color: var(--ink-soft); margin-top: 10px; }
.hero-art { width: 100%; height: auto; }

/* stat strip - distinguishing device for data-driven solar reporting */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 36px 0; }
.stat-strip div { padding: 18px 20px; border-left: 1px solid var(--line); }
.stat-strip div:first-child { border-left: none; }
.stat-num { font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 600; color: var(--teal); display: block; }
.stat-label { font-size: .82rem; color: var(--ink-soft); }

/* sections & grid */
.section { padding: 42px 0; }
.section-head { display:flex; align-items:baseline; justify-content:space-between; border-bottom: 2px solid var(--ink); margin-bottom: 26px; padding-bottom: 10px; }
.section-head h2 { font-size: 1.35rem; }
.section-head a { font-size: .85rem; font-weight: 600; color: var(--teal); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-grid.two-col { grid-template-columns: repeat(2, 1fr); }
.card { display: flex; flex-direction: column; gap: 9px; }
.card-art { width: 100%; aspect-ratio: 16/10; border-radius: 6px; }
.card .cat { font-size: .78rem; font-weight: 600; color: var(--teal); }
.card h3 { font-size: 1.15rem; }
.card p.excerpt { color: var(--ink-soft); font-size: .93rem; margin: 0; font-family: 'Fraunces', serif; }
.card .meta { font-size: .78rem; color: var(--ink-soft); }

/* policy ticker - list with numbers since genuinely ranked/dated */
.brief-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.brief-list li { display: grid; grid-template-columns: 90px 1fr; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.brief-list .brief-date { font-size: .78rem; color: var(--ink-soft); padding-top: 3px; }
.brief-list h4 { margin: 0; font-size: 1rem; font-family: 'Fraunces', serif; font-weight: 600; }

/* newsletter */
.newsletter { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 34px; display:flex; align-items:center; justify-content:space-between; gap: 24px; flex-wrap: wrap; }
.newsletter h3 { font-size: 1.25rem; }
.newsletter p { color: var(--ink-soft); margin: 4px 0 0; }
.newsletter form { display: flex; gap: 10px; }
.newsletter input[type=email] { padding: 11px 14px; border-radius: 4px; border: 1px solid var(--line); font-family: inherit; min-width: 220px; }
.newsletter button { padding: 11px 18px; border-radius: 4px; border: none; background: var(--teal); color: #fff; font-weight: 600; cursor: pointer; }

/* footer */
.site-footer { border-top: 2px solid var(--ink); padding: 30px 0; margin-top: 20px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: var(--ink-soft); }

/* single post */
.post-head { max-width: 72ch; margin: 0 auto; padding: 46px 24px 0; text-align: center; }
.post-head .cat { color: var(--teal); font-weight: 600; font-size: .85rem; }
.post-head h1 { font-size: 2.3rem; margin-top: 10px; }
.post-body { max-width: 68ch; margin: 26px auto 0; padding: 0 24px 60px; font-size: 1.12rem; font-family: 'Fraunces', Georgia, serif; font-weight: 400; }
.post-body p { margin: 0 0 1.15em; }
.post-body h2 { margin-top: 1.4em; font-size: 1.5rem; font-family: 'Fraunces', serif; }

/* list/category */
.page-head { padding: 42px 0 18px; text-align: center; }
.page-head h1 { font-size: 2.1rem; }

@media (max-width: 880px) {
  .hero-grid, .post-grid, .stat-strip { grid-template-columns: 1fr; }
  .stat-strip div { border-left: none; border-top: 1px solid var(--line); }
  .stat-strip div:first-child { border-top: none; }
  .nav-strip .wrap { gap: 18px; flex-wrap: wrap; }
}
