/* 12th Didcot Scout Group — public landing page.
   Scouts brand: purple #7413DC, teal #088486 (2024+ guidelines), Nunito Sans
   (self-hosted, OFL). No external assets: nothing loads from a third party. */
@font-face {
  font-family: "Nunito Sans";
  src: url("fonts/nunito-sans-latin.woff2") format("woff2");
  font-weight: 200 1000; font-style: normal; font-display: swap;
}
:root {
  --purple: #7413dc; --purple-ink: #4a0f8f; --teal: #088486;
  --ink: #1f1f1f; --dim: #5b5b5b; --line: #e3e0ea; --wash: #f5f2fb; --paper: #ffffff;
  --squirrels: #e22e12; --beavers: #006ddf; --cubs: #23a950; --scouts: #004851;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--purple); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

/* header */
header.site { background: var(--paper); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: .9rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--purple); }
.brand img { height: 72px; width: auto; display: block; margin: -.6rem 0; }
.brand picture { display: block; }
.brand .word { font-weight: 800; font-size: 1.35rem; line-height: 1.1; letter-spacing: -.01em; }
.brand .word small { display: block; font-size: .78rem; font-weight: 700; color: var(--purple-ink); }
header.site nav { display: flex; gap: 1.3rem; flex-wrap: wrap; }
header.site nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .98rem; }
header.site nav a:hover { color: var(--purple); text-decoration: underline; }

/* hero */
/* hero photo: Scouts Brand Centre image supplied by Craig 14 Sep 2026 (consented
   stock), cropped to drop the baked-in lock-up on the right. Text and tiles sit
   left over a dark wash; the photo shows through on the right. */
.hero { background: linear-gradient(90deg, rgba(58,10,120,.96) 0%, rgba(74,15,143,.9) 38%, rgba(74,15,143,.35) 70%, rgba(40,10,90,.15) 100%), url("img/hero.jpg") right 20% / cover no-repeat; color: #fff; }
@supports (background-image: image-set(url("a.webp") type("image/webp"))) {
  .hero { background-image: linear-gradient(90deg, rgba(58,10,120,.96) 0%, rgba(74,15,143,.9) 38%, rgba(74,15,143,.35) 70%, rgba(40,10,90,.15) 100%), image-set(url("img/hero.webp") type("image/webp"), url("img/hero.jpg") type("image/jpeg")); }
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 34rem); gap: 1.6rem; padding-block: 3.2rem; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.05; margin: 0 0 1rem; font-weight: 900; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.hero p { font-size: 1.15rem; margin: 0 0 1.4rem; max-width: 32rem; }
.hero .cta { display: inline-block; background: #fff; color: var(--purple-ink); font-weight: 800; text-decoration: none; padding: .75rem 1.3rem; border-radius: 6px; }
.hero .cta:hover { background: var(--wash); }
.ages { background: rgba(20,0,50,.55); border-radius: 8px; overflow: hidden; }
.ages a { display: flex; align-items: center; gap: .9rem; padding: .85rem 1.1rem; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.15); }
.ages a:hover { background: rgba(255,255,255,.1); }
.ages .age { min-width: 4.2rem; font-weight: 700; text-align: right; opacity: .9; }
.ages .sec { font-weight: 900; font-size: 1.25rem; letter-spacing: .01em; }
.ages .dot { width: .8rem; height: .8rem; border-radius: 50%; flex: none; }
.ages a.vol { background: #111; }
.ages a.vol .sec { font-size: 1.05rem; }

/* sections */
section.band { padding-block: 3rem; }
section.band.wash { background: var(--wash); }
section.band h2 { font-size: 1.9rem; font-weight: 900; margin: 0 0 .4rem; line-height: 1.15; }
section.band .lede { color: var(--dim); font-size: 1.1rem; margin: 0 0 1.6rem; max-width: 40rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.2rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--purple); border-radius: 8px; padding: 1.1rem 1.2rem; }
.card.squirrels { border-top-color: var(--squirrels); }
.card.beavers { border-top-color: var(--beavers); }
.card.cubs { border-top-color: var(--cubs); }
.card.scouts { border-top-color: var(--scouts); }
.card.explorers { border-top-color: #003982; }
.card h3 { margin: 0 0 .15rem; font-size: 1.25rem; font-weight: 900; }
.card .age { color: var(--dim); font-weight: 700; margin: 0 0 .7rem; }
.card p { margin: .4rem 0; }
.card dl { margin: .7rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; font-size: .95rem; }
.card dt { color: var(--dim); font-weight: 700; }
.card dd { margin: 0; }
.venue { margin-top: .9rem; padding: .55rem 0 .55rem .85rem; border-left: 4px solid var(--line); }
.venue.gwp { border-left-color: var(--teal); }
.venue.lg { border-left-color: var(--purple); }
.venue h4 { margin: 0 0 .2rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.venue p { margin: 0; font-size: .95rem; line-height: 1.5; }
.venue .map { white-space: nowrap; font-weight: 700; }
.venue .map::before { content: "· "; color: var(--dim); font-weight: 400; }
.roles .card { border-top-color: var(--teal); }

.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 2rem; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 1rem 0 0; }
.steps li { position: relative; padding-left: 2.6rem; margin: .8rem 0; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: .05rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .95rem; }
.btn { display: inline-block; background: var(--purple); color: #fff; font-weight: 800; text-decoration: none; padding: .7rem 1.2rem; border-radius: 6px; margin-top: .6rem; }
.btn:hover { background: var(--purple-ink); }
.btn.teal { background: var(--teal); }

.tablewrap { overflow-x: auto; }
table.subs { border-collapse: collapse; margin: .6rem 0 1rem; font-size: 1rem; }
table.subs th, table.subs td { text-align: left; padding: .45rem .9rem .45rem 0; border-bottom: 1px solid var(--line); }
table.subs th { font-weight: 700; }
.contact h3 { font-size: 1.2rem; font-weight: 900; margin: 1.8rem 0 .3rem; }
.contact .big { font-size: 1.35rem; font-weight: 800; word-break: break-all; }
footer { background: #1a1a1a; color: #d9d9d9; padding-block: 2rem; font-size: .9rem; }
footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; }
footer a { color: #fff; }
footer p { margin: .3rem 0; }

@media (max-width: 720px) {
  .hero { background-position: 70% 20%; }
  .hero .wrap { grid-template-columns: 1fr; padding-block: 2.4rem; }
  header.site nav { gap: .9rem; font-size: .92rem; }
}
@media print { header.site nav, .hero .cta, .btn { display: none; } }
