/* Mossbloom Meadows site. Mobile first, no scripts, no third-party requests. Palette from the game (client Theme.cs). */
@font-face { font-family: "Baloo 2"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/baloo2-bold.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/baloo2-medium.woff2") format("woff2"); }

:root {
  --cream: #FFF6E6;
  --parchment: #EFE0C6;
  --paper: #FFFBF2;
  --ink: #3B2F2A;
  --ink-soft: #6B5A50;
  --forest: #4A7C59;
  --forest-deep: #33604A;
  --honey: #E8A33D;
  --honey-deep: #C77F22;
  --berry: #D2586A;
  --line: #E2D2B4;
  --ph-bg: #FFE8A8;
  --radius: 18px;
  --display: "Baloo 2", ui-rounded, "Nunito", "Trebuchet MS", system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #241E2E; --parchment: #332B3F; --paper: #2B2438; --ink: #F5EBDD; --ink-soft: #CDBFB0;
    --forest: #8BC79B; --forest-deep: #A8D9B5; --honey: #F2C75C; --honey-deep: #F2C75C; --berry: #F08A98;
    --line: #4A4058; --ph-bg: #5A4A1E;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 17px/1.65 var(--text); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--forest-deep); text-underline-offset: 3px; }
a:hover { color: var(--honey-deep); }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* header + footer */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 12px 16px; max-width: 960px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 20px/1 var(--display); }
.brand img { border-radius: 10px; }
.top nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.top nav a { text-decoration: none; color: var(--ink-soft); padding: 8px 2px; font-weight: 600; font-size: 15px; }
.top nav a[aria-current="page"] { color: var(--forest-deep); border-bottom: 3px solid var(--honey); }
.foot { margin-top: 56px; padding: 28px 16px 40px; text-align: center; background: var(--parchment); border-top: 1px solid var(--line); }
.foot .tag { font: 700 20px/1.3 var(--display); margin: 0 0 12px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
.foot nav a { padding: 6px 0; font-weight: 600; }
.foot .fine { color: var(--ink-soft); font-size: 14px; margin: 14px 0 0; }

main { max-width: 760px; margin: 0 auto; padding: 8px 16px 0; }

/* documents */
.doc h1 { font: 700 34px/1.15 var(--display); margin: 20px 0 8px; }
.doc h2 { font: 700 24px/1.25 var(--display); margin: 36px 0 8px; color: var(--forest-deep); }
.doc h3 { font: 700 19px/1.3 var(--display); margin: 22px 0 4px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.lede { font-size: 19px; color: var(--ink-soft); margin-top: 0; }
.docmeta { margin: 6px 0 14px; font-size: 15px; opacity: .75; }
.draft { display: inline-block; background: var(--ph-bg); border: 1px dashed var(--honey-deep); border-radius: 12px; padding: 6px 12px; font-size: 15px; margin: 6px 0 12px; }
.ph { background: var(--ph-bg); border-radius: 6px; padding: 0 5px; font-weight: 600; }
.note { background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--honey); border-radius: 12px; padding: 12px 16px; margin: 18px 0; }
.note p { margin: 6px 0; }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; margin: 18px 0; }
.toc ol { margin: 6px 0; columns: 1; }
.toc a { text-decoration: none; }

/* tables turn into stacked cards on a phone */
.tbl { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15.5px; }
.tbl th { text-align: left; font: 700 15px/1.3 var(--display); background: var(--parchment); }
.tbl th, .tbl td { padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.tbl td:first-child { font-weight: 600; }
@media (max-width: 640px) {
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { margin: 0 0 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); overflow: hidden; }
  .tbl td { border: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; }
  .tbl td:last-child { border-bottom: 0; }
  .tbl td::before { content: attr(data-label); display: block; font: 700 13px/1.2 var(--display); color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
  .tbl td:first-child { background: var(--parchment); }
  .tbl td:first-child::before { display: none; }
}

/* buttons and FAQ */
.btn { display: inline-block; background: var(--forest); color: #fff; text-decoration: none; font: 700 18px/1 var(--display); padding: 14px 22px; border-radius: 999px; box-shadow: 0 3px 0 var(--forest-deep); margin: 6px 8px 6px 0; }
.btn:hover { color: #fff; background: var(--forest-deep); }
.btn.alt { background: var(--paper); color: var(--ink); box-shadow: 0 3px 0 var(--line); border: 1px solid var(--line); }
details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; margin: 10px 0; }
summary { cursor: pointer; font: 700 18px/1.4 var(--display); padding: 10px 0; }
details[open] { padding-bottom: 10px; }
code { background: var(--parchment); border-radius: 6px; padding: 1px 6px; font-size: .92em; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 4px 0 4px 46px; margin: 12px 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 32px; height: 32px; border-radius: 50%; background: var(--honey); color: #3B2F2A; font: 700 17px/32px var(--display); text-align: center; }

/* the store buttons on any text page (shared base: every article.doc, so /creators, /press and the like): three separate buttons that wrap with a gap. The home page's .hero / .closer rows keep their own rules below. A .stores row inside plain page text (e.g. /creators) used to get none of this and ran together as one line. */
.doc .stores { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.doc .stores .store { display: inline-block; background: var(--ink); color: var(--paper); border-radius: 12px; padding: 11px 18px; font: 700 16px/1.2 var(--display); text-decoration: none; }
.doc .stores .store:hover { opacity: .9; }
.doc .stores .store.web { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: 9px 16px; }
.doc .stores .store.web:hover { opacity: 1; background: var(--parchment); }
.doc .stores .soon { display: inline-block; margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font: 700 17px/1.2 var(--display); color: var(--ink); }

/* home */
.home main { max-width: 960px; }
.hero { display: grid; gap: 22px; align-items: center; padding: 10px 0 0; }
.hero .copy { text-align: center; }
.hero .wordmark { width: min(92%, 420px); height: auto; margin: 0 auto; display: block; }
.hero h1.mark { margin: 0; }
.hero h1 { font: 700 26px/1.25 var(--display); margin: 10px 0 6px; color: var(--forest-deep); }
.hero .pitch { font-size: 19px; margin: 8px auto; max-width: 34ch; }
.hero .soon { display: inline-block; margin-top: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font: 700 17px/1.2 var(--display); color: var(--ink); }
.hero .stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; justify-content: center; }
.hero .store { display: inline-block; background: var(--ink); color: var(--paper); border-radius: 12px; padding: 11px 18px; font: 700 16px/1.2 var(--display); text-decoration: none; }
.hero .store:hover { opacity: .9; }
.hero .fine { color: var(--ink-soft); font-size: 14px; margin: 10px 0 0; }
.hero .art { border-radius: 26px; overflow: hidden; box-shadow: 0 10px 30px rgba(59, 47, 42, .25); border: 4px solid var(--paper); max-width: 440px; margin: 0 auto; aspect-ratio: 9 / 16; background: var(--parchment); }
.hero .art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.cards { display: grid; gap: 14px; margin: 38px 0 0; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.card h2 { font: 700 20px/1.3 var(--display); margin: 0 0 4px; color: var(--forest-deep); }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }
@media (min-width: 760px) {
  body { font-size: 18px; }
  .hero { grid-template-columns: 1.1fr .9fr; gap: 40px; padding-top: 28px; }
  .hero .copy { text-align: left; }
  .hero .stores { justify-content: flex-start; }
  .hero .wordmark { margin: 0; }
  .hero .pitch { margin-left: 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .doc h1 { font-size: 40px; }
  .toc ol { columns: 2; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print { .top nav, .foot nav, .skip, .btn { display: none; } body { background: #fff; color: #000; font-size: 12pt; } a { color: #000; } }

/* press page, and the home story card */
.story { margin: 14px 0 0; }
.press .soon, .press .stores { margin: 14px 0; }
.press .soon { display: inline-block; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font: 700 17px/1.2 var(--display); }
.press .stores { display: flex; flex-wrap: wrap; gap: 10px; }
.stores .soon { margin: 0; }
.press .store { display: inline-block; background: var(--ink); color: var(--paper); border-radius: 12px; padding: 11px 18px; font: 700 16px/1.2 var(--display); text-decoration: none; }
.facts { margin: 12px 0; }
.facts div { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 700 15px/1.3 var(--display); color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 0; }
.dl { list-style: none; padding: 0; }
.dl li { margin: 12px 0; max-width: none; }
.dl .btn { display: block; width: fit-content; max-width: 100%; margin: 0 0 4px; }
.dl span { color: var(--ink-soft); font-size: 15px; }
.shots { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.shots li { margin: 0; }
.shots a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--parchment); }
.shots img { display: block; width: 100%; height: auto; }
@media (min-width: 560px) {
  .facts div { grid-template-columns: 9em 1fr; gap: 16px; }
  .shots { grid-template-columns: repeat(3, 1fr); }
}
.doc .dl, .doc .shots { padding: 0; }
@media (prefers-color-scheme: dark) { .btn, .btn:hover { color: #1B2A20; } .btn.alt, .btn.alt:hover { color: var(--ink); } }

/* feature bands (home): a phone shot beside a few warm words; stacked on a phone, side by side from 760px, every second one flipped */
.band { display: grid; gap: 18px; align-items: center; margin: 44px 0 0; }
.band .shot { border-radius: 26px; overflow: hidden; box-shadow: 0 10px 30px rgba(59, 47, 42, .22); border: 4px solid var(--paper); max-width: 300px; margin: 0 auto; background: var(--parchment); }
.band .shot img { display: block; width: 100%; height: auto; }
.band .words h2 { font: 700 26px/1.25 var(--display); margin: 0 0 8px; color: var(--forest-deep); }
.band .words p { margin: 8px 0 0; font-size: 18px; color: var(--ink-soft); max-width: 40ch; }
/* the village band shows the six folk's villages (one wide tile each) instead of one phone shot */
.band.wide { grid-template-columns: 1fr; }
.band.wide .words p { max-width: 60ch; }
.folk-head { font: 700 21px/1.25 var(--display); margin: 14px 0 0; color: var(--forest-deep); }
.folk-note { margin: 12px 0 0; font-size: 17px; color: var(--ink-soft); }
.closer .fine { color: var(--ink-soft); font-size: 16px; margin: 12px 0 0; }
.folk-grid { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.folk-grid figure { margin: 0; }
.folk-grid img { display: block; width: 100%; height: auto; border-radius: 16px; border: 3px solid var(--paper); box-shadow: 0 6px 18px rgba(59, 47, 42, .2); background: var(--parchment); }
.folk-grid figcaption { margin-top: 6px; text-align: center; font: 700 15px/1.2 var(--display); color: var(--forest-deep); }
@media (min-width: 760px) { .folk-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.closer { text-align: center; margin: 48px 0 8px; }
.closer h2 { font: 700 26px/1.25 var(--display); margin: 0 0 6px; color: var(--forest-deep); }
.closer .stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; justify-content: center; }
.closer .store { display: inline-block; background: var(--ink); color: var(--paper); border-radius: 12px; padding: 11px 18px; font: 700 16px/1.2 var(--display); text-decoration: none; }
@media (min-width: 760px) {
  .band { grid-template-columns: 300px 1fr; gap: 44px; }
  .band.flip { grid-template-columns: 1fr 300px; }
  .band.flip .shot { order: 2; }
  .band .shot { margin: 0; }
}

/* "coming in the next update" (home): honest tagged cards for features players cannot use yet */
.next { margin: 56px 0 0; }
.next h2 { font: 700 26px/1.25 var(--display); margin: 0 0 6px; color: var(--forest-deep); }
.next .lead { margin: 0 0 18px; font-size: 18px; color: var(--ink-soft); max-width: 60ch; }
.cards { display: block; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0 0 16px; break-inside: avoid; }
.card img { display: block; width: 100%; height: auto; border-radius: 14px; margin: 0 0 12px; border: 3px solid var(--parchment); }
.card .tag { display: inline-block; margin: 0 0 8px; padding: 3px 10px; border-radius: 999px; background: var(--parchment); color: var(--ink); font: 700 13px/1.3 var(--display); letter-spacing: .02em; }
.card h3 { font: 700 21px/1.25 var(--display); margin: 0 0 6px; color: var(--forest-deep); }
.card p { margin: 8px 0 0; font-size: 17px; color: var(--ink-soft); }
@media (min-width: 760px) { .cards { column-count: 2; column-gap: 20px; } .card { margin-bottom: 20px; } }
.card .imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.card .imgs img { margin: 0; }
.card[data-card="pass"] img { border: 0; }

/* 1.1: a pair of phone shots in the story band; the six-folk shot above the folk grid */
.band .shot.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 460px; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
.band .shot.pair picture { display: block; border-radius: 20px; overflow: hidden; border: 3px solid var(--paper); box-shadow: 0 8px 22px rgba(59, 47, 42, .22); }
@media (min-width: 760px) { .band.pair { grid-template-columns: 1fr 460px; } .band.flip.pair .shot { order: 2; } }
.band.wide .folk-shot { margin: 14px auto 0; }

/* the browser button: second to Google Play, an outline instead of a fill */
.hero .store.web, .press .store.web, .closer .store.web { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: 9px 16px; }
.hero .store.web:hover, .press .store.web:hover, .closer .store.web:hover { opacity: 1; background: var(--parchment); }

/* the Training School and Greenhouse banners (1024 x 320) in the "New in the vale" card: the card spans both columns on a wide screen, the banner is full width and keeps its shape, so nothing is cropped */
.card[data-card="vale"] picture.banner { display: block; margin: 12px 0 4px; }
.card[data-card="vale"] picture.banner img { width: 100%; height: auto; aspect-ratio: 1024 / 320; object-fit: contain; margin: 0; }
@media (min-width: 760px) { .card[data-card="vale"] { column-span: all; } }
