/* Raft Crew: the website wears the game's own clothes. Cream panels, ink
   outlines, river blues, and the four seat colours. No frameworks. */

@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("fonts/baloo2-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --ink: #17323d;
  --ink-soft: #4c6772;
  --cream: #fff8e7;
  --cream-dark: #f1e4c3;
  --river: #45accb;
  --river-deep: #1f7a9c;
  --shallows: #7ed3de;
  --sand: #ebdca8;
  --grass: #86c96a;
  --sun: #ffc933;
  --coral: #ff6b4a;
  --leaf: #3f9a55;
  --violet: #b18cff;
  --lime: #a8e63d;
  --line: 2.5px;
  --display: "Baloo 2", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--river-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 8.4vw, 5.4rem); }
h2 { font-size: clamp(2rem, 5.2vw, 3.3rem); }
h3 { font-size: 1.5rem; line-height: 1.1; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 12px; color: var(--cream); }

/* ---- Top bar ---------------------------------------------------------- */

.river-top { background: var(--river); }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 14px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 1.5rem/1 var(--display); color: var(--ink); text-decoration: none;
}
.brand img { width: 40px; height: 40px; border-radius: 11px; border: var(--line) solid var(--ink); }
.top nav { display: flex; align-items: center; gap: clamp(10px, 2.5vw, 26px); }
.top nav a { color: var(--ink); font-weight: 650; text-decoration: none; }
.top nav a:hover { text-decoration: underline; }
.top nav a.hide-s { display: none; }
@media (min-width: 720px) { .top nav a.hide-s { display: inline; } }

/* ---- Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 6px 24px 4px;
  font: 800 1.25rem/1 var(--display); color: var(--ink); text-decoration: none;
  background: var(--coral); border: var(--line) solid var(--ink); border-radius: 999px;
  transition: transform 0.12s ease, background-color 0.12s ease;
}
.btn:hover { color: var(--ink); background: #ff7f62; transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn.small { min-height: 44px; padding-inline: 20px; font-size: 1.05rem; }
.btn.quiet { background: var(--cream); }
.btn.quiet:hover { background: #fff; }
.btn svg { width: 22px; height: 22px; flex: none; margin-top: -2px; }

/* ---- Hero: the river -------------------------------------------------- */

.hero { background: var(--river); position: relative; overflow: hidden; }
.hero .grid {
  display: grid; gap: clamp(28px, 5vw, 56px); align-items: center;
  padding-block: clamp(20px, 5vw, 56px) clamp(56px, 9vw, 104px);
}
@media (min-width: 900px) { .hero .grid { grid-template-columns: 1fr 1.08fr; } }

.kicker {
  display: inline-block; margin-bottom: 18px; padding: 5px 14px 3px;
  font: 700 1rem/1.3 var(--display); letter-spacing: 0.01em;
  background: var(--sun); border: var(--line) solid var(--ink); border-radius: 999px;
}
.hero p.lede { margin-top: 18px; max-width: 34em; font-size: clamp(1.1rem, 2.1vw, 1.3rem); line-height: 1.5; }
.hero .cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.hero .fine { margin-top: 14px; font-size: 0.95rem; color: var(--ink); opacity: 0.86; }

/* Two phones, because it takes at least two. */
.phones { position: relative; padding: 0 2% 9% 0; }
.phone {
  margin: 0; background: var(--ink); border: 9px solid var(--ink); border-radius: 30px;
  overflow: hidden; box-shadow: 0 18px 0 -6px rgba(23, 50, 61, 0.22);
}
.phone img { width: 100%; border-radius: 21px; }
.phones .phone.front { transform: rotate(-2.5deg); position: relative; z-index: 1; }
.phones .phone.back {
  position: absolute; width: 58%; right: -3%; bottom: 0; z-index: 2;
  transform: rotate(4deg); border-width: 7px; border-radius: 24px;
}
.phones .phone.back img { border-radius: 17px; }
@media (prefers-reduced-motion: no-preference) {
  .phones .phone.front { animation: bob 6s ease-in-out infinite; }
  @keyframes bob {
    50% { transform: rotate(-1.4deg) translateY(-8px); }
  }
}

/* The bank: shallows, sand, grass. The same three bands the game draws at
   the edge of every river. */
.bank { height: 34px; background:
  linear-gradient(var(--shallows) 0 12px, var(--sand) 12px 24px, var(--grass) 24px 34px); }
.bank.up { transform: scaleY(-1); }

/* ---- Sections --------------------------------------------------------- */

