/* Quit Betting website. Colours and type follow docs/BRAND.md. No gradients, shadows or emoji. */
@font-face { font-family: 'Bungee'; src: url('fonts/Bungee_400Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('fonts/Archivo_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('fonts/Archivo_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --ink: #111111;
  --limewash: #FAF8F2;
  --white: #FFFFFF;
  --blue: #1D4FA0;
  --yellow: #F2B705;
  --green: #138A4B;
  --red: #C8262E;
  --muted: #555555;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--limewash);
  color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
a { color: var(--blue); font-weight: 700; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.stripe { display: flex; height: 10px; border-bottom: 3px solid var(--ink); }
.stripe span { flex: 1; }
.stripe span:nth-child(4n+1) { background: var(--blue); }
.stripe span:nth-child(4n+2) { background: var(--yellow); }
.stripe span:nth-child(4n+3) { background: var(--green); }
.stripe span:nth-child(4n+4) { background: var(--red); }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

header.site { padding: 16px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: auto; }
.brand span { font-family: 'Bungee', sans-serif; font-size: 18px; font-weight: 400; }
nav.site { display: flex; gap: 14px; flex-wrap: wrap; font-size: 15px; }
nav.site a { color: var(--ink); }

h1, h2, h3 { font-family: 'Bungee', sans-serif; font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(32px, 7vw, 52px); margin: 0 0 12px; }
h2 { font-size: clamp(22px, 4.5vw, 30px); margin: 40px 0 12px; }
h3 { font-size: 20px; margin: 24px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.hero { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 24px 0 8px; }
.hero img { width: 140px; height: auto; }
.lead { font-size: 20px; }

.card { background: var(--white); border: 4px solid var(--ink); border-radius: 4px; padding: 18px; margin: 16px 0; }
.card.blue { background: var(--blue); color: var(--white); }
.card.blue a { color: var(--white); }
.card.yellow { background: var(--yellow); }
.card.red { background: var(--red); color: var(--white); }
.card.red a { color: var(--white); }
.card h3:first-child, .card h2:first-child { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.grid .card { margin: 0; }

.button {
  display: inline-block; min-height: 48px; padding: 12px 20px;
  border: 4px solid var(--ink); border-radius: 4px;
  background: var(--yellow); color: var(--ink);
  font-family: 'Bungee', sans-serif; font-weight: 400; font-size: 16px; text-decoration: none;
}
.button.secondary { background: var(--white); }

.helpline { font-size: 18px; }
.helpline strong { font-family: 'Bungee', sans-serif; font-weight: 400; font-size: 22px; white-space: nowrap; }

/* Marks every place still to fill in. Search the folder for class="todo" to find them all. */
.todo { background: #FFE3E3; color: #8A1016; border: 2px dashed var(--red); padding: 0 4px; font-weight: 700; }

.legal h2 { font-size: 22px; margin-top: 32px; }
.legal li { margin: 6px 0; }

footer.site { margin-top: 48px; border-top: 3px solid var(--ink); background: var(--white); padding: 24px 0; font-size: 14px; }
footer.site p { margin: 6px 0; }

@media (max-width: 560px) {
  .hero { grid-template-columns: 1fr; }
  .hero img { width: 96px; order: -1; }
}
