/* ==========================================================================
   THE PREFERRED MAGAZINE — main stylesheet
   1. Design tokens      5. Header & navigation
   2. Base / reset       6. Page sections (hero, stories, issue …)
   3. Layout helpers     7. Footer & mobile bar
   4. Components         8. Responsive
   ========================================================================== */

/* 1. DESIGN TOKENS — change brand colours, fonts and spacing here ---------- */
:root {
  --navy: #171A55;
  --midnight: #0D0F33;
  --ink: #15172E;
  --brass: #E3C88E;
  --muted: #5A5E8C;
  --text-2: #4C4F6B;
  --mist: #F4F4F8;
  --white: #FFFFFF;
  --line: #E6E6EE;
  --line-2: #D5D6E3;
  --field: #C9CAD9;
  --on-navy: #C8CAE6;
  --on-navy-2: #D7D9EF;
  --on-navy-3: #B9BCDD;
  --navy-line: #5B5FA8;
  --navy-line-2: #6D71B8;
  --navy-line-3: #8F93CF;
  --foot-line: #2A2D62;

  --font-serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --font-sans: 'Figtree', 'Helvetica Neue', Arial, sans-serif;

  --container: 1280px;
  --gutter: 24px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 20px;
  --pill: 999px;
  --header-h: 77px;
}

