/* Brick & Blaze site: the game's Storybook Diorama look (block-td art/DESIGN_SYSTEM.md):
   polished wood, cream parchment, gold candy buttons, sky and grass. Lilita One for titles; system font for copy. */

@font-face {
  font-family: "Lilita One";
  src: url("LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --ink: #4a2d18;
  --ink-2: #7a5634;
  --muted: #6b5544;
  --wood: #8e5e37;
  --wood-light: #b07a4a;
  --wood-dark: #6a4226;
  --wood-shadow: #3e2614;
  --gold: #f6c94e;
  --gold-light: #fff3b8;
  --gold-dark: #d99a2a;
  --gold-lip: #a8721c;
  --cream: #fff6e3;
  --parchment: #f1e1bf;
  --page: #fbf1dc;
  --paper: #fffaf0;
  --rule: #e7d3ad;
  --sky-top: #5fb6e6;
  --sky-bottom: #ddf1f8;
  --grass: #9ad46a;
  --grass-dark: #5a9e3c;
  --link: #8e5e37;
  --radius: 18px;
  --shadow: 0 12px 20px rgba(20, 40, 10, .22);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #fff1d6;
    --ink-2: #e8cfa4;
    --muted: #d6bf9a;
    --page: #1d140c;
    --paper: #2a1d12;
    --parchment: #33241a;
    --rule: #4d3624;
    --sky-top: #1b2c4f;
    --sky-bottom: #3c4f74;
    --grass: #4f7d34;
    --grass-dark: #335a22;
    --link: #f6c94e;
    --shadow: 0 12px 22px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
}

a { color: var(--link); }
a:hover { color: var(--ink); }

img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(1040px, 100% - 32px); margin-inline: auto; }

.lil { font-family: "Lilita One", system-ui, sans-serif; font-weight: 400; letter-spacing: .01em; }

