/* Nunito, the game's typeface. SIL Open Font License. */
@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/nunito-latin-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/nunito-latin-900.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The game's palette (src/art/style.ts): plum ink outlines, blush, rose, sage, butter, cream and paper. */
:root {
  --ink: #3b2a3a;
  --ink-soft: #6e5a6c;
  --ink-soft-on-blush: #5c475a;
  --line: #3b2a3a;
  --paper: #fff8f1;
  --cream: #fbe9d7;
  --cream-deep: #efd2b6;
  --blush: #f7b9c4;
  --blush-light: #fde8ec;
  --blush-dark: #e7899b;
  --rose: #e25b78;
  --rose-deep: #c73d5f;
  --rose-press: #b8395a;
  --rose-ink: #8f2643;
  --sage: #9cc89b;
  --sage-light: #e7f2e2;
  --sage-dark: #6fa86e;
  --butter: #f6d06b;
  --lavender: #b9a4e8;
  --lavender-deep: #5a4683;
  --plum-night: #2b1f2b;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Nunito, "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.45;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  transform: translateY(-150%);
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  z-index: 5;
}
.skip:focus { transform: none; }

/* ---------- top bar: a paper strip with a plum outline, like the game's cards */
.bar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 20px;
  background: var(--paper);
  border-bottom: 3.5px solid var(--line);
  color: var(--ink);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.brand img { width: 44px; height: 44px; border-radius: 12px; border: 2.5px solid var(--line); flex: none; }
