@font-face { font-family: Fredoka; src: url(Fredoka-Bold.ttf); font-weight: 700; font-display: swap; }
@font-face { font-family: Instrument; src: url(InstrumentSans-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Instrument; src: url(InstrumentSans-SemiBold.ttf); font-weight: 600; font-display: swap; }

:root {
  --sea: #BFCCCC;       /* the map's sea */
  --sea-deep: #A9BABA;
  --paper: #FBF6E3;
  --ink: #1E2A36;
  --ink2: #3E4A55;
  --lamp: #FFD98A;      /* code on the night panel */
  --edge: #E3D6B6;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.55 Instrument, -apple-system, system-ui, sans-serif; color: var(--ink); background: var(--paper); }
a { color: var(--ink); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2 { font-family: Fredoka, system-ui, sans-serif; font-weight: 700; line-height: 1.15; letter-spacing: 0; }

/* home */
.home { background: var(--sea); --dusk: #D8B399; --teal: #1D5852;  /* 4.95:1 on the sea */ }
.home h2 { font-size: clamp(30px, 4.6vw, 44px); margin: 0 0 14px; }
.home h3 { font-family: Fredoka, system-ui, sans-serif; font-size: clamp(24px, 3vw, 30px); line-height: 1.15; margin: 0 0 10px; }
.home p { max-width: 34em; }
.status { font-weight: 600; }

.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 1160px; margin: 0 auto; padding: 16px 24px; }
.mark { display: flex; align-items: center; gap: 10px; font: 700 22px Fredoka, system-ui, sans-serif; text-decoration: none; min-height: 44px; }
.soon { font-size: 15px; color: var(--ink2); }

/* hero: the render's sea is #BFCCCC, so the islands sit straight on the page */
.hero { max-width: 1160px; margin: 0 auto; padding: 24px 24px 40px; display: grid; grid-template-columns: 5fr 6fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); line-height: 1.04; margin: 0 0 22px; text-wrap: balance; }
.hero p { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink2); margin: 0 0 22px; }
.hero .status { color: var(--ink); margin: 30px 0 6px; }
.down { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--teal); }
.isles { width: 100%; height: auto; display: block; }

/* places: alternating rows, an outcome per island */
.places { max-width: 1160px; margin: 0 auto; padding: 56px 24px 24px; }
.places .wide { margin-bottom: 40px; }
.place { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin: 0 0 72px; }
.place img { width: 100%; height: auto; display: block; border-radius: 28px; }
.place.flip img { order: 2; }
.place p { font-size: 18px; color: var(--ink2); }
.scope { font-weight: 600; margin: 0; }

/* horizon: what comes after launch, the next worlds still in fog */
.horizon { max-width: 1160px; margin: 0 auto; padding: 24px 24px 88px; }
.horizon-head p { font-size: 20px; color: var(--ink2); }
.horizon img { width: min(100%, 860px); height: auto; display: block; margin: 8px auto 28px; }
.next { list-style: none; padding: 0; margin: 14px 0 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.next li { font-size: 17px; color: var(--ink2); border-top: 2px solid var(--sea-deep); padding-top: 14px; }
.next b { display: block; font: 700 22px/1.2 Fredoka, system-ui, sans-serif; color: var(--ink); margin-bottom: 6px; }
.next li:only-child { max-width: 560px; }   /* one island named at a time */
.further { font-weight: 600; margin: 0; }

/* shifts: each column wears its shift's sky from the app */
.shifts { background: var(--paper); padding: 72px 24px 80px; }
.shifts-head { max-width: 1160px; margin: 0 auto 36px; }
.shifts-head p { font-size: 18px; color: var(--ink2); margin: 0; }
.three { list-style: none; padding: 0; margin: 0 auto; max-width: 1160px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.three li { border-radius: 28px; padding: 14px 14px 12px; }
.three img { width: 100%; height: auto; display: block; border-radius: 18px; margin-bottom: 20px; }
.three h3 { padding: 0 10px; }
.day { background: var(--sea); }
.evening { background: var(--dusk); }
.night { background: var(--ink); color: var(--paper); }

.intro { max-width: 1160px; margin: 0 auto; padding: 48px 24px 8px; }
.intro p { font-size: 20px; color: var(--ink2); }

/* sail: the real map, kept phone-sized */
.sail { padding-top: 80px; }
.sail .place { grid-template-columns: 1fr minmax(0, 420px); margin-bottom: 24px; }
.sail h3 { margin-top: 32px; }

.end { text-align: center; padding: 40px 24px 72px; }
.end img { width: min(220px, 50vw); height: auto; }
.end h2 { margin: 10px auto 8px; }
.end p { margin-left: auto; margin-right: auto; }

@media (max-width: 820px) {
  .hero, .place, .sail .place { grid-template-columns: 1fr; gap: 20px; }
  .sail { padding-top: 48px; }
  .sail img { max-width: 300px; justify-self: center; }
  .sail .place > div { order: -1; }
  .place.flip img { order: 0; }
  .place { margin-bottom: 56px; }
  .three { grid-template-columns: 1fr; max-width: 460px; }
  .next { grid-template-columns: 1fr; gap: 18px; }
  .horizon { padding-bottom: 56px; }
  .soon { display: none; }
  .hero { padding-bottom: 12px; }
  .places { padding-top: 24px; }
  .places .wide { margin-bottom: 24px; }
}

/* reading pages */
.page { max-width: 40em; margin: 0 auto; padding: 40px 20px 64px; }
.page .back img { width: 72px; height: auto; display: block; }
.page h1 { font-size: 40px; margin: 18px 0 6px; }
.page h2 { font-size: 23px; margin: 36px 0 6px; }
.page .meta { color: var(--ink2); margin: 0 0 8px; }
.page li { margin: 4px 0; }

footer { text-align: center; padding: 28px 16px 40px; font-size: 15px; color: var(--ink2); }
.home footer { background: var(--sea-deep); }
footer a { display: inline-block; margin: 0 10px; padding: 10px 0; }
