@charset "utf-8";

:root {
  color-scheme: light;
  --ink: #0b1730;
  --ink-soft: #42516b;
  --night: #08152b;
  --night-raised: #10213e;
  --line: #dbe2ec;
  --paper: #f4f6fa;
  --white: #fff;
  --aqua: #71e3d2;
  --aqua-dark: #117f7c;
  --violet: #a99cff;
  --gold: #f4cc82;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--night); }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.6; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--aqua); outline-offset: 4px; border-radius: 3px; }
.skip-link { position: absolute; z-index: 10; top: .75rem; left: .75rem; transform: translateY(-180%); padding: .7rem 1rem; color: var(--night); background: var(--aqua); font-weight: 750; }
.skip-link:focus { transform: translateY(0); }
.section-wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }

.site-header { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 2rem; width: min(1320px, calc(100% - 64px)); margin-inline: auto; padding: 27px 0; color: #f7f9ff; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; color: inherit; font-size: 1rem; font-weight: 750; letter-spacing: -.035em; text-decoration: none; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 8px); gap: 3px; transform: rotate(-8deg); }
.brand-mark span { width: 8px; height: 8px; border: 1px solid var(--aqua); border-radius: 3px; }
.brand-mark span:nth-child(2), .brand-mark span:nth-child(3) { background: var(--aqua); }
.primary-nav, .footer-nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 34px); }
.primary-nav a, .footer-nav a { color: #c9d3e4; font-size: .82rem; font-weight: 550; text-decoration: none; transition: color .2s ease; }
.primary-nav a:hover, .footer-nav a:hover { color: var(--aqua); }

.hero { display: grid; grid-template-columns: minmax(0, .94fr) minmax(420px, 1.06fr); align-items: center; gap: 44px; min-height: 690px; padding-top: 35px; padding-bottom: 90px; color: #f7f9ff; }
body:has(.hero) { background: var(--night); }
.hero-copy { position: relative; z-index: 1; padding: 24px 0 15px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: #aebbd0; font-size: .7rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 16px #71e3d2a8; }
.hero h1, .intro-grid h2, .local-copy h2, .closing h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.06em; line-height: .98; }
.hero h1 { max-width: 650px; font-size: clamp(4.4rem, 8vw, 7.8rem); }
.hero h1 span, .closing h2 span { color: var(--aqua); font-style: italic; }
.hero-lede { max-width: 475px; margin: 27px 0 0; color: #c4cede; font-size: clamp(1rem, 1.35vw, 1.13rem); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 49px; padding: 0 19px; border: 1px solid transparent; border-radius: 4px; font-size: .82rem; font-weight: 750; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--night); background: var(--aqua); }
.button-primary:hover { background: #9af0e4; }
.text-link { color: #d6dfed; font-size: .81rem; font-weight: 650; text-decoration-color: #70809a; text-underline-offset: 5px; }
.text-link span, .button span { font-size: 1rem; }
.text-link:hover { color: var(--aqua); }
.hero-points { display: flex; flex-wrap: wrap; gap: 12px 27px; margin: 44px 0 0; padding: 0; color: #b9c4d6; list-style: none; }
.hero-points li { display: flex; align-items: center; gap: 9px; font-size: .74rem; }
.hero-points li span { color: var(--aqua); font-size: .63rem; font-weight: 800; letter-spacing: .08em; }

.puzzle-art { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; margin: 0; }
.puzzle-board { position: relative; z-index: 1; display: block; width: min(100%, 510px); height: auto; overflow: visible; }
.puzzle-art figcaption { position: relative; z-index: 1; margin-top: 7px; color: #8797b0; font-size: .68rem; letter-spacing: .025em; }
.caption-line { display: inline-block; width: 18px; height: 1px; margin: 0 7px 3px 0; background: var(--aqua); }
.art-orbit { position: absolute; z-index: 0; border: 1px solid #263958; border-radius: 50%; }
.orbit-one { top: 7%; right: 1%; width: 76px; height: 76px; }
.orbit-one::after { position: absolute; top: 17px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); content: ""; }
.orbit-two { bottom: 16%; left: -3%; width: 40px; height: 40px; border-color: #463c75; }

.intro-band { padding: 112px 0 105px; background: var(--paper); }
.intro-grid { display: grid; grid-template-columns: 1fr .8fr; align-items: end; gap: 80px; }
.eyebrow-dark { color: var(--aqua-dark); }
.intro-grid h2, .local-copy h2, .closing h2 { font-size: clamp(3.2rem, 5.9vw, 5.5rem); }
.intro-text { max-width: 490px; margin: 0 0 7px; color: var(--ink-soft); font-size: 1rem; line-height: 1.85; }
.feature-section { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 18px; padding-bottom: 120px; background: var(--paper); }
.feature-card { position: relative; display: flex; flex-direction: column; min-height: 320px; padding: 29px 31px; overflow: hidden; background: #fff; border: 1px solid #e3e8ef; }
.feature-index { color: #61718b; font-size: .62rem; font-weight: 800; letter-spacing: .14em; }
.feature-card h3 { max-width: 390px; margin: 25px 0 9px; color: var(--ink); font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.65rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.08; }
.feature-card p { max-width: 480px; margin: 0; color: var(--ink-soft); font-size: .88rem; line-height: 1.8; }
.feature-card-large { min-height: 370px; }
.feature-card-accent { color: #f6f7fc; background: #192750; border-color: #192750; }
.feature-card-accent .feature-index { color: #b9c5db; }
.feature-card-accent h3 { color: #fff; }
.feature-card-accent p { color: #c3cce0; }
.feature-card-wide { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr .85fr; align-items: center; min-height: 245px; }
.feature-card-wide .feature-index { position: absolute; top: 29px; left: 31px; }
.feature-card-wide h3 { margin-top: 0; }
.feature-icon { position: relative; width: 57px; height: 57px; margin-top: 38px; border: 1px solid #cfe9e4; border-radius: 18px; background: #edfaf7; }
.icon-sun::before, .icon-sun::after, .icon-sun span { position: absolute; display: block; border-radius: 50%; content: ""; }
.icon-sun::before { inset: 15px; background: #37b8a8; box-shadow: 0 0 0 5px #c7f0e9; }
.icon-sun::after { top: 8px; right: 8px; width: 6px; height: 6px; background: var(--gold); }
.icon-sun span { bottom: 8px; left: 7px; width: 4px; height: 4px; background: var(--violet); }
.duel-symbol { display: flex; align-items: center; gap: 0; margin-top: 36px; color: #80e8dc; font-size: 2.6rem; font-weight: 300; }
.duel-symbol span + span { margin-left: -7px; color: #c0b8ff; }
.code-symbol { display: flex; align-items: center; justify-self: center; gap: 14px; color: #117f7c; }
.code-symbol span { display: grid; width: 67px; height: 67px; place-items: center; border: 1px solid #c6e9e5; border-radius: 19px; background: #e6f7f3; font-size: .86rem; font-weight: 850; letter-spacing: -.04em; }
.code-symbol i { color: #8695aa; font-size: 1.5rem; font-style: normal; letter-spacing: .16em; }

.local-section { padding: 106px 0 116px; color: #f8f9fe; background: #0c1a33; }
.local-grid { display: grid; grid-template-columns: .92fr 1fr; align-items: center; gap: clamp(50px, 9vw, 135px); }
.local-visual { position: relative; display: grid; min-height: 310px; place-items: center; overflow: hidden; }
.local-card { position: relative; z-index: 1; display: flex; flex-direction: column; width: min(330px, 100%); min-height: 230px; padding: 22px; border: 1px solid #354867; border-radius: 11px; background: linear-gradient(145deg, #172847, #101e39); box-shadow: 0 26px 60px #02091880; transform: rotate(-4deg); }
.local-card-top { display: flex; gap: 5px; }
.local-card-top i { width: 5px; height: 5px; border-radius: 50%; background: #63748d; }
.local-card-label { margin-top: 39px; color: #aebdd2; font-size: .61rem; font-weight: 750; letter-spacing: .16em; }
.local-card-score { align-self: flex-end; margin-top: -22px; color: var(--aqua); font-size: 2.3rem; }
.local-card-bottom { margin-top: auto; padding-top: 17px; border-top: 1px solid #324563; color: #f6f8fd; font-family: var(--serif); font-size: 1.25rem; }
.local-orbit { position: absolute; border: 1px solid #27415c; border-radius: 50%; }
.local-orbit-a { width: 360px; height: 360px; }
.local-orbit-b { width: 265px; height: 265px; border-color: #413d70; }
.local-copy .eyebrow { color: #9aaac1; }
.local-copy h2 { color: #fff; }
.local-copy h2 + p { max-width: 495px; margin: 24px 0 23px; color: #c0ccdc; font-size: .93rem; line-height: 1.85; }
.text-link-light { color: #f0f4fb; }

.closing { padding-top: 115px; padding-bottom: 120px; }
.closing .eyebrow { margin-bottom: 24px; }
.closing h2 { color: var(--ink); }
.closing h2 span { color: var(--aqua-dark); }
.closing-links { display: flex; flex-wrap: wrap; align-items: center; gap: 23px; margin-top: 34px; }
.button-dark { color: #fff; background: var(--ink); }
.button-dark:hover { background: #1b3154; }
.closing-links .text-link { color: var(--ink); text-decoration-color: #a2adbd; }
.closing-links .text-link:hover { color: var(--aqua-dark); }
.site-footer { padding: 36px 0 28px; color: #e9edf5; background: var(--night); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px 32px; }
.brand-footer { color: #f7f9ff; }
.footer-inner > p { margin: 0; color: #8797b0; font-size: .74rem; }
.footer-nav { grid-column: 1 / -1; justify-content: flex-start; padding: 19px 0 11px; border-top: 1px solid #273752; }
.footer-inner small { grid-column: 1 / -1; color: #8391a8; font-size: .68rem; }

/* Legal pages */
.legal-page { min-height: 100vh; background: var(--paper); }
.legal-page .site-header { width: min(1160px, calc(100% - 64px)); color: var(--ink); }
.legal-page .primary-nav a { color: #4e5c73; }
.legal-page .primary-nav a:hover { color: var(--aqua-dark); }
.legal-shell { width: min(880px, calc(100% - 48px)); margin: 0 auto; padding: 52px 0 100px; }
.legal-breadcrumb { margin-bottom: 25px; color: #6b7890; font-size: .78rem; }
.legal-breadcrumb a { color: var(--aqua-dark); font-weight: 700; text-decoration: none; }
.legal-copy { padding: clamp(26px, 6vw, 58px); border: 1px solid #e0e5ed; background: #fff; box-shadow: 0 18px 50px #0b17300a; }
.legal-copy h1 { margin: 0 0 12px; color: var(--ink); font-family: var(--serif); font-size: clamp(2.55rem, 5vw, 4.1rem); font-weight: 400; letter-spacing: -.05em; line-height: 1.04; }
.legal-copy h2 { margin: 2.1em 0 .6em; padding-top: 1.2em; border-top: 1px solid #e8ecf2; color: var(--ink); font-size: 1.08rem; letter-spacing: -.015em; line-height: 1.35; }
.legal-copy h1 + p { margin-top: 0; color: #56647b; font-size: .85rem; }
.legal-copy p, .legal-copy li { color: #36445b; font-size: .91rem; line-height: 1.85; }
.legal-copy ul { padding-left: 1.35em; }
.legal-copy li { margin: .35em 0; padding-left: .2em; }
.legal-copy strong { color: #17233b; font-weight: 750; }
.legal-copy a { color: #087b75; font-weight: 650; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-copy blockquote { margin: 2em 0 0; padding: 17px 20px; border-left: 3px solid #d6a44d; background: #fff8e9; }
.legal-copy blockquote p { margin: 0; color: #695638; font-size: .83rem; }
.legal-page .site-footer { margin-top: 0; }

@media (max-width: 800px) {
  .section-wrap, .site-header, .legal-page .site-header { width: min(100% - 40px, 620px); }
  .site-header { align-items: flex-start; flex-direction: column; gap: 18px; padding: 22px 0; }
  .primary-nav { flex-wrap: wrap; gap: 10px 20px; }
  .hero { grid-template-columns: 1fr; gap: 28px; min-height: unset; padding-top: 58px; padding-bottom: 72px; }
  .hero h1 { font-size: clamp(4.3rem, 15vw, 6.6rem); }
  .hero-copy { padding: 0; }
  .puzzle-art { width: min(100%, 560px); justify-self: center; }
  .puzzle-board { width: min(100%, 460px); }
  .intro-band { padding: 76px 0 68px; }
  .intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .feature-section { padding-bottom: 78px; }
  .feature-card { min-height: 300px; padding: 24px; }
  .feature-card-wide { min-height: 240px; }
  .feature-card-wide .feature-index { top: 24px; left: 24px; }
  .local-section { padding: 76px 0; }
  .local-grid { grid-template-columns: 1fr; gap: 35px; }
  .local-visual { min-height: 270px; }
  .closing { padding-top: 78px; padding-bottom: 84px; }
}

@media (max-width: 560px) {
  .section-wrap, .site-header, .legal-page .site-header { width: calc(100% - 36px); }
  .primary-nav { gap: 9px 16px; }
  .primary-nav a { font-size: .76rem; }
  .hero { padding-top: 42px; }
  .hero-lede { margin-top: 20px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .hero-points { gap: 10px 16px; margin-top: 31px; }
  .puzzle-art figcaption { max-width: 290px; text-align: center; line-height: 1.55; }
  .intro-grid h2, .local-copy h2, .closing h2 { font-size: clamp(3rem, 13vw, 4.5rem); }
  .feature-section { grid-template-columns: 1fr; gap: 13px; padding-top: 13px; padding-bottom: 65px; }
  .feature-card, .feature-card-large { min-height: 290px; }
  .feature-card-wide { display: flex; grid-column: auto; align-items: flex-start; min-height: 340px; padding-top: 73px; }
  .feature-card-wide .feature-index { top: 24px; left: 24px; }
  .code-symbol { align-self: flex-start; margin: 0 0 20px; }
  .feature-card-wide h3 { margin-top: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 13px; }
  .footer-nav { flex-wrap: wrap; gap: 12px 22px; padding-top: 17px; }
  .footer-inner small { grid-column: auto; }
  .legal-page .site-header { gap: 16px; }
  .legal-shell { width: calc(100% - 28px); padding-top: 29px; padding-bottom: 64px; }
  .legal-copy { padding: 25px 21px; }
  .legal-copy h2 { margin-top: 1.7em; }
  .legal-copy p, .legal-copy li { font-size: .86rem; }
}

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