/* Spin Route Book — base: tokens, resets, shared chrome */

:root {
  --bg-top: #eaeff6;
  --bg-bot: #d8e1ed;
  --ink: #262d3a;
  --ink-2: #49546b;
  --amber: #f09e19;
  --amber-pale: #fbe3bb;
  --link: #8f5606;
  --card: #fafbfd;
  --tint: #dde5ef;
  --navy: #2e3a52;
  --line: #262d3a;
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --container: 1120px;
  --radius: 10px;
  --font: "Lora", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: linear-gradient(to bottom, var(--bg-top), var(--bg-bot)) fixed;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 var(--s-4); font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }

.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.prose ul, .prose ol { margin: 0 0 var(--s-4); padding-left: 1.4em; }
.prose li { margin-bottom: var(--s-2); }

/* short centred dotted amber rule between sections */
.rule {
  border: 0;
  border-top: 6px dotted var(--amber);
  width: 104px;
  margin: var(--s-8) auto;
}

/* age notice bar — always visible, non-blocking */
.age-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  color: #f2f5fa;
  font-size: 0.85rem;
  line-height: 1.4;
  padding: 6px 0;
}
.age-bar .container { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.age-bar strong {
  background: var(--amber);
  color: var(--ink);
  border-radius: 999px;
  padding: 1px 10px;
  font-size: 0.8rem;
  white-space: nowrap;
}
.age-bar a { color: #ffd692; }
.age-bar a:hover { color: #fff; }

/* masthead */
.masthead { padding: var(--s-5) 0; }
.masthead .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--ink); }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand b { font-size: 1.3rem; font-weight: 700; letter-spacing: 0.01em; }
.site-nav { display: flex; gap: var(--s-4) var(--s-5); flex-wrap: wrap; align-items: center; }
.site-nav a { font-size: 0.98rem; }
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration-color: var(--amber); }

/* buttons — every button carries a small leading icon */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 10px 20px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.3;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #f8b445; color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--tint); color: var(--ink); }

/* badges — flat solid-fill pills */
.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.pill-amber { background: var(--amber); color: var(--ink); }
.pill-ink   { background: var(--ink);   color: #f2f5fa; }
.pill-tint  { background: var(--tint);  color: var(--ink); }

/* letter grades — colour-blocked squares */
.grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-size: 1.35rem;
  font-weight: 700;
  flex: none;
}
.grade-a { background: var(--amber); color: var(--ink); }
.grade-b { background: var(--ink); color: #f2f5fa; }
.grade-c { background: #b9c6d8; color: var(--ink); }
.grade-d { background: transparent; color: var(--ink); }

/* page header band for inner pages */
.page-head {
  background: url("/assets/img/band-soft.jpg") center / cover no-repeat, var(--bg-top);
  border-bottom: 2px solid var(--ink);
  padding: var(--s-8) 0;
}
.page-head p { max-width: 62ch; font-size: 1.15rem; color: var(--ink-2); margin: 0; }
.page-head .crumbs { font-size: 0.9rem; margin-bottom: var(--s-3); color: var(--ink-2); }

main { padding-bottom: var(--s-8); }

/* footer */
.site-foot { background: var(--navy); color: #cfd9e8; margin-top: var(--s-9); font-size: 0.95rem; }
.site-foot a { color: #ffd692; }
.site-foot a:hover { color: #fff; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s-6);
  padding: var(--s-7) 0;
}
.foot-grid h4 { color: #fff; font-size: 1rem; margin-bottom: var(--s-3); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: var(--s-2); }
.foot-brand { display: flex; align-items: center; gap: var(--s-3); color: #fff; margin-bottom: var(--s-4); }
.foot-brand svg { width: 34px; height: 34px; }
.foot-brand b { font-size: 1.15rem; }
.foot-safety { display: flex; gap: var(--s-4); flex-wrap: wrap; align-items: center; padding-bottom: var(--s-6); }
.foot-safety img { height: 26px; width: auto; background: #fff; border-radius: 6px; padding: 3px 8px; }
.foot-legal {
  border-top: 1px solid #45526d;
  padding: var(--s-4) 0;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}

/* cookie banner (JS-shown; hidden without JS) */
.cookie-note {
  display: none;
  position: fixed;
  left: var(--s-4);
  right: var(--s-4);
  bottom: var(--s-4);
  z-index: 70;
  max-width: 460px;
  margin: 0 auto;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-5);
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(38, 45, 58, 0.25);
}
.cookie-note.is-open { display: block; }
.cookie-note .btn { margin-top: var(--s-3); padding: 7px 16px; font-size: 0.9rem; }

/* small compliance note used under CTAs and offers */
.fineprint { font-size: 0.82rem; color: var(--ink-2); }

@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .masthead .container { justify-content: center; text-align: center; }
  .site-nav { justify-content: center; }
  .rule { margin: var(--s-7) auto; }
}
