/* Gabarito (OFL), the game's own font files. */
@font-face {
  font-family: 'Gabarito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/gabarito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Gabarito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/gabarito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --water-top: #dcebe6;
  --water-bottom: #b9d6ce;
  --surface: #fcfcfa;
  --ink: #1b2e2b;
  --ink-2: #55706a;
  --duck: #f4c542;
  --lip: #cf9f24;
  --teal: #2f6f6a;
  --lily: #86ae95;
  --line: rgba(27, 46, 43, .1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--water-top) 0%, var(--water-bottom) 100%) fixed;
  background-color: var(--water-top);
  color: var(--ink);
  font: 500 17px/1.55 'Gabarito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -.01em; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand b { color: var(--teal); font-weight: 800; }
.top nav { display: flex; gap: 18px; }
.top nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 420px) { .top nav .wide { display: none; } }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(40px, 10vw, 68px); line-height: 1; }
h1 .teal { color: var(--teal); }
h2 { font-size: clamp(30px, 7vw, 42px); line-height: 1.05; }
h3 { font-size: 21px; line-height: 1.15; }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px;
}

/* Primary button: duck yellow with the lip underneath, like the game's Play button. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border-radius: 999px;
  background: var(--duck); color: var(--ink); text-decoration: none;
  font-weight: 800; font-size: 19px;
  box-shadow: 0 5px 0 var(--lip);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 0 var(--lip); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--lip); }
.btn svg { width: 22px; height: 22px; }
.fine { color: var(--ink-2); font-size: 15px; margin: 16px 0 0; }

/* Hero */
.hero { display: grid; gap: 40px; padding: 24px 0 64px; align-items: center; }
.lede { color: var(--ink-2); font-size: 20px; margin: 18px 0 30px; max-width: 32ch; }

.phone {
  background: var(--surface); border-radius: 34px; padding: 8px;
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -28px rgba(27, 46, 43, .45);
  overflow: hidden;
}
.phone img { border-radius: 27px; width: 100%; height: auto; aspect-ratio: 540 / 1000; object-fit: cover; object-position: top; }
.hero .phone { justify-self: center; width: min(78%, 330px); transform: rotate(2deg); }

/* Sections */
section.block { padding: 56px 0; }
section.block > header { margin-bottom: 28px; }
section.block > header p { color: var(--ink-2); margin: 10px 0 0; max-width: 46ch; font-size: 18px; }

.card {
  background: var(--surface); border-radius: 24px; padding: 22px;
  box-shadow: 0 1px 0 var(--line), 0 14px 30px -24px rgba(27, 46, 43, .45);
}
.card p { margin: 6px 0 0; color: var(--ink-2); }
.grid { display: grid; gap: 14px; }

.howto { display: grid; gap: 28px; align-items: start; }
.howto .shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.howto ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.howto li { position: relative; padding-left: 62px; }
.howto li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 20px; top: 22px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--lily); color: #fff; font-weight: 800; font-size: 16px;
  display: grid; place-items: center;
}

.mode .tag {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); background: rgba(47, 111, 106, .1); border-radius: 999px; padding: 4px 10px; margin-bottom: 12px;
}
.mode blockquote {
  margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: rgba(134, 174, 149, .18);
  color: var(--ink); font-size: 15px;
}
.mode blockquote cite { display: block; font-style: normal; color: var(--ink-2); font-size: 13px; margin-top: 4px; }

.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.swatch { border-radius: 16px; aspect-ratio: 1; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 10px; font-weight: 800; font-size: 14px; }
.swatch::after { content: ''; position: absolute; width: 38%; aspect-ratio: 1; border-radius: 50%; top: 18%; left: 30%; }
.swatch.calm { background: linear-gradient(#dcebe6, #b9d6ce); color: var(--ink); }
.swatch.calm::after { background: var(--lily); }
.swatch.cozy { background: linear-gradient(#f6e7cf, #e7c9a1); color: #5a3d1e; }
.swatch.cozy::after { background: #a9b77a; }
.swatch.night { background: linear-gradient(#26414a, #12232a); color: #e6efeb; }
.swatch.night::after { background: #4f7c6b; }

.ducks { display: flex; gap: 6px; margin-top: 16px; }
.ducks svg { width: 46px; height: 46px; }

.cta { text-align: center; padding: 64px 0 72px; }
.cta h2 { margin-bottom: 24px; }

footer { padding: 24px 0 40px; color: var(--ink-2); font-size: 14px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer a { color: var(--ink-2); }

/* Text pages */
.prose { max-width: 40rem; margin: 0 auto; padding: 16px 0 64px; }
.prose h1 { font-size: clamp(36px, 8vw, 46px); margin-bottom: 8px; }
.prose h2 { font-size: 23px; margin: 34px 0 8px; letter-spacing: -.01em; }
.prose p, .prose li { max-width: 64ch; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose .meta { color: var(--ink-2); font-weight: 600; font-size: 15px; margin: 0 0 28px; }
.summary { background: var(--surface); border-radius: 18px; padding: 18px 20px; margin: 0 0 8px; box-shadow: 0 0 0 1px var(--line); }
.summary h2 { margin: 0 0 8px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.summary ul { margin: 0; }

.notfound { text-align: center; padding: 56px 0 96px; }
.notfound .big { font-size: 104px; font-weight: 900; line-height: 1; color: var(--teal); }
.notfound h1 { font-size: clamp(30px, 7vw, 42px); margin-top: 8px; }
.notfound p { color: var(--ink-2); margin: 12px 0 30px; font-size: 18px; }

@media (min-width: 760px) {
  .wrap { padding: 0 24px; }
  .hero { grid-template-columns: 1.15fr 1fr; padding: 48px 0 88px; }
  .hero .phone { width: min(100%, 340px); }
  .howto { grid-template-columns: 1fr 1fr; gap: 40px; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.two { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
