@font-face { font-family: "Tinos"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/tinos-Regular.woff2") format("woff2"); }
@font-face { font-family: "Tinos"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/tinos-Bold.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 9rem; }
body { margin: 0; background: var(--white); color: var(--navy); font-family: var(--font-serif);
  font-size: 1.1875rem; line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; box-shadow: 0 0 0 6px var(--white); }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--navy); color: var(--white);
  padding: .75rem 1.25rem; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: .5rem; }

/* ---- Preview notice ---- */
.preview-notice { background: var(--cream); color: var(--navy); text-align: center; font-size: .9375rem; line-height: 1.35;
  padding: .45rem var(--gutter); border-bottom: 1px solid var(--gold); }

/* ---- Header (sticky: keeps Safe Exit in view at every scroll position) ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white) url("/img/wave-top.svg") center top / 100% 100% no-repeat; }
.header-bar { max-width: var(--content-max); margin: 0 auto; padding: 1rem var(--gutter) .85rem;
  display: flex; align-items: center; gap: 1rem; }
.site-title { margin-right: auto; text-decoration: none; font-weight: 700; color: var(--navy);
  font-size: clamp(1.75rem, 3.4vw, 3.1rem); line-height: 1.1; padding-bottom: .25rem; border-bottom: 4px solid var(--gold); }
.header-actions { display: flex; gap: .85rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .35rem 1.6rem;
  border: 2px solid var(--gold); border-radius: 999px; font: 700 1.2rem/1.1 var(--font-serif); text-decoration: none;
  color: var(--white); cursor: pointer; transition: background-color .15s; white-space: nowrap; }
.btn-support { background: var(--navy); }
.btn-support:hover { background: var(--navy-hover); }
.btn-membership { background: var(--green-btn); }
.btn-membership:hover { background: var(--green-hover); }
.btn-exit { background: var(--gold-btn); border-color: var(--gold-deep); color: var(--navy); }
.btn-exit:hover { background: var(--gold-hover); }
.menu-toggle { display: none; min-height: 44px; padding: .35rem 1rem; border: 2px solid var(--navy); border-radius: 999px;
  background: var(--white); color: var(--navy); font: 700 1.05rem/1.1 var(--font-serif); cursor: pointer; }
.menu-toggle:hover { background: var(--cream); }
.menu-only { display: none; }

/* ---- Navigation ---- */
.site-nav { background: var(--white); border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold); }
.site-nav ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--content-max);
  display: flex; justify-content: space-between; }
.site-nav li { flex: 1 1 auto; text-align: center; }
.site-nav li + li { border-left: 2px solid var(--gold); }
.site-nav a { display: block; padding: .7rem .5rem; font-weight: 700; font-size: clamp(1rem, 1.55vw, 1.3rem);
  text-decoration: none; color: var(--navy); white-space: nowrap; }
.site-nav a:hover { background: var(--cream); }
.site-nav a.btn { color: var(--white); border-radius: 999px; }
.site-nav a.btn-membership:hover { background: var(--green-hover); }
.site-nav a.btn-support:hover { background: var(--navy-hover); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--gold); }

/* ---- Main ---- */
main { flex: 1 0 auto; width: 100%; max-width: var(--content-max); margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) var(--gutter); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 0; align-items: center; }
.home-logo { padding-right: clamp(1.5rem, 4vw, 3.5rem); }
.home-logo img { width: 100%; max-width: 36rem; margin: 0 auto; }
.home-copy { border-left: 2px solid var(--gold); padding: .5rem 0 .5rem clamp(1.5rem, 4vw, 3.5rem); }
h1, h2 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(2rem, 3.3vw, 2.75rem); line-height: 1.15; margin: 0; }
.home-copy h1 { text-align: center; color: var(--navy); padding-bottom: .5rem; margin-bottom: 1.1rem; position: relative; }
.home-copy h1::after { content: ""; display: block; width: 8rem; max-width: 40%; height: 4px; background: var(--gold); margin: .5rem auto 0; }
.home-copy h2 { color: var(--green); text-align: left; margin-top: 1.6rem; margin-bottom: .35rem; }
.copy-text { margin: 0; font: 400 1.4rem/1.5 var(--font-serif); color: var(--navy); }
.home-action { margin-top: 2rem; text-align: right; }
.btn-explore { background: var(--navy); font-size: 1rem; padding: .35rem 1.15rem; gap: .6rem; }
.btn-explore:hover { background: var(--navy-hover); }
.btn-explore svg { width: 1.1em; height: 1.1em; flex: none; }

