:root {
  color-scheme: light;
}

/* Native fade transition between page navigations (Chrome/Edge; ignored gracefully elsewhere) */
@view-transition {
  navigation: auto;
}

/* No fade-in on load: the first screen shows at once (it looked washed out while fading) */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
@font-face {
  font-family: 'Avant Garde';
  src: url('/fonts/AVGARDN_2.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Avant Garde';
  src: url('/fonts/AVGARDD_2.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Avant Garde';
  src: url('/fonts/AVGARDDO_2.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Cooper Black';
  src: url('/fonts/COOPBL.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  font-family: 'Avant Garde', sans-serif;
  color: #000000;
  padding: 24px;
}
.container {
  text-align: center;
  max-width: 560px;
}
.logo {
  width: 140px;
  height: 140px;
  margin-bottom: 32px;
}
h1, h2, h3 {
  font-family: 'Cooper Black', serif;
  font-weight: normal;
}
h1 {
  font-size: 2.1rem;
  margin: 0 0 20px;
}
p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 16px;
  opacity: 0.85;
}
.legal {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: 32px;
}
.back-link {
  position: fixed;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cooper Black', serif;
  font-size: 1rem;
  color: inherit;
  text-decoration: none;
  opacity: 0.75;
  z-index: 10;
}
.back-link:hover {
  opacity: 1;
}
.back-link img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

/* Sketchbook design system */
.tilt-1 { transform: rotate(-2.2deg); }
.tilt-2 { transform: rotate(1.6deg); }
.tilt-3 { transform: rotate(-1.2deg); }
.tilt-4 { transform: rotate(2deg); }
.sketch-block {
  border: 3px solid #000000;
  border-radius: 16px 22px 18px 24px / 22px 16px 24px 18px;
}
.btn-sketch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 14px 18px 16px 20px / 20px 16px 18px 14px;
  font-family: 'Avant Garde', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  border: 3px solid #000000;
  text-decoration: none;
}

/* Shared site nav + hero (homepage, radio, podcast) */
.page-wrap { width: 100%; overflow: hidden; position: relative; }
/* Phones first: brand on the left, theme and menu buttons on the right, a thin rule under it.
   From tablet up (below): top row, centred masthead, tagline on a rule, centred menu. */
.nav { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand actions"; align-items: center; column-gap: 12px; padding: 12px 16px; max-width: 1100px; margin: 0 auto; border-bottom: 1px solid #000000; }
.nav-date { display: none; grid-area: date; margin: 0; font-family: 'Avant Garde', sans-serif; font-size: 0.82rem; line-height: 1.2; color: #4A4940; }
.nav-brand-wrap { grid-area: brand; min-width: 0; }
.nav-brand { position: relative; display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.nav-brand img { display: block; width: 40px; height: 40px; border-radius: 50%; }
/* Masthead: "Segnali" is the name; the section sits under it, aligned right, lighter and in the section colour */
.nav-brand-line { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; white-space: nowrap; }
.nav-brand-name { font-family: 'Cooper Black', serif; font-size: 1.9rem; line-height: 0.85; }
.nav-brand-section { font-family: 'Avant Garde', sans-serif; font-weight: 400; font-size: 0.82rem; line-height: 1; padding-right: 0; }
/* Text shades of the section colours that stay readable on white (yellow becomes black) */
.nav-brand-line--magazine .nav-brand-section { color: #E0281D; }
.nav-brand-line--podcast .nav-brand-section { color: #8A2BE2; }
.nav-brand-line--radio .nav-brand-section { color: #000000; }
.nav-brand-line--assoc .nav-brand-section { color: #0077D6; }
.nav-tagline { display: none; }
.nav-links { grid-area: links; display: flex; align-items: center; gap: 26px; }
.nav-links a { display: inline-block; font-family: 'Avant Garde', sans-serif; font-weight: 700; font-size: 1.06rem; color: #000000; text-decoration: none; padding-bottom: 9px; border-bottom: 6px solid transparent; }
.nav-links > a::first-letter { text-transform: uppercase; }
/* «in arrivo» pill on projects not launched yet, in the project's colour (black text for contrast) */
.nav-soon { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 10px; font-size: 0.69rem; line-height: 1.3; font-weight: 700; color: #000000; white-space: nowrap; vertical-align: 2px; }
.nav-soon--podcast { background: #B060FF; }
.nav-soon--radio { background: #E3FF00; }
.nav-cta { display: inline-block; padding: 9px 18px; font-family: 'Avant Garde', sans-serif; font-weight: 700; font-size: 0.88rem; line-height: 1.2; color: #FFFFFF; background: #000000; border-radius: 999px; text-decoration: none; }
.nav-cta::first-letter { text-transform: uppercase; }
.nav-cta:hover { background: #2B2A27; }
.nav-actions { grid-area: actions; display: flex; align-items: center; gap: 6px; }
.nav-actions-wrap { grid-area: actions; display: flex; align-items: center; gap: 6px; }

@media (min-width: 641px) {
  .nav { grid-template-columns: 1fr auto; grid-template-rows: 56px auto auto; grid-template-areas: "date actions" "brand brand" "links links"; padding: 0 24px; border-bottom: 0; }
  /* Closing rule under the menu, as wide as the content (not the padding) */
  .nav::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 1px; background: #000000; }
  /* The thin rule under the top row runs across the whole window */
  .nav::before { content: ""; position: absolute; left: 50%; top: 55px; width: 100vw; margin-left: -50vw; height: 1px; background: #E6E4DC; }
  .nav-date:not([hidden]) { display: block; }
  .nav-actions-wrap { justify-self: end; }
  .lang-switch--desktop { order: -1; margin-right: 6px; }
  /* Centred masthead: the word "Segnali" sits on the page axis, the round logo hangs to its left */
  .nav-brand-wrap { display: flex; flex-direction: column; align-items: center; padding-top: 26px; }
  .nav-brand picture { position: absolute; right: 100%; top: -4px; margin-right: 18px; }
  .nav-brand img { width: 76px; height: 76px; }
  .nav-brand-line { gap: 2px; }
  .nav-brand-name { font-size: 5.25rem; line-height: 0.8; letter-spacing: -0.01em; }
  .nav-brand-section { font-size: 1.25rem; padding-right: 3px; }
  /* Tagline between two thick rules, the menu right under it */
  .nav-tagline { display: flex; align-items: center; gap: 18px; width: 100%; margin: 10px 0 0; font-family: 'Avant Garde', sans-serif; font-size: 0.88rem; letter-spacing: 0.04em; line-height: 1.2; color: #2B2A27; white-space: nowrap; }
  .nav-tagline::before, .nav-tagline::after { content: ""; flex: 1; height: 2px; background: #000000; }
  .nav-links { justify-self: center; flex-wrap: wrap; justify-content: center; gap: 4px 40px; padding-top: 14px; }
}
@media (min-width: 641px) and (max-width: 860px) {
  .nav-links { gap: 4px 24px; }
  .nav-brand-name { font-size: 4.25rem; }
  .nav-brand img { width: 62px; height: 62px; }
}

/* Language selector: small text row, active language underlined */
.lang-switch { display: flex; align-items: center; gap: 4px; font-family: 'Avant Garde', sans-serif; font-weight: 600; font-size: 0.78rem; }
.lang-switch--desktop { margin-right: 6px; }
.lang-switch a { display: inline-block; min-width: 24px; text-align: center; color: #000000; text-decoration: none; opacity: 0.65; padding: 5px 4px 3px; border-bottom: 2px solid transparent; }
.lang-switch a.active { opacity: 1; border-bottom-color: #000000; }
.lang-switch--mobile { display: none; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 2px solid #000000;
  border-radius: 10px 14px 12px 16px / 14px 10px 16px 12px;
  background: #FFFFFF;
  color: #000000;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.hero { position: relative; background: #000000; }
/* Inner pages that open with a coloured hero: a gap between the menu's closing rule and the hero */
#main-content > .hero:first-child { margin-top: 28px; }
@media (max-width: 640px) {
  #main-content > .hero:first-child { margin-top: 20px; }
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(28,27,31,0.08) 1.6px, transparent 1.6px);
  background-size: 24px 24px;
}
.hero-inner { position: relative; max-width: 1100px; margin: 0 auto; padding: 50px 24px 70px; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
/* min-width/max-width: on phones a long badge (e.g. the French association one) wraps instead of
   pushing the hero text past the right edge */
.hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; text-align: left; }
.hero-badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; max-width: 100%; border: 3px solid #000000; background: #FFFFFF; padding: 6px 16px 8px; border-radius: 999px; font-family: 'Avant Garde', sans-serif; font-weight: 600; font-size: 0.95rem; }
.hero-title { font-size: 2.6rem; line-height: 1.12; margin: 0; }
.hero-title mark { background: transparent; color: #FFFFFF; padding: 0 6px; border-radius: 4px; }
.hero-copy p.lede { font-size: 1.05rem; line-height: 1.55; color: #33321C; opacity: 1; max-width: 460px; margin: 0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { flex: 0 1 260px; display: flex; justify-content: center; }
.hero-visual .badge-circle { width: 220px; height: 220px; border-radius: 50%; border: 4px solid #000000; background: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.hero-visual img { width: 140px; height: 140px; }

@keyframes spin-record {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin-record {
  animation: spin-record 10s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .spin-record { animation: none; }
}

.footer { max-width: 1100px; margin: 0 auto; padding: 30px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 26px; height: 26px; border-radius: 50%; }
.footer-brand-text { display: flex; align-items: baseline; gap: 6px; }
.footer-brand-text span { font-family: 'Avant Garde', sans-serif; font-weight: normal; font-size: 0.9rem; opacity: 0.85; }
.footer-brand-text .footer-idi { opacity: 0.6; }
.footer-links { display: flex; gap: 4px 14px; }
.footer-links a { display: inline-block; padding: 6px 3px; font-family: 'Avant Garde', sans-serif; font-weight: 600; font-size: 0.95rem; color: #000000; text-decoration: none; }
.footer-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.footer-legal { max-width: 1100px; margin: 0 auto 28px; padding: 0 24px; display: flex; justify-content: center; gap: 10px; }
.footer-legal a { display: inline-block; padding: 6px 6px; font-family: 'Avant Garde', sans-serif; font-weight: 600; font-size: 0.75rem; color: #000000; opacity: 0.65; text-decoration: none; }
.footer-legal a:hover { opacity: 0.8; }

/* Donation box (src/_includes/support/*.njk): magazine home and association page */
.cta-section { background: #000000; padding: 60px 24px; position: relative; overflow: hidden; }
.cta-inner { position: relative; max-width: 760px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta-inner h2 { color: #FFFFFF; font-size: 2rem; }
.cta-inner p { color: #C9C8D0; font-size: 0.98rem; line-height: 1.55; margin: 0; }
.cta-inner .btn-sketch { background: #FFFFFF; color: #000000; }
.donation-info { font-family: 'Avant Garde', sans-serif; font-size: 0.85rem; color: #C9C8D0; text-align: center; }
.donation-info strong { color: #FFFFFF; }
.donation-info .donation-holder { font-size: 0.78rem; opacity: 0.75; margin-top: 4px; }

/* Donation options (support/it.njk): three columns on desktop, one on phones */
.cta-section:has(.cta-options) { padding: 40px 24px 44px; }
.cta-inner:has(.cta-options) { max-width: 1040px; gap: 22px; }
.cta-inner h2 { margin: 0; }
.cta-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 0; width: 100%; }
/* Same structure in every column: small title on top, content centred under it; full-height dividers */
.cta-option { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 14px; padding: 2px 32px; text-align: center; }
.cta-option + .cta-option { border-left: 2px solid #3A393F; }
.cta-option-title { font-family: 'Avant Garde', sans-serif; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: #8B8A91; }
.cta-option p { max-width: 300px; }
.cta-option .donation-info { text-align: center; }
.cta-option .donation-info p { margin: 0; }
@media (max-width: 860px) {
  .cta-options { grid-template-columns: 1fr; gap: 22px; max-width: 420px; margin: 0 auto; }
  .cta-option { padding: 0; }
  .cta-option + .cta-option { border-left: 0; border-top: 2px solid #3A393F; padding-top: 22px; }
}
/* Eroilocali card: their script draws a big card; only the amount, the donation count and the button stay */
.donate-widget-card { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 270px; max-width: 100%; padding: 16px 20px 18px; background: #FFFFFF; color: #000000; text-align: center; }
.donate-widget-logo { display: block; width: auto; height: 32px; }
.donate-widget-card .cf-project-widget { width: 100%; }
.donate-widget-card .cf-project-widget .widget-article-card { width: auto; border: 0; }
/* Their script can start twice (its own DOMContentLoaded + our call after consent): show only one card */
.donate-widget-card .cf-project-widget .widget-article-card ~ .widget-article-card { display: none; }
.donate-widget-card .cf-project-widget .widget-article-card__content-wrapper { background: transparent; }
.donate-widget-card .cf-project-widget .widget-article-card__header,
.donate-widget-card .cf-project-widget .widget-article-card__image,
.donate-widget-card .cf-project-widget .widget-article-card__logo,
.donate-widget-card .cf-project-widget .widget-article-card__content,
.donate-widget-card .cf-project-widget [data-footer] > :nth-child(2) { display: none; }
.donate-widget-card .cf-project-widget .widget-article-card__progress { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 0 0 10px; }
/* "CHF 300.00 Gesammelte Spenden": keep the figure, replace their (German) label with ours */
.donate-widget-card .cf-project-widget [data-item="sum"] { font-family: 'Avant Garde', sans-serif; font-weight: 600; font-size: 0.9rem; color: #000000; text-align: center; }
.donate-widget-card .cf-project-widget [data-item="sum"] strong { display: block; text-align: center; font-family: 'Cooper Black', serif; font-size: 1.9rem; line-height: 1.05; color: #000000; white-space: nowrap; }
.donate-widget-card .cf-project-widget [data-footer] > :nth-child(3) { font-family: 'Avant Garde', sans-serif; font-size: 0.85rem; color: #4A4940; text-align: center; }
.donate-widget-card .cf-project-widget [data-footer] > :nth-child(3) strong { display: inline; font-family: inherit; font-size: inherit; font-weight: 700; color: inherit; }
/* The button, also before consent (then it is the only thing in the card) */
.donate-widget-card .cf-project-widget .widget-btn { display: flex; align-items: center; justify-content: center; width: 100%; padding: 9px 16px; font-family: 'Avant Garde', sans-serif; font-weight: 600; font-size: 1.05rem; text-align: center; color: #000000; background: #FF3B30; border: 3px solid #000000; border-radius: 14px 18px 16px 20px / 20px 16px 18px 14px; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.donate-widget-card .cf-project-widget .widget-btn::after { content: " →"; white-space: pre; }
.donate-widget-card .cf-project-widget .widget-btn:hover,
.donate-widget-card .cf-project-widget .widget-btn:focus-visible { color: #000000; background: #FF3B30; transform: translate(-2px, -2px); box-shadow: 3px 3px 0 #000000; }
@media (prefers-reduced-motion: reduce) { .donate-widget-card .cf-project-widget .widget-btn { transition: none; } .donate-widget-card .cf-project-widget .widget-btn:hover { transform: none; } }

@media (max-width: 680px) {
  .sponsors-row { flex-direction: column; gap: 10px; }
  .footer { flex-direction: column; justify-content: center; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
}

/* Sponsor thank-you strip, between the CTA section and the footer */
.sponsors-section { max-width: 1100px; margin: 0 auto; padding: 30px 24px; text-align: center; }
.sponsors-row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.sponsors-label { font-family: 'Avant Garde', sans-serif; font-weight: 600; font-size: 0.78rem; color: #000000; opacity: 0.65; }
.sponsor-logo { height: 18px; width: auto; }

@media (max-width: 640px) {
  .hero-title { font-size: 2rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: #FFFFFF;
    border-top: 1px solid #000000;
    border-bottom: 2px solid #000000;
    padding: 12px 16px 18px;
    z-index: 30;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0 6px; font-size: 1.15rem; width: fit-content; border-bottom-width: 4px; }
  .lang-switch--desktop { display: none; }
  .lang-switch--mobile { display: flex; gap: 16px; }
  .nav-links .lang-switch--mobile a {
    width: auto;
    padding: 0 0 2px;
    font-size: 0.95rem;
    font-weight: normal;
  }

  /* On mobile, Instagram + support button move from the header into the burger menu */
  .nav-actions a[aria-label*="Instagram"] {
    display: none !important;
  }
  .nav-actions .nav-cta {
    display: none;
  }
  .nav-links .mobile-support-btn {
    padding: 10px 18px;
    font-size: 1rem;
    color: #FFFFFF;
    border-bottom: 0;
    margin: 8px 0 2px;
  }
  .mobile-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid #E6E4DC;
    width: 100%;
  }
  .mobile-bottom-row a[aria-label*="Instagram"] {
    order: 1;
  }
  .nav-links .mobile-bottom-row a {
    width: auto;
    padding: 0;
  }
}
@media (min-width: 641px) {
  .mobile-bottom-row { display: none; }
  .nav-links .mobile-support-btn { display: none; }
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  max-width: 360px;
  background: #FFFFFF;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: 0 6px 24px rgba(28,27,31,0.18);
}
.cookie-banner p {
  flex: 1 1 220px;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  opacity: 0.85;
}
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-banner .btn-sketch {
  padding: 8px 18px;
  font-size: 0.85rem;
  border: none;
}
@media (max-width: 480px) {
  .cookie-banner {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 12px;
    width: calc(100% - 24px);
    max-width: 360px;
    padding: 16px 18px;
  }
}

/* Radio and podcast: the presentation continues below the hero (kept short on phones) */
.page-about { max-width: 820px; margin: 0 auto; padding: 36px 24px 0; text-align: left; }
.page-about p { font-size: 1rem; line-height: 1.6; opacity: 1; margin: 0 0 14px; max-width: 640px; }

/* Simple legal/article page (privacy policy, etc.) */
.legal-page { max-width: 760px; margin: 0 auto; padding: 50px 24px 70px; text-align: left; }
.legal-page h1 { font-size: 2rem; margin: 0 0 6px; }
.legal-page .legal-updated { font-size: 0.85rem; opacity: 0.55; margin: 0 0 36px; }
.legal-page h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.legal-page h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.legal-page p, .legal-page li { font-size: 0.98rem; line-height: 1.6; opacity: 0.9; margin: 0 0 12px; }
.legal-page ul { margin: 0 0 16px; padding-left: 22px; }
.legal-page a { color: #0060B8; }
.legal-page table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.9rem; }
.legal-page th, .legal-page td { text-align: left; padding: 8px 10px; border-bottom: 2px solid #F0EEE6; vertical-align: top; }
.legal-page th { font-family: 'Avant Garde', sans-serif; font-weight: 600; }
/* Phones: wide tables scroll inside their own box instead of pushing the page sideways;
   the long manifesto link in the association heroes may wrap */
@media (max-width: 640px) {
  .legal-page table { display: block; overflow-x: auto; }
  .hero-copy .hero-note a { white-space: normal; }
}

/* Small red kicker with a short dash, above section titles (magazine home, newsletter box) */
.mag-section-kicker { display: block; margin-bottom: 8px; padding-left: 26px; font-family: 'Avant Garde', sans-serif; font-weight: 700; font-size: 0.82rem; line-height: 1.2; color: #C4170D; background: linear-gradient(#FF3B30, #FF3B30) left center / 18px 2px no-repeat; }
.mag-section-kicker::first-letter { text-transform: uppercase; }

/* Newsletter signup (Substack): one box, the same on the magazine home and on the inner pages
   (src/_includes/magazine-newsletter.njk). On inner pages it sits in .newsletter-section. */
.newsletter-section { max-width: 1100px; margin: 0 auto; padding: 50px 24px; }
.mag-newsletter { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin: 34px 0; padding: 22px 26px; background: var(--mag-soft, #F4F3EF); border: 3px solid var(--mag-ink, #000000); border-radius: 16px; }
.newsletter-section .mag-newsletter { margin: 0; }
.mag-newsletter-copy { flex: 1 1 320px; }
.mag-newsletter-title { margin: 0; font-family: 'Cooper Black', serif; font-weight: normal; font-size: 1.35rem; line-height: 1.2; color: var(--mag-ink, #000000); opacity: 1; }
.mag-newsletter-text { margin: 6px 0 0; color: var(--mag-muted, #4A4940); opacity: 1; font-size: 0.95rem; }
.mag-newsletter .newsletter-form { flex: 1 1 340px; margin: 0; justify-content: flex-end; }
.mag-newsletter .newsletter-note { width: 100%; margin: 0; }
.mag-newsletter .newsletter-note a { color: inherit; }
@media (max-width: 640px) {
  .newsletter-section { padding-left: 16px; padding-right: 16px; }
}
.newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; width: 100%; max-width: 420px; }
.newsletter-form input[type="email"] { flex: 1 1 220px; height: 52px; padding: 0 20px; border-radius: 14px 18px 16px 20px / 20px 16px 18px 14px; border: 3px solid #000000; font-family: 'Avant Garde', sans-serif; font-size: 1rem; background: #FFFFFF; color: #000000; box-sizing: border-box; }
.newsletter-form input[type="email"]::placeholder { color: #75747A; }
.newsletter-form button { flex: 0 0 auto; background: #000000; color: #FFFFFF; }
.newsletter-note { font-family: 'Avant Garde', sans-serif; font-size: 0.75rem; color: #4A4940; opacity: 0.85; margin: 2px 0 0; }
@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"], .newsletter-form button { width: 100%; flex-basis: auto; }
}

/* Accessibility: visually-hidden text for screen readers, and skip-to-content link */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: #000000; color: #FFFFFF; padding: 12px 20px; border-radius: 8px; z-index: 2000; text-decoration: none; font-family: 'Avant Garde', sans-serif; font-weight: 600; transition: top 0.15s ease; }
.skip-link:focus { top: 12px; }

/* Keyboard focus: thick black outline with a white ring, visible on light, black and red backgrounds */
:focus-visible { outline: 3px solid #000000; outline-offset: 2px; box-shadow: 0 0 0 2px #FFFFFF; }
/* <main> only receives focus from the skip link: no ring around the whole page */
main:focus { outline: none; box-shadow: none; }

/* "Write to us" box with two paths (propose a project / write with us), see src/_includes/contact-box.njk */
.contact-section { max-width: 1000px; margin: 0 auto; padding: 40px 24px; }
.contact-block { background: #FFFFFF; padding: 28px 32px 24px; text-align: left; }
.contact-block .kicker { display: block; font-family: 'Avant Garde', sans-serif; font-weight: 600; font-size: 1.05rem; color: #000000; margin-bottom: 8px; }
.contact-block h2 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 18px; color: #000000; }
.contact-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.contact-path { display: flex; flex-direction: column; padding-right: 28px; }
.contact-path--join { padding: 0 0 0 28px; border-left: 3px solid #000000; }
.contact-path h3 { font-size: 1.25rem; margin: 0 0 8px; color: #000000; }
.contact-block p { font-size: 0.98rem; line-height: 1.55; color: #33321C; opacity: 1; margin: 0 0 16px; }
.contact-block p a { color: #000000; font-weight: 600; white-space: nowrap; }
.contact-actions { display: flex; margin-top: auto; }
.contact-btn { gap: 10px; width: 100%; padding: 11px 18px; font-size: 1rem; }
.contact-btn--mail { background: #000000; color: #FFFFFF; }
.contact-btn--mail:hover, .contact-btn--mail:focus-visible { background: #333333; }
.contact-block .contact-note { font-family: 'Avant Garde', sans-serif; font-size: 0.9rem; color: #5E5D63; margin: 20px 0 0; padding-top: 14px; border-top: 2px dashed #000000; text-align: center; }
.contact-detail { font-weight: 600; color: #000000; white-space: nowrap; user-select: all; }
@media (max-width: 720px) {
  .contact-block { padding: 24px 20px 20px; }
  .contact-block h2 { font-size: 1.45rem; }
  .contact-paths { grid-template-columns: 1fr; gap: 22px; }
  .contact-path { padding: 0; }
  .contact-path--join { padding: 22px 0 0; border-left: 0; border-top: 3px solid #000000; }
}

/* Light/dark switch in the nav (js/theme.js): moon in light mode, sun in dark mode */
.theme-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; flex-shrink: 0; cursor: pointer; color: #000000; background: transparent; border: 0; border-radius: 3px; }
.theme-toggle:hover { background: #F4F3EF; }
.theme-toggle-sun { display: none; }
[data-theme="dark"] .theme-toggle-moon { display: none; }
[data-theme="dark"] .theme-toggle-sun { display: block; }
@media (max-width: 640px) {
  .theme-toggle { width: 44px; height: 44px; }
}
@media (max-width: 380px) {
  .nav-brand { gap: 8px; }
  .nav-brand img { width: 36px; height: 36px; }
  .nav-brand-name { font-size: 1.6rem; }
}

/* Phones: footer and legal links on the same 16px side margin as the masthead */
@media (max-width: 640px) {
  .footer, .footer-legal { padding-left: 16px; padding-right: 16px; }
}
