/* Broad Brim Games. Colors are sampled from the mall in NPC: the dark shop signs,
   the stone floor, and the shoppers' shirts. */
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --sign: #272120;
  --sign-soft: #cfc6bd;
  --floor: #ead9b6;
  --floor-light: #f5ead2;
  --ink: #2b2422;
  --ink-soft: #5d514a;
  --line: #cdb88c;
  --teal: #2aa58c;
  --teal-dark: #0d5f50;
  --yellow: #f0c420;
  --plum: #b06fb0;
  --red: #cf3434;
  --blue: #3c68b2;
  --olive: #8f9c1f;
  --title: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --gap: clamp(3rem, 7vw, 5.5rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body { margin: 0; background: var(--floor); color: var(--ink); font: 400 1.125rem/1.6 var(--text); }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd, ol { margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--title); font-weight: 600; line-height: 1.1; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.375rem; }
a { color: var(--teal-dark); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 2; background: #fff; padding: 0.5rem 1rem; }

/* Header: the name in type until there is a logo */
.top { background: var(--sign); color: #fff; }
.top-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 2rem; padding-block: 1rem; }
.top a { color: #fff; text-decoration: none; }
.brand { font: 600 1.375rem/1.2 var(--title); }
.top nav { display: flex; gap: 1.5rem; }
.top nav a { padding-block: 0.375rem; border-bottom: 3px solid transparent; font-weight: 500; }
.top nav a:hover, .top nav a[aria-current] { border-color: var(--yellow); }
.top :focus-visible, .sign :focus-visible { outline-color: var(--yellow); }

/* The shopfront: a lit sign, a colored band, and a window onto the crowd */
.sign { background: var(--sign); color: #fff; padding-block: clamp(2rem, 5vw, 4rem) clamp(1.75rem, 3.5vw, 2.75rem); border-bottom: 8px solid var(--yellow); }
.sign h1 { font-size: clamp(2.125rem, 5.6vw, 4.5rem); text-shadow: 0 0 22px rgb(255 244 220 / 0.38); }
.sign-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 3rem; margin-top: 1.5rem; }
.sign-foot p { max-width: 36rem; color: var(--sign-soft); font-size: clamp(1.125rem, 1.6vw, 1.25rem); }
.sign-foot strong { color: #fff; font-weight: 600; }
.window { overflow: hidden; background: var(--floor); }
.window img { height: clamp(16rem, 48vw, 40rem); object-fit: cover; object-position: 50% 78%; }
.shop-npc .window img { object-position: 50% 12%; }
.shop-plain .sign { border-color: var(--teal); }
.button { display: inline-block; background: var(--yellow); color: var(--sign); font: 600 1.125rem/1 var(--title); padding: 0.95rem 1.4rem; border-radius: 999px; text-decoration: none; }
.button:hover { background: #ffd93f; }

/* Text sections */
main > .wrap { margin-top: var(--gap); }
main > :last-child { margin-bottom: var(--gap); }
.split { display: grid; gap: 1rem clamp(2rem, 6vw, 5rem); }
.prose { max-width: 38rem; }
.prose p + p { margin-top: 1rem; }
@media (min-width: 800px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

/* Facts */
main > .wrap:has(> .facts) { margin-top: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 1rem 2rem; padding-block: 1.5rem; border-bottom: 2px solid var(--line); }
.facts dt { color: var(--ink-soft); font-size: 1rem; }
.facts dd { font-weight: 600; line-height: 1.35; }

/* The line-up */
.strip { margin-top: var(--gap); }
.strip img { max-height: 30rem; object-fit: cover; }
.strip figcaption { padding-top: 0.75rem; }
figcaption, .note { color: var(--ink-soft); font-size: 1rem; }

/* How a round goes */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 2rem; margin-top: 1.75rem; }
.steps li { counter-increment: step; border-top: 8px solid var(--c); padding-top: 1rem; }
.steps li:nth-child(1) { --c: var(--teal); }
.steps li:nth-child(2) { --c: var(--red); }
.steps li:nth-child(3) { --c: var(--blue); }
.steps li:nth-child(4) { --c: var(--plum); }
.steps h3::before { content: counter(step) ". "; }
.steps p { margin-top: 0.5rem; }

/* Two shopfronts */
.places { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: 1.75rem; margin-top: 1.75rem; }
.place { background: var(--floor-light); display: flex; flex-direction: column; }
.place h3 { background: var(--sign); color: #fff; font-size: 1.75rem; padding: 1.25rem 1.5rem; border-bottom: 6px solid var(--c); text-shadow: 0 0 16px rgb(255 244 220 / 0.38); }
.place > div { padding: 1.5rem; }
.place-mall { --c: var(--olive); }
.place-wedding { --c: var(--plum); }

/* Pictures */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 1.75rem; margin-top: 1.75rem; }
.gallery figcaption { padding-top: 0.5rem; }
.note { margin-top: 1.75rem; }

.foot { background: var(--sign); color: var(--sign-soft); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 1.75rem; }
.foot a { color: #fff; }
