/* =========================================================================
   Nomad at Fifty — Magazine theme stylesheet
   Written fresh for the magazine redesign. Organized by section; each
   selector is defined once. No !important except where noted for a
   specific, commented reason.
   ========================================================================= */

/* ---- Base ------------------------------------------------------------- */
:root {
  --line: rgba(24, 50, 74, 0.14);
  --muted: var(--wp--preset--color--muted, #5B6670);
  --ink: var(--wp--preset--color--ink, #18324A);
  --paper: var(--wp--preset--color--paper, #FAF7F0);
  --card: var(--wp--preset--color--card, #FFFFFF);
  --coral: var(--wp--preset--color--coral, #C1512F);
  --teal: var(--wp--preset--color--teal, #146C73);
  --sage: var(--wp--preset--color--sage, #3F6B4E);
  --sand: var(--wp--preset--color--sand, #EFE2C6);
  --footer-ink: var(--wp--preset--color--footer-ink, #17232B);
}

* { box-sizing: border-box; }

body {
  background: var(--paper);
}

img { max-width: 100%; height: auto; }

/* ---- Layout helpers ----------------------------------------------------
   Site-wide content/wide widths come from theme.json (760px / 1280px);
   these are extra spacing helpers used across templates. */
.mag-section {
  padding-top: clamp(2.5rem, 2rem + 2vw, 4.5rem);
}
.mag-section--tight { padding-top: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }

/* ---- Header ------------------------------------------------------------ */
.mag-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.mag-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
}
.mag-logo {
  font-family: var(--wp--preset--font-family--manrope);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.mag-logo em { color: var(--coral); font-style: italic; }
.mag-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.mag-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.mag-nav a:hover { color: var(--coral); }
.mag-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mag-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---- Kickers, tags, section headings ------------------------------------ */
.mag-kicker {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 10px;
}

.mag-tag {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.mag-tag--coral { background: rgba(193, 81, 47, 0.12); color: var(--coral); }
.mag-tag--sage  { background: rgba(63, 107, 78, 0.12); color: var(--sage); }
.mag-tag--teal  { background: rgba(20, 108, 115, 0.12); color: var(--teal); }

.mag-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 14px;
  margin-bottom: 30px;
}
.mag-heading-title {
  font-size: 26px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mag-heading-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
}
.mag-heading-dot--coral { background: var(--coral); }
.mag-heading-dot--sage  { background: var(--sage); }
.mag-heading-dot--teal  { background: var(--teal); }

.mag-view-all { font-size: 13px; font-weight: 700; white-space: nowrap; }
.mag-view-all--coral { color: var(--coral); }
.mag-view-all--sage  { color: var(--sage); }
.mag-view-all--teal  { color: var(--teal); }

/* ---- Media placeholder (no real photo yet) ------------------------------ */
.mag-media-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 140px;
  background: linear-gradient(135deg, #E8DCC4, #CBD9D2);
  border-radius: inherit;
}

/* ---- Lead story ---------------------------------------------------------- */
.mag-lead {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.mag-lead-title {
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.9rem);
  line-height: 1.06;
  margin: 0 0 18px;
}
.mag-lead-title a { color: var(--ink); }
.mag-lead-title a:hover { color: var(--coral); }
.mag-lead-deck {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 480px;
  margin: 0 0 22px;
}
.mag-byline { font-size: 13px; color: var(--muted); margin: 0 0 22px; }
.mag-lead-cta {
  font-size: 14px;
  font-weight: 700;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mag-lead-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3.4;
  border-radius: 20px;
  overflow: hidden;
}
.mag-lead-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Vertical card (row3 / grid) ----------------------------------------- */
.mag-row3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.mag-card { display: block; color: var(--ink); }
.mag-card--vertical .mag-card-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
}
.mag-card--vertical .mag-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mag-card-title {
  display: block;
  font-family: var(--wp--preset--font-family--manrope);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 6px;
}
.mag-card:hover .mag-card-title { color: var(--coral); }
.mag-card-excerpt {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---- Asymmetric (1 big + list) -------------------------------------------- */
.mag-asymmetric {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.mag-asymmetric .mag-card--vertical .mag-card-media { aspect-ratio: 16 / 10; }
.mag-asymmetric .mag-card-title { font-size: 25px; margin-bottom: 10px; }
.mag-asymmetric .mag-card-excerpt { font-size: 14.5px; max-width: 420px; }

.mag-list { display: flex; flex-direction: column; gap: 26px; }
.mag-list-card { display: flex; gap: 16px; color: var(--ink); }
.mag-list-thumb {
  display: block;
  width: 110px;
  height: 88px;
  flex: 0 0 110px;
  border-radius: 12px;
  overflow: hidden;
}
.mag-list-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mag-list-title {
  display: block;
  font-family: var(--wp--preset--font-family--manrope);
  font-weight: 500;
  font-size: 16.5px;
  line-height: 1.28;
}
.mag-list-card:hover .mag-list-title { color: var(--coral); }

/* ---- Newsletter (MailerLite placement) ------------------------------------ */
.mag-newsletter {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.75rem, 1.4rem + 1.5vw, 3.25rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.mag-newsletter-title { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); margin: 8px 0 12px; }
.mag-newsletter-copy { font-size: 14.5px; color: var(--muted); line-height: 1.6; max-width: 440px; margin: 0; }
.mag-newsletter-box,
.mag-newsletter-box--compact {
  border: 2px dashed rgba(24, 50, 74, 0.25);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  background: rgba(24, 50, 74, 0.02);
}
.mag-newsletter-box-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.mag-newsletter-box-note { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0; }
.mag-newsletter-box--compact { padding: 1.4rem; }

/* ---- Pull quote ------------------------------------------------------------ */
.mag-quote { background: var(--sand); }
.mag-quote-inner { max-width: 760px; margin: 0 auto; padding: clamp(3rem, 2.5rem + 2vw, 5.5rem) 32px; text-align: center; }
.mag-quote-text {
  font-family: var(--wp--preset--font-family--manrope);
  font-style: italic;
  font-weight: 460;
  font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 20px;
}
.mag-quote-cite { font-size: 13px; font-weight: 700; color: var(--muted); }

/* ---- Dark CTA band ----------------------------------------------------------- */
.mag-cta-dark { background: var(--ink); }
.mag-cta-dark-inner { max-width: 760px; margin: 0 auto; padding: clamp(3rem, 2.5rem + 2vw, 5.5rem) 32px; text-align: center; }
.mag-cta-dark-title { color: #fff; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem); margin: 0 0 16px; }
.mag-cta-dark-copy { color: #B9C2C7; font-size: 15.5px; line-height: 1.6; margin: 0 0 28px; }
.mag-cta-dark-btn {
  display: inline-flex;
  padding: 15px 30px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.mag-cta-dark-btn:hover { background: #a8462a; color: #fff; }

/* ---- Footer -------------------------------------------------------------------- */
.mag-footer { background: var(--footer-ink); color: #F3EFE6; }
.mag-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding: 4rem 32px 2rem;
}
.mag-footer-title { font-family: var(--wp--preset--font-family--manrope); font-size: 24px; font-weight: 600; margin: 0 0 14px; }
.mag-footer-copy-text { font-size: 14px; line-height: 1.7; color: #B9C2C7; max-width: 320px; margin: 0; }
.mag-footer-heading { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #E8B98F; margin: 0 0 14px; }
.mag-footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.mag-footer-links p { margin: 0; }
.mag-footer-links a { color: #D8DEE0; }
.mag-footer-links a:hover { color: #fff; }
.mag-footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 20px 32px; text-align: center; }
.mag-footer-bottom .mag-footer-copy { margin: 0; font-size: 12px; color: #8C979C; }

/* ---- Article (single guide) ----------------------------------------------------- */
.mag-article-header { text-align: center; }
.mag-article-header .mag-tag { margin-bottom: 22px; }
.mag-article-title { font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.9rem); line-height: 1.1; margin: 0 0 20px; }
.mag-article-deck { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 0 0 26px; }
.mag-article-byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.mag-avatar { width: 38px; height: 38px; border-radius: 999px; background: linear-gradient(135deg, #E3D2AE, #C7D6CE); flex: 0 0 auto; }
.mag-article-byline-text { font-size: 13.5px; color: var(--muted); text-align: left; }
.mag-byline-author { display: block; font-weight: 700; color: var(--ink); }
.mag-byline-date { display: block; color: var(--muted); }

.mag-article-hero {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 20px;
  overflow: hidden;
}
.mag-article-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mag-article-hero .mag-media-placeholder { min-height: 0; }

.mag-article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}
.mag-article-body p {
  font-size: 17px;
  line-height: 1.85;
  color: #2C3E4C;
  margin: 0 0 22px;
}
.mag-article-body h2 { font-size: 26px; margin: 1.6em 0 0.7em; }
.mag-article-body h3 { font-size: 20px; margin: 1.4em 0 0.6em; }
.mag-article-body > p:first-of-type::first-letter {
  font-family: var(--wp--preset--font-family--manrope);
  font-size: 64px;
  font-weight: 600;
  float: left;
  line-height: 0.85;
  padding-right: 10px;
  padding-top: 6px;
  color: var(--coral);
}
.mag-pullquote {
  background: var(--sand);
  border-radius: 16px;
  padding: 2.2rem 2.4rem;
  margin: 2.2rem 0;
}
.mag-pullquote p {
  font-family: var(--wp--preset--font-family--manrope);
  font-style: italic;
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 !important; /* overrides the generic .mag-article-body p margin above within this box */
}

.mag-sidebar { display: flex; flex-direction: column; gap: 28px; }
.mag-author-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.mag-author-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mag-author-card-name { font-size: 14px; font-weight: 700; }
.mag-author-card-role { font-size: 12px; color: var(--muted); }
.mag-author-card-bio { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0; }
.mag-sidebar-heading { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral); margin-bottom: 14px; }
.mag-sidebar .mag-list { gap: 16px; }
.mag-sidebar .mag-list-card { gap: 0; }
.mag-sidebar .mag-list-thumb { display: none; }
.mag-sidebar .mag-list-title { font-size: 14px; font-weight: 600; }

.mag-author-bio-band {
  background: var(--sand);
  border-radius: 20px;
  padding: 2.75rem 3rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.mag-author-bio-avatar { width: 88px; height: 88px; flex: 0 0 88px; border-radius: 999px; background: linear-gradient(135deg, #E3D2AE, #C7D6CE); }
.mag-author-bio-name { font-family: var(--wp--preset--font-family--manrope); font-size: 22px; font-weight: 600; margin: 6px 0 8px; }
.mag-author-bio-text { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 640px; }

/* ---- Category archive ------------------------------------------------------------ */
.mag-archive-masthead { background: var(--sand); }
.mag-archive-masthead-inner { max-width: 1280px; margin: 0 auto; padding: clamp(2.5rem, 2rem + 2vw, 4rem) 32px; }
.mag-archive-bar { width: 56px; height: 6px; border-radius: 999px; margin-bottom: 22px; }
.mag-archive-title { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.9rem); line-height: 1.08; margin: 0 0 16px; }
.mag-archive-desc { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 600px; margin: 0; }

/* WordPress adds a category-<slug> class to <body> on archive pages automatically. */
.mag-archive-bar { background: var(--coral); }
.category-nomad-lifestyle .mag-archive-bar { background: var(--sage); }
.category-nomad-destinations .mag-archive-bar { background: var(--teal); }

.mag-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 28px;
}
.mag-archive-grid .wp-block-post {
  display: flex;
  flex-direction: column;
}
.mag-archive-grid .wp-block-post-featured-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0 14px;
}
.mag-archive-grid .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mag-archive-grid .wp-block-post-terms {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 6px;
}
.mag-archive-grid .wp-block-post-terms a { color: inherit; }
.mag-archive-grid .wp-block-post-title {
  font-family: var(--wp--preset--font-family--manrope);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 6px;
}
.mag-archive-grid .wp-block-post-title a { color: var(--ink); }
.mag-archive-grid .wp-block-post:hover .wp-block-post-title a { color: var(--coral); }
.mag-archive-grid .wp-block-post-excerpt p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0; }

.mag-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 3.5rem;
}
.mag-pagination .page-numbers {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.mag-pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.mag-pagination .page-numbers:hover:not(.current) { border-color: var(--ink); }

/* ---- Page template (About, etc.) ---------------------------------------------------- */
.mag-page-masthead { text-align: center; max-width: 900px; margin: 0 auto; }
.mag-page-title { font-size: clamp(2.2rem, 1.7rem + 1.8vw, 3rem); margin: 16px 0 20px; }
.mag-page-deck { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 620px; margin: 0 auto; }

.mag-page-intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}
.mag-page-intro-media { width: 100%; aspect-ratio: 4 / 3.7; border-radius: 20px; overflow: hidden; }
.mag-page-intro-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mag-page-intro-body p { font-size: 17px; line-height: 1.85; color: #2C3E4C; margin: 0 0 22px; }

.mag-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  text-align: center;
}
.mag-stat {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2.2rem 1.5rem;
}
.mag-stat-number { font-family: var(--wp--preset--font-family--manrope); font-size: 44px; font-weight: 600; margin-bottom: 8px; }
.mag-stat-label { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---- Responsive ----------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .mag-lead,
  .mag-asymmetric,
  .mag-newsletter,
  .mag-article-layout,
  .mag-page-intro {
    grid-template-columns: 1fr;
  }
  .mag-article-layout { gap: 2.5rem; }
  .mag-lead-media { order: -1; }
  .mag-row3,
  .mag-archive-grid,
  .mag-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mag-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .mag-nav { display: none; }
  .mag-row3,
  .mag-archive-grid,
  .mag-stats-grid {
    grid-template-columns: 1fr;
  }
  .mag-footer-grid { grid-template-columns: 1fr; }
  .mag-author-bio-band { flex-direction: column; text-align: center; }
  .mag-article-hero { aspect-ratio: 4 / 3.4; }
}

/* =========================================================================
   Homepage refinement — v3.1
   Wider editorial canvas, stronger type scale, clearer section hierarchy,
   intentional sparse states, and improved accessibility for a 50+ audience.
   ========================================================================= */

/* Give wide layouts breathing room without letting them touch the viewport. */
.mag-header-inner,
.mag-story-grid,
.mag-newsletter,
.mag-footer-grid {
  width: min(1280px, calc(100% - 64px));
  margin-inline: auto;
}

body { font-size: 17px; }
.mag-section { padding-top: clamp(3rem, 2.25rem + 2.4vw, 5.25rem); }
.mag-section--compact { padding-top: clamp(2rem, 1.5rem + 1.5vw, 3rem); }

/* Header: still minimal, but no longer visually tiny. */
.mag-header-inner { padding-block: 24px; }
.mag-logo { font-size: 27px; }
.mag-nav { gap: 34px; }
.mag-nav a { font-size: 15.5px; }
.mag-icon-btn { width: 44px; height: 44px; }
.mag-join-button .wp-block-button__link { font-size: 14px; padding: 0.9rem 1.45rem; }

/* Hero: clearly the dominant editorial story. */
.mag-lead { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 4vw, 5.5rem); }
.mag-lead-title { font-size: clamp(2.7rem, 2rem + 2.2vw, 4.5rem); max-width: 720px; }
.mag-lead-deck { font-size: 18px; max-width: 620px; }
.mag-byline, .mag-lead-cta { font-size: 14px; }
.mag-lead-media { aspect-ratio: 4 / 3; }

/* Labels stay secondary, but remain comfortably legible. */
.mag-kicker, .mag-tag { font-size: 12px; }
.mag-section-heading { margin-bottom: 34px; padding-bottom: 16px; }
.mag-heading-title { font-size: 30px; }
.mag-view-all { font-size: 14px; }

/* Cards: raise headline and supporting-copy sizes across the homepage. */
.mag-row3 { gap: 32px; }
.mag-card-title { font-size: 21px; line-height: 1.3; }
.mag-card-excerpt { font-size: 15px; line-height: 1.62; }
.mag-list-title { font-size: 18px; line-height: 1.35; }
.mag-list-thumb { width: 132px; height: 100px; flex-basis: 132px; }

/* Getting Started: one clear feature plus three substantial cards rather than
   an oversized feature next to tiny sidebar widgets. */
.mag-row4-featured {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.mag-row4-featured .mag-row4-item:first-child { grid-column: 1 / -1; }
.mag-row4-featured .mag-row4-item:first-child .mag-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  column-gap: 36px;
  align-items: center;
}
.mag-row4-featured .mag-row4-item:first-child .mag-card-media {
  grid-row: 1 / span 4;
  margin-bottom: 0;
  aspect-ratio: 16 / 9;
}
.mag-row4-featured .mag-row4-item:first-child .mag-tag { align-self: end; justify-self: start; }
.mag-row4-featured .mag-row4-item:first-child .mag-card-title { font-size: 30px; }
.mag-row4-featured .mag-row4-item:first-child .mag-card-excerpt { font-size: 16px; }

/* If a category only has two unused stories, make the scarcity look designed. */
.mag-row2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.mag-row2 .mag-card-title { font-size: 24px; }

/* Newsletter: clearer proposition and larger readable supporting text. */
.mag-newsletter { padding: clamp(2.25rem, 1.6rem + 2vw, 3.75rem); gap: 4rem; }
.mag-newsletter-title { font-size: clamp(1.9rem, 1.55rem + 1vw, 2.55rem); }
.mag-newsletter-copy { font-size: 16px; max-width: 560px; }
.mag-newsletter-box-note { font-size: 15px; }

/* Quote remains a brand moment, but no longer consumes a whole screen band. */
.mag-quote-inner { padding: clamp(2.4rem, 2rem + 1.5vw, 3.6rem) 32px; }
.mag-quote-text { font-size: clamp(1.5rem, 1.3rem + 0.7vw, 1.9rem); max-width: 720px; margin-inline: auto; }
.mag-quote-cite { font-size: 14px; }

/* Start Here is now clearly a navigation CTA, not a second newsletter ask. */
.mag-cta-dark-inner { padding: clamp(3.4rem, 2.7rem + 2vw, 5rem) 32px; }
.mag-cta-dark-title { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.8rem); }
.mag-cta-dark-copy { font-size: 17px; max-width: 680px; margin-inline: auto; margin-bottom: 30px; }
.mag-cta-dark-btn .wp-block-button__link { font-size: 15px; padding: 0.95rem 1.7rem; }

/* Footer: larger type and more generous column spacing. */
.mag-footer-grid { grid-template-columns: 1.5fr 0.9fr 0.9fr 1.3fr; gap: 3.5rem; padding-block: 4.5rem 3rem; }
.mag-footer-title { font-size: 28px; }
.mag-footer-copy-text, .mag-footer-links { font-size: 15px; }
.mag-footer-heading { font-size: 12px; }
.mag-footer-bottom .mag-footer-copy { font-size: 13px; }

@media (max-width: 1024px) {
  .mag-header-inner,
  .mag-story-grid,
  .mag-newsletter,
  .mag-footer-grid { width: min(100% - 48px, 1280px); }
  .mag-row4-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mag-row4-featured .mag-row4-item:first-child { grid-column: 1 / -1; }
  .mag-row4-featured .mag-row4-item:first-child .mag-card { grid-template-columns: 1fr; }
  .mag-row4-featured .mag-row4-item:first-child .mag-card-media { grid-row: auto; margin-bottom: 14px; }
}

@media (max-width: 680px) {
  .mag-header-inner,
  .mag-story-grid,
  .mag-newsletter,
  .mag-footer-grid { width: min(100% - 32px, 1280px); }
  body { font-size: 16px; }
  .mag-header-inner { gap: 14px; }
  .mag-logo { font-size: 23px; }
  .mag-join-button .wp-block-button__link { font-size: 13px; padding: 0.78rem 1.05rem; }
  .mag-lead-title { font-size: clamp(2.25rem, 10vw, 3.1rem); }
  .mag-row4-featured, .mag-row2 { grid-template-columns: 1fr; }
  .mag-row4-featured .mag-row4-item:first-child { grid-column: auto; }
  .mag-row4-featured .mag-row4-item:first-child .mag-card-title { font-size: 25px; }
  .mag-heading-title { font-size: 26px; }
  .mag-footer-grid { gap: 2.25rem; }
}

/* =========================================================================
   Requested homepage/header refinements — v3.2
   ========================================================================= */

/* Links are clean editorial links; hover colour provides the affordance. */
a,
a:where(:not(.wp-element-button)) {
  text-decoration: none !important;
}

/* A warmer header separates navigation from the paper canvas. */
.mag-header {
  position: relative;
  z-index: 50;
  background: #F1E7D5;
  border-bottom: 0;
  box-shadow: 0 7px 20px rgba(24, 50, 74, 0.09), 0 1px 0 rgba(24, 50, 74, 0.12);
}
.mag-header-inner { position: relative; }
.mag-icon-btn {
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(24, 50, 74, 0.16);
  box-shadow: 0 2px 7px rgba(24, 50, 74, 0.08);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.mag-icon-btn:hover,
.mag-icon-btn[aria-expanded="true"] {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 4px 12px rgba(24, 50, 74, 0.16);
}
.mag-icon-btn:active { transform: translateY(1px); }

/* Search opens below the header, so it never pushes or rearranges nav items. */
.mag-search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 60;
  background: #fff;
  border-top: 1px solid rgba(24, 50, 74, 0.08);
  border-bottom: 1px solid rgba(24, 50, 74, 0.12);
  box-shadow: 0 12px 24px rgba(24, 50, 74, 0.12);
  padding: 20px 32px;
}
.mag-search-panel[hidden] { display: none; }
.mag-search-form {
  width: min(720px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.mag-search-form input {
  width: 100%;
  min-width: 0;
  height: 50px;
  border: 1px solid rgba(24, 50, 74, 0.22);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 500 16px/1.2 var(--wp--preset--font-family--manrope);
  padding: 0 20px;
  outline: none;
}
.mag-search-form input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 108, 115, 0.12);
}
.mag-search-form button {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 700 15px/1 var(--wp--preset--font-family--manrope);
  padding: 0 24px;
  cursor: pointer;
}

/* The latest story remains prominent without overwhelming the opening view. */
.mag-lead-title {
  font-size: clamp(2.15rem, 1.75rem + 1.5vw, 3.45rem);
  line-height: 1.08;
}
.mag-lead-deck,
.mag-card-excerpt { text-decoration: none !important; }

/* View-all guide links read as deliberate navigation controls. */
.mag-view-all {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  transition: background .18s ease, color .18s ease;
}
.mag-view-all:hover { background: var(--ink); color: #fff; }

/* Centre the actual Gutenberg button, rather than styling its wrapper as a button. */
.mag-cta-dark-inner > .wp-block-buttons {
  display: flex;
  justify-content: center;
  width: 100%;
}
.mag-cta-dark-btn {
  display: block;
  padding: 0;
  background: transparent;
  color: inherit;
}
.mag-cta-dark-btn .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-family: var(--wp--preset--font-family--manrope);
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(0,0,0,.16);
}
.mag-cta-dark-btn .wp-block-button__link:hover { background: #A8462A; color: #fff; }

/* Remove the block-layout gap between the full-width CTA and footer. */
.mag-cta-dark + .mag-footer,
.mag-footer { margin-top: 0 !important; }

/* Footer signup controls: readable, high-contrast defaults for MailerLite forms. */
.mag-footer .mag-newsletter-box { border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.055); }
.mag-footer .mag-newsletter-box-label { color: #F3EFE6; }
.mag-footer .mag-newsletter-box-note { color: #C8D0D3; }
.mag-footer form input[type="email"],
.mag-footer form input[type="text"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: var(--wp--preset--font-family--manrope);
  font-size: 15px;
  padding: 10px 13px;
}
.mag-footer form button,
.mag-footer form input[type="submit"],
.mag-footer .ml-form-embedSubmit button {
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-family: var(--wp--preset--font-family--manrope) !important;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.mag-footer form button:hover,
.mag-footer form input[type="submit"]:hover,
.mag-footer .ml-form-embedSubmit button:hover { background: #D2603D; }
.mag-footer-bottom .mag-footer-copy span { display: inline-block; margin-top: 5px; }

@media (max-width: 680px) {
  .mag-header-inner { flex-wrap: nowrap; }
  .mag-header .wp-block-navigation { order: 2; margin-left: auto; }
  .mag-header-actions { order: 3; flex: 0 0 auto; gap: 8px; }
  .mag-icon-btn { width: 42px; height: 42px; }
  .mag-search-panel { padding: 14px 16px 16px; }
  .mag-search-form { grid-template-columns: 1fr; }
  .mag-search-form button { width: 100%; }
  .mag-lead-title { font-size: clamp(2rem, 8.5vw, 2.7rem); }
  .mag-view-all { min-height: 36px; padding: 7px 12px; }
}

/* v3.3 focused homepage polish */
.mag-header {
  background: #E9DDC8;
  box-shadow: 0 5px 16px rgba(23, 45, 62, .14), 0 1px 0 rgba(23, 45, 62, .16);
}
.mag-header-inner { min-height: 74px; padding-block: 14px; }
.mag-logo { font-size: 26px; }
.mag-nav a { font-size: 15px; }
.mag-header-actions { flex-wrap: nowrap !important; }
.mag-search-toggle { display: inline-flex !important; flex: 0 0 44px; width: 44px; height: 44px; }
.mag-search-toggle svg { display: block; width: 19px; height: 19px; }
.mag-join-button .wp-block-button__link { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; font-size: 14px; }

.mag-lead-title { font-size: clamp(1.95rem, 1.65rem + 1.15vw, 2.9rem); line-height: 1.08; max-width: 620px; }

.mag-view-all { min-height: 42px; padding: 9px 17px; font-size: 14px; font-weight: 800; background: #fff; box-shadow: 0 2px 8px rgba(24,50,74,.06); }
.mag-view-all--coral { color: #9E432A; border-color: #C85B39; }
.mag-view-all--sage { color: #42613E; border-color: #668361; }
.mag-view-all--teal { color: #0E5E65; border-color: #267C83; }

.mag-row3.mag-row3--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mag-row3.mag-row3--two .mag-card--vertical .mag-card-media { aspect-ratio: 16 / 9; }

.mag-cta-dark { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.mag-cta-dark-inner { padding-bottom: clamp(3.4rem, 2.7rem + 2vw, 5rem); }
.mag-cta-dark-inner > .wp-block-buttons { margin-top: 4px; }
.mag-cta-dark-btn .wp-block-button__link { min-height: 52px; padding: 0 26px; font-size: 16px; font-weight: 800; }

.wp-site-blocks { gap: 0 !important; }
.mag-footer { border-top: 0 !important; }
.mag-footer-grid { padding-top: 3.5rem; padding-bottom: 2.5rem; }
.mag-footer-title { font-size: 30px; }
.mag-footer-copy-text { font-size: 16px; line-height: 1.7; }
.mag-footer-heading { font-size: 13px; }
.mag-footer-links { font-size: 16px; line-height: 1.55; }
.mag-footer-bottom { padding: 22px 32px 28px; }
.mag-footer-bottom .mag-footer-copy { font-size: 13.5px; line-height: 1.6; }
.mag-footer-bottom .mag-footer-copy span { display: block; margin-top: 4px; }

@media (max-width: 780px) {
  .mag-header-inner { min-height: 66px; padding-block: 10px; gap: 10px; }
  .mag-logo { font-size: 23px; }
  .mag-search-toggle { width: 40px; height: 40px; flex-basis: 40px; }
  .mag-join-button { display: none; }
  .mag-row3.mag-row3--two { grid-template-columns: 1fr; }
  .mag-view-all { min-height: 40px; padding: 8px 14px; font-size: 13px; }
  .mag-cta-dark-btn .wp-block-button__link { min-height: 50px; padding: 0 24px; font-size: 15px; }
  .mag-footer-grid { padding-top: 3rem; }
}
