@import url('https://fonts.googleapis.com/css2?family=Alegreya:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Pacifico&display=swap');

:root {
  --ink: #082f66;
  --ocean: #0877b8;
  --sky: #48cae4;
  --mist: #caf0f8;
  --pale: #eaf8fb;
  --paper: #fbf1df;
  --coral: #f25f5c;
  --white: #f8fdff;
  --line: rgba(8, 47, 102, .18);
  --soft-corner: 8px;
  --display: 'Pacifico', cursive;
  --body: 'Alegreya', Georgia, serif;
  --page: min(1120px, calc(100% - 40px));
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--pale); color: var(--ink); font-family: var(--body); font-size: 19px; font-style: normal; font-weight: 500; letter-spacing: .01em; line-height: 1.66; }
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
button, input, textarea { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
::selection { background: var(--sky); color: var(--ink); }
.container { width: var(--page); margin-inline: auto; }
.skip-link { position: fixed; left: 14px; top: 12px; z-index: 999; padding: 8px 12px; background: var(--paper); color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 60; transition: background .25s ease; }
.site-header::after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: rgba(255,255,255,.28); }
.site-header .container { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo a { color: var(--white); font-family: var(--display); font-size: 1.45rem; font-style: normal; text-decoration: none; text-shadow: 0 2px 12px rgba(0,25,65,.25); }
nav ul { display: flex; gap: 30px; margin: 0; padding: 0; list-style: none; }
nav a { color: rgba(248,253,255,.82); font-size: .82rem; font-style: normal; font-weight: 700; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
nav a:hover, nav a.active { color: var(--white); text-decoration: underline; }
.nav-toggle { display: none; padding: 7px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 1px; margin: 5px 0; background: var(--white); }
.nav-toggle span { transition: transform .24s cubic-bezier(.22,1,.36,1); }
.nav-toggle:focus-visible { outline: 1px solid rgba(248,253,255,.68); outline-offset: 3px; border-radius: 5px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.light-header .site-header { background: rgba(234,248,251,.94); backdrop-filter: blur(12px); }
.light-header .site-header::after { background: var(--line); }
.light-header .site-logo a, .light-header nav a { color: var(--ink); text-shadow: none; }
.light-header .nav-toggle span { background: var(--ink); }
.light-header .nav-toggle:focus-visible { outline-color: rgba(8,47,102,.38); }

h1, h2, h3, p { margin-top: 0; }
.script-title { margin: 0; font-family: var(--display); font-size: clamp(3rem, 7vw, 6.5rem); font-style: normal; font-weight: 400; line-height: 1.15; }
.script-subtitle { font-family: var(--display); font-style: normal; font-weight: 400; }
.plain-title { margin: 0; font-size: clamp(2.4rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -.055em; }
.eyebrow { display: block; margin-bottom: 14px; font-size: .72rem; font-style: normal; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.lead { max-width: 60ch; font-size: clamp(1.04rem, 1.6vw, 1.22rem); }
.soft { color: rgba(8,47,102,.7); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 10px 17px; border: 1px solid currentColor; background: transparent; font-size: .82rem; font-style: normal; font-weight: 700; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px) rotate(-1deg); background: var(--paper); color: var(--ink); }
.text-link { font-weight: 700; }

.site-footer { padding: 25px 0; border-top: 1px solid var(--line); background: var(--pale); }
.footer-row { display: flex; justify-content: space-between; gap: 20px; font-size: .78rem; }
.footer-row p { margin: 0; }

@media (max-width: 740px) {
  :root { --page: calc(100% - 28px); }
  body { font-size: 18px; }
  .site-header .container { min-height: 62px; }
  .nav-toggle { display: block; }
  nav { position: fixed; isolation: isolate; inset: 74px 14px auto auto; width: min(286px, 74vw); max-height: calc(100svh - 90px); padding: 22px 24px 26px; overflow-y: auto; background: rgba(251,244,229,.93); border: 1px solid rgba(8,47,102,.12); border-radius: 10px; box-shadow: -10px 16px 34px rgba(8,47,102,.14); visibility: hidden; transform: translateY(-10px) translateX(calc(100% + 30px)); transition: transform .32s cubic-bezier(.22,1,.36,1), visibility .32s; }
  nav::before { content: ''; position: absolute; z-index: -1; inset: 0; border-radius: inherit; pointer-events: none; background-image: radial-gradient(ellipse at 18% 24%, rgba(116,91,57,.09) 0 .7px, transparent 1.6px), radial-gradient(ellipse at 76% 68%, rgba(8,47,102,.045) 0 .8px, transparent 1.8px), repeating-linear-gradient(7deg, rgba(116,91,57,.02) 0 1px, transparent 1px 10px); background-size: 31px 23px, 47px 37px, 100% 14px; opacity: .55; }
  nav.open { visibility: visible; transform: translateX(0); }
  nav ul { flex-direction: column; gap: 0; }
  nav li { border-bottom: 1px solid rgba(8,47,102,.11); }
  nav li:last-child { border-bottom: 0; }
  nav a, .light-header nav a { display: block; padding: 8px 3px; color: rgba(8,47,102,.78); font-family: var(--body); font-size: 1.34rem; font-style: normal; font-weight: 600; letter-spacing: .015em; text-transform: none; }
  nav a:hover, nav a.active, .light-header nav a:hover, .light-header nav a.active { color: var(--ocean); text-decoration-color: rgba(8,119,184,.42); }
  .footer-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
