/*
Theme Name: Matteo Birthday
Theme URI: https://lab1.itechblog.it/
Author: Novamira + Codex
Description: Custom block theme for Matteo Spirandelli's birthday RSVP during WordCamp Pisa.
Version: 1.1.0
Requires at least: 6.0
Text Domain: matteo-birthday
*/

:root {
  --ink: #101010;
  --paper: #fff9f0;
  --cream: #f1e7dc;
  --red: #ff4f3f;
  --red-strong: #ff5f50;
  --blue: #245cff;
  --green: #9cf4c6;
  --yellow: #ffe36d;
  --muted: #635f58;
  --line: rgba(16, 16, 16, .14);
  --grid-line: rgba(16, 16, 16, .08);
  --shadow: #101010;
  --bg: var(--paper);
  --bg-soft: #fffdf8;
  --surface: #fffdfa;
  --surface-strong: #fff8df;
  --text: var(--ink);
  --text-soft: #34322f;
  --text-muted: var(--muted);
  --border: var(--ink);
  --header-bg: rgba(255, 249, 240, .84);
  --input-bg: #f6f2ec;
  --alert-bg: #ffea00;
  --header-height: 88px;
  --content-max: 1240px;
}

:root[data-theme="dark"] {
  --bg: #12110f;
  --bg-soft: #171512;
  --surface: #201e1a;
  --surface-strong: #28241d;
  --text: #fff7ea;
  --text-soft: #eadfce;
  --text-muted: #c7b9a6;
  --line: rgba(255, 247, 234, .18);
  --grid-line: rgba(255, 247, 234, .10);
  --border: rgba(255, 247, 234, .72);
  --shadow: #050505;
  --header-bg: rgba(18, 17, 15, .86);
  --input-bg: #151412;
  --alert-bg: #fff06a;
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: 0;
  overflow-x: hidden;
  width: 100%;
}

body.admin-bar .site-nav { top: 32px; }

.wp-site-blocks,
.wp-site-blocks > *,
.wp-block-post-content > * { margin-block-start: 0; }