/* Placeholder pages */
.placeholder h1 { text-align: left; color: var(--navy); }
.placeholder h1::after { content: ""; display: block; width: 6rem; height: 4px; background: var(--gold); margin-top: .6rem; }
.placeholder p { max-width: 40rem; font-size: 1.4rem; margin: 1.5rem 0 2rem; }
.placeholder .btn-return { background: var(--navy); }
.placeholder .btn-return:hover { background: var(--navy-hover); }
.placeholder { min-height: 14rem; }

/* ---- Footer ---- */
.site-footer { background: var(--navy-deep); color: var(--white); }
.wave-bottom { height: clamp(4rem, 9vw, 8.5rem); background: var(--white) url("/img/wave-bottom.svg") center bottom / 100% 100% no-repeat; margin-bottom: -1px; }
.footer-inner { max-width: var(--content-max); margin: 0 auto; padding: .25rem var(--gutter) 1.75rem; }
.footer-inner p { margin: .4rem 0; font-size: 1rem; line-height: 1.5; max-width: 52rem; }
.footer-tag { font-weight: 700; font-size: 1.25rem !important; color: var(--gold); }

/* ---- Mobile / narrow ---- */
@media (max-width: 56.25em) {
  html { scroll-padding-top: 5rem; }
  body { font-size: 1.125rem; }
  .header-bar { padding: .55rem var(--gutter); gap: .6rem; }
  .site-title { font-size: 1.2rem; border-bottom-width: 3px; padding-bottom: .1rem; }
  .header-actions .btn-support, .header-actions .btn-membership { display: none; }
  .header-actions { gap: 0; }
  .btn { font-size: 1.05rem; padding: .35rem 1rem; }
  .js .menu-toggle { display: inline-flex; align-items: center; }
  .menu-only { display: block; }
  .menu-only a { display: block; }
  .site-nav { border-top: 0; }
  .site-nav ul { display: block; padding: 0; }
  .site-nav li { text-align: left; }
  .site-nav li + li { border-left: 0; border-top: 1px solid var(--gold); }
  .site-nav a { padding: .9rem var(--gutter); font-size: 1.2rem; min-height: 48px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 6px 0 0 var(--gold); }
  .menu-only a.btn { margin: .6rem var(--gutter); display: flex; width: auto; padding: .5rem 1rem; }
  .site-nav li.menu-only + li.menu-only { border-top: 0; }
  /* With JavaScript: menu collapses and, when open, overlays below the sticky header. */
  .js .site-nav { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 4.5rem); max-height: calc(100dvh - 4.5rem);
    overflow-y: auto; border-bottom: 3px solid var(--gold); box-shadow: 0 8px 16px rgba(9, 29, 75, .18); }
  .js .site-nav[data-open="false"] { display: none; }
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .home-logo { padding-right: 0; }
  .home-logo img { max-width: 30rem; }
  .home-copy { border-left: 0; border-top: 2px solid var(--gold); margin-top: 1.5rem; padding: 1.5rem 0 0; }
  .copy-text { font-size: 1.25rem; }
  .home-action { text-align: left; }
}
@media (max-width: 22.5em) {
  .site-title { font-size: 1.1rem; }
  .header-bar { gap: .4rem; }
  .btn { padding-inline: .7rem; font-size: 1rem; }
  .menu-toggle { padding-inline: .7rem; font-size: 1rem; }
}
/* Short viewports (landscape phones): keep the sticky header compact. */
@media (max-height: 34em) {
  .header-bar { padding-block: .4rem; }
  .site-title { font-size: 1.15rem; }
  .site-nav a { padding-block: .4rem; }
}

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

/* Safe Exit: the whole page disappears the instant it is used. */
html.is-exiting { background: #fff; }
html.is-exiting body { display: none; }