/* 2. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--navy); }
a:hover { color: #3A3F9E; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--brass); color: var(--midnight); padding: 10px 16px;
  border-radius: var(--pill); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* 3. LAYOUT HELPERS -------------------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 80px; padding-bottom: 80px; }
.bg-mist { background: var(--mist); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-midnight { background: var(--midnight); }
.serif { font-family: var(--font-serif); font-weight: 400; }
.eyebrow {
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.eyebrow--brass { color: var(--brass); }
.h-display { font-family: var(--font-serif); font-weight: 400; font-size: 52px; line-height: 1.08; color: var(--ink); }
.bg-navy .h-display { color: var(--white); }
.lead { font-size: 17px; line-height: 1.6; color: var(--text-2); }
.bg-navy .lead { color: var(--on-navy-2); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.stack { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-36 { gap: 36px; }
.text-link { font-size: 15px; font-weight: 600; }
em.accent { font-style: italic; color: var(--brass); }

/* 4. COMPONENTS ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--pill); padding: 15px 26px; font-size: 15px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; min-height: 48px; line-height: 1.2;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--midnight); color: var(--white); }
.btn--brass { background: var(--brass); color: var(--midnight); font-weight: 700; }
.btn--brass:hover { background: #ecd6a8; color: var(--midnight); }
.btn--white { background: var(--white); color: var(--navy); font-weight: 700; }
.btn--white:hover { color: var(--navy); background: #eef0fb; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--ghost-light { border-color: var(--navy-line-2); color: var(--white); background: transparent; font-weight: 500; }
.btn--ghost-light:hover { background: rgba(255,255,255,.08); color: var(--white); }
.btn--sm { padding: 12px 22px; font-size: 14px; min-height: 44px; }
.btn--block { width: 100%; }

.icon-btn {
  width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--pill);
  background: var(--white); display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn svg { width: 18px; height: 18px; }

.chip {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600; padding: 10px 18px;
  min-height: 44px; border-radius: var(--pill); border: 1px solid var(--line-2);
  background: var(--white); color: var(--navy); transition: all .2s;
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.chip--on-navy { background: transparent; color: var(--white); border-color: var(--navy-line); }
.chip--on-navy:hover { border-color: var(--white); }
.chip--on-navy[aria-pressed="true"] { background: var(--white); color: var(--navy); border-color: var(--white); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }

.badge {
  display: inline-block; align-self: flex-start; background: var(--brass); color: var(--midnight);
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--pill);
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.input {
  font-family: var(--font-sans); font-size: 15px; padding: 12px 14px; border: 1px solid var(--field);
  border-radius: var(--radius-sm); min-height: 48px; width: 100%; background: var(--white);
}
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(23,26,85,.12); }
textarea.input { min-height: 96px; resize: vertical; }
.input.is-invalid { border-color: #B3261E; }

.pill-form { display: flex; gap: 8px; background: var(--mist); border-radius: var(--pill); padding: 6px; }
.pill-form input {
  flex: 1; min-width: 0; border: 0; background: transparent; font-size: 15px; padding: 0 16px; min-height: 46px;
}
.pill-form input:focus { outline: none; }
.pill-form--white { background: var(--white); border: 1px solid var(--line-2); }
.form-status { font-size: 14px; font-weight: 600; margin-top: 8px; min-height: 1em; }
.form-status.is-ok { color: #1E6B45; }
.form-status.is-error { color: #B3261E; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.card-img { width: 100%; object-fit: cover; display: block; }

/* 5. HEADER & NAVIGATION --------------------------------------------------- */
.topbar { background: var(--midnight); color: #DADCF0; font-size: 13px; }
.topbar .container { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.topbar strong { color: var(--brass); font-weight: 600; }
.topbar nav { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar a { color: #DADCF0; text-decoration: none; }
.topbar a:hover { color: var(--white); }
.topbar a.is-accent { color: var(--brass); font-weight: 600; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-header .container { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.logo { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__main { font-family: var(--font-serif); font-size: 34px; font-weight: 500; letter-spacing: .01em; }
.logo__the { font-family: var(--font-sans); font-size: 11px; letter-spacing: .2em; vertical-align: top; margin-right: 4px; }
.logo__sub { align-self: flex-end; font-size: 9px; letter-spacing: .36em; margin-top: 2px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 30px; font-size: 15px; font-weight: 500; }
.main-nav a { color: var(--ink); text-decoration: none; position: relative; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--navy); }
.main-nav a[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--brass); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; align-items: center; justify-content: center; }
.menu-toggle svg { width: 22px; height: 22px; }

.search-panel { border-top: 1px solid var(--line); background: var(--white); }
.search-panel .container { padding-top: 14px; padding-bottom: 14px; }

.mobile-menu { display: none; }

/* 6. PAGE SECTIONS --------------------------------------------------------- */
/* Hero */
.hero { background: var(--navy); color: var(--white); }
.hero__inner { max-width: 1440px; margin: 0 auto; display: flex; flex-wrap: wrap; }
.hero__content { flex: 999 1 560px; min-width: 0; padding: 88px 64px 72px; display: flex; flex-direction: column; gap: 28px; justify-content: center; }
.hero__title { font-family: var(--font-serif); font-weight: 400; font-size: 72px; line-height: 1.04; letter-spacing: -.01em; }
.hero__text { font-size: 18px; line-height: 1.65; color: var(--on-navy); max-width: 540px; }
.hero__label { font-size: 13px; color: var(--on-navy); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hero__media { flex: 1 1 420px; min-height: 620px; position: relative; overflow: hidden; }
.hero__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.issue-card {
  position: absolute; left: 32px; bottom: 32px; right: 32px; max-width: 340px; background: var(--white);
  color: var(--ink); text-decoration: none; border-radius: var(--radius); padding: 18px; display: flex; gap: 16px;
  align-items: center; box-shadow: 0 20px 50px rgba(5,6,30,.45); transition: transform .2s;
}
.issue-card:hover { transform: translateY(-2px); color: var(--ink); }
.mini-cover {
  width: 74px; height: 96px; flex: 0 0 auto; background: var(--midnight); color: var(--white); border-radius: 4px;
  display: flex; flex-direction: column; justify-content: space-between; padding: 8px; font-family: var(--font-serif); font-size: 15px;
}
.mini-cover span { font-family: var(--font-sans); font-size: 8px; letter-spacing: .14em; color: var(--brass); }
.issue-card__label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.issue-card__title { font-family: var(--font-serif); font-size: 20px; line-height: 1.2; }
.issue-card__link { font-size: 14px; font-weight: 600; color: var(--navy); }

/* Stats */
.stats { border-bottom: 1px solid var(--line); }
.stats .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding-top: 36px; padding-bottom: 36px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num { font-family: var(--font-serif); font-size: 44px; color: var(--navy); line-height: 1; }
.stat__label { font-size: 14px; color: var(--text-2); }

/* Stories */
.feature-story { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; text-decoration: none; color: var(--white); }
.feature-story:hover { color: var(--white); }
.feature-story > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.feature-story:hover > img { transform: scale(1.03); }
.feature-story__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,15,51,.92) 0%, rgba(13,15,51,.55) 55%, rgba(13,15,51,.15) 100%); }
.feature-story__body { position: relative; padding: 56px; display: flex; flex-direction: column; gap: 16px; max-width: 620px; }
.feature-story__title { font-family: var(--font-serif); font-weight: 400; font-size: 48px; line-height: 1.1; }
.feature-story__text { font-size: 17px; line-height: 1.6; color: var(--on-navy-2); }
.feature-story__meta { font-size: 14px; font-weight: 600; color: var(--brass); }

.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px; }
.story-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 14px; }
.story-card:hover { color: var(--ink); }
.story-card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; transition: opacity .2s; }
.story-card:hover .story-card__img { opacity: .9; }
.story-card__meta { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.story-card__title { font-family: var(--font-serif); font-size: 24px; line-height: 1.25; }
.story-card:hover .story-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.empty-state { border: 1px dashed var(--field); border-radius: 14px; padding: 40px; text-align: center; color: var(--text-2); font-size: 16px; }

/* Digital issue */
.issue { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.issue__cover-wrap { flex: 1 1 340px; display: flex; justify-content: center; }
.issue__cover { position: relative; width: 340px; max-width: 100%; }
.issue__cover::before { content: ''; position: absolute; top: 18px; left: 22px; width: 100%; aspect-ratio: 8.5 / 11; background: var(--field); border-radius: 6px; }
.cover { position: relative; width: 100%; aspect-ratio: 8.5 / 11; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px rgba(13,15,51,.3); }
.cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover__overlay { position: absolute; inset: 0; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; color: var(--white); }
.cover__title { text-align: center; font-family: var(--font-serif); font-size: 52px; line-height: 1; }
.cover__title small { display: block; font-family: var(--font-sans); font-size: 10px; letter-spacing: .4em; margin-top: 6px; }
.cover__lines { font-size: 13px; line-height: 1.5; }
.issue__body { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.toc li { display: flex; gap: 20px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.toc__page { font-family: var(--font-serif); font-size: 20px; color: var(--muted); width: 36px; flex: 0 0 auto; }
.toc__title { flex: 1; font-size: 17px; }
.toc__cat { font-size: 13px; color: var(--text-2); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Directory */
.directory-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; }
.directory-head .pill-form { flex: 0 1 460px; }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.partner-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: var(--white); transition: box-shadow .2s, transform .2s; }
.partner-card:hover { box-shadow: 0 14px 34px rgba(13,15,51,.1); transform: translateY(-2px); }
.partner-card__img { aspect-ratio: 16 / 10; }
.partner-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.partner-card__cat { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.partner-card__name { font-family: var(--font-serif); font-weight: 500; font-size: 22px; }
.partner-card__meta { font-size: 14px; color: var(--text-2); }
.partner-card__actions { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.partner-card__actions .btn { flex: 1; padding: 12px; font-size: 14px; min-height: 44px; }
.btn--line { border-color: var(--line-2); color: var(--navy); background: var(--white); }
.btn--line:hover { border-color: var(--navy); color: var(--navy); }
.no-results { color: var(--text-2); font-size: 15px; }

/* Communities */
.communities { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.communities__img { flex: 1 1 380px; min-width: 0; width: 100%; max-width: 520px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-lg); }
.communities__body { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.check-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.check-list li { display: flex; gap: 12px; font-size: 16px; line-height: 1.5; color: var(--on-navy-2); }
.check-list svg { flex: 0 0 auto; width: 22px; height: 22px; }

/* Advertise banner */
.ad-banner { position: relative; border-radius: 24px; overflow: hidden; color: var(--white); }
.ad-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad-banner__shade { position: absolute; inset: 0; background: rgba(13,15,51,.82); }
.ad-banner__body { position: relative; padding: 56px; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: center; }
.ad-banner__text { flex: 999 1 420px; display: flex; flex-direction: column; gap: 14px; }
.ad-banner__title { font-family: var(--font-serif); font-weight: 400; font-size: 44px; line-height: 1.1; }
.ad-banner__actions { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
.btn--ghost-lilac { border-color: var(--navy-line-3); color: var(--white); background: transparent; }
.btn--ghost-lilac:hover { background: rgba(255,255,255,.08); color: var(--white); }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 56px; }
.contact__intro { flex: 1 1 340px; display: flex; flex-direction: column; gap: 18px; }
.contact__details { display: flex; flex-direction: column; gap: 10px; font-size: 15px; margin-top: 8px; }
.contact__card { flex: 999 1 560px; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.tabs { display: flex; gap: 6px; background: var(--mist); border-radius: var(--pill); padding: 6px; }
.tab { flex: 1; font-size: 15px; font-weight: 600; padding: 12px 16px; min-height: 46px; border: 0; border-radius: var(--pill); background: transparent; color: var(--navy); transition: background-color .2s, color .2s; }
.tab[aria-selected="true"] { background: var(--navy); color: var(--white); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.form-grid .span-all { grid-column: 1 / -1; }

/* Newsletter */
.newsletter .container { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-top: 56px; padding-bottom: 56px; }
.newsletter__text { flex: 1 1 360px; display: flex; flex-direction: column; gap: 8px; }
.newsletter__form { flex: 1 1 440px; }
.newsletter__title { font-family: var(--font-serif); font-weight: 400; font-size: 36px; }

/* Advertise page */
.page-hero { background: var(--navy); color: var(--white); }
.page-hero .container { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 24px; }
.page-hero__title { font-family: var(--font-serif); font-weight: 400; font-size: 72px; line-height: 1.04; max-width: 900px; }
.size-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.size-card { position: relative; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.size-card--featured { border: 2px solid var(--navy); padding: 27px; }
.size-card__flag { position: absolute; top: -14px; left: 24px; background: var(--navy); color: var(--brass); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--pill); font-weight: 700; }
.size-card__preview { height: 160px; display: flex; align-items: center; justify-content: center; background: var(--mist); border-radius: var(--radius-sm); margin-bottom: 6px; }
.size-card__name { font-family: var(--font-serif); font-weight: 500; font-size: 26px; }
.size-card__dims { font-size: 14px; color: var(--text-2); }
.size-card__price { font-size: 15px; font-weight: 600; }
.page { width: 85px; height: 110px; border: 1px solid var(--muted); display: grid; }
.page--quarter { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.page--quarter::before { content: ''; background: var(--navy); }
.page--half { grid-template-rows: 1fr 1fr; }
.page--half::before { content: ''; background: var(--navy); }
.page--full { background: var(--navy); border-color: var(--navy); }
.spread { display: flex; gap: 3px; }
.spread span { width: 70px; height: 90px; background: var(--navy); }
.premium-strip { background: var(--midnight); color: var(--white); border-radius: var(--radius); padding: 28px 32px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.premium-strip__title { font-family: var(--font-serif); font-size: 26px; }
.premium-strip p { font-size: 14px; color: var(--on-navy); }
.premium-strip a { color: var(--brass); font-weight: 600; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--navy); padding-top: 20px; }
.steps__num { font-family: var(--font-serif); font-size: 40px; color: var(--muted); }
.steps__title { font-weight: 600; font-size: 17px; }
.steps__text { font-size: 15px; line-height: 1.6; color: var(--text-2); }
.perk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.perk { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.perk strong { font-weight: 600; }
.perk span { font-size: 14px; color: var(--text-2); }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 400px; min-width: 0; }

/* 7. FOOTER & MOBILE BAR --------------------------------------------------- */
.site-footer { background: var(--midnight); color: var(--on-navy-3); }
.site-footer .container { padding-top: 64px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 48px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 320px; }
.footer-brand .logo__main { color: var(--white); }
.footer-brand p { font-size: 14px; line-height: 1.6; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border: 1px solid #3A3E7A; border-radius: var(--pill); display: flex; align-items: center; justify-content: center; transition: background-color .2s; }
.socials a:hover { background: rgba(255,255,255,.08); }
.socials svg { width: 18px; height: 18px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 64px; font-size: 15px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h2 { color: var(--brass); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; font-family: var(--font-sans); }
.footer-col a { color: var(--on-navy-3); text-decoration: none; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--foot-line); padding-top: 20px; font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-bottom a { color: var(--on-navy-3); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

.mobile-bar { display: none; }

/* 8. RESPONSIVE ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .main-nav { gap: 20px; font-size: 14px; }
  .hero__content { padding: 72px 40px 60px; }
  .hero__title { font-size: 60px; }
}

@media (max-width: 960px) {
  :root { --header-h: 69px; }
  .main-nav, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header .container { padding-top: 12px; padding-bottom: 12px; }
  .site-header .logo { order: 2; }
  .menu-toggle { order: 1; }
  .header-actions { order: 3; }
  .logo__main { font-size: 26px; }
  .logo__the { font-size: 9px; }
  .logo__sub { display: none; }
  .topbar nav { display: none; }

  .mobile-menu {
    display: block; position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 25;
    background: var(--navy); color: var(--white); padding: 12px 24px 28px; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .mobile-menu.is-open { opacity: 1; transform: none; visibility: visible; }
  .mobile-menu nav { display: flex; flex-direction: column; }
  .mobile-menu nav a { color: var(--white); text-decoration: none; font-family: var(--font-serif); font-size: 26px; padding: 14px 0; border-bottom: 1px solid #2E327A; }
  .mobile-menu .btn { margin-top: 20px; width: 100%; }

  .hero__inner { position: relative; min-height: 560px; }
  .hero__media { position: absolute; inset: 0; min-height: 0; }
  .hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,15,51,.25) 0%, rgba(13,15,51,.92) 65%); }
  .hero__media .issue-card { display: none; }
  .hero__content { position: relative; z-index: 1; padding: 220px 20px 32px; gap: 18px; flex-basis: 100%; }
  .hero__title { font-size: 42px; line-height: 1.08; }
  .hero__text { font-size: 16px; }
  .hero__label { display: none; }
  .chip-row--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chip-row--scroll::-webkit-scrollbar { display: none; }
  .chip-row--scroll .chip { flex: 0 0 auto; }
  .chip--on-navy { background: rgba(13,15,51,.4); border-color: var(--navy-line-3); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }

  .section { padding-top: 56px; padding-bottom: 56px; }
  .h-display { font-size: 34px; }
  .feature-story { min-height: 380px; }
  .feature-story__body { padding: 28px; }
  .feature-story__title { font-size: 32px; }
  .issue, .communities, .contact { gap: 36px; }
  .ad-banner__body { padding: 32px; }
  .ad-banner__title { font-size: 32px; }
  .contact__card { padding: 22px; }
  .page-hero .container { padding-top: 56px; padding-bottom: 56px; }
  .page-hero__title { font-size: 44px; }
  .newsletter__title { font-size: 28px; }

  body { padding-bottom: 84px; }
  .mobile-bar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 14px; z-index: 28; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--pill); box-shadow: 0 12px 30px rgba(13,15,51,.18); padding: 6px; justify-content: space-around;
  }
  .mobile-bar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; font-size: 11px; font-weight: 600; padding: 6px 0; color: var(--muted); }
  .mobile-bar a.is-active { color: var(--navy); }
  .mobile-bar svg { width: 20px; height: 20px; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .topbar { font-size: 12px; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .stat__num { font-size: 34px; }
  .story-grid { grid-template-columns: 1fr; gap: 24px; }
  .toc__cat { display: none; }
  .directory-head .pill-form { flex-basis: 100%; }
  .tabs { flex-direction: column; border-radius: var(--radius); }
  .tab { border-radius: var(--radius-sm); }
  .pill-form--stack { flex-direction: column; border-radius: var(--radius); }
  .pill-form--stack .btn { width: 100%; }
  .cover__title { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Form messages on dark sections */
.bg-navy .form-status.is-ok { color: #9BE3B8; }
.bg-navy .form-status.is-error { color: #FFB4AB; }
.bg-navy .input { border-color: var(--navy-line-2); }

/* Footer contact block */
.footer-contact { font-style: normal; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.6; }
.footer-contact a { color: var(--on-navy-3); text-decoration: none; }
.footer-contact a:hover { color: var(--white); }

/* About page */
.number-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.number { border-top: 1px solid var(--navy-line); padding-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.number__value { font-family: var(--font-serif); font-size: 88px; line-height: 1; color: var(--brass); }
.number__label { font-size: 16px; color: var(--on-navy-2); }
.design-note { background: var(--navy); color: var(--white); border-radius: var(--radius-lg); padding: 40px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-end; }
.design-note > .stack { flex: 999 1 480px; }
.design-note p { font-size: 16px; line-height: 1.7; color: var(--on-navy-2); max-width: 760px; }
@media (max-width: 960px) {
  .number__value { font-size: 60px; }
  .design-note { padding: 28px; }
  .design-note .btn-row { width: 100%; flex-direction: column; }
  .design-note .btn-row .btn { width: 100%; }
}
