:root {
  --ae-blue: #3098d8;
  --ae-blue-light: #38a0e0;
  --ae-blue-dark: #1f6fa5;
  --bg: #ffffff;
  --bg-soft: #f5f7f9;
  --bg-card: #ffffff;
  --text: #1c2530;
  --text-soft: #566573;
  --border: #e4e9ee;
  --shadow: 0 1px 2px rgba(16,32,48,.06), 0 8px 24px rgba(16,32,48,.06);
  --measure: 42rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1319;
    --bg-soft: #131a22;
    --bg-card: #161e27;
    --text: #e6edf3;
    --text-soft: #9aa7b4;
    --border: #232d38;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 18px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: 100%; max-width: 62rem; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--ae-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .7rem; padding-bottom: .7rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand-mark { border-radius: 8px; }
.brand-text strong { color: var(--ae-blue); font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 1.1rem; font-size: .95rem; }
.site-nav a { color: var(--text-soft); }
.site-nav a:hover { color: var(--ae-blue); text-decoration: none; }
.nav-cta {
  background: var(--ae-blue); color: #fff !important; padding: .4rem .8rem;
  border-radius: 999px; font-weight: 600;
}
.nav-cta:hover { background: var(--ae-blue-dark); text-decoration: none; }

/* Intro */
.intro { padding: 3rem 0 1.5rem; }
.intro h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .5rem; }
.lede { font-size: 1.15rem; color: var(--text-soft); max-width: 46rem; margin: 0; }

/* Feature card */
.feature {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
  color: var(--text); margin: 1.5rem 0 3rem;
}
.feature:hover { text-decoration: none; border-color: var(--ae-blue); }
.feature-media { background: var(--bg-soft); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-body { padding: 1.75rem 1.9rem; }
.eyebrow { color: var(--ae-blue); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .5rem; }
.feature-body h2 { font-size: 1.6rem; margin: 0 0 .7rem; }
.excerpt { color: var(--text-soft); margin: 0 0 1rem; }
.read { color: var(--ae-blue); font-weight: 600; }

/* Archive list */
.archive-title { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft); border-bottom: 1px solid var(--border); padding-bottom: .6rem; margin: 0 0 1.25rem; }
.issue-list { list-style: none; padding: 0; margin: 0 0 3rem; }
.issue-item { border-bottom: 1px solid var(--border); }
.issue-item a { display: flex; gap: 1.1rem; padding: 1.25rem 0; color: var(--text); align-items: flex-start; }
.issue-item a:hover { text-decoration: none; }
.issue-item a:hover h3 { color: var(--ae-blue); }
.issue-thumb { width: 132px; height: 74px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; background: var(--bg-soft); }
.issue-meta { color: var(--ae-blue); font-size: .8rem; font-weight: 600; margin: 0 0 .25rem; }
.issue-text h3 { font-size: 1.2rem; margin: 0 0 .4rem; }
.issue-excerpt { color: var(--text-soft); font-size: .95rem; margin: 0; }

/* Single newsletter */
.newsletter { padding: 2rem 0 1rem; max-width: var(--measure); margin: 0 auto; }
.back { margin: 0 0 1.5rem; }
.back a, .newsletter-foot a { color: var(--text-soft); font-size: .95rem; }
.newsletter-head { margin-bottom: 2rem; }
.issue-dates { color: var(--ae-blue); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .82rem; margin: 0 0 .5rem; }
.newsletter-head h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: 0 0 .6rem; }
.byline { color: var(--text-soft); font-size: .95rem; margin: 0; }
.newsletter-body { font-size: 1.075rem; }
.newsletter-body h2 {
  font-size: 1.5rem; margin: 2.75rem 0 1rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.newsletter-body p { margin: 0 0 1.15rem; }
.newsletter-body img { width: 100%; border-radius: 12px; margin: 1.5rem 0; box-shadow: var(--shadow); }
.newsletter-body ul { padding-left: 1.2rem; margin: 0 0 1.15rem; }
.newsletter-body li { margin: 0 0 .55rem; }
.newsletter-body a { border-bottom: 1px solid color-mix(in srgb, var(--ae-blue) 35%, transparent); }
.newsletter-body a:hover { text-decoration: none; border-bottom-color: var(--ae-blue); }
.newsletter-foot { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* Subscribe band */
.subscribe { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 3rem; }
.subscribe-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding-top: 2.25rem; padding-bottom: 2.25rem; }
.subscribe-copy { max-width: 32rem; }
.subscribe-copy h2 { margin: 0 0 .4rem; font-size: 1.4rem; }
.subscribe-copy p { margin: 0; color: var(--text-soft); }
.subscribe-form { display: flex; gap: .5rem; flex: 1 1 18rem; max-width: 26rem; }
.subscribe-form input {
  flex: 1; padding: .7rem .9rem; border: 1px solid var(--border);
  border-radius: 10px; background: var(--bg); color: var(--text); font-size: 1rem;
}
.subscribe-form input:focus { outline: 2px solid var(--ae-blue); border-color: var(--ae-blue); }
.subscribe-form button {
  background: var(--ae-blue); color: #fff; border: 0; padding: .7rem 1.2rem;
  border-radius: 10px; font-weight: 600; font-size: 1rem; cursor: pointer;
}
.subscribe-form button:hover { background: var(--ae-blue-dark); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Footer */
.site-footer { padding: 2rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; justify-content: space-between; }
.footer-brand { color: var(--text-soft); margin: 0; font-size: .9rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: .9rem; }
.footer-nav a { color: var(--text-soft); }

@media (max-width: 720px) {
  body { font-size: 17px; }
  .feature { grid-template-columns: 1fr; }
  .feature-media { aspect-ratio: 16 / 9; }
  .site-nav { gap: .8rem; font-size: .88rem; }
  .site-nav a:not(.nav-cta) { display: none; }
  .issue-thumb { width: 96px; height: 58px; }
}
