/* GlowMoth Studios website: shared styles. Light and dark themes (follows the device, or the toggle). */
@font-face { font-family: "Baloo 2"; font-weight: 800; font-display: swap; src: url(fonts/baloo-2-latin-800-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: "Baloo 2"; font-weight: 800; font-display: swap; src: url(fonts/baloo-2-latin-ext-800-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+2020,U+20A0-20C0,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url(fonts/nunito-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: "Nunito"; font-weight: 600; font-display: swap; src: url(fonts/nunito-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+2020,U+20A0-20C0,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url(fonts/nunito-latin-800-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: "Nunito"; font-weight: 800; font-display: swap; src: url(fonts/nunito-latin-ext-800-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+2020,U+20A0-20C0,U+2C60-2C7F,U+A720-A7FF; }

/* light theme */
:root {
  color-scheme: light;
  --bg: #f8f5ef; --bg-2: #efe9df; --ink: #1b1726; --muted: #625d70; --line: #e3ddd2; --card: #ffffff;
  --accent: #6d4fd8; --glow: rgba(255, 190, 90, 0.55); --glow-2: rgba(255, 200, 120, 0.18); --moth-2: #6e6a78;
}
/* dark theme: the loading screen's night, with a warm glow around the moth */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0a10; --bg-2: #15131d; --ink: #f4f2f8; --muted: #a8a3b5; --line: #26232f; --card: #15131c;
  --accent: #b9a6ff; --glow: rgba(255, 214, 140, 0.35); --glow-2: rgba(255, 214, 140, 0.08); --moth-2: #cfcfcf;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0a10; --bg-2: #15131d; --ink: #f4f2f8; --muted: #a8a3b5; --line: #26232f; --card: #15131c;
    --accent: #b9a6ff; --glow: rgba(255, 214, 140, 0.35); --glow-2: rgba(255, 214, 140, 0.08); --moth-2: #cfcfcf;
  }
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; background: radial-gradient(900px 520px at 50% -140px, var(--glow-2), transparent 70%), var(--bg);
  color: var(--ink); font: 600 16px/1.65 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif; transition: background-color 0.3s, color 0.3s; }
a { color: var(--accent); }
main { max-width: 760px; margin: 0 auto; padding: 0 16px 56px; }

/* the moth logo, drawn in the page's colours */
.moth .w { fill: var(--ink); }
.moth .w2 { fill: var(--moth-2); }
.moth .d { fill: var(--bg); }
.moth .vein { stroke: var(--bg); }
.moth .ring { stroke: var(--ink); }
.moth .ant { stroke: var(--ink); }
.moth .body { fill: var(--ink); stroke: var(--bg); }
.moth .stripes { stroke: var(--bg); fill: none; }
.moth .glow stop { stop-color: var(--glow); }

/* top bar (inner pages): small logo + wordmark, and the theme toggle */
.bar { display: flex; align-items: center; justify-content: space-between; max-width: 760px; margin: 0 auto; padding: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand .moth { width: 44px; height: 44px; }
.brand b { font: 800 1.3rem/1 "Baloo 2", "Trebuchet MS", system-ui, sans-serif; letter-spacing: 0.06em; }
.theme-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; font-size: 1.15rem; }
.theme-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* home page hero: the loading screen's layout */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 0 36px; }
.hero .moth { width: 190px; height: 190px; }
.word { font: 800 clamp(2.4rem, 11vw, 3.6rem)/1 "Baloo 2", "Trebuchet MS", system-ui, sans-serif; letter-spacing: 0.06em; margin: 6px 0 0; }
.sub { display: flex; align-items: center; gap: 14px; margin-top: 10px; font: 600 clamp(0.85rem, 3.6vw, 1.05rem)/1 "Nunito", system-ui, sans-serif;
  letter-spacing: 0.55em; color: var(--muted); }
.sub span { margin-right: -0.55em; }
.sub i { display: block; width: 34px; height: 1.5px; background: currentColor; opacity: 0.6; }
.tag { color: var(--muted); margin: 22px 0 0; font-size: 1.1rem; }

/* game card */
.game { display: flex; gap: 18px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px;
  box-shadow: 0 10px 30px rgba(20, 16, 40, 0.08); }
.game img { width: 96px; height: 96px; border-radius: 22px; flex: none; }
.game h2 { margin: 0 0 4px; font: 800 1.35rem/1.2 "Baloo 2", system-ui, sans-serif; }
.game p { margin: 0; color: var(--muted); }
.soon { display: inline-block; margin-top: 10px; padding: 4px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 800;
  color: var(--accent); border: 1px solid currentColor; }
@media (max-width: 440px) { .game { flex-direction: column; text-align: center; } }

/* legal pages */
.doc h1 { font: 800 2.1rem/1.15 "Baloo 2", system-ui, sans-serif; margin: 18px 0 2px; }
.doc h2 { font: 800 1.25rem/1.3 "Baloo 2", system-ui, sans-serif; margin: 34px 0 6px; }
.doc p, .doc li { font-weight: 600; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 4px 0; }
.muted { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 20px 0; }

footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem;
  display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; }
