/* Globeling: Learn Together - website. Colours match the app (Scripts/UI/UIKit.cs). No third-party fonts or scripts. */
@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ink: #23314D;
  --ink-soft: #55627E;
  --ocean: #2E86DE;
  --sky: #8FD3FF;
  --mint: #1FB98A;
  --sun: #FFC93C;
  --coral: #FF7058;
  --grape: #7B5CE6;
  --rose: #E0567A;
  --sky-top: #BFE6FF;
  --sky-bottom: #FFF6E0;
  --card: #FFFFFF;
  --line: #E3E9F3;
  --radius: 26px;
  --shadow: 0 8px 0 rgba(35, 49, 77, 0.07), 0 18px 40px rgba(35, 49, 77, 0.08);
  --heading: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Bengali", "Noto Sans Devanagari", "Noto Sans Arabic", "Noto Sans SC", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #EEF2FA;
    --ink-soft: #B7C0D6;
    --sky-top: #142036;
    --sky-bottom: #1E1A2C;
    --card: #232B42;
    --line: #34405E;
    --shadow: 0 8px 0 rgba(0, 0, 0, 0.25), 0 18px 40px rgba(0, 0, 0, 0.3);
  }
}
:root[data-theme="dark"] {
  --ink: #EEF2FA;
  --ink-soft: #B7C0D6;
  --sky-top: #142036;
  --sky-bottom: #1E1A2C;
  --card: #232B42;
  --line: #34405E;
  --shadow: 0 8px 0 rgba(0, 0, 0, 0.25), 0 18px 40px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-top) 0, var(--sky-bottom) 720px) no-repeat, var(--sky-bottom);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 14px; border-radius: 12px; z-index: 10; }

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

/* header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-family: var(--heading); font-size: 1.45rem; font-weight: 600; }
.brand img { width: 44px; height: 44px; border-radius: 12px; }
.nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* hero */
.hero { padding: 28px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; }
.hero-shot { border-radius: var(--radius); box-shadow: var(--shadow); border: 6px solid var(--card); }
.cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.badge img { width: 200px; }
.note { font-size: .92rem; color: var(--ink-soft); }
.pill { display: inline-block; background: var(--card); color: var(--ink); border-radius: 999px; padding: 4px 14px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); margin-bottom: 14px; }

/* sections */
section { padding: 36px 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--card); border-radius: var(--radius); padding: 22px 22px 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.card .emoji { font-size: 2rem; line-height: 1; margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 8px 0 0; }
.stat { background: var(--card); border-radius: 20px; padding: 16px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--heading); font-size: 1.9rem; color: var(--ocean); }
.worlds { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.world { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow); }
.world .emoji { font-size: 2.1rem; line-height: 1.1; }
.world p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 18px; box-shadow: var(--shadow); }
.gallery figcaption { font-size: .92rem; color: var(--ink-soft); margin-top: 8px; text-align: center; }
.guides { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 18px; }
.guides img { width: 88px; height: 88px; object-fit: contain; }
.band { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.check { list-style: none; padding: 0; margin: 0; }
.check li { padding-left: 1.7em; position: relative; margin: .45em 0; }
.check li::before { content: "\2714"; position: absolute; left: 0; color: var(--mint); font-weight: 700; }

/* documents */
.doc { background: var(--card); border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow); margin-bottom: 36px; }
.doc h2 { font-size: 1.45rem; margin-top: 1.6em; }
.doc h2:first-of-type { margin-top: .6em; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .96rem; }
.doc th, .doc td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-family: var(--heading); font-weight: 600; }
.meta { color: var(--ink-soft); font-size: .95rem; }
details { background: var(--card); border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow); margin-bottom: 12px; }
summary { font-family: var(--heading); font-weight: 600; font-size: 1.1rem; cursor: pointer; }
details[open] summary { margin-bottom: 8px; }

/* footer */
.site-footer { padding: 30px 0 40px; color: var(--ink-soft); font-size: .95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; }
.site-footer a { color: var(--ink-soft); }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-shot { order: -1; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc td { border: 0; padding: 2px 0; }
  .doc tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
}
