/* Sandless website. Palette copied from src/style.css; do not add new colours. */
/* Fredoka is self-hosted (Latin subset, OFL-1.1, from @fontsource/fredoka), so no Google Fonts requests. */
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/fredoka-latin-500-normal.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; }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/fredoka-latin-600-normal.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; }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/fredoka-latin-700-normal.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 {
  --cream: #fff6e6;
  --cream-2: #f6e3c4;
  --sand: #f3dcb4;
  --ink: #3a2618;
  --ink-2: #7a5a40;
  --coral: #ef5b4c;
  --coral-d: #c2402f;
  --teal: #2fa39a;
  --teal-d: #1f7a72;
  --gold: #ffc93c;
  --gold-d: #d99a12;
  --green: #3fbf72;
  --shadow: 0 6px 0 rgba(58, 38, 24, 0.25), 0 12px 30px rgba(58, 38, 24, 0.25);
  --chrome-shadow: 0 5px 0 var(--ink);
  --radius: 20px;
  --font: 'Fredoka', ui-rounded, 'SF Pro Rounded', 'Trebuchet MS', system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a { color: var(--teal-d); font-weight: 500; }
a:hover { color: var(--coral-d); }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--gold); color: var(--ink); padding: 8px 14px;
  border: 3px solid var(--ink); border-radius: 12px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* ---------- Header and nav ---------- */
.site-header {
  background: var(--sand);
  border-bottom: 3px solid var(--ink);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding: 12px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 26px;
}
.brand:hover { color: var(--ink); }
.brand img { width: 44px; height: 44px; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.site-nav a {
  display: inline-block; padding: 8px 14px; border-radius: 14px;
  color: var(--ink); text-decoration: none; font-weight: 600; border: 2px solid transparent;
}
.site-nav a:hover { border-color: var(--ink); background: var(--cream); color: var(--ink); }
.site-nav a[aria-current="page"] { border-color: var(--ink); background: var(--cream); }

/* ---------- Main content blocks ---------- */
main { flex: 1; }
section { padding: 48px 0; }
section.band { background: var(--cream-2); border-block: 3px solid var(--ink); }
section.band-sand { background: var(--sand); border-block: 3px solid var(--ink); }

h1, h2, h3 { font-family: var(--font); line-height: 1.1; margin: 0 0 16px; }
h1 {
  font-size: clamp(40px, 8vw, 84px);
  font-weight: 700;
  color: var(--gold);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 6px 0 var(--ink);
  letter-spacing: 1px;
}
h1.page-title {
  font-size: clamp(36px, 6vw, 60px);
  text-shadow: 0 4px 0 var(--ink);
  -webkit-text-stroke-width: 2px;
}
h2 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 700; color: var(--ink);
}
h3 { font-size: 22px; font-weight: 600; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 6px; }
.lead { font-size: clamp(20px, 2.6vw, 24px); font-weight: 500; color: var(--ink); }
.muted { color: var(--ink-2); }
.small { font-size: 15px; }
.kicker {
  display: inline-block; margin: 0 0 14px; padding: 6px 14px;
  background: var(--cream); border: 2px solid var(--ink); border-radius: 999px;
  font-size: 15px; font-weight: 600;
}

/* ---------- Buttons ---------- */
.buttons { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0 8px; }
.btn {
  display: inline-block; padding: 14px 24px;
  font: 600 19px/1.1 var(--font); color: var(--ink); text-decoration: none;
  background: var(--cream); border: 3px solid var(--ink); border-radius: 18px;
  box-shadow: var(--chrome-shadow); cursor: pointer;
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out;
}
.btn:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn-primary { background: var(--gold); }
.btn-primary:hover { color: var(--ink); }
.btn-teal { background: var(--teal-d); color: var(--cream); }
.btn-teal:hover { color: var(--cream); }
.btn-small { padding: 9px 16px; font-size: 16px; border-radius: 14px; box-shadow: 0 4px 0 var(--ink); }

