/* Cheeky Curlews: the game's colours (brand kit), Figtree for text, the logo always as its SVG. Phone first. */
@font-face { font-family: Figtree; font-weight: 500; font-display: swap; src: url(fonts/figtree-500.woff2) format('woff2'); }
@font-face { font-family: Figtree; font-weight: 700; font-display: swap; src: url(fonts/figtree-700.woff2) format('woff2'); }
@font-face { font-family: Figtree; font-weight: 800; font-display: swap; src: url(fonts/figtree-800.woff2) format('woff2'); }

:root {
  --cream: #f7e8c7;
  --paper: #fbf4e2;
  --card: #fffaf0;
  --olive: #979534;
  --terracotta: #ce7647;
  --ink: #3b342b;
  --warm-ink: #4a3d2e;
  --muted: #7a6c58;
  --line: rgba(59, 52, 43, 0.12);
  --eucalyptus: #3f5a3c;
  --radius: 22px;
  --shadow: 0 6px 22px rgba(40, 25, 10, 0.12);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 500 17px/1.55 Figtree, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, .lede, .intro p { text-wrap: balance; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.015em; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(28px, 6vw, 40px); }
h3 { font-size: 21px; }
p { margin: 0; }
.wrap { width: min(100% - 32px, 1040px); margin-inline: auto; }
.narrow { width: min(100% - 32px, 680px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- the opening: like the game's home screen ---------- */
.hero { position: relative; isolation: isolate; text-align: center; }
.hero .bay {
  width: 100%;
  height: min(118vw, 74vh, 760px);
  object-fit: cover;
  object-position: 50% 62%;
  mask-image: linear-gradient(#000 70%, transparent);
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
}
.hero .logo {
  position: absolute;
  z-index: 1;
  top: clamp(22px, 6vh, 64px);
  left: 50%;
  transform: translateX(-50%);
  width: min(84%, 520px);
  /* the cream outline, exactly as the game draws it */
  filter: drop-shadow(0 0 1.5px #fbf4e2) drop-shadow(0 0 1.5px #fbf4e2) drop-shadow(0 0 1px #fbf4e2);
}
.hero-text { margin-top: clamp(-90px, -9vw, -40px); position: relative; z-index: 1; display: grid; gap: 22px; justify-items: center; padding: 0 16px; }
.lede { font-size: clamp(20px, 4.6vw, 26px); font-weight: 700; color: var(--warm-ink); max-width: 30ch; line-height: 1.3; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.badge { display: block; height: 52px; border-radius: 10px; }
.badge img { height: 52px; width: auto; }
.badge.soon { opacity: 0.55; filter: grayscale(0.2); }
.soon-note { font-size: 15px; color: var(--muted); }
.soon-note a { font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 14px; border: 0;
  background: var(--terracotta); color: #fff; font: inherit; font-weight: 800; text-decoration: none;
  box-shadow: 0 3px 0 #a85a32;
}
.btn:hover { color: #fff; background: #c26a3c; }
.btn.olive { background: var(--olive); box-shadow: 0 3px 0 #74721f; }
.btn.olive:hover { background: #8a8830; }
.btn svg { width: 22px; height: 22px; }

/* ---------- sections ---------- */
section { padding: clamp(56px, 10vw, 96px) 0; }
.section-head { display: grid; gap: 10px; margin-bottom: 28px; }
.section-head p { color: var(--muted); font-size: 18px; max-width: 46ch; }
.kicker { font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terracotta); }

/* three ways to play, with the game's own icons */
.ways { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .ways { grid-template-columns: repeat(3, 1fr); } }
.way {
  display: grid; grid-template-columns: 60px 1fr; gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
@media (min-width: 760px) { .way { grid-template-columns: 1fr; align-items: start; padding: 24px; } }
.way .ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; }
.way .ic svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.way.bot .ic { background: #edc65a; color: #5b3b0c; box-shadow: 0 3px 0 #b98a1f; }
.way.pass .ic { background: #9cc57a; color: #23401a; box-shadow: 0 3px 0 #5c8a3c; }
.way.wifi .ic { background: #84ace3; color: #142d56; box-shadow: 0 3px 0 #3f6aa8; }
.way h3 { margin-bottom: 4px; }
.way p { color: var(--muted); font-size: 16px; }

/* screenshots: swipe on a phone, all in a row on a computer */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(68vw, 260px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 18px; margin: 0 -16px;
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .shots { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; } }
.shots img { width: 100%; height: auto; border-radius: 22px; scroll-snap-align: center; box-shadow: 0 10px 30px rgba(40, 25, 10, 0.22); background: var(--paper); }

/* features */
.features { display: grid; gap: 14px; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 16px; }

/* the real birds */
.curlews { background: var(--eucalyptus); color: #f4ecd6; }
.curlews .inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 760px) { .curlews .inner { grid-template-columns: 340px 1fr; } }
.curlews img { width: min(340px, 86vw); margin-inline: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.25)); }
.curlews h2 { color: #f4ecd6; margin-bottom: 12px; }
.curlews p { font-size: 18px; color: #e6dcc0; max-width: 52ch; }

/* price */
.price { text-align: center; }
.price .card {
  display: grid; gap: 14px; justify-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 6vw, 44px); box-shadow: var(--shadow);
}
.price .icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 6px 16px rgba(40, 25, 10, 0.2); }
.price p { color: var(--muted); max-width: 44ch; }

/* press */
.press-box { display: grid; gap: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 5vw, 36px); }
.press-box .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.press-box .actions a:not(.btn) { font-weight: 700; padding: 13px 4px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0 calc(40px + env(safe-area-inset-bottom)); }
footer .inner { display: grid; gap: 22px; justify-items: center; text-align: center; }
footer .made { display: grid; gap: 10px; justify-items: center; color: var(--muted); font-size: 14px; text-decoration: none; }
footer .made img { width: 150px; height: auto; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
footer nav a { font-weight: 700; text-decoration: none; padding: 10px 0; }
footer small { color: var(--muted); font-size: 13px; }

/* ---------- inner pages (support, privacy, press) ---------- */
.page-head { padding: 22px 0 8px; }
.page-head .home { display: inline-block; width: 200px; }
.page-head .home img { width: 100%; height: auto; filter: drop-shadow(0 0 1.5px #fbf4e2) drop-shadow(0 0 1.5px #fbf4e2); }
.doc { padding: 28px 0 64px; }
.doc h1 { font-size: clamp(34px, 8vw, 48px); margin-bottom: 10px; }
.doc .updated { color: var(--muted); font-size: 15px; margin-bottom: 30px; }
.doc h2 { font-size: 24px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--warm-ink); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 10px 0; }
.doc li { margin: 6px 0; }
.doc details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 18px; margin: 10px 0; }
.doc summary { cursor: pointer; font-weight: 700; padding: 16px 0; min-height: 44px; }
.doc details p { padding-bottom: 16px; }
.contact { margin-top: 30px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; justify-items: start; }
.press-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 14px; }
.press-shots img { border-radius: 14px; box-shadow: var(--shadow); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 14px 0; }
.facts dt { font-weight: 800; }
.facts dd { margin: 0; color: var(--warm-ink); }