.brand span { white-space: nowrap; }
.bar-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.bar-nav a {
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}
.bar-nav a:hover { color: var(--ink); background: var(--blush-light); }
.bar .cta { margin-left: auto; }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--rose-deep);
  color: #fff;
  text-decoration: none;
  border: 3px solid var(--line);
  border-bottom-width: 6px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-align: center;
}
.cta:hover { background: var(--rose-press); }
.cta:active { transform: translateY(2px); border-bottom-width: 3px; }
.cta-small { min-height: 42px; padding: 8px 12px; font-size: 15px; border-radius: 14px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 22px; }
.text-link { font-weight: 900; color: var(--rose-ink); }
.fine { margin-top: 14px; color: var(--ink-soft); font-size: 15px; max-width: 46ch; }
.kicker {
  margin-bottom: 10px;
  color: var(--rose-ink);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kicker-light { color: var(--butter); }

/* ---------- hero: the shop front, with a striped awning */
.hero {
  position: relative;
  padding: 64px 0 44px;
  background:
    radial-gradient(circle, rgba(255, 248, 241, 0.55) 2px, transparent 2.6px) 0 0 / 26px 26px,
    linear-gradient(var(--blush), #fbd3d6 55%, var(--cream));
}
.awning {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  filter: drop-shadow(0 3px 0 var(--line));
  pointer-events: none;
}
.awning span {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--rose) 0 40px, var(--paper) 40px 80px);
  -webkit-mask:
    linear-gradient(#000, #000) top / 100% 10px no-repeat,
    radial-gradient(circle 20px at 50% 10px, #000 98%, transparent 100%) 0 0 / 40px 30px repeat-x;
  mask:
    linear-gradient(#000, #000) top / 100% 10px no-repeat,
    radial-gradient(circle 20px at 50% 10px, #000 98%, transparent 100%) 0 0 / 40px 30px repeat-x;
}
.hero .fine { color: var(--ink-soft-on-blush); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: center;
}
.hero-grid > *, .split > * { min-width: 0; }
h1 { font-size: clamp(40px, 5.4vw, 68px); max-width: 13ch; }
.mark {
  background: linear-gradient(transparent 58%, var(--butter) 58%, var(--butter) 92%, transparent 92%);
  padding: 0 0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.lead { margin-top: 16px; max-width: 40ch; font-size: 20px; }

/* ---------- iPhone frames around the in-game screenshots */
.iphone {
  width: min(86vw, 300px);
  margin: 0 auto;
}
.iphone img {
  display: block;
  width: 100%;
  height: auto;
  background: #1c141c;
  border: 8px solid #1c141c;
  border-radius: 42px;
  box-shadow: 0 0 0 1px #2e232d, 0 22px 40px rgba(59, 42, 58, 0.28);
}
.iphone figcaption {
  width: min(86vw, 300px);
  margin: 12px auto 0;
  color: var(--ink-soft);
  font-size: 14px;
}
.hero .iphone figcaption { color: var(--ink-soft-on-blush); }

/* two phones side by side, the second a little lower */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.duo .iphone, .duo .iphone figcaption { width: 100%; max-width: 260px; }
.duo .iphone:nth-child(2) { margin-top: 56px; }

/* ---------- bands */
.band { padding: 72px 0; }
.band, #get { scroll-margin-top: 84px; }
.section-head { max-width: 42rem; margin-bottom: 28px; }
.section-head h2, .split h2, .band h2 { font-size: clamp(32px, 4vw, 48px); }
.section-head p, .prose { margin-top: 12px; }
.prose { max-width: 44ch; }

.band-sage {
  background:
    radial-gradient(circle, rgba(255, 248, 241, 0.28) 2px, transparent 2.6px) 0 0 / 30px 30px,
    var(--sage);
}
.band-paper { background: var(--paper); }
.band-leaf { background: var(--sage-light); }
.band-cream { background: var(--cream); }
.band-blush { background: var(--blush-light); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.steps li {
  margin: 0;
  padding: 18px 18px 20px;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 6px 0 var(--line);
}
.step-no {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--butter);
  border: 2.5px solid var(--line);
  font-weight: 900;
}
.steps li:nth-child(2) .step-no { background: var(--blush); }
.steps li:nth-child(3) .step-no { background: var(--sage); }
.steps li:nth-child(4) .step-no { background: var(--lavender); }
.steps h3 { font-size: 22px; margin-bottom: 8px; }
.steps p { font-size: 16px; color: var(--ink-soft); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.split-flip { grid-template-columns: 0.8fr 1.2fr; }
.split-wide { grid-template-columns: 1.15fr 0.85fr; }
.split .sheet { margin-top: 28px; }

.checks { margin: 16px 0 0; padding: 0; list-style: none; }
.checks li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 28px;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blush);
  border: 2px solid var(--line);
}
.band-leaf .checks li::before { background: var(--sage); }

/* flower names with their colour, as in the game's book */
.chips { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 5px 12px 5px 7px;
  background: var(--paper);
  border: 2.5px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
}
.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex: none;
}
.c-white { background: #fdf6ee; }
.c-yellow { background: #f6d04b; }
.c-orange { background: #f59a46; }
.c-pink { background: #f4a3b8; }
.c-red { background: #e2475f; }
.c-purple { background: #a786dc; }
.c-blue { background: #6fb1ea; }
.chips-note { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }

/* the regulars */
.people { margin: 20px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.people li {
  margin: 0;
  padding: 14px 16px;
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 5px 0 var(--line);
}
.people b { display: block; font-size: 19px; font-weight: 900; letter-spacing: -0.02em; }
.people .role { display: block; color: var(--rose-ink); font-size: 14px; }
.people q { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 15px; quotes: "\201C" "\201D"; }
.people .more { background: var(--blush-light); }
.people .more p { margin-top: 6px; color: var(--ink-soft); font-size: 15px; }

.sheet {
  background: var(--paper);
  border: 3px solid var(--line);
  border-bottom-width: 8px;
  border-radius: 24px;
  padding: 22px;
}
.sheet-kicker { color: var(--rose-ink); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.sheet h3 { font-size: 28px; margin: 6px 0 12px; }
.sheet ul { margin: 0; padding-left: 18px; }
.sheet li { margin: 0 0 10px; font-size: 16px; }
.sheet li:last-child { margin-bottom: 0; }

/* ---------- the shop window at dusk */
.band-dusk {
  color: var(--paper);
  background:
    radial-gradient(circle, rgba(246, 208, 107, 0.55) 1.2px, transparent 2px) 0 0 / 84px 84px,
    radial-gradient(circle, rgba(255, 248, 241, 0.3) 1px, transparent 1.8px) 42px 42px / 84px 84px,
    linear-gradient(var(--ink), #4a3560 55%, var(--lavender-deep));
}
.band-dusk .prose, .band-dusk .checks li { color: var(--blush-light); }
.band-dusk .checks li::before { background: var(--butter); border-color: var(--paper); }
.band-dusk .iphone figcaption { color: var(--blush-light); }
.themes { margin: 22px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.themes li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--line);
  border-radius: 16px;
  font-size: 14px;
}
.themes b { display: block; font-size: 17px; font-weight: 900; }
.themes span { color: var(--ink-soft); }
.swatch {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 2.5px solid var(--line);
  flex: none;
}
.t-spring { background: linear-gradient(135deg, var(--blush) 50%, var(--sage) 50%); }
.t-party { background: linear-gradient(135deg, var(--butter) 50%, var(--rose) 50%); }
.t-love { background: linear-gradient(135deg, var(--rose) 50%, var(--blush) 50%); }
.t-autumn { background: linear-gradient(135deg, #f29a52 50%, #d9a066 50%); }
.t-garden { background: linear-gradient(135deg, var(--sage) 50%, #bfe6f7 50%); }
.t-wedding { background: linear-gradient(135deg, #ffffff 50%, var(--blush-light) 50%); }
.t-winter { background: linear-gradient(135deg, #bfe6f7 50%, #ffffff 50%); }
.t-stars { background: radial-gradient(circle at 65% 35%, var(--butter) 3px, transparent 3.5px), linear-gradient(135deg, var(--lavender-deep), var(--ink)); }

/* ---------- straight answers and help */
.facts { margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.facts div {
  margin: 0;
  padding: 18px;
  background: var(--paper);
  border-radius: 18px;
  border: 3px solid var(--cream-deep);
}
.facts dt { font-weight: 900; font-size: 20px; margin-bottom: 6px; }
.facts dd { margin: 0; color: var(--ink-soft); font-size: 16px; }
.facts a { color: var(--rose-ink); }

.help { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.help a {
  display: block;
  padding: 18px;
  background: var(--paper);
  border: 3px solid var(--line);
  border-bottom-width: 7px;
  border-radius: 18px;
  text-decoration: none;
}
.help a:hover { background: #fffdf9; border-color: var(--rose-deep); }
.help a:active { transform: translateY(2px); border-bottom-width: 4px; }
.help b { display: block; font-size: 21px; font-weight: 900; margin-bottom: 4px; }
.help span { color: var(--ink-soft); font-size: 15px; }

.band-close { background: var(--ink); color: var(--paper); text-align: center; }
.close { display: grid; justify-items: center; gap: 14px; }
.close img { border-radius: 22px; border: 3px solid var(--paper); }
.close p { max-width: 46ch; color: var(--blush); }
.band-close .cta { border-color: var(--plum-night); }
.colophon { background: var(--plum-night); color: #e9d6dd; padding: 18px 0 28px; font-size: 14px; }
.colophon-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.colophon p { margin: 0; }
.colophon nav { display: flex; flex-wrap: wrap; gap: 14px; }
.colophon a { color: #fff; }

:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; }
.bar :focus-visible, .hero :focus-visible, .band-sage :focus-visible, .band-paper :focus-visible,
.band-leaf :focus-visible, .band-cream :focus-visible, .band-blush :focus-visible { outline-color: var(--rose-ink); }

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .bar { flex-wrap: nowrap; padding-bottom: 10px; }
  .bar-nav { display: none; }
  .split-flip > .iphone { order: 2; }
  .split .iphone, .split .iphone figcaption { width: min(72vw, 260px); }
  .split .duo .iphone, .split .duo .iphone figcaption { width: 100%; }
  .duo { max-width: 460px; margin: 0 auto; gap: 14px; }
  .duo .iphone:nth-child(2) { margin-top: 28px; }
  .duo .iphone img { border-width: 6px; border-radius: 30px; }
  .hero { padding-top: 50px; }
  .hero-grid, .split, .split-flip, .split-wide, .steps, .facts, .help { grid-template-columns: 1fr; }
  h1 { font-size: 40px; }
  .lead { font-size: 18px; }
  .band { padding: 48px 0; }
  .brand span { font-size: 15px; }
}

@media (max-width: 560px) {
  .people { grid-template-columns: 1fr; }
  .themes { gap: 8px; }
  .themes li { gap: 8px; padding: 8px 9px; font-size: 13px; line-height: 1.3; }
  .themes b { font-size: 16px; }
  .swatch { width: 24px; height: 24px; border-radius: 7px; }
}

@media (max-width: 340px) {
  .themes { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta:active, .help a:active { transform: none; }
}