/* ---------- Cards, frames, images ---------- */
.frame {
  margin: 0; background: var(--cream-2); border: 3px solid var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.frame img { width: 100%; height: auto; }
.frame figcaption {
  padding: 10px 14px; border-top: 3px solid var(--ink); background: var(--cream);
  font-size: 15px; font-weight: 500;
}

.card {
  background: var(--cream); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; height: 100%;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-gallery { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.phone-feature {
  display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 32px; align-items: center; margin-top: 32px;
}
.phone-feature .frame { max-width: 260px; }
.press-phone { max-width: 260px; }
.phone-feature h3 { font-size: 26px; }

.map-card { display: flex; flex-direction: column; padding: 0; }
.map-card .frame { border: 0; box-shadow: none; border-radius: 0; border-bottom: 3px solid var(--ink); }
.map-card .body { padding: 18px 20px 22px; }
.map-card h3 { margin-bottom: 6px; }

.hero {
  display: grid; gap: 36px; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}
.hero .frame { transform: rotate(-1deg); }

.trailer-slot {
  display: grid; gap: 14px; place-items: center; text-align: center; padding: 18px;
  background: var(--cream-2);
  border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: 0 4px 0 var(--ink);
}
.trailer-slot video {
  width: min(100%, 960px); height: auto; border-radius: 12px; border: 3px solid var(--ink);
  background: #000; display: block;
}
.trailer-note { background: var(--cream); border: 2px solid var(--ink); border-radius: 14px; padding: 8px 14px; margin: 0; font-weight: 600; }

/* ---------- Feature list ---------- */
.features { list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.features li {
  margin: 0; padding: 16px 18px 16px 50px; position: relative;
  background: var(--cream); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink);
}
.features li::before {
  content: ''; position: absolute; left: 16px; top: 18px; width: 20px; height: 20px;
  background: var(--coral); border: 3px solid var(--ink); border-radius: 50%;
}
.features li:nth-child(3n+2)::before { background: var(--teal); }
.features li:nth-child(3n)::before { background: var(--gold); }
.features strong { display: block; font-weight: 600; }

/* ---------- Facts and tables ---------- */
.facts { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--cream); border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 2px solid var(--sand); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 34%; font-weight: 600; background: var(--cream-2); }
.table-wrap { overflow-x: auto; border: 3px solid var(--ink); border-radius: 16px; background: var(--cream); box-shadow: var(--shadow); }
.table-wrap table { width: 100%; min-width: 620px; border-collapse: collapse; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 2px solid var(--sand); font-size: 16px; }
.table-wrap th { background: var(--cream-2); font-weight: 600; }
.table-wrap tr:last-child td { border-bottom: 0; }

.note {
  background: var(--cream); border: 3px solid var(--ink); border-left-width: 10px;
  border-radius: 16px; padding: 16px 20px; box-shadow: 0 4px 0 var(--ink); margin: 0 0 24px;
}
.note.warn { border-left-color: var(--coral); }
.note p:last-child { margin-bottom: 0; }

/* ---------- Legal and doc pages ---------- */
.doc { max-width: 780px; }
.doc h2 { font-size: 28px; margin-top: 36px; }
.doc h2:first-of-type { margin-top: 12px; }
.doc .updated { color: var(--ink-2); font-weight: 500; }

.placeholder-player {
  margin-bottom: 40px;
  aspect-ratio: 16 / 9; width: 100%; display: grid; place-items: center; text-align: center; padding: 24px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--sand) 62%, var(--cream-2) 100%);
  border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
}
.placeholder-player > div { background: var(--cream); border: 3px solid var(--ink); border-radius: 18px; padding: 22px 26px; max-width: 520px; box-shadow: var(--chrome-shadow); }
.placeholder-player h2 { font-size: 30px; margin-bottom: 8px; }

.demo-frame-wrap {
  margin-bottom: 40px;
  aspect-ratio: 16 / 10;
  min-height: 420px;
  width: 100%;
  overflow: hidden;
  background: #f3dcb4;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.demo-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f3dcb4;
}

.donate-goal {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin: 0 0 28px;
}
.donate-goal-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}
.donate-goal-track {
  height: 18px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--sand);
  overflow: hidden;
}
.donate-goal-fill {
  height: 100%;
  width: 0;
  background: var(--gold);
}
.donate-goal .sub { margin: 10px 0 0; }

.download-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.download-list li { margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sand); border-top: 3px solid var(--ink); padding: 22px 0; font-size: 16px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; align-items: center; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--ink); font-weight: 600; }
.site-footer p { margin: 0; color: var(--ink-2); }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .site-header .wrap { justify-content: center; }
  .site-nav ul { justify-content: center; }
  .hero { grid-template-columns: 1fr; gap: 26px; }
  .hero .frame { transform: none; }
  section { padding: 34px 0; }
  .facts th { width: 40%; }
  .site-footer .wrap { justify-content: center; text-align: center; }
  .site-footer ul { justify-content: center; }
  .phone-feature { grid-template-columns: 1fr; gap: 20px; }
  .phone-feature .frame { margin-inline: auto; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
