:root{--ink:#1a454c;--accent:#278566;--done:#6b8c80;--gold:#ffe066;--cream:#f0e6cc;--paper:#f7f0dc;--leaf:#57850b;--water:#1a6b9a;--coral:#eb4c5c;}
/* Bloomlight City's website (scripts/build_site.py prepends :root colours from style.json's UI roles).
   The game's look: Fredoka (the kit font), paper cards, pill buttons like the title menu, a painterly grain. */
@font-face { font-family: "Fredoka"; src: url("/fonts/Fredoka.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }

* { box-sizing: border-box; }
html { background: var(--leaf); }
body {
  margin: 0; font-family: "Fredoka", ui-rounded, system-ui, sans-serif; color: var(--ink); line-height: 1.55; font-size: 1.08rem;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.3  0 0 0 0 0.15  0 0 0 0.09 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>"),
    linear-gradient(180deg, #bfe39a 0%, #a8d27a 45%, #8fbf63 100%);
  min-height: 100vh;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--accent); }
h3 { font-size: 1.35rem; }
.small { font-size: .92rem; opacity: .85; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem clamp(1rem, 4vw, 2.5rem);
  position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px);
  box-shadow: 0 2px 14px rgba(8, 26, 28, .12); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.25rem; }
.brand img { border-radius: 12px; }
nav { display: flex; gap: .3rem; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--ink); padding: .35rem .9rem; border-radius: 999px; font-weight: 500; }
nav a:hover, nav a[aria-current] { background: var(--accent); color: #fbf6e6; }

main { max-width: 1180px; margin: 0 auto; padding: 0 clamp(.8rem, 3vw, 2rem) 3rem; }
.card { background: var(--paper); border-radius: 28px; padding: clamp(1.3rem, 4vw, 2.6rem); margin: 2rem 0;
  box-shadow: 0 6px 0 rgba(26, 69, 77, .12), 0 18px 40px rgba(8, 26, 28, .12); }

.pill { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 56px; padding: .6rem 1.9rem;
  border-radius: 999px; background: var(--accent); color: #fbf6e6; text-decoration: none; font-weight: 600; font-size: 1.15rem;
  box-shadow: 0 3px 8px rgba(8, 26, 28, .35); transition: transform .15s ease, box-shadow .15s ease; border: 3px solid transparent; }
.pill:hover, .pill:focus-visible { color: #fff; transform: scale(1.04); box-shadow: 0 0 0 4px var(--gold), 0 0 22px color-mix(in srgb, var(--gold) 70%, transparent); outline: none; }
.pill.ghost { background: color-mix(in srgb, var(--paper) 92%, transparent); color: var(--ink); }
.pill.off { background: var(--done); cursor: default; opacity: .7; }
.pill.off:hover { transform: none; box-shadow: none; }

.hero { position: relative; margin: 1.2rem 0 0; border-radius: 32px; overflow: hidden; box-shadow: 0 18px 50px rgba(8, 26, 28, .3); }
.hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-text { position: absolute; inset: auto 0 0 0; padding: clamp(1rem, 4vw, 3rem);
  background: linear-gradient(0deg, rgba(10, 34, 38, .72) 0%, rgba(10, 34, 38, .35) 60%, transparent 100%); }
.logo { font-size: clamp(2.4rem, 7vw, 5.6rem); color: #fcf5dc; margin: 0; font-weight: 700;
  -webkit-text-stroke: clamp(4px, .5vw, 8px) color-mix(in srgb, var(--ink) 80%, #000); paint-order: stroke fill;
  text-shadow: 0 5px 22px color-mix(in srgb, var(--gold) 55%, transparent); }
.tagline { color: #fcf2cf; font-size: clamp(1.1rem, 2.4vw, 1.6rem); margin: .2rem 0 1rem; text-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.cta { display: flex; gap: .8rem; flex-wrap: wrap; margin: 0; }
.build-note { color: #fcf2cf; opacity: .85; margin: .8rem 0 0; font-size: .95rem; }

.intro { font-size: 1.2rem; }
.pillars { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 1.2rem 0 0; list-style: none; }
.pillars li { background: color-mix(in srgb, var(--accent) 14%, var(--paper)); border-radius: 999px; padding: .35rem 1rem; font-size: 1rem; }

.features { display: grid; gap: 1.6rem; margin: 2rem 0; }
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; align-items: center; background: var(--paper); border-radius: 28px; overflow: hidden;
  box-shadow: 0 6px 0 rgba(26, 69, 77, .12), 0 18px 40px rgba(8, 26, 28, .12); }
.feature img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature div { padding: clamp(1.2rem, 3vw, 2.4rem); }
.feature.flip img { order: 2; }
.feature h3 { color: var(--accent); font-size: 1.6rem; }

.faces { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin: 1rem 0 1.4rem; }
.faces a { display: grid; justify-items: center; gap: .3rem; text-decoration: none; color: var(--ink); font-weight: 500; }
.faces img, .person img { border-radius: 50%; background: var(--cream); border: 4px solid #fff; box-shadow: 0 4px 12px rgba(8, 26, 28, .2); }
.meet { text-align: center; }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.2rem; }
.person { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; align-items: start; padding: 1rem; border-radius: 22px;
  background: color-mix(in srgb, var(--cream) 55%, var(--paper)); }
.person img { width: 110px; height: 110px; }
.person .role { color: var(--accent); font-weight: 500; margin: -.4rem 0 .4rem; }
.person p { margin: 0 0 .4rem; }

.map-wrap { margin: 1rem 0 0; }
.map { width: 100%; height: auto; border-radius: 22px; }
.map .place-name { font: 600 22px "Fredoka", sans-serif; fill: var(--ink); paint-order: stroke; stroke: #f7f0dc; stroke-width: 6px; }
.map .place-note { font: 400 15px "Fredoka", sans-serif; fill: var(--ink); paint-order: stroke; stroke: #f7f0dc; stroke-width: 5px; }
.map .water-name { font: italic 500 17px "Fredoka", sans-serif; fill: #245f80; paint-order: stroke; stroke: #cfe0a0; stroke-width: 5px; }

.download .buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.2rem 0 1.6rem; }
.download .os { flex-direction: column; gap: 0; min-width: 190px; min-height: 76px; }
.download .os b { font-size: 1.3rem; }
.download .os span { font-size: .9rem; font-weight: 400; opacity: .9; }
.download .os.primary { box-shadow: 0 0 0 4px var(--gold), 0 0 22px color-mix(in srgb, var(--gold) 70%, transparent); transform: scale(1.04); }
.download .install li { margin: .4rem 0; }
.download .install li.primary { font-weight: 600; }
.build { font-weight: 500; }

.post { border-top: 2px dashed color-mix(in srgb, var(--accent) 35%, transparent); padding-top: 1.2rem; margin-top: 1.2rem; }
.post .date { color: var(--done); margin: -.4rem 0 .6rem; }

footer { text-align: center; padding: 2rem 1rem 3rem; color: var(--ink); }
footer p { display: inline-block; background: color-mix(in srgb, var(--paper) 85%, transparent); border-radius: 999px; padding: .5rem 1.4rem; margin: 0; }

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .top { flex-direction: column; gap: .4rem; }
  .feature { grid-template-columns: 1fr; }
  .feature.flip img { order: 0; }
  .hero img { aspect-ratio: 4 / 5; }
  .person { grid-template-columns: 80px 1fr; }
  .person img { width: 80px; height: 80px; }
  .download .os { min-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .pill, .download .os.primary { transition: none; transform: none; } }
