/* Lumos Newsletter home (2026-10 redesign). Calm, low-stimulus palette from the logo. */
:root {
  /* Warm editorial palette: stone paper, Lumos logo blues, marigold highlighter. */
  --ground: #F3EFE7;
  --surface: #FFFDF9;
  --surface-2: #FAF6EF;
  --line: #E3DBCE;
  --line-soft: #EDE6DB;
  --ink: #1F2A33;
  --ink-2: #3A4651;
  --body-2: #47525C;
  --muted: #5F6870;
  --navy: #23405F;
  --navy-dark: #172E46;
  --blue: #2D5C88;
  --sky: #7EA6CB;
  --mist: #ECE5D8;
  --mist-2: #E2D9C8;
  --field: #D7CDBB;
  --hl: #F7E4A8;
  --hl-soft: #FBF1D3;
  --hl-ink: #6B4C0E;
  --marigold: #D3962D;
  --num: #B07A1F;
  --on-navy: #DCE3EC;
  --ok: #2F6B45;
  --err: #A63D2F;
  --serif: 'Literata', Georgia, serif;
  --sans: 'Atkinson Hyperlegible', Verdana, sans-serif;
  --shadow-ink: 31,42,51;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

html[lang="en"] .lang-pt { display: none !important; }
html:not([lang="en"]) .lang-en { display: none !important; }

.wrap { max-width: 1080px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 10; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }

/* Top bar */
.topbar { border-bottom: 1px solid var(--line); background: var(--ground); }
.topbar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 40px; object-fit: contain; }
.brand__name { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--navy); }
.brand__name span { font-weight: 400; color: var(--muted); }
.topnav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topnav > a { font-size: 15px; color: var(--ink-2); text-decoration: none; padding: 8px 0; }
.topnav > a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.lang-toggle { display: flex; background: var(--mist); border-radius: 999px; padding: 4px; }
.lang-toggle__btn { height: 36px; min-width: 48px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--body-2); font-family: var(--sans); font-size: 14px; font-weight: 700; cursor: pointer; }
.lang-toggle__btn.active { background: var(--surface); color: var(--navy); box-shadow: 0 1px 2px rgba(var(--shadow-ink),.12); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border: 0; border-radius: 10px; font-family: var(--sans); font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn--lg { height: 52px; padding: 0 26px; font-size: 17px; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-dark); color: #fff; }
.btn--primary:disabled { opacity: .7; cursor: wait; }
.btn--soft { background: var(--mist); color: var(--navy); }
.btn--soft:hover { background: var(--mist-2); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--mist); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 64px; }
.hero__copy { flex: 999 1 460px; min-width: 0; }
.eyebrow { margin: 0 0 16px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.hero__title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 5vw, 52px); line-height: 1.12; letter-spacing: -.01em; color: var(--ink); }
.hero__lead { margin: 20px 0 0; font-size: 19px; line-height: 1.65; color: var(--body-2); max-width: 560px; }
.signup { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; max-width: 540px; }
.signup input { flex: 1 1 260px; min-width: 0; height: 52px; padding: 0 18px; border: 1.5px solid var(--field); border-radius: 10px; background: var(--surface); font-family: var(--sans); font-size: 17px; color: var(--ink); }
.signup input::placeholder { color: #857C70; }
.signup input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(45,92,136,.22); }
.signup__msg { margin: 12px 0 0; font-size: 15px; min-height: 0; }
.signup__msg:empty { display: none; }
.signup__msg.is-ok { color: var(--ok); font-weight: 700; }
.signup__msg.is-err { color: var(--err); }
.signup__note { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.facts { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.facts li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.facts svg { color: var(--blue); flex: none; }

/* Latest edition */
.latest { flex: 1 1 340px; min-width: 0; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 1px 2px rgba(var(--shadow-ink),.04), 0 12px 32px rgba(var(--shadow-ink),.06); }
.latest__media img { width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: cover; border-radius: 12px; }
.latest__body { padding: 20px 6px 6px; }
.latest__meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14px; color: var(--muted); }
.pill { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hl-ink); background: var(--hl); border-radius: 999px; padding: 4px 10px; }
.latest__title { margin: 14px 0 0; font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.25; }
.latest__title a { color: var(--ink); text-decoration: none; }
.latest__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.latest__info { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.latest__actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }

/* Archive */
.archive { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 0 72px; }
.archive__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 12px; margin-bottom: 28px; }
.archive__head h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 34px; }
.archive__head p { margin: 0; font-size: 15px; color: var(--muted); }
.newsletter-section { display: flex; flex-direction: column; gap: 8px; }
.edition-card a { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 18px 22px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--surface-2); text-decoration: none; color: var(--ink); transition: background .15s, border-color .15s; }
.edition-card a:hover { background: var(--surface); border-color: var(--field); }
.edition-card__num { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--num); }
.edition-card__body { min-width: 0; }
.edition-card__title { display: block; font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.edition-card__date { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.edition-card__badge { display: inline-block; vertical-align: 3px; margin-left: 8px; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hl-ink); background: var(--hl); padding: 3px 8px; border-radius: 999px; }
.edition-card__chev { color: #9A8F80; transition: transform .15s, color .15s; }
.edition-card a:hover .edition-card__chev { transform: translateX(3px); color: var(--navy); }

/* Closing CTA */
.cta { margin: 64px 0; background: var(--navy); border-radius: 20px; padding: 44px 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta > div { flex: 1 1 420px; min-width: 0; }
.cta h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.25; color: #fff; }
.cta p { margin: 10px 0 0; font-size: 17px; line-height: 1.6; color: var(--on-navy); }

/* Footer */
.foot { border-top: 1px solid var(--line); }
.foot__in { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 32px; padding-bottom: 40px; }
.brand--sm img { width: 32px; height: 29px; }
.brand--sm span { font-size: 15px; font-weight: 700; color: var(--navy); }
.foot p { margin: 0; font-size: 14px; color: var(--muted); }

@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .topnav > a { display: none; }
  .hero { padding-top: 40px; padding-bottom: 48px; gap: 40px; }
  .hero__lead { font-size: 17px; }
  .signup .btn { width: 100%; }
  .latest { max-width: none; }
  .archive { padding: 48px 0 56px; }
  .archive__head h2 { font-size: 28px; }
  .edition-card a { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; padding: 16px; }
  .edition-card__num { font-size: 24px; }
  .edition-card__title { font-size: 18px; }
  .cta { padding: 32px 24px; margin: 48px 0; }
  .cta h2 { font-size: 24px; }
}