section { padding-block: clamp(56px, 9vw, 112px); }
.sec-head { max-width: 40rem; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head p { margin-top: 14px; font-size: 1.15rem; color: var(--ink-soft); }

.panel {
  background: #fffdf6; border: var(--line) solid var(--ink); border-radius: 22px;
}

/* How a round goes */
.round { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (min-width: 900px) { .round { grid-template-columns: 1fr 1fr; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--ink-soft); }
.seat { width: 44px; height: 44px; }

/* Modes */
.grass { background: var(--grass); }
.modes { display: grid; gap: 22px; }
@media (min-width: 680px) { .modes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .modes { grid-template-columns: 1fr 1fr 1fr; } }
.mode { overflow: hidden; display: flex; flex-direction: column; }
.mode img { width: 100%; border-bottom: var(--line) solid var(--ink); }
.mode .txt { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mode p { color: var(--ink-soft); }
.mode .who {
  margin-top: auto; padding-top: 10px; font: 700 0.95rem/1.2 var(--display); color: var(--ink);
}

/* Courses: a river chart */
.courses { display: grid; gap: clamp(28px, 5vw, 64px); }
@media (min-width: 960px) { .courses { grid-template-columns: 1.05fr 1fr; align-items: start; } }
.chart { list-style: none; margin: 0; padding: 0; position: relative; }
.chart::before {
  content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 10px;
  background: var(--river); border-radius: 5px;
}
.chart li {
  position: relative; display: grid; grid-template-columns: 36px 1fr auto; gap: 4px 14px;
  align-items: center; padding-block: 9px; border-bottom: 1.5px dashed rgba(23, 50, 61, 0.18);
}
.chart li:last-child { border-bottom: 0; }
.chart .stop {
  width: 36px; height: 36px; border-radius: 50%; position: relative; z-index: 1;
  background: var(--w); border: var(--line) solid var(--ink);
  box-shadow: inset 0 0 0 5px var(--l);
  display: grid; place-items: center; font: 800 0.95rem/1 var(--display); color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}
.chart .name { font: 800 1.3rem/1.15 var(--display); }
.chart .where { display: block; font: 400 0.95rem/1.3 var(--body); color: var(--ink-soft); }
.chart .meta { text-align: right; font-size: 0.95rem; color: var(--ink-soft); white-space: nowrap; }
.chart .meta b { display: block; font: 700 1rem/1.2 var(--display); color: var(--ink); }
.pips { display: inline-flex; gap: 3px; vertical-align: 1px; margin-right: 6px; }
.pips i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink); }
.pips i.on { background: var(--coral); }

.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shots figure { margin: 0; }
.shots img { width: 100%; border: var(--line) solid var(--ink); border-radius: 14px; }
.shots figcaption { margin-top: 6px; font-size: 0.9rem; color: var(--ink-soft); }
.shots figure.wide { grid-column: 1 / -1; }
.water-note { margin-top: 22px; padding: 18px 20px; }
.water-note h3 { font-size: 1.25rem; margin-bottom: 6px; }
.water-note p { color: var(--ink-soft); }

/* Solo */
.river-deep { background: var(--river-deep); color: #fff; }
.river-deep h2, .river-deep h3 { color: #fff; }
.river-deep .sec-head p, .river-deep .steps p { color: #e2f3f8; }
.solo { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (min-width: 900px) { .solo { grid-template-columns: 1.1fr 1fr; } }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.42em; width: 14px; height: 14px;
  background: var(--sun); border: 2px solid var(--ink); transform: rotate(45deg); border-radius: 2px;
}
.ticks b { font-weight: 700; }

/* Ads promise */
.promise { display: grid; gap: clamp(24px, 4vw, 48px); }
@media (min-width: 900px) { .promise { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.rules { list-style: none; margin: 0; padding: 0; }
.rules li {
  display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 16px 20px;
  border-bottom: 1.5px dashed rgba(23, 50, 61, 0.22); align-items: baseline;
}
.rules li:last-child { border-bottom: 0; }
.rules .big { font: 800 1.45rem/1.05 var(--display); color: var(--river-deep); }
.rules p { color: var(--ink-soft); }
.rules p b { color: var(--ink); }
@media (max-width: 480px) { .rules li { grid-template-columns: 1fr; gap: 2px; } }

/* FAQ */
.faq { max-width: 48rem; }
.faq details { border-bottom: var(--line) solid var(--ink); }
.faq details:first-of-type { border-top: var(--line) solid var(--ink); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 44px 16px 0; position: relative;
  font: 700 1.3rem/1.2 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px;
  border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); max-width: 42rem; }
.faq details p + p { margin-top: -8px; }

/* Last call */
.last { background: var(--river); text-align: center; }
.last p { margin: 14px auto 26px; max-width: 30em; font-size: 1.15rem; }

/* ---- Footer ----------------------------------------------------------- */

footer { background: var(--ink); color: #dfeaec; padding-block: 48px 36px; font-size: 1rem; }
footer a { color: #fff; }
footer a:hover { color: var(--sun); }
.foot { display: grid; gap: 32px; }
@media (min-width: 760px) { .foot { grid-template-columns: 1.3fr 1fr 1fr; } }
footer h2 { font-size: 1.25rem; color: #fff; margin-bottom: 10px; letter-spacing: 0; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer address { font-style: normal; display: grid; gap: 6px; }
.fineprint { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.92rem; color: #b9cbd0; }

/* ---- Legal and support pages ------------------------------------------ */

.doc-head { background: var(--river); padding-block: clamp(28px, 6vw, 64px) clamp(36px, 7vw, 72px); }
.doc-head h1 { font-size: clamp(2.3rem, 6.5vw, 4rem); }
.doc-head p { margin-top: 12px; font-size: 1.1rem; max-width: 38em; }
.doc-head .wrap, .doc { max-width: 46rem; }
.doc { padding-block: clamp(36px, 6vw, 72px); }
.doc h2 { font-size: clamp(1.55rem, 3.4vw, 2rem); margin: 2.2em 0 0.5em; scroll-margin-top: 20px; }
.doc h3 { font-size: 1.25rem; margin: 1.6em 0 0.4em; }
.doc p, .doc ul, .doc ol, .doc table { margin: 0 0 1em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 0.4em; }
.doc li::marker { color: var(--river-deep); font-weight: 700; }
.short { padding: 20px 24px 8px; margin-bottom: 28px; background: #fffdf6; }
.short h2 { margin-top: 0; font-size: 1.4rem; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1.5px dashed rgba(23, 50, 61, 0.22); }
.doc th { font: 700 1rem/1.3 var(--display); }
.table-scroll { overflow-x: auto; }
.contact-card { padding: 20px 24px; display: grid; gap: 8px; }
.contact-card dt { font: 700 0.95rem/1.3 var(--display); color: var(--ink-soft); }
.contact-card dd { margin: 0 0 6px; font-size: 1.1rem; }
code { font: 0.92em ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; background: var(--cream-dark); padding: 1px 5px; border-radius: 5px; }
