/* marblepath.app. Same palette and font as the game (src/styles/main.css, src/game/ui/theme.ts).
   The font is served from this site, not Google Fonts, so a visit sends nothing to a third party. */
@font-face { font-family: Fredoka; font-weight: 400; font-display: swap; src: url(/fonts/fredoka-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Fredoka; font-weight: 600; font-display: swap; src: url(/fonts/fredoka-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Fredoka; font-weight: 700; font-display: swap; src: url(/fonts/fredoka-latin-700-normal.woff2) format('woff2'); }

:root {
  --sky: #bfe6f7;
  --sky-deep: #8fd0ee;
  --ink: #3d2b1f;
  --ink-soft: #7a6352;
  --cream: #fff6e5;
  --cream-edge: #e6cb98;
  --accent: #ff8a3d;
  --link: #b8560f;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { background: linear-gradient(var(--sky-deep), var(--sky) 420px) var(--sky); min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font: 400 18px/1.6 Fredoka, ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--cream); padding: 8px 14px; z-index: 1; }

header, main, footer { width: min(820px, 100% - 32px); margin: 0 auto; }

header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 26px; }
.brand img { width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 2px 0 var(--cream-edge); }
nav { display: flex; gap: 20px; font-weight: 600; }
nav a { color: var(--ink); text-decoration: none; }
nav a[aria-current='page'], nav a:hover { color: var(--link); text-decoration: underline; }

.card {
  background: var(--cream);
  border: 4px solid var(--cream-edge);
  border-radius: 28px;
  padding: clamp(20px, 5vw, 44px);
  margin-bottom: 24px;
}

h1 { font-size: clamp(32px, 6vw, 48px); line-height: 1.15; margin: 0 0 12px; }
h2 { font-size: 26px; margin: 36px 0 8px; }
h3 { font-size: 20px; margin: 24px 0 4px; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.hero { text-align: center; }
.hero img { width: 160px; height: 160px; border-radius: 36px; box-shadow: 0 6px 0 var(--cream-edge); margin-bottom: 20px; }
.lead { font-size: 22px; color: var(--ink-soft); margin: 0 auto 20px; max-width: 34em; }
.badge { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; padding: 10px 22px; border-radius: 999px; }

.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); padding: 0; margin: 0; list-style: none; }
.features li { background: #fff; border: 3px solid var(--cream-edge); border-radius: 20px; padding: 18px 20px; }
.features strong { display: block; font-size: 20px; }

.button { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; padding: 12px 24px; border-radius: 16px; box-shadow: 0 4px 0 #c9631f; }
.button:hover { color: #fff; filter: brightness(1.05); }

.meta { color: var(--ink-soft); }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; vertical-align: top; border-top: 2px solid var(--cream-edge); padding: 10px 12px 10px 0; }
.table-wrap { overflow-x: auto; }
details { border-top: 2px solid var(--cream-edge); padding: 12px 0; }
details:last-of-type { border-bottom: 2px solid var(--cream-edge); }
summary { font-weight: 600; cursor: pointer; }
details p { margin: 8px 0 0; }

footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding: 8px 0 40px; color: var(--ink-soft); font-size: 15px; }
footer a { color: var(--ink-soft); }
footer nav { gap: 16px; font-weight: 400; }
