/* Braggle coming-soon page.
   Colours and type are the app's dark register.
   Colour grammar carries over: blue and plum only say which game,
   gold is rank (stars, first place), cream tiles hold a result. */

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Spline Sans Mono";
  src: url("fonts/SplineSansMono-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ground: #191713; /* the page: the app's recessed well */
  --stage: #22201c;  /* the app's screen */
  --card: #383430;
  --chip: #474137;
  --edge: rgba(255, 255, 255, 0.07);
  --rule: rgba(247, 244, 237, 0.15);
  --ink: #f7f4ed;
  --ink-soft: #b5aea3;
  --ink-faint: #a79f91;
  --tile: #ebe4d3;
  --stamp: #221d17;
  --gold: #dfaf52;
  --star-off: #6a645b;
  --game-one: #3d6fbf;
  --game-two: #a4509e;
  --pine: #55933a;
  --gutter: clamp(20px, 5vw, 48px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: minmax(0, 1fr);
  background: var(--ground);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
[hidden] { display: none !important; }

.shell {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Top and bottom ---------- */
.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-block: clamp(20px, 4vh, 36px);
}
.wordmark {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.lang { font-size: 0.9375rem; color: var(--ink-soft); }
.lang:hover { color: var(--ink); }

.bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  justify-content: space-between;
  padding-block: 22px 28px;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--ink-faint);
}
.bottom p, .bottom ul { margin: 0; padding: 0; list-style: none; }
.follow { display: flex; gap: 18px; }

/* ---------- Headline and store slots ---------- */
main { display: grid; align-content: center; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "intro story" "details story";
  column-gap: clamp(40px, 6vw, 96px);
  padding-block: clamp(12px, 3vh, 40px) clamp(40px, 8vh, 88px);
}
.intro { grid-area: intro; align-self: end; }
.details { grid-area: details; align-self: start; }
.story { grid-area: story; align-self: center; }

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 5.2vw, 4.75rem);
  font-weight: 600;
  font-stretch: 88%;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
h1 span { display: block; }
.lede {
  margin: 1.5rem 0 0;
  max-width: 30em;
  font-size: 1.1875rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.emblem { flex: none; width: 24px; height: 24px; border-radius: 7px; padding: 5px; fill: var(--tile); }
.emblem.one { background: var(--game-one); }
.emblem.two { background: var(--game-two); }

/* Store slots: dashed means empty, the way the app draws an unused slot.
   They are not links, so they must not look pressable. */
.stores { margin: 2.25rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: grid;
  padding: 11px 22px 13px;
  border: 1.5px dashed rgba(247, 244, 237, 0.3);
  border-radius: 14px;
  line-height: 1.25;
  cursor: default;
}
.store span { font-size: 0.8125rem; color: var(--ink-faint); }
.store strong { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.015em; }
.where { margin: 1rem 0 0; font-size: 0.9375rem; color: var(--ink-faint); }

@media (max-width: 959px) {
  /* On a phone the loop comes straight after the headline. */
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "story" "details"; row-gap: 2.5rem; }
  .stores { margin-top: 0; }
  h1 { font-size: clamp(2.5rem, 1.1rem + 4.4vw, 3.75rem); }
}
