/* Kubi: One Block Island — site styles. No external resources. */
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-var.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --sky: #8fd0f5;
  --sky-2: #c9ecff;
  --sky-3: #eaf7ff;
  --sky-deep: #1f6fb2;
  --grass: #63c43f;
  --grass-2: #4ea52f;
  --grass-dark: #367a1f;
  --dirt: #9a6438;
  --dirt-dark: #6f4526;
  --sun: #ffcf4a;
  --sun-2: #ffe28a;
  --sun-dark: #e07a12;
  --ink: #2c2340;
  --text: #2f2b40;
  --muted: #5b5670;
  --card: #ffffff;
  --line: #d9e8f2;
  --focus: #1f6fb2;
  --radius: 20px;
  --block-shadow: 0 6px 0 rgba(44, 35, 64, 0.16);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-deep); text-underline-offset: 3px; }
a:hover { color: #154f80; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; font-weight: 900; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); margin: 0 0 0.5em; }
h3 { font-size: 1.25rem; margin: 0 0 0.35em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 800;
}
.skip:focus { top: 12px; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 2px solid rgba(44, 35, 64, 0.06);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: 128px; height: auto; image-rendering: auto; }
@media (min-width: 720px) { .brand img { width: 150px; } }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: 0.98rem;
  padding: 8px 12px; border-radius: 12px;
}
.nav a:hover { background: var(--sky-3); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--sky-3); }
.nav .nav-section { display: none; }
@media (min-width: 900px) { .nav .nav-section { display: inline-block; } }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 5px 12px !important; font-size: 0.9rem !important;
  box-shadow: 0 3px 0 var(--ink);
}
.lang-switch:hover { background: var(--sun-2) !important; }
.lang-switch:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 70%, #dff3ff 100%);
  padding: 40px 0 0;
}
.hero-grid { position: relative; z-index: 2; display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding-top: 64px; }
  .hero-grid { grid-template-columns: 1fr 1.35fr; gap: 24px; }
  .hero-art { margin-right: -40px; }
}
.hero-icon {
  width: 84px; height: 84px; border-radius: 22px;
  box-shadow: 0 6px 0 rgba(44, 35, 64, 0.22);
  margin-bottom: 18px;
}
.eyebrow {
  display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.7); color: var(--ink); font-weight: 900; font-size: 0.92rem;
}
.hero h1 { font-size: clamp(2.3rem, 7vw, 4rem); margin: 0 0 14px; }
.hero h1 .accent {
  color: var(--ink);
  background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 92%, transparent 92%);
  padding: 0 0.08em;
}
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: #2f3a52; max-width: 34em; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.badges li {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--ink); font-weight: 800; font-size: 0.95rem;
  border-radius: 999px; padding: 5px 12px 5px 8px; box-shadow: 0 3px 0 rgba(44, 35, 64, 0.12);
}
.badges svg { width: 18px; height: 18px; flex-shrink: 0; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 8px; }
.store-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff;
  border-radius: 16px; padding: 10px 18px 10px 14px; min-height: 56px;
  font-weight: 800; line-height: 1.15; box-shadow: 0 5px 0 rgba(44, 35, 64, 0.35);
  cursor: default; user-select: none;
}
.store-pill svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-pill small { display: block; font-weight: 700; font-size: 0.78rem; opacity: 0.8; }
.store-pill span { font-size: 1.02rem; }
.stores-note { font-size: 0.92rem; color: #3d4a62; margin: 6px 0 0; }

.hero-art { position: relative; }
.hero-art picture { display: block; animation: bob 6s ease-in-out infinite; }
.hero-art img {
  width: 100%; border-radius: 28px; border: 5px solid #fff;
  box-shadow: 0 12px 0 rgba(31, 111, 178, 0.22), 0 24px 48px rgba(31, 111, 178, 0.18);
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Blocky clouds */
.clouds { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cloud {
  position: absolute; width: 96px; height: 24px; background: #fff; opacity: 0.9;
  box-shadow: 24px -24px 0 #fff, 48px -24px 0 #fff, 96px 0 0 #fff;
  animation: drift 60s linear infinite;
}
.cloud.c1 { top: 12%; left: -10%; animation-duration: 70s; }
.cloud.c2 { top: 34%; left: 20%; transform: scale(0.7); animation-duration: 90s; animation-delay: -30s; opacity: 0.75; }
.cloud.c3 { top: 8%; left: 60%; transform: scale(0.85); animation-duration: 80s; animation-delay: -50s; }
.cloud.c4 { top: 55%; left: 80%; transform: scale(0.55); animation-duration: 100s; animation-delay: -10s; opacity: 0.7; }
@keyframes drift { from { translate: -20vw 0; } to { translate: 120vw 0; } }

/* Grass edge: a strip of voxel grass over dirt */
.grass-edge {
  position: relative; z-index: 2; height: 44px; margin-top: 32px;
  background:
    linear-gradient(180deg, transparent 0 16px, var(--grass) 16px 28px, var(--dirt) 28px),
    repeating-linear-gradient(90deg, var(--grass) 0 32px, var(--grass-2) 32px 64px);
  background-size: 100% 100%, 100% 16px;
  background-repeat: no-repeat, repeat-x;
  background-position: 0 0, 0 12px;
}
.grass-edge::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px;
  background: repeating-linear-gradient(90deg, var(--dirt) 0 32px, var(--dirt-dark) 32px 40px, var(--dirt) 40px 64px);
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
@media (min-width: 960px) { .section { padding: 88px 0; } }
.section.alt { background: var(--sky-3); }
.section-head { max-width: 760px; margin: 0 0 32px; }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.kicker {
  display: inline-block; font-weight: 900; color: var(--sun-dark); text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.85rem; margin-bottom: 6px;
}

/* Story */
.story { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .story { grid-template-columns: 1.1fr 1fr; gap: 48px; } }
.mete {
  background: #fff8e1; border: 3px solid var(--sun); border-radius: var(--radius);
  padding: 22px 22px 8px; box-shadow: 0 6px 0 rgba(224, 122, 18, 0.25); position: relative;
}
.mete h3 { display: flex; align-items: center; gap: 10px; }
.mete h3 svg { width: 28px; height: 28px; flex-shrink: 0; }
.facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.facts li {
  background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: var(--block-shadow);
  font-weight: 800; color: var(--ink); border: 2px solid var(--line);
}
.facts b { display: block; font-size: 1.5rem; color: var(--sky-deep); line-height: 1.1; }

/* Video */
.video-frame {
  position: relative; border-radius: 24px; overflow: hidden; background: var(--ink);
  border: 4px solid var(--ink); box-shadow: 0 10px 0 rgba(44, 35, 64, 0.2);
  aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }

/* Feature cards */
.features { display: grid; gap: 20px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 620px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 2px solid var(--line); box-shadow: var(--block-shadow);
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 10px 0 rgba(44, 35, 64, 0.14); }
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--sky-2); }
.feature .body { padding: 14px 16px 16px; }
.feature h3 { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.dot { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15); }
.dot.g { background: var(--grass); } .dot.y { background: var(--sun); } .dot.b { background: var(--sky); } .dot.o { background: #ff9e26; } .dot.p { background: #b79cff; }

/* Parents */
.parents-grid { display: grid; gap: 16px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 620px) { .parents-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .parents-grid { grid-template-columns: repeat(3, 1fr); } }
.p-card {
  background: #fff; border-radius: var(--radius); padding: 18px 18px 14px;
  border: 2px solid var(--line); box-shadow: var(--block-shadow);
}
.p-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.p-card p { margin: 0 0 4px; color: var(--muted); font-size: 0.98rem; }
.icon-box {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--sky-2); color: var(--sky-deep); box-shadow: inset 0 -4px 0 rgba(31, 111, 178, 0.18);
}
.icon-box svg { width: 22px; height: 22px; }
.icon-box.y { background: var(--sun-2); color: #8a4a00; box-shadow: inset 0 -4px 0 rgba(224, 122, 18, 0.25); }
.icon-box.g { background: #d6f3c8; color: var(--grass-dark); box-shadow: inset 0 -4px 0 rgba(54, 122, 31, 0.2); }
.club {
  margin-top: 24px; background: linear-gradient(135deg, #fff8e1, #fff1c4);
  border: 3px solid var(--sun); border-radius: var(--radius); padding: 22px;
  box-shadow: 0 6px 0 rgba(224, 122, 18, 0.22);
}
.club h3 { font-size: 1.3rem; }
.club ul { margin: 0 0 10px; padding-left: 1.2em; }
.club p:last-child { margin-bottom: 0; }

/* Gallery */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery a {
  display: block; border-radius: 16px; overflow: hidden; border: 3px solid #fff;
  box-shadow: 0 5px 0 rgba(44, 35, 64, 0.14); background: var(--sky-2);
  transition: transform 0.2s ease;
}
.gallery a:hover { transform: scale(1.02); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); width: 100%;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(20, 16, 34, 0.86); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; border-radius: 16px; }
.lightbox figcaption { color: #fff; text-align: center; font-weight: 800; padding: 10px 0 0; }
.lb-btn {
  position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: #fff; color: var(--ink); font: 900 1.5rem/1 "Nunito", sans-serif;
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}
.lb-close { top: -14px; right: -6px; }
.lb-prev, .lb-next { top: calc(50% - 40px); }
.lb-prev { left: 6px; } .lb-next { right: 6px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; background: var(--dirt); color: #fff4e6; }
.site-footer .grass-edge { margin-top: 0; }
.site-footer .wrap { padding-top: 28px; padding-bottom: 36px; }
.foot { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.foot nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: #fff; font-weight: 800; }
.site-footer a:hover { color: var(--sun-2); }
.site-footer p { margin: 0; }
.foot-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.foot-brand img { width: 44px; height: 44px; border-radius: 12px; }
.foot-note { margin-top: 18px !important; font-size: 0.9rem; opacity: 0.85; }

/* ---------- Document pages (privacy, support, 404) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 100%);
  padding: 44px 0 0; position: relative; overflow: hidden;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 8px; position: relative; z-index: 2; }
.page-hero p { position: relative; z-index: 2; max-width: 44em; color: #2f3a52; }
.doc { max-width: 860px; margin: 0 auto; padding: 40px 16px 72px; }
@media (min-width: 720px) { .doc { padding: 48px 28px 88px; } }
.doc h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 2em 0 0.6em; scroll-margin-top: 84px; }
.doc h3 { margin: 1.6em 0 0.5em; scroll-margin-top: 84px; }
.doc h2 .anchor, .doc h3 .anchor {
  margin-left: 8px; color: #9aa7bd; text-decoration: none; font-weight: 700; opacity: 0;
  transition: opacity 0.15s;
}
.doc h2:hover .anchor, .doc h3:hover .anchor, .doc .anchor:focus { opacity: 1; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 0.45em; }
.doc code { background: #eef4f9; border-radius: 6px; padding: 0.05em 0.35em; font-size: 0.92em; }
.table-wrap { overflow-x: auto; margin: 1em 0 1.6em; border-radius: 14px; border: 2px solid var(--line); background: #fff; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.95rem; min-width: 560px; }
.doc table.kv { min-width: 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--sky-3); color: var(--ink); font-weight: 900; }
.doc tr:last-child td { border-bottom: 0; }
.doc tbody tr:nth-child(even) td { background: #fbfdff; }
.placeholder {
  background: #ffe9a8; color: #5a3a00; border-radius: 4px; padding: 0 0.25em;
  font-weight: 700; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.draft-banner {
  background: #ffd84a; color: #3d2a00; border-bottom: 3px solid #e0a800;
  text-align: center; font-weight: 900; padding: 10px 16px;
}
.toc {
  background: var(--sky-3); border-radius: 16px; padding: 16px 20px; margin: 0 0 8px;
  border: 2px solid var(--line);
}
.toc h2 { font-size: 1.05rem; margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 1; }
@media (min-width: 720px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { margin-bottom: 4px; break-inside: avoid; }
.meta-line { color: var(--muted); }

/* Support */
.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  background: #fff8e1; border: 3px solid var(--sun); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: 0 6px 0 rgba(224, 122, 18, 0.22); margin-bottom: 36px;
}
.contact-card p { margin: 0; flex: 1 1 260px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: var(--sun); color: var(--ink); font-weight: 900; border-radius: 14px;
  padding: 12px 20px; border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
  overflow-wrap: anywhere;
}
.btn:hover { background: var(--sun-2); color: var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.faq details {
  background: #fff; border: 2px solid var(--line); border-radius: 16px; margin-bottom: 12px;
  box-shadow: 0 4px 0 rgba(44, 35, 64, 0.08);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 900; color: var(--ink);
  position: relative; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 8px; background: var(--sun); display: grid; place-items: center;
  font-weight: 900; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 18px 8px; }
.faq .answer ol, .faq .answer ul { padding-left: 1.3em; }
.path { font-weight: 800; color: var(--ink); background: var(--sky-3); border-radius: 6px; padding: 0 0.3em; }

.notfound { text-align: center; padding: 60px 16px 80px; }
.notfound .block {
  width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 16px;
  background: linear-gradient(135deg, var(--sun) 0 50%, #ff9e26 50% 100%);
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.12), 0 8px 0 rgba(44, 35, 64, 0.2);
  animation: bob 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .site-footer, .clouds, .grass-edge, .draft-banner { display: none; }
}
#more { margin-top: 24px; }
.parents-more { margin: 20px 0 0; }
@media (min-width: 1100px) { .parents-grid.four { grid-template-columns: repeat(4, 1fr); } }
