@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/newsreader-latin-opsz-normal.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400 700; font-display: swap; src: url(/fonts/newsreader-latin-opsz-italic.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/atkinson-hyperlegible-latin-400-italic.woff2) format("woff2"); }

/* ebbandback.com: the game's own palette and type. Overcast low tide by day, dusk in dark mode.
   tools/build-site.mjs puts src/fonts.css in front of this file. */
:root {
  --bg: #dbe2e1;
  --panel: #eef2f0;
  --ink: #1b252c;
  --ink-soft: #4f5d66;
  --line: rgba(27, 37, 44, .14);
  --accent: #f2b705;
  --accent-ink: #1b252c;
  --sea: #6f9a9b;
  --sea-deep: #4f7d80;
  --water: rgba(92, 140, 143, .9);
  --water-edge: #2f6266;
  --sand-1: #8b7451;
  --sand-2: #a68c60;
  --sand-3: #c0a674;
  --sand-4: #d5c08f;
  --sand-5: #e6d6ad;
  --shore: #efe5c8;
  --gridline: rgba(60, 45, 20, .16);
  --halo: rgba(255, 250, 238, .55);
  --pool: #7fb3ad;
  --pool-rim: #6d6458;
  --shadow: 0 18px 40px rgba(27, 37, 44, .2);

  --f-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-ui: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --t: clamp(38px, calc((100vw - 40px) / 7), 56px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1519; --panel: #172128; --ink: #e2e8ea; --ink-soft: #a3b1b7; --line: rgba(226, 232, 234, .12);
    --accent: #f5c518; --accent-ink: #14191d;
    --sea: #1f4752; --sea-deep: #173a44; --water: rgba(36, 86, 98, .92); --water-edge: #6fb3bf;
    --sand-1: #3b3122; --sand-2: #4e412c; --sand-3: #645438; --sand-4: #7a6746; --sand-5: #8f7a55; --shore: #a18d66;
    --gridline: rgba(0, 0, 0, .28); --halo: rgba(20, 16, 10, .45); --pool: #3f7f80; --pool-rim: #2a2620;
    --shadow: 0 18px 40px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.6 var(--f-ui);
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img, svg { display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* the masthead: the game's italic wordmark */
.mast { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 22px; }
.wordmark { font: italic 600 30px/1 var(--f-display); letter-spacing: -.01em; text-decoration: none; }
.mast nav { display: flex; gap: 18px; font-size: 16px; }
.mast nav a { text-decoration: none; color: var(--ink-soft); }
.mast nav a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- home: the hero is today's beach ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 56px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 72px;
}
.hero h1 {
  font: 600 clamp(40px, 6.2vw, 68px)/1.04 var(--f-display);
  font-variation-settings: "opsz" 72;
  letter-spacing: -.02em;
  margin: 0 0 22px;
  max-width: 15ch;
}
.lede { font-size: 20px; max-width: 34em; margin: 0 0 30px; color: var(--ink); }
.soon { margin: 0; padding-left: 14px; border-left: 4px solid var(--accent); font-weight: 700; }

.today { margin: 0; }
.board {
  width: calc(var(--t) * 7);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.sea {
  height: calc(var(--t) * .62);
  background:
    radial-gradient(120% 90% at 50% 120%, transparent 60%, rgba(255,255,255,.12) 61%, transparent 66%) 0 0 / calc(var(--t) * 1.4) 100%,
    linear-gradient(var(--sea-deep), var(--sea));
}
.grid { display: grid; grid-template-columns: repeat(7, var(--t)); grid-auto-rows: var(--t); }
.tile { position: relative; background: var(--sand-5); box-shadow: inset 0 0 0 .5px var(--gridline); }
.tile.h1 { background-color: var(--sand-1); background-image: repeating-linear-gradient(168deg, transparent 0 5px, rgba(255,255,255,.07) 5px 6.5px); }
.tile.h2 { background-color: var(--sand-2); background-image: repeating-linear-gradient(168deg, transparent 0 6px, rgba(255,255,255,.06) 6px 7.5px); }
.tile.h3 { background-color: var(--sand-3); }
.tile.h4 { background-color: var(--sand-4); }
.tile.pool::after {
  content: ""; position: absolute; inset: 14%; border-radius: 46% 54% 50% 48%;
  background: radial-gradient(110% 80% at 34% 28%, rgba(255,255,255,.38), transparent 46%), var(--pool);
  box-shadow: 0 0 0 2.5px var(--pool-rim), inset 0 2px 4px rgba(0,0,0,.28);
}
.tile .ico { position: absolute; inset: 16%; z-index: 1; filter: drop-shadow(0 1px 0 var(--halo)) drop-shadow(0 1px 2px rgba(0,0,0,.25)); transition: opacity .4s; }
.tile .ico svg { width: 100%; height: 100%; }
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: var(--water);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s cubic-bezier(.3, .7, .3, 1);
  transition-delay: calc(var(--r, 0) * 40ms);
}
.tile.wet::before { clip-path: inset(0 0 0 0); }
.tile.wet .ico { opacity: .4; }
.shore {
  height: calc(var(--t) * .6);
  background: var(--shore);
  position: relative;
}
.shore::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(90, 110, 60, .25) 9px 10px, transparent 10px 23px) 0 100% / 100% 40% no-repeat;
}
.comber { position: absolute; left: 50%; bottom: 6%; width: calc(var(--t) * .78); transform: translateX(-50%); }
.today figcaption { margin-top: 16px; font-size: 16px; color: var(--ink-soft); max-width: calc(var(--t) * 7); }
.today figcaption b { color: var(--ink); font-weight: 700; }
.again {
  font: inherit; color: var(--ink); background: none; border: 0; padding: 0;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.again[disabled] { color: var(--ink-soft); text-decoration: none; cursor: default; }

/* ---------- how a walk goes: the four moves of a walk, in order ---------- */
.walk { border-top: 1px solid var(--line); padding: 64px 0; }
.walk h2, .versions h2 { font: 600 clamp(30px, 4vw, 40px)/1.15 var(--f-display); letter-spacing: -.01em; margin: 0 0 32px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.steps li { margin: 0; }
.pic { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; }
.pic svg { width: 36px; height: 36px; }
.p4 svg { width: 40px; height: 40px; }
.p1 { background: var(--sand-4); }
.p2 { background: var(--sand-3); }
.p3 { background: linear-gradient(var(--sea) 0 46%, var(--sand-2) 46%); }
.p4 { background: var(--shore); }
.steps b { display: block; font: 600 22px/1.25 var(--f-display); margin-bottom: 6px; }
.steps p { margin: 0; font-size: 17px; color: var(--ink-soft); }

/* ---------- free and full ---------- */
.versions { padding: 64px 0 72px; border-top: 1px solid var(--line); }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.cols h3 { font: 600 24px/1.25 var(--f-display); margin: 0 0 4px; }
.cols .where { margin: 0 0 14px; color: var(--ink-soft); font-size: 16px; }
.cols ul { margin: 0; padding-left: 1.1em; }
.cols li { margin: 0 0 8px; }
.cols li::marker { color: var(--sea-deep); }
.promise { margin: 48px 0 0; font: italic 500 24px/1.4 var(--f-display); max-width: 36em; }

/* ---------- reading pages: privacy, support ---------- */
.page { max-width: 680px; padding: 48px 0 72px; }
.page h1 { font: 600 clamp(36px, 6vw, 48px)/1.1 var(--f-display); letter-spacing: -.015em; margin: 0 0 8px; }
.page h2 { font: 600 24px/1.3 var(--f-display); margin: 36px 0 8px; }
.page p, .page li { margin: 0 0 12px; }
.page .muted { color: var(--ink-soft); }
.page .q { font-weight: 700; display: block; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 16px; color: var(--ink-soft); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer p { margin: 0; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 36px; padding-bottom: 56px; }
  .today { justify-self: center; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .lede { font-size: 18px; }
  .mast nav { gap: 14px; }
  .steps, .cols { grid-template-columns: 1fr; gap: 28px; }
  .walk, .versions { padding: 48px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tile::before, .tile .ico { transition: none; }
}