img { max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3 { overflow-wrap: anywhere; }

.page,
.home-main,
.archive-page,
.page-content,
.not-found-page {
  background: var(--bg);
  color: var(--text);
}

.shell {
  margin: 0 auto;
  max-width: var(--content-max);
  padding: 0 clamp(22px, 5vw, 72px);
  width: 100%;
}

.section { padding: clamp(68px, 9vw, 126px) 0; }

.eyebrow,
.section-kicker,
.post-meta {
  color: var(--red);
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 950;
  letter-spacing: .08em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.post-meta { font-size: 13px; }

h1,
.hero-title,
.blog-title,
.not-found-title {
  font-size: clamp(58px, 7.6vw, 112px);
  letter-spacing: -.055em;
  line-height: .92;
  margin: 0;
  text-wrap: balance;
}

.section h2,
.program h2,
.rsvp-panel h2,
.page-title {
  font-size: clamp(44px, 6.5vw, 88px);
  letter-spacing: -.055em;
  line-height: .98;
  margin: 0 0 24px;
  text-wrap: balance;
}

.section-copy,
.lede {
  color: var(--text-soft);
  font-size: clamp(19px, 2vw, 29px);
  line-height: 1.38;
  margin: 0;
  max-width: 780px;
}

.site-nav {
  align-items: center;
  backdrop-filter: blur(18px);
  background: var(--header-bg);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  left: 0;
  min-height: var(--header-height);
  padding: 20px clamp(22px, 5vw, 72px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 60;
}

.brand {
  align-items: center;
  display: flex;
  flex: 0 1 auto;
  gap: 12px;
  margin-right: auto;
  min-width: 0;
}

.brand .wp-block-site-logo,
.brand .wp-block-site-logo a,
.brand .wp-block-site-logo img {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: block;
}

.brand .wp-block-site-title,
.brand .wp-block-site-title a {
  color: var(--text);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.1;
  margin: 0;
  text-decoration: none;
}

.site-menu-panel {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  justify-content: flex-end;
  margin-left: auto;
  width: auto;
}

.nav-actions,
.site-menu-panel .wp-block-navigation__container {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.pill,
.wp-block-navigation-item__content,
.theme-toggle {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  font-size: 14px;
  font-weight: 850;
  justify-content: center;
  min-height: 40px;
  padding: 10px 15px;
  text-decoration: none;
}

.wp-block-navigation-item.dark .wp-block-navigation-item__content {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

:root[data-theme="dark"] .wp-block-navigation-item.dark .wp-block-navigation-item__content {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.theme-toggle {
  appearance: none;
  background: var(--surface);
  cursor: pointer;
  gap: 8px;
  margin-left: 10px;
  min-width: 132px;
}

.theme-toggle__icon {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  line-height: 1;
}

.mobile-menu-toggle {
  align-items: center;
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  display: none;
  flex: 0 0 auto;
  height: 46px;
  justify-content: center;
  margin-left: auto;
  padding: 0;
  position: relative;
  width: 48px;
}

.mobile-menu-toggle span {
  background: currentColor;
  border-radius: 999px;
  display: block;
  height: 2px;
  left: 14px;
  position: absolute;
  transition: transform .18s ease, opacity .18s ease, top .18s ease;
  width: 18px;
}

.mobile-menu-toggle span:nth-child(1) { top: 15px; }
.mobile-menu-toggle span:nth-child(2) { top: 22px; }
.mobile-menu-toggle span:nth-child(3) { top: 29px; }
.site-menu-open .mobile-menu-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.site-menu-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
.site-menu-open .mobile-menu-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.demo-alert,
.demo-form-alert,
.privacy-demo-alert,
.rsvp-demo-alert {
  background: var(--alert-bg) !important;
  border: 3px solid var(--ink) !important;
  border-radius: 18px;
  box-shadow: 8px 8px 0 var(--ink);
  color: var(--ink) !important;
  font-weight: 900;
  line-height: 1.38;
}

.demo-alert p,
.demo-alert strong,
.demo-form-alert strong,
.privacy-demo-alert strong,
.rsvp-demo-alert strong { color: var(--ink) !important; }

.home-main > .demo-alert {
  margin: calc(var(--header-height) + 24px) clamp(22px, 5vw, 72px) 28px;
  padding: 18px 22px;
}

body.admin-bar .home-main > .demo-alert { margin-top: calc(var(--header-height) + 58px); }

.demo-alert p {
  font-size: clamp(18px, 1.8vw, 24px);
  margin: 0 auto;
  max-width: var(--content-max);
  text-transform: uppercase;
}

.hero {
  display: grid;
  overflow: hidden;
  padding: clamp(128px, 14vh, 176px) 0 clamp(72px, 9vw, 116px);
  place-items: center;
  position: relative;
}

.home-main > .demo-alert + .hero { padding-top: clamp(44px, 6vw, 72px); }

.hero::before {
  background:
    radial-gradient(circle at 84% 24%, rgba(255, 227, 109, .78), transparent 24%),
    radial-gradient(circle at 10% 72%, rgba(156, 244, 198, .62), transparent 26%);
  content: "";
  filter: blur(26px);
  inset: -120px;
  pointer-events: none;
  position: absolute;
}

:root[data-theme="dark"] .hero::before {
  background:
    radial-gradient(circle at 84% 24%, rgba(255, 227, 109, .16), transparent 24%),
    radial-gradient(circle at 10% 72%, rgba(36, 92, 255, .18), transparent 28%);
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(56px, 8vw, 132px);
  grid-template-columns: minmax(0, .92fr) minmax(420px, .78fr);
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: grid;
  gap: clamp(22px, 2.8vw, 38px);
}

.hero-copy > * { margin-block: 0; }
.hero-title { max-width: 820px; }
.hero-title-accent { color: var(--blue); display: block; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 6px;
}

.cta .wp-block-button__link,
.cta.wp-block-button .wp-block-button__link {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 16px;
  font-weight: 950;
  justify-content: center;
  min-height: 62px;
  padding: 18px 28px;
  text-decoration: none;
  transition: transform .18s ease;
}

.cta .wp-block-button__link:hover { transform: translateY(-2px); }
.cta.primary .wp-block-button__link { background: var(--red-strong); box-shadow: 0 8px 0 var(--ink); }
.cta.secondary .wp-block-button__link { background: var(--surface); color: var(--text); }
:root[data-theme="dark"] .cta.secondary .wp-block-button__link { border-color: var(--border); }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: 34px;
  box-shadow: 18px 18px 0 var(--shadow);
  min-height: clamp(500px, 54vw, 620px);
  overflow: hidden;
  position: relative;
}

.hero-card::before {
  background: linear-gradient(145deg, var(--blue), var(--green));
  clip-path: polygon(0 0, 100% 0, 100% 56%, 0 74%);
  content: "";
  height: 64%;
  inset: 0 0 auto;
  position: absolute;
}

.hero-card::after,
.not-found-page::before {
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 30px 30px;
  content: "";
  inset: 0;
  opacity: .55;
  pointer-events: none;
  position: absolute;
}

.date-card {
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: 26px;
  bottom: clamp(28px, 3vw, 42px);
  color: var(--ink);
  left: clamp(28px, 3vw, 42px);
  padding: clamp(24px, 3vw, 34px);
  position: absolute;
  right: clamp(28px, 3vw, 42px);
  z-index: 2;
}

.date-label,
.date-card small {
  color: var(--ink);
  display: block;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .08em;
  margin: 0;
  text-transform: uppercase;
}

.date-number {
  color: var(--ink);
  display: block;
  font-size: clamp(78px, 8vw, 126px);
  letter-spacing: -.07em;
  line-height: .8;
  margin: 12px 0 0;
}

.date-card p:not(.date-label) {
  color: #302f2c;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.38;
  margin: 16px 0 0;
}

.ticker {
  background: var(--ink);
  color: var(--green);
  overflow: hidden;
  padding: 16px 0;
}

.ticker-track {
  animation: ticker 24s linear infinite;
  display: inline-flex;
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 950;
  gap: 30px;
  margin: 0;
  white-space: nowrap;
}

@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.cards.wp-block-columns {
  align-items: stretch !important;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 42px;
}

.cards > .wp-block-column { display: flex; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  min-height: 250px;
  padding: 28px;
  width: 100%;
}

.cards > .wp-block-column:nth-child(2) .info-card { background: #eef6ff; }
.cards > .wp-block-column:nth-child(3) .info-card { background: #fff1df; }
:root[data-theme="dark"] .cards > .wp-block-column .info-card { background: var(--surface); }

.card-number {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-weight: 950;
  height: 42px;
  justify-content: center;
  margin: 0 0 26px;
  width: 42px;
}
:root[data-theme="dark"] .card-number { background: var(--text); color: var(--bg); }

.info-card h3 {
  color: var(--text);
  font-size: 30px;
  letter-spacing: -.025em;
  line-height: 1;
  margin: 0 0 12px;
}

.info-card p:not(.card-number) {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.48;
  margin: 0;
}

.program { background: var(--cream); }
:root[data-theme="dark"] .program { background: var(--bg-soft); }

.program-grid {
  align-items: center;
  display: grid;
  gap: clamp(34px, 6vw, 80px);
  grid-template-columns: .86fr 1.14fr;
}

.program-poster-image {
  border-radius: 34px;
  box-shadow: 14px 14px 0 var(--shadow);
  margin: 0;
  overflow: hidden;
}

.program-poster-image img {
  aspect-ratio: 7 / 8;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.schedule {
  display: grid;
  gap: 13px;
  margin-top: 34px;
}

.schedule-item {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  display: grid;
  gap: 18px;
  grid-template-columns: 96px 1fr;
  padding: 18px;
}

.schedule-date {
  color: var(--blue);
  font-size: 22px;
  font-weight: 950;
  margin: 0;
}

.schedule-item p:not(.schedule-date) {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.4;
  margin: 0;
}

.rsvp-section { background: #070706; color: #fff; }
.rsvp-section > .shell { display: grid; gap: 28px; }
.rsvp-panel {
  background: var(--surface);
  border-radius: 34px;
  color: var(--text);
  display: grid;
  gap: clamp(28px, 5vw, 58px);
  grid-template-columns: .82fr 1.18fr;
  padding: clamp(28px, 5vw, 58px);
}

.rsvp-panel p { color: var(--text-muted); font-size: 19px; line-height: 1.45; margin: 0; }
.rsvp-panel .section-kicker { margin-bottom: 18px; }
.rsvp-panel .rsvp-demo-alert { display: block; font-size: clamp(15px, 1.35vw, 17px); margin-top: 20px; padding: 16px 18px; }

.rsvp-form {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.rsvp-form br { display: none; }
.rsvp-form label { display: grid; gap: 8px; }
.rsvp-form label span {
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  font: inherit;
  min-height: 54px;
  padding: 14px 15px;
  width: 100%;
}

.rsvp-form .wide,
.rsvp-form .wpcf7-submit,
.rsvp-form button,
.wpcf7 form .wpcf7-response-output { grid-column: 1 / -1; }

.privacy-notice {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  padding: 16px 18px;
}

.privacy-notice strong {
  display: block;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.privacy-notice p { color: var(--text-muted); font-size: 15px; line-height: 1.45; }

.privacy-consent {
  align-items: flex-start;
  background: rgba(255, 253, 250, .62);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex !important;
  gap: 14px;
  padding: 16px 18px;
}
:root[data-theme="dark"] .privacy-consent { background: rgba(255, 247, 234, .055); }

.wpcf7 .privacy-consent .wpcf7-form-control-wrap,
.wpcf7 .privacy-consent .wpcf7-form-control,
.wpcf7 .privacy-consent .wpcf7-list-item,
.wpcf7 .privacy-consent label { display: flex; margin: 0; width: 100%; }
.wpcf7 .privacy-consent label { align-items: flex-start; gap: 14px; }
.wpcf7 .privacy-consent .wpcf7-list-item-label {
  color: var(--text) !important;
  font-size: clamp(14px, 1.2vw, 16px) !important;
  font-weight: 760 !important;
  line-height: 1.42 !important;
}
.wpcf7 .privacy-consent a { color: var(--blue); font-weight: 950; text-decoration-thickness: 2px; text-underline-offset: 3px; }
:root[data-theme="dark"] .wpcf7 .privacy-consent a { color: #9bb7ff; }

.wpcf7 .privacy-consent input[type="checkbox"] {
  appearance: none;
  background: var(--surface) !important;
  border: 2px solid rgba(16, 16, 16, .42) !important;
  border-radius: 8px !important;
  cursor: pointer;
  flex: 0 0 26px !important;
  height: 26px !important;
  margin: 0 !important;
  min-height: 26px !important;
  padding: 0 !important;
  position: relative;
  width: 26px !important;
}
:root[data-theme="dark"] .wpcf7 .privacy-consent input[type="checkbox"] { border-color: rgba(255, 247, 234, .48) !important; }
.wpcf7 .privacy-consent input[type="checkbox"]::after {
  border: solid #fff;
  border-width: 0 3px 3px 0;
  content: "";
  height: 12px;
  left: 8px;
  opacity: 0;
  position: absolute;
  top: 4px;
  transform: rotate(45deg) scale(.72);
  width: 6px;
}
.wpcf7 .privacy-consent input[type="checkbox"]:checked { background: var(--blue) !important; border-color: var(--blue) !important; }
.wpcf7 .privacy-consent input[type="checkbox"]:checked::after { opacity: 1; transform: rotate(45deg) scale(1); }

.rsvp-form .wpcf7-submit {
  background: var(--red-strong) !important;
  border: 2px solid var(--ink) !important;
  border-radius: 999px;
  box-shadow: 0 8px 0 var(--ink) !important;
  color: var(--ink) !important;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  min-height: 58px;
  padding: 16px 22px;
  width: 100%;
}

.wpcf7-not-valid-tip { color: var(--red); font-size: 13px; font-weight: 850; margin-top: 8px; }
.wpcf7 form .wpcf7-response-output {
  border: 0;
  border-radius: 16px;
  font-weight: 850;
  margin: 16px 0 0;
  padding: 14px 16px;
}
.wpcf7 form.sent .wpcf7-response-output { background: #e4ffd2; border: 1px solid #84c954; color: var(--ink); }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output { background: #ffe4dc; border: 1px solid #e36f59; color: var(--ink); }

.footnote { color: rgba(255, 255, 255, .68); font-size: 14px; line-height: 1.5; margin: 0 auto; max-width: 900px; text-align: center; }
.demo-form-alert { padding: 18px 20px; text-align: left; }

.archive-page,
.page-content,
.not-found-page {
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 227, 109, .66), transparent 24%),
    radial-gradient(circle at 8% 50%, rgba(156, 244, 198, .48), transparent 25%),
    var(--bg);
}
:root[data-theme="dark"] .archive-page,
:root[data-theme="dark"] .page-content,
:root[data-theme="dark"] .not-found-page {
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 227, 109, .12), transparent 24%),
    radial-gradient(circle at 8% 44%, rgba(36, 92, 255, .16), transparent 30%),
    var(--bg);
}

.archive-spotlight { padding: clamp(132px, 14vw, 184px) 0 clamp(58px, 8vw, 96px); }
.archive-spotlight-grid {
  align-items: end;
  display: grid;
  gap: clamp(42px, 7vw, 110px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, .48fr);
}
.archive-spotlight h1 { font-size: clamp(64px, 9vw, 132px); line-height: .84; max-width: 840px; }
.archive-note,
.not-found-card {
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: 32px;
  box-shadow: 14px 14px 0 var(--ink);
  color: var(--ink);
  padding: clamp(24px, 4vw, 36px);
}
.archive-note-date { color: var(--blue); font-size: clamp(58px, 6vw, 92px); font-weight: 950; letter-spacing: -.07em; line-height: .8; margin: 0 0 22px; }
.archive-note h2 { color: var(--ink); font-size: clamp(28px, 3vw, 40px); letter-spacing: -.04em; line-height: .92; margin: 0 0 12px; }
.archive-note p:not(.archive-note-date) { color: #302f2c; font-size: 17px; line-height: 1.45; margin: 0; }

.archive-feed { padding: 0 0 clamp(78px, 10vw, 132px); }
.editorial-grid {
  counter-reset: post-card;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.editorial-grid > li { list-style: none; margin: 0; }
.editorial-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  height: 100%;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.editorial-card:hover { box-shadow: 0 12px 0 var(--shadow); transform: translateY(-4px); }
.editorial-grid > li:first-child { grid-column: span 2; grid-row: span 2; }
.editorial-card-link,
.editorial-card a { color: inherit; text-decoration: none; }
.editorial-media,
.editorial-media-placeholder {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--blue), var(--green));
  overflow: hidden;
  position: relative;
}
.editorial-grid > li:first-child .editorial-media,
.editorial-grid > li:first-child .editorial-media-placeholder { aspect-ratio: 16 / 8; }
.editorial-media-placeholder::before {
  align-items: end;
  color: #fff;
  content: counter(post-card, decimal-leading-zero);
  counter-increment: post-card;
  display: flex;
  font-size: clamp(64px, 7vw, 112px);
  font-weight: 950;
  inset: 0;
  letter-spacing: -.07em;
  line-height: .8;
  padding: 24px;
  position: absolute;
  z-index: 1;
}
.editorial-media-placeholder::after {
  background-image: linear-gradient(rgba(16,16,16,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(16,16,16,.12) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  inset: 0;
  opacity: .45;
  position: absolute;
}
.editorial-media img { display: block; height: 100%; object-fit: cover; width: 100%; }
.editorial-copy { padding: clamp(22px, 3vw, 34px); }
.editorial-copy h2 { font-size: clamp(28px, 3vw, 48px); letter-spacing: -.045em; line-height: .92; margin: 0 0 14px; }
.editorial-grid > li:first-child .editorial-copy h2 { font-size: clamp(42px, 5vw, 76px); }
.editorial-copy p:not(.post-meta),
.wp-block-post-excerpt__excerpt { color: var(--text-muted); font-size: 17px; line-height: 1.48; margin: 0; }
.read-more { color: var(--blue); display: inline-flex; font-size: 14px; font-weight: 950; margin-top: 22px; }
:root[data-theme="dark"] .read-more { color: #8fb0ff; }

.pagination { margin-top: 42px; }
.pagination .nav-links { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }
.pagination a,
.pagination span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; display: inline-flex; font-weight: 850; min-height: 40px; padding: 10px 14px; text-decoration: none; }
.pagination .current { background: var(--text); color: var(--bg); }
.empty-state { background: var(--surface); border: 1px solid var(--line); border-radius: 34px; padding: clamp(28px, 5vw, 58px); }

.page-content { min-height: 100vh; padding: clamp(128px, 14vw, 178px) 0 clamp(72px, 10vw, 128px); }
.standard-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: 14px 14px 0 var(--shadow);
  padding: clamp(26px, 5vw, 58px);
}
.page-title { margin-bottom: 28px; }
.page-body { color: var(--text-muted); font-size: 18px; line-height: 1.65; }
.page-body h2 { color: var(--text); font-size: clamp(28px, 4vw, 44px); letter-spacing: -.03em; line-height: 1; margin: 0 0 18px; }
.page-body a { color: var(--blue); font-weight: 850; }
:root[data-theme="dark"] .page-body a { color: #8fb0ff; }
.page-body li { margin: 10px 0; }
.featured-media { border-radius: 24px; margin: 0 0 30px; overflow: hidden; }
.featured-media img { display: block; height: auto; width: 100%; }
.standard-post { display: grid; gap: clamp(18px, 2.5vw, 30px); max-width: 920px; }
.standard-post .page-title { font-size: clamp(48px, 7vw, 92px); line-height: .92; margin: 0; }
.standard-post .page-body { border-top: 1px solid var(--line); margin-top: 8px; padding-top: clamp(24px, 4vw, 42px); }
.standard-post .page-body > * + * { margin-block-start: 1.05em; }
.standard-post .back-link-button .wp-block-button__link { background: transparent; border: 1px solid var(--line); border-radius: 999px; color: var(--blue); font-size: 14px; font-weight: 900; padding: 10px 15px; }

.not-found-page { min-height: 100vh; overflow: hidden; padding: clamp(138px, 15vw, 198px) 0 clamp(78px, 10vw, 132px); position: relative; }
.not-found-shell { align-items: center; display: grid; gap: clamp(42px, 7vw, 112px); grid-template-columns: minmax(0, 1fr) minmax(320px, .46fr); position: relative; z-index: 1; }
.not-found-copy { display: grid; gap: clamp(20px, 2.6vw, 34px); }
.not-found-code { color: var(--ink); font-size: clamp(88px, 10vw, 148px); font-weight: 950; letter-spacing: -.085em; line-height: .78; margin: 0 0 clamp(24px, 4vw, 48px); }
.not-found-card h2 { color: var(--ink); font-size: clamp(30px, 3vw, 46px); letter-spacing: -.045em; line-height: .92; margin: 0 0 14px; }
.not-found-card p:not(.not-found-code) { color: var(--ink); font-size: clamp(17px, 1.45vw, 20px); font-weight: 760; line-height: 1.42; margin: 0; }

.site-footer { min-height: 0; }

.editor-styles-wrapper .site-nav { position: sticky; }
.editor-styles-wrapper .hero { min-height: 760px; }
.editor-styles-wrapper .program-poster-image img { min-height: 420px; }

@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { width: min(100%, 620px); }
}

@media (max-width: 980px) {
  .program-grid,
  .rsvp-panel,
  .archive-spotlight-grid,
  .editorial-grid,
  .not-found-shell { grid-template-columns: 1fr; }
  .editorial-grid > li:first-child { grid-column: auto; grid-row: auto; }
  .cards.wp-block-columns { grid-template-columns: 1fr; }
}

@media (max-width: 782px) { body.admin-bar .site-nav { top: 46px; } }

@media (max-width: 760px) {
  :root { --header-height: 78px; }
  html.site-menu-open,
  html.site-menu-open body { overscroll-behavior-x: none; overflow: hidden !important; touch-action: pan-y; }

  .site-nav {
    gap: 12px;
    padding: 16px clamp(18px, 5vw, 28px);
  }
  .site-menu-open .site-nav { background: var(--bg); backdrop-filter: none; }
  .brand { flex: 1 1 auto; max-width: calc(100% - 60px); }
  .brand .wp-block-site-title,
  .brand .wp-block-site-title a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-menu-toggle { display: inline-flex; }

  .site-menu-panel {
    align-content: start;
    background: var(--bg);
    bottom: 0;
    display: grid;
    gap: clamp(26px, 6vh, 46px);
    height: calc(100dvh - var(--header-height));
    left: 0;
    margin: 0;
    max-width: 100%;
    opacity: 0;
    overflow-y: auto;
    padding: clamp(28px, 8vw, 46px) clamp(24px, 7vw, 40px) calc(34px + env(safe-area-inset-bottom));
    pointer-events: none;
    position: fixed;
    right: 0;
    top: var(--header-height);
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    visibility: hidden;
    width: 100%;
    z-index: 55;
  }
  body.admin-bar .site-menu-panel { height: calc(100dvh - var(--header-height) - 46px); top: calc(var(--header-height) + 46px); }
  .site-menu-open .site-menu-panel { opacity: 1; pointer-events: auto; transform: translateY(0); visibility: visible; }
  .site-menu-panel > .wp-block-navigation { justify-self: center; max-width: min(100%, 520px); width: 100%; }
  .site-menu-panel .wp-block-navigation__container { align-items: stretch; border-top: 1px solid var(--line); counter-reset: mobile-menu; display: grid; gap: 0; width: 100%; }
  .site-menu-panel .wp-block-navigation-item { border-bottom: 1px solid var(--line); counter-increment: mobile-menu; position: relative; width: 100%; }
  .site-menu-panel .wp-block-navigation-item::before { color: var(--text-muted); content: "0" counter(mobile-menu); font-size: 12px; font-weight: 950; left: 0; letter-spacing: .08em; opacity: .72; position: absolute; top: 24px; }
  .site-menu-panel .wp-block-navigation-item__content,
  .site-menu-panel .wp-block-navigation-item.dark .wp-block-navigation-item__content { background: transparent; border: 0; border-radius: 0; color: var(--text); font-size: clamp(25px, 7vw, 36px); justify-content: space-between; letter-spacing: -.03em; line-height: 1.02; min-height: 72px; padding: 18px 0 18px 44px; text-align: left; white-space: nowrap; width: 100%; }
  .site-menu-panel .wp-block-navigation-item__content::after { color: var(--text-muted); content: "->"; flex: 0 0 auto; font-size: .72em; margin-left: 18px; }
  .site-menu-panel .wp-block-navigation-item.dark .wp-block-navigation-item__content::after { color: var(--red); }
  .site-menu-panel .theme-toggle { justify-self: center; margin: clamp(18px, 4vh, 34px) 0 0; max-width: min(100%, 520px); width: 100%; }
  .theme-toggle__text { display: inline; }

  .home-main > .demo-alert { margin-top: calc(var(--header-height) + 18px); margin-bottom: 22px; }
  body.admin-bar .home-main > .demo-alert { margin-top: calc(var(--header-height) + 64px); }
  .home-main > .demo-alert + .hero { padding-top: 34px; }
  .demo-alert { padding: 15px 17px; }
  .demo-alert p { font-size: clamp(16px, 4.4vw, 19px); line-height: 1.28; text-transform: none; }

  .hero { padding-bottom: 72px; }
  h1,
  .hero-title { font-size: clamp(48px, 14vw, 76px); line-height: .98; }
  .hero-copy { gap: 20px; }
  .hero-copy .lede { font-size: 20px; line-height: 1.38; }
  .hero-actions,
  .cta { width: 100%; }
  .cta .wp-block-button__link { min-height: 56px; width: 100%; }
  .hero-card { min-height: 380px; width: 100%; }
  .date-card { bottom: 22px; left: 22px; right: 22px; }
  .date-number { font-size: clamp(68px, 18vw, 96px); }

  .section { padding: 64px 0; }
  .section h2,
  .program h2,
  .rsvp-panel h2,
  .page-title { font-size: clamp(42px, 11vw, 62px); }
  .program-poster-image { box-shadow: 10px 10px 0 var(--shadow); }
  .schedule-item { align-items: start; grid-template-columns: 1fr; }
  .rsvp-form { grid-template-columns: 1fr; }
  .rsvp-panel { border-radius: 28px; padding: 24px; }
  .privacy-consent { padding: 14px; }
  .archive-spotlight,
  .page-content,
  .not-found-page { padding-top: calc(var(--header-height) + 48px); }
  body.admin-bar .archive-spotlight,
  body.admin-bar .page-content,
  body.admin-bar .not-found-page { padding-top: calc(var(--header-height) + 92px); }
  .archive-spotlight h1,
  .blog-title { font-size: clamp(54px, 15vw, 86px); }
  .archive-note { box-shadow: 10px 10px 0 var(--ink); }
  .editorial-media-placeholder { min-height: 170px; }
  .standard-page { border-radius: 28px; box-shadow: 10px 10px 0 var(--shadow); }
}
