:root {
  --bg: #0a0e14;
  --surface: #141d2b;
  --surface-soft: #1a2332;
  --surface-warm: rgba(212, 168, 83, 0.12);
  --text: #f0ede6;
  --text-muted: #d2ccbf;
  --primary: #d4a853;
  --primary-strong: #efc66d;
  --accent: #c44536;
  --success: #2d8a4e;
  --border: rgba(240, 237, 230, 0.14);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 72rem;
  --header-height: 5.5rem;
  --focus-ring: 0 0 0 3px rgba(212, 168, 83, 0.4);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(196, 69, 54, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(212, 168, 83, 0.12), transparent 25%),
    linear-gradient(180deg, #0a0e14 0%, #101722 48%, #0a0e14 100%);
  color: var(--text);
  font: 400 18px/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-width: 320px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: #ffe2a3;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid transparent;
  box-shadow: var(--focus-ring);
}

::selection {
  background: rgba(212, 168, 83, 0.35);
  color: var(--text);
}

.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: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--primary);
  color: #101722;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(10, 14, 20, 0.82);
  border-bottom: 1px solid rgba(240, 237, 230, 0.08);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  min-height: var(--header-height);
  padding: 0.85rem 0;
}

.site-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  color: var(--text);
  text-decoration: none;
}

.brand-kicker,
.eyebrow,
.event-label,
.clock-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  color: var(--primary-strong);
}

.brand-name {
  font: 700 1.08rem/1.3 Georgia, "Times New Roman", serif;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.header-clock {
  margin: 0;
  display: block;
  text-align: right;
}

#header-clock {
  display: block;
  font-size: 0.98rem;
  color: var(--text);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  width: 3rem;
  height: 3rem;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(26, 35, 50, 0.94);
  color: var(--text);
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  grid-column: 1 / -1;
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: 0.5rem;
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.85rem 1rem;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(212, 168, 83, 0.14);
}

main {
  padding-top: calc(var(--header-height) + 1rem);
}

section[id],
.modal-dialog {
  scroll-margin-top: calc(var(--header-height) + 1.25rem);
}

.section {
  position: relative;
  padding: 5rem 0;
}

.alt-section {
  background: linear-gradient(180deg, rgba(26, 35, 50, 0.46), rgba(20, 29, 43, 0.18));
}

.section-divider::after,
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 72px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='rgba(240,237,230,0.04)' d='M0 64L60 58.7C120 53 240 43 360 32C480 21 600 11 720 21.3C840 32 960 64 1080 69.3C1200 75 1320 53 1380 42.7L1440 32V120H1380C1320 120 1200 120 1080 120C960 120 840 120 720 120C600 120 480 120 360 120C240 120 120 120 60 120H0Z'/%3E%3C/svg%3E") center bottom / cover no-repeat;
  pointer-events: none;
}

.hero {
  overflow: hidden;
  min-height: min(50rem, calc(100vh - 1rem));
  display: flex;
  align-items: center;
}

.hero-backdrop,
.hero-backdrop::before,
.hero-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
}

.hero-backdrop {
  background:
    radial-gradient(circle at 20% 20%, rgba(212, 168, 83, 0.18), transparent 28%),
    radial-gradient(circle at 75% 25%, rgba(196, 69, 54, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(26, 35, 50, 0.98), rgba(10, 14, 20, 0.72));
  animation: heroGlow 18s ease-in-out infinite alternate;
}

.hero-backdrop::before {
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.04) 50%, transparent 80%);
  transform: translateX(-120%);
  animation: shimmer 16s linear infinite;
}

.hero-backdrop::after {
  background:
    radial-gradient(circle, rgba(212, 168, 83, 0.65) 0 18%, transparent 20% 100%),
    radial-gradient(circle, rgba(196, 69, 54, 0.5) 0 18%, transparent 20% 100%);
  background-size: 140px 140px, 180px 180px;
  background-position: 6% 78%, 92% 18%;
  opacity: 0.18;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0 5rem;
}

.hero-content h1,
.section-heading h2,
.panel h3,
.service-card h3,
.safeguard-card h3,
#privacy-title {
  font-family: Georgia, "Times New Roman", serif;
}

.hero-content h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.05;
}

.hero-copy,
.lead {
  max-width: 42rem;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2rem 0 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #101722;
  box-shadow: 0 14px 32px rgba(212, 168, 83, 0.3);
}

.button-secondary {
  background: rgba(240, 237, 230, 0.06);
  border-color: rgba(240, 237, 230, 0.14);
  color: var(--text);
}

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
}

.hero-points li {
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(240, 237, 230, 0.12);
  background: rgba(10, 14, 20, 0.34);
  border-radius: 999px;
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0.2rem 0 0.8rem;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.12;
}

