@font-face { font-family: "Source Serif 4"; src: url(/fonts/source-serif-4-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(/fonts/dm-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(/fonts/dm-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --s0: #4A4A7E; --s1: #8A4E76; --s2: #E8785A; --s3: #F6B36B;
  --sun: #FFE2A8; --sea0: #5B86C4; --sea1: #2F4E86; --band: #8A4E76;
  --bg: #FBF6EF; --ink: #1F2340; --muted: #5E5A6E; --line: #E7DED3;
  --accent: #C4573B; --card: #FFFFFF; --sky-ink: #FFF4E4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --s0: #15183A; --s1: #4A3463; --s2: #B5585A; --s3: #E8955E;
    --sun: #FFD99A; --sea0: #34558E; --sea1: #121A36; --band: #4A3463;
    --bg: #111733; --ink: #F3EADF; --muted: #A9A6BC; --line: #262D4E;
    --accent: #F6B36B; --card: #182044;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 "DM Sans", system-ui, sans-serif; }
a { color: var(--accent); text-underline-offset: 3px; }

.hero { position: relative; height: min(78vh, 820px); min-height: 560px; overflow: hidden; background: var(--sea1); }
.hero > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.top { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 22px 24px; max-width: 1080px; margin: 0 auto; color: var(--sky-ink); }
.mark { width: 36px; height: 36px; flex: none; }
.wordmark { font: 600 19px/1 "Source Serif 4", Georgia, serif; letter-spacing: .01em; }
.hero-copy { position: relative; z-index: 2; text-align: center; padding: 6vh 24px 0; color: var(--sky-ink); }
h1 { font: 600 clamp(40px, 8vw, 72px)/1.04 "Source Serif 4", Georgia, serif; letter-spacing: -.015em; margin: 0 auto 14px; max-width: 14ch; text-wrap: balance; text-shadow: 0 1px 18px rgba(20,20,50,.25); }
@media (min-width: 820px) { .hero { height: max(760px, 78vh); } .top { padding: 22px 48px; } }
.lede { text-shadow: 0 1px 12px rgba(20,20,50,.3); }
.lede { font-size: clamp(17px, 2vw, 20px); margin: 0 auto; max-width: 30ch; opacity: .9; }

.glow { animation: glow 7s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes glow { from { opacity: .55; transform: scale(.94); } to { opacity: .9; transform: scale(1.06); } }
.band { fill: var(--band); }
.bands-a { animation: slide 38s ease-in-out infinite alternate; }
.bands-b { animation: slide-back 52s ease-in-out infinite alternate; }
@keyframes slide { from { transform: translateX(-60px); } to { transform: translateX(80px); } }
@keyframes slide-back { from { transform: translateX(70px); } to { transform: translateX(-70px); } }
.ripple { fill: var(--sun); transform-box: fill-box; transform-origin: center; animation: shimmer 3.2s ease-in-out infinite; }
.ripple:nth-child(2) { animation-delay: -.5s; } .ripple:nth-child(3) { animation-delay: -1.1s; }
.ripple:nth-child(4) { animation-delay: -1.7s; } .ripple:nth-child(5) { animation-delay: -2.2s; }
.ripple:nth-child(6) { animation-delay: -2.7s; } .ripple:nth-child(7) { animation-delay: -.8s; }
@keyframes shimmer { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.8); } }
.stars { display: none; }
.stars circle { fill: #FFF4E4; animation: twinkle 4s ease-in-out infinite alternate; }
.stars circle:nth-child(3n) { animation-delay: -1.3s; } .stars circle:nth-child(3n+1) { animation-delay: -2.6s; }
@keyframes twinkle { from { opacity: .2; } to { opacity: .9; } }
@media (prefers-color-scheme: dark) { .stars { display: inline; } }
@media (prefers-reduced-motion: reduce) { .glow, .bands-a, .bands-b, .ripple, .stars circle { animation: none; } }

main { position: relative; z-index: 3; max-width: 1080px; margin: -72px auto 0; padding: 44px 24px 16px; background: var(--bg); border-radius: 28px 28px 0 0; }
.grid { display: grid; gap: 40px; }
@media (min-width: 820px) { .grid { grid-template-columns: 1.1fr 1fr; gap: 64px; } main { padding: 56px 48px 16px; } }
h2 { font: 500 13px/1 "DM Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.about p { margin: 0 0 14px; max-width: 44ch; font-size: 19px; }
.contact { margin-top: 32px; }
.contact p { margin: 0 0 6px; }
.app { display: flex; gap: 16px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); text-decoration: none; color: inherit; }
.app:hover { border-color: var(--accent); }
.app img { width: 64px; height: 64px; border-radius: 15px; flex: none; }
.app strong { display: block; font: 600 20px/1.2 "Source Serif 4", Georgia, serif; }
.app span { display: block; color: var(--muted); font-size: 15px; }
.app em { display: block; font-style: normal; color: var(--accent); font-size: 14px; font-weight: 500; margin-top: 6px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 420px) { .app { flex-direction: column; align-items: flex-start; } }
.facts { margin: 36px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts li span:first-child { color: var(--muted); }
footer { max-width: 1080px; margin: 0 auto; padding: 36px 24px 48px; color: var(--muted); font-size: 14px; display: flex; gap: 14px; align-items: center; }
@media (min-width: 820px) { footer { padding: 36px 48px 56px; } }
footer img { width: 28px; height: 28px; flex: none; }
footer p { margin: 0; }
#sky stop:nth-child(1) { stop-color: var(--s0); } #sky stop:nth-child(2) { stop-color: var(--s1); }
#sky stop:nth-child(3) { stop-color: var(--s2); } #sky stop:nth-child(4) { stop-color: var(--s3); }
#sea stop:nth-child(1) { stop-color: var(--sea0); } #sea stop:nth-child(2) { stop-color: var(--sea1); }
#halo stop { stop-color: var(--sun); }
.sun { fill: var(--sun); }
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.notfound img { width: 72px; height: 72px; }
.notfound h1 { color: var(--ink); text-shadow: none; font-size: clamp(32px, 7vw, 48px); margin: 20px auto 10px; }
