/* Little Bucket Games: one stylesheet for every page. No web fonts, no trackers: nothing loads from anywhere else. */
:root {
  --bg: #FFF8EC;
  --bg2: #FFEFD2;
  --card: #FFFFFF;
  --ink: #3B2614;
  --ink2: #6E5440;
  --line: #5A3620;
  --yellow: #FFC928;
  --yellow2: #F2A818;
  --sky: #CFEBFF;
  --grass: #5FBF3A;
  --dirt: #A0623A;
  --shadow: 0 5px 0 rgba(59, 38, 20, .18);
  --radius: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1E1712; --bg2: #2A2018; --card: #2F241B; --ink: #FFF3E0; --ink2: #D8C3A8; --line: #120C08;
    --sky: #1F3346; --shadow: 0 5px 0 rgba(0, 0, 0, .35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1E1712; --bg2: #2A2018; --card: #2F241B; --ink: #FFF3E0; --ink2: #D8C3A8; --line: #120C08;
  --sky: #1F3346; --shadow: 0 5px 0 rgba(0, 0, 0, .35); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--yellow2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--yellow2); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* the top bar */
.top { padding: 14px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; border: 2px solid var(--line); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 700; padding: 6px 12px; border-radius: 999px; color: var(--ink2); }
.nav a[aria-current="page"], .nav a:hover { background: var(--bg2); color: var(--ink); }

/* the hero */
.hero { padding: 24px 0 8px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(44px, 8vw, 76px); line-height: 1; margin: 0 0 6px; font-weight: 900; letter-spacing: -.01em; }
.hero .sub { font-size: clamp(20px, 3vw, 26px); font-weight: 800; color: var(--dirt); margin: 0 0 16px; }
.hero p.lead { font-size: 19px; color: var(--ink2); margin: 0 0 22px; max-width: 34ch; }
.shot-hero { border-radius: var(--radius); border: 4px solid var(--line); box-shadow: 0 8px 0 rgba(59, 38, 20, .22); overflow: hidden; aspect-ratio: 1024 / 500; background: var(--sky); }
.shot-hero img { width: 100%; height: 100%; object-fit: cover; }

.btn { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 800; font-size: 18px; color: #3B2614; background: var(--yellow);
  border: 3px solid var(--line); border-radius: 999px; padding: 12px 22px; box-shadow: 0 5px 0 var(--line); text-decoration: none; }
.btn.soon { background: var(--bg2); color: var(--ink); cursor: default; }
.btn small { font-weight: 700; color: var(--ink2); font-size: 14px; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.pill { font-size: 14px; font-weight: 800; padding: 5px 12px; border-radius: 999px; background: var(--bg2); color: var(--ink2); }

/* sections */
section { padding: 40px 0; }
h2 { font-size: clamp(28px, 4.4vw, 38px); line-height: 1.15; margin: 0 0 8px; font-weight: 900; }
h2 + .lead { color: var(--ink2); margin: 0 0 24px; font-size: 18px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 3px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: var(--shadow); }
.card h3 { margin: 6px 0 4px; font-size: 20px; font-weight: 900; }
.card p { margin: 0; color: var(--ink2); font-size: 16px; }
.dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 2px solid var(--line); }
.dot svg { width: 24px; height: 24px; }

/* screenshots: a sideways strip on a phone, a row on a computer */
.shots { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; margin: 0 -4px; }
.shots img { width: 200px; height: auto; flex: 0 0 auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px; border: 3px solid var(--line); scroll-snap-align: start; background: var(--sky); }

/* the grown-ups' band */
.band { background: var(--bg2); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.checks li::before { content: ""; flex: 0 0 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--grass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; border: 2px solid var(--line); }

/* long text pages */
.doc { padding: 16px 0 48px; }
.doc h1 { font-size: clamp(34px, 6vw, 48px); line-height: 1.1; margin: 8px 0 6px; font-weight: 900; }
.doc .meta { color: var(--ink2); margin: 0 0 22px; }
.doc h2 { font-size: 24px; margin: 32px 0 8px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.summary { background: var(--card); border: 3px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); font-size: 18px; }
.summary strong { font-weight: 900; }
details { background: var(--card); border: 3px solid var(--line); border-radius: 18px; padding: 0 18px; margin: 12px 0; box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 900; font-size: 22px; line-height: 1; color: var(--dirt); }
details[open] summary::after { content: "–"; }
details > :not(summary) { margin-top: 0; }
details > p:last-child, details > ol:last-child, details > ul:last-child { padding-bottom: 14px; margin-bottom: 0; }
.mail { font-size: 20px; font-weight: 800; overflow-wrap: anywhere; }

footer { padding: 28px 0 40px; color: var(--ink2); font-size: 15px; border-top: 2px dashed rgba(90, 54, 32, .25); }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 22px; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid, .checks { grid-template-columns: 1fr; }
  .shots img { width: 160px; }
  section { padding: 30px 0; }
}

/* the feature cards' icon colours */
.d1 { background: #FFC928; }
.d2 { background: #8FD86A; }
.d3 { background: #FFB3CF; }
.d4 { background: #CFEBFF; }
.d5 { background: #FFD9A0; }
.d6 { background: #C8B6FF; }
.after { margin: 22px 0 0; }