.surface,
.panel,
.service-card,
.signup-form,
.event-card,
.safeguard-card {
  background: rgba(20, 29, 43, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.warm-surface,
.disclaimer-card {
  background:
    linear-gradient(180deg, rgba(212, 168, 83, 0.1), rgba(20, 29, 43, 0.96)),
    rgba(20, 29, 43, 0.95);
}

.support-layout,
.signup-layout,
.safeguarding-grid {
  display: grid;
  gap: 1.25rem;
}

.panel,
.signup-form,
.event-card,
.safeguard-card {
  padding: 1.4rem;
}

.check-list {
  padding-left: 1.2rem;
  margin: 1rem 0 0;
}

.check-list li + li {
  margin-top: 0.6rem;
}

.disclaimer-card {
  position: relative;
  overflow: hidden;
}

.poppy-mark {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 4.5rem;
  height: 4.5rem;
}

.poppy-mark::before,
.poppy-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.poppy-mark::before {
  background: radial-gradient(circle, rgba(10, 14, 20, 0.85) 0 18%, transparent 20%), linear-gradient(90deg, rgba(196, 69, 54, 0.95) 0 50%, rgba(196, 69, 54, 0.72) 50%);
  transform: rotate(25deg);
}

.poppy-mark::after {
  width: 0.3rem;
  height: 3.2rem;
  border-radius: 999px;
  inset: auto auto -2rem 50%;
  background: linear-gradient(180deg, #547c45, #2d8a4e);
  transform: translateX(-50%) rotate(12deg);
}

.services-grid {
  display: grid;
  gap: 1rem;
}

.service-card {
  padding: 1.4rem;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(212, 168, 83, 0.3);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.32);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(212, 168, 83, 0.12);
  font-size: 1.5rem;
}

.event-card {
  display: grid;
  gap: 1rem;
}

.event-detail {
  margin: 0.3rem 0 0;
  font-size: 1.08rem;
}

.form-field {
  margin-bottom: 1.25rem;
}

.captcha-field {
  border: none;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}

.form-field label,
.field-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

input[type="email"] {
  width: 100%;
  min-height: 56px;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(240, 237, 230, 0.16);
  background: rgba(10, 14, 20, 0.88);
  color: var(--text);
}

input[type="email"]::placeholder {
  color: #9fa8b5;
}

.field-help,
.privacy-inline,
.footer-note,
.form-feedback {
  color: var(--text-muted);
}

.sensitive-warning {
  color: #f87462;
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 0.5rem;
}

.crisis-inline {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.submit-button {
  width: 100%;
}

.submit-button[disabled] {
  opacity: 0.72;
  cursor: progress;
  transform: none;
}

.form-feedback {
  min-height: 1.7em;
  margin: 0.9rem 0 0;
}

.form-feedback.is-success {
  color: #9be3b3;
}

.form-feedback.is-error {
  color: #ffb0a7;
}

.about-layout {
  max-width: 52rem;
}

.about-card {
  padding: 2rem;
  position: relative;
}

.about-badge {
  display: inline-grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(212, 168, 83, 0.15);
  font-size: 1.8rem;
}

.about-card p {
  margin: 0.6rem 0;
}

.about-card .check-list {
  margin-top: 1.2rem;
}

.safeguarding-grid {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.safeguard-card {
  height: 100%;
}

.site-footer {
  border-top: 1px solid rgba(240, 237, 230, 0.08);
  background: rgba(10, 14, 20, 0.95);
  padding: 2rem 0 3rem;
}

.footer-inner {
  display: grid;
  gap: 1rem;
}

.toast-region {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: grid;
  gap: 0.75rem;
  width: min(calc(100% - 2rem), 24rem);
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(20, 29, 43, 0.96);
  box-shadow: var(--shadow);
  animation: toastIn 220ms ease;
}

.toast-dismiss {
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(240, 237, 230, 0.08);
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  margin-left: auto;
}

.toast[data-variant="success"] {
  border-color: rgba(45, 138, 78, 0.55);
}

.toast[data-variant="error"] {
  border-color: rgba(196, 69, 54, 0.65);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
}

.modal.is-open {
  display: block;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 20, 0.78);
  backdrop-filter: blur(10px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), 44rem);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  margin: min(10vh, 4rem) auto;
  padding: 1.5rem;
  background: #111927;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(240, 237, 230, 0.06);
  color: var(--text);
  font-size: 1.5rem;
}

.privacy-content p {
  margin: 0 0 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes heroGlow {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
    filter: saturate(100%);
  }
  100% {
    transform: scale(1.06) translate3d(1.5%, -1%, 0);
    filter: saturate(120%);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 48rem) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .header-clock {
    display: block;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    grid-column: auto;
    display: flex;
    flex-direction: row;
    justify-self: end;
    align-items: center;
    padding-bottom: 0;
  }

  .support-layout,
  .signup-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.9fr);
    align-items: start;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

@media (min-width: 64rem) {
  .section {
    padding: 6rem 0;
  }

  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (forced-colors: active) {
  :focus-visible {
    outline: 3px solid Highlight;
    box-shadow: none;
  }

  .button,
  .surface,
  .modal-dialog,
  input[type="email"],
  .nav-toggle {
    border: 1px solid CanvasText;
  }
}

@media print {
  .site-header,
  .nav-toggle,
  .toast-region,
  .modal,
  .hero-backdrop,
  .cf-turnstile,
  .button {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  main {
    padding-top: 0;
  }

  .section,
  .site-footer {
    padding: 1rem 0;
    background: transparent;
  }

  .surface,
  .panel,
  .event-card,
  .safeguard-card,
  .signup-form,
  .service-card {
    box-shadow: none;
    border: 1px solid #999;
    background: transparent;
  }
}