/* ---- header: a wood bar with a brass rule ---- */
.site-header {
  background: linear-gradient(#b07a4a, #8e5e37 55%, #6a4226);
  border-bottom: 4px solid var(--wood-shadow);
  box-shadow: inset 0 2px 0 #e0ae78;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 10px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold); text-decoration: none; font-size: 22px; text-shadow: 0 2px 0 var(--wood-shadow); }
.brand img { border-radius: 10px; box-shadow: 0 2px 0 var(--wood-shadow); }
.nav { display: flex; gap: 6px 16px; flex-wrap: wrap; }
.nav a { color: #fff6e3; text-decoration: none; font-weight: 700; font-size: 15px; text-shadow: 0 2px 0 var(--wood-shadow); }
.nav a:hover { color: var(--gold); }

main { padding: 32px 0 48px; }
main.landing { padding: 0; }

/* ---- hero: sky, sun glow and a grass hill ---- */
.hero-sky {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 243, 184, .75), rgba(255, 243, 184, 0) 34%),
    linear-gradient(var(--sky-top), var(--sky-bottom));
  padding: 40px 0 92px;
}
.hero-sky::after {
  content: "";
  position: absolute; left: -10%; right: -10%; bottom: -60px; height: 120px;
  background: linear-gradient(var(--grass), var(--grass-dark));
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  box-shadow: inset 0 6px 0 rgba(255, 255, 255, .25);
}
.hero { position: relative; z-index: 1; display: grid; gap: 28px; align-items: center; }
.hero-copy { text-align: center; }
.hero-icon { width: 128px; margin: 0 auto 16px; border-radius: 28px; box-shadow: 0 8px 0 var(--wood-dark), var(--shadow); }
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 9vw, 60px); line-height: 1.05;
  color: #fff6e3;
  text-shadow: 0 4px 0 var(--wood-shadow), 0 8px 18px rgba(30, 50, 80, .35);
}
.hero h1 .sub { display: block; font-size: .55em; color: var(--gold); }
.hero .lead { margin: 0 auto 22px; max-width: 34em; font-size: 18px; font-weight: 600; color: #263a4f; }
.hero-art img { border-radius: 16px; border: 4px solid var(--gold-dark); box-shadow: 0 8px 0 var(--wood-dark), var(--shadow); }
.small-print { font-size: 14px; color: #33485c; margin: 14px 0 0; }

@media (prefers-color-scheme: dark) {
  .hero-sky { background:
    radial-gradient(circle at 82% 18%, rgba(255, 243, 184, .18), rgba(255, 243, 184, 0) 30%),
    linear-gradient(var(--sky-top), var(--sky-bottom)); }
  .hero .lead { color: #e9f1fb; }
  .small-print { color: #c9d6e6; }
}

@media (min-width: 860px) {
  .hero { grid-template-columns: 1fr 1.1fr; }
  .hero-copy { text-align: left; }
  .hero-icon { margin: 0 0 16px; }
  .hero .lead { margin-left: 0; }
  .hero .cta-row { justify-content: flex-start; }
}

/* ---- the candy gold button ---- */
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px 16px;
  font-family: "Lilita One", system-ui, sans-serif; font-size: 22px; line-height: 1.1;
  color: #fff; text-decoration: none; text-shadow: 0 3px 0 #b5640a;
  background: linear-gradient(var(--gold-light), var(--gold) 40%, var(--gold-dark));
  border-radius: 999px;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .7), 0 7px 0 var(--gold-lip), var(--shadow);
}
.btn:hover { color: #fff; filter: brightness(1.05); }
.btn:active { transform: translateY(4px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .7), 0 3px 0 var(--gold-lip), var(--shadow); }
.btn:focus-visible { outline: 4px solid #3d8fd9; outline-offset: 4px; }
.btn svg { width: 26px; height: 26px; flex: none; }
.btn small { display: block; font-family: system-ui, sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-shadow: none; color: #6a3e08; }
.btn.wood {
  color: #fff6e3; text-shadow: 0 3px 0 var(--wood-shadow);
  background: linear-gradient(#b07a4a, #8e5e37 55%, #6a4226);
  box-shadow: inset 0 3px 0 #e0ae78, 0 7px 0 var(--wood-shadow), var(--shadow);
}

/* ---- sections ---- */
.section { padding: 48px 0; }
.section-title { text-align: center; font-size: clamp(28px, 6vw, 40px); line-height: 1.1; margin: 0 0 8px; }
.section-sub { text-align: center; color: var(--muted); margin: 0 auto 28px; max-width: 36em; }

.features { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.features > * { flex: 1 1 260px; max-width: 100%; }
@media (min-width: 860px) { .features > * { flex: 0 1 calc((100% - 40px) / 3); } }
.feature {
  background: var(--paper);
  border: 5px solid var(--wood);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 3px var(--parchment), 0 7px 0 var(--wood-dark), var(--shadow);
  padding: 20px 20px 22px;
}
.feature .well { width: 84px; height: 84px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 18px;
  background: linear-gradient(#6a4226, #8e5e37); box-shadow: inset 0 4px 8px rgba(0, 0, 0, .4), 0 2px 0 #e0ae78; }
.feature .well img { width: 68px; height: 68px; object-fit: contain; }
.feature h3 { margin: 0 0 6px; font-size: 24px; line-height: 1.15; }
.feature p { margin: 0; color: var(--ink-2); font-size: 16px; }
.feature ul { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 16px; }

/* ---- screenshot strip ---- */
.shots-band { background: linear-gradient(var(--grass), var(--grass-dark)); }
.shots-band .section-title { color: #fff6e3; text-shadow: 0 3px 0 #2e5a1e; }
.shots-band .section-sub { color: #f1f8e6; }
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(62%, 240px);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 4px 22px; overscroll-behavior-x: contain;
}
.shots:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.shots figure { margin: 0; scroll-snap-align: center; }
.shots img { border-radius: 18px; border: 4px solid var(--gold-dark); box-shadow: 0 7px 0 #2e5a1e, 0 14px 20px rgba(0, 0, 0, .25); }

/* ---- good to know ---- */
.know { max-width: 760px; margin: 0 auto; background: var(--paper); border: 2px solid var(--rule); border-radius: var(--radius); padding: 22px clamp(18px, 4vw, 34px); }
.know h2 { margin: 0 0 8px; font-size: 26px; }
.know ul { margin: 0; padding-left: 20px; }
.know li { margin: 6px 0; }

/* ---- shared cards and legal pages ---- */
.card { background: var(--paper); border: 2px solid var(--rule); border-radius: var(--radius); padding: 20px 22px; margin: 18px 0; }

.legal { background: var(--paper); border: 2px solid var(--rule); border-radius: var(--radius); padding: 28px clamp(18px, 4vw, 40px); }
.legal h1 { margin-top: 0; font-size: clamp(30px, 5vw, 42px); line-height: 1.15; }
.legal h2 { margin-top: 32px; font-size: 22px; border-bottom: 2px solid var(--rule); padding-bottom: 4px; }
.legal .meta { color: var(--muted); margin-top: -8px; }
.draft-note { background: #fff3b8; color: #4a2d18; border: 2px dashed var(--gold-dark); border-radius: 12px; padding: 12px 16px; margin: 0 0 20px; font-weight: 600; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--rule); }
th { background: var(--parchment); }

/* ---- footer ---- */
.site-footer { background: #6a4226; color: #fff6e3; font-size: 14px; padding: 22px 0; border-top: 4px solid var(--wood-shadow); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--gold); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-weight: 700; }
.site-footer .legal-line { color: #e8cfa4; }

@media (prefers-reduced-motion: reduce) {
  .shots { scroll-behavior: auto; }
  .btn:active { transform: none; }
}
