@font-face { font-family: "Fredoka"; font-weight: 500; src: url("assets/Fredoka-500.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Fredoka"; font-weight: 600; src: url("assets/Fredoka-600.ttf") format("truetype"); font-display: swap; }

:root {
  --ocean: #7dd0f5;
  --land: #fff6e3;
  --ink: #2f4858;
  --ink-soft: #4d6676;
  --blue: #3a86ff;
  --red: #f2575b;
  --dusk: #232323;
  --dusk-field: #2d2b28;
  --dusk-line: #4a4640;
  --dusk-ink: #ece4d3;
  --dusk-soft: #a9a191;
  --flame: #ffb347;
  --max: 1120px;
  --display: "Fredoka", ui-rounded, system-ui, sans-serif;
  --body: ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--land); color: var(--ink);
  font: 19px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: currentColor; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, .stop:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3, dt { font-family: var(--display); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

.btn {
  display: inline-block; font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1;
  text-decoration: none; cursor: pointer; border: 0; border-radius: 999px; padding: 16px 28px;
  background: var(--ink); color: var(--land);
}
.btn:hover { background: var(--red); color: #fff; }

/* Day: the ocean */
.sky { background: var(--ocean); }
.sky header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 21px; text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: auto; display: block; }
.brand:hover { color: var(--ink); }
.sky header a.join { font-family: var(--display); font-weight: 500; font-size: 17px; color: var(--ink); }

.hero .wrap { padding-top: 24px; padding-bottom: 64px; }
.intro-row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 24px 56px; align-items: end; margin-bottom: 44px; }
.hero .logo { display: block; width: min(100%, 300px); height: auto; margin: 0 0 24px -6px; }
.hero h1 { font-size: clamp(38px, 5vw, 66px); max-width: 11em; }
.hero p.lead { margin: 0 0 24px; max-width: 24em; font-size: 21px; color: var(--ink); }
.hero .status { font-family: var(--display); font-weight: 500; font-size: 17px; margin: 16px 0 0; }

.banner { position: relative; border: 3px dotted var(--ink); border-radius: 30px; padding: 14px 14px 4px; }
.banner.has-ring { border-color: transparent; }
.ring { position: absolute; left: -3px; top: -3px; width: calc(100% + 6px); height: calc(100% + 6px); pointer-events: none; overflow: visible; }
.ring rect { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 18px; background: var(--land); }
.track::-webkit-scrollbar { display: none; }
.track img { flex: 0 0 100%; width: 100%; height: auto; display: block; scroll-snap-align: start; }
.under { display: flex; justify-content: space-between; align-items: center; gap: 12px 28px; margin-top: 10px; padding: 0 6px; }
.cap { margin: 0; font-size: 19px; line-height: 1.45; color: var(--ink); min-height: 2.9em; display: flex; align-items: center; }
.cap b { font-family: var(--display); font-weight: 600; font-size: 22px; margin-right: .35em; }
.dots { display: flex; gap: 4px; flex: none; }
.dots button { width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.dots button::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--ink); opacity: .3; transition: opacity .2s; }
.dots button[aria-current="true"]::after { opacity: 1; }
.dots button:focus-visible { outline: 3px solid var(--ink); outline-offset: -2px; border-radius: 8px; }

/* Land: the screens */
.land-band { padding: 96px 0 40px; }
.land-band h2 { font-size: clamp(32px, 4.6vw, 62px); max-width: 13em; }
.land-band .intro { max-width: 34em; margin-top: 24px; color: var(--ink-soft); font-size: 21px; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 88px 0 0; padding: 0; }
.facts div { border-top: 3px solid var(--ink); padding-top: 18px; }
.facts dt { font-size: clamp(24px, 2.6vw, 32px); }

/* Dusk: the lantern */
.dusk { background: var(--dusk); color: var(--dusk-ink); margin-top: 110px; }
.dusk a:hover { color: var(--flame); }
.dusk a:focus-visible, .dusk button:focus-visible, .dusk input:focus-visible { outline-color: var(--flame); }
.beta { padding: 96px 0 72px; }
.beta .cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.lantern { display: block; width: 96px; height: auto; margin: 0 0 28px; }
.beta h2 { font-size: clamp(34px, 4.4vw, 58px); margin-bottom: 20px; }
.beta .copy p { color: var(--dusk-soft); max-width: 26em; }
.beta .copy a.big { font-family: var(--display); font-weight: 500; font-size: 22px; color: var(--dusk-ink); }
form { display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.row.wide-second { grid-template-columns: 2fr 3fr; }
label.f { display: grid; gap: 6px; font-family: var(--display); font-weight: 500; font-size: 16px; color: var(--dusk-soft); }
label.f span.h { font-family: var(--body); font-weight: 400; font-size: 14px; }
input[type=text], input[type=email], input[type=number] {
  font: 18px var(--body); color: var(--dusk-ink); background: var(--dusk-field);
  border: 1px solid var(--dusk-line); border-radius: 12px; padding: 13px 15px; width: 100%;
}
input::placeholder { color: #7e7769; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; color: var(--dusk-soft); }
.check input { width: 22px; height: 22px; margin-top: 4px; accent-color: var(--flame); flex: none; }
.dusk .btn { background: var(--flame); color: #2a2118; }
.dusk .btn:hover { background: #ffc66e; color: #2a2118; }
.fine { font-size: 15px; color: var(--dusk-soft); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { font-size: 17px; min-height: 1.5em; margin: 0; }
.msg.ok { color: #8fd694; }
.msg.err { color: #ff9d94; }

.about { border-top: 1px solid var(--dusk-line); padding: 56px 0 40px; }
.about p { max-width: 30em; font-size: 22px; line-height: 1.55; margin: 0 0 12px; }
.about p.soft { color: var(--dusk-soft); font-size: 19px; }
.about p.credit { color: var(--dusk-soft); font-size: 15px; line-height: 1.6; margin-top: 28px; max-width: 40em; }

footer { padding: 0 0 56px; color: var(--dusk-soft); font-size: 16px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
footer a { margin-right: 22px; }

/* Privacy page */
.doc { max-width: 700px; padding-top: 56px; padding-bottom: 96px; }
.doc h1 { font-size: clamp(38px, 5.4vw, 60px); margin-bottom: 10px; }
.doc h2 { font-size: 26px; margin: 42px 0 10px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc li { margin-bottom: 8px; }
.doc .updated { font-size: 16px; margin-bottom: 30px; }
.doc b { color: var(--ink); }

@media (max-width: 820px) {
  body { font-size: 18px; }
  .intro-row, .beta .cols, .row, .row.wide-second { grid-template-columns: 1fr; }
  .intro-row { margin-bottom: 28px; }
  .hero .wrap { padding-bottom: 32px; }
  .banner { border-radius: 22px; padding: 8px 8px 0; }
  .track { border-radius: 14px; }
  .under { flex-direction: column; align-items: flex-start; gap: 4px; padding: 0 4px; }
  .cap { min-height: 0; display: block; font-size: 17px; }
  .cap b { font-size: 20px; }
  .facts { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; }
  .land-band { padding-top: 64px; }
  .dusk { margin-top: 72px; }
  .beta { padding-top: 64px; }
  footer a { margin-right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track { scroll-behavior: auto; }
}
