/* Farnborough Sands — styled to follow the national Sands site (sands.org.uk).
   Layout: centred 1160px column; full-width colour bands (purple / orange) as on the national site;
   promo blocks split text panel + image; pill buttons; arrow-circle link rows. Single light theme by design. */
:root {
  --purple: #4d036e;        /* Sands primary purple: headings, nav, links */
  --purple-deep: #3c0257;   /* promo panels, footer */
  --orange: #ff8625;        /* Sands orange: primary buttons, highlight panel */
  --peach: #ffb56b;         /* secondary button (Donate) */
  --lilac: #babfff;         /* tertiary button (Contact) */
  --pink: #ffd9e8;          /* hover / active wash */
  --cream: #fff2e3;         /* soft section background */
  --ink: #323232;           /* body text */
  --muted: #5e5266;         /* captions, dates (purple-biased grey) */
  --line: #eadff0;          /* hairlines */
  --white: #ffffff;
  --font: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --step--1: 0.9rem; --step-0: 1.125rem; --step-1: 1.3rem; --step-2: 1.6rem; --step-3: 2.1rem; --step-4: 2.7rem;
  --wrap: 1160px;
  --radius-pill: 999px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: var(--step-0); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
h1, h2, h3 { color: var(--purple); font-weight: 600; line-height: 1.2; text-wrap: balance; margin: 0 0 0.5em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.prose { max-width: 68ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 16px; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.utility { display: flex; justify-content: flex-end; gap: 4px; padding-top: 18px; flex-wrap: wrap; }
.utility a { text-decoration: none; font-weight: 500; color: var(--purple); padding: 6px 18px; font-size: var(--step--1); }
.utility .u-help { background: var(--pink); }
.utility .u-contact { background: var(--lilac); }
.utility .u-donate { background: var(--peach); }
.utility a:hover { filter: brightness(0.95); }
.masthead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-block: 18px 22px; flex-wrap: wrap; }
.brand { text-decoration: none; display: grid; gap: 2px; }
.brand-name { font-size: 2.15rem; font-weight: 700; color: var(--purple); letter-spacing: -0.01em; line-height: 1; }
.brand-name span { color: var(--orange); }
.brand-tag { font-size: 0.95rem; font-weight: 500; color: var(--purple); line-height: 1.25; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 26px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 1.05rem; color: var(--purple); padding-block: 4px; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--peach); }
.nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.nav-toggle { display: none; font: inherit; font-weight: 600; color: var(--purple); background: var(--white); border: 2px solid var(--purple); border-radius: var(--radius-pill); padding: 6px 20px; cursor: pointer; }
@media (max-width: 860px) {
  .utility { justify-content: flex-start; }
  .masthead { align-items: center; }
  .nav { width: 100%; }
  .js .nav-toggle { display: inline-block; }
  .js .nav:not(.open) ul { display: none; }
  .nav ul { flex-direction: column; gap: 0; margin-top: 12px; border-top: 1px solid var(--line); }
  .nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--orange); filter: brightness(0.85); }
}

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 600; border-radius: var(--radius-pill); padding: 10px 44px; font-size: 1.05rem; line-height: 1.3; }
.btn-orange { background: var(--orange); color: var(--purple); }
.btn-orange:hover { background: var(--peach); }
.btn-outline { border: 2px solid currentColor; color: var(--white); padding: 12px 28px; text-align: center; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }

/* Promo block (text panel + image) */
.promo { display: grid; grid-template-columns: 1fr 1fr; margin-top: 0; }
.promo-text { background: var(--purple-deep); color: var(--white); padding: 34px 36px 38px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.promo-text h1, .promo-text h2 { color: var(--white); font-size: var(--step-3); }
.promo-text p { font-size: 1.15rem; }
.promo-img { min-height: 320px; background: var(--cream); }
.promo-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .promo { grid-template-columns: 1fr; } .promo-img { min-height: 220px; max-height: 300px; overflow: hidden; } .promo-text { padding: 26px 22px 30px; } }

/* Orange arrow-link panel */
.signposts { display: grid; grid-template-columns: 1fr 1fr; }
.signposts .photo { min-width: 0; }
.signposts .photo img { width: 100%; height: 100%; object-fit: cover; }
.signpost-list { background: var(--peach); min-width: 0; }
.signpost { display: flex; gap: 20px; align-items: center; text-decoration: none; color: var(--purple); padding: 26px 30px; }
.signpost:first-child { background: var(--orange); }
.signpost:hover { background: var(--pink); }
.signpost .circle { flex: none; width: 50px; height: 50px; border: 2px solid var(--purple); border-radius: 50%; display: grid; place-items: center; }
.signpost .circle svg { width: 18px; height: 18px; fill: none; stroke: var(--purple); stroke-width: 2; }
.signpost strong { display: block; font-size: var(--step-1); font-weight: 600; line-height: 1.25; }
.signpost span { font-size: 1rem; color: var(--ink); }
@media (max-width: 760px) { .signposts { grid-template-columns: 1fr; } .signposts .photo { max-height: 240px; overflow: hidden; } .signpost { padding: 20px 18px; } }

/* Purple helpline band */
.band { background: var(--purple-deep); color: var(--white); }
.band .wrap { padding-block: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.band .btn-outline { display: flex; flex-direction: column; justify-content: center; min-height: 72px; font-weight: 500; }
.band .btn-outline b { font-weight: 600; font-size: 1.2rem; }
@media (max-width: 760px) { .band .wrap { grid-template-columns: 1fr; } }

/* Sections */
.section { padding-block: 56px; }
.section.cream { background: var(--cream); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }
.aim { border-left: 4px solid var(--orange); padding: 6px 0 6px 22px; font-size: var(--step-1); color: var(--purple); font-weight: 500; line-height: 1.45; margin: 0 0 1.2em; }

/* Side panel (contact box) */
.panel { background: var(--cream); padding: 26px 26px 22px; }
.panel h3 { margin-bottom: 0.4em; }
.panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.panel li { font-size: 1rem; }
.panel .label { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.email { word-break: break-word; font-weight: 500; }

/* Cards (news / memories) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.card .thumb { aspect-ratio: 16 / 10; background: var(--pink); overflow: hidden; max-width: 100%; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .thumb img { transform: scale(1.03); }
.card .thumb.plain { display: grid; place-items: center; background: var(--cream); }
.card .thumb.plain svg { width: 54px; height: 54px; stroke: var(--orange); fill: none; stroke-width: 1.6; }
.card h3 { margin: 16px 0 6px; font-size: var(--step-1); }
.card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card p { font-size: 1rem; margin: 0; }
.meta { font-size: 0.9rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Lists of posts */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; padding: 22px 0; text-decoration: none; color: var(--ink); }
.post-list a:hover h3 { text-decoration: underline; }
.post-list h3 { margin: 0 0 4px; }
.post-list p { margin: 0; font-size: 1rem; }
@media (max-width: 600px) { .post-list a { grid-template-columns: 1fr; gap: 4px; } }

/* Page header (inner pages) */
.page-head { background: var(--purple-deep); color: var(--white); }
.page-head .wrap { padding-block: 40px 44px; }
.page-head h1 { color: var(--white); margin: 0; font-size: var(--step-4); }
.page-head p { margin: 10px 0 0; font-size: 1.15rem; max-width: 60ch; }
.crumbs { font-size: 0.9rem; margin-bottom: 10px; }
.crumbs a { color: var(--peach); }
@media (max-width: 600px) { h1, .page-head h1 { font-size: 2.1rem; } h2 { font-size: 1.7rem; } }

/* Article */
.article { padding-block: 48px 64px; }
.article .prose p { font-size: 1.12rem; }
.article figure { margin: 28px 0; }
.article figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
blockquote { margin: 1.4em 0; padding: 18px 24px; background: var(--cream); color: var(--purple); font-size: 1.2rem; line-height: 1.5; }
.back { display: inline-block; margin-top: 18px; font-weight: 500; }

/* Team */
.team { display: grid; gap: 0; border-top: 1px solid var(--line); }
.member { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; padding-block: 34px; border-bottom: 1px solid var(--line); }
.member img { width: 180px; height: 180px; object-fit: cover; object-position: top; border-radius: 50%; }
.member h2 { font-size: var(--step-2); margin-bottom: 2px; }
.member .role { color: var(--orange); font-weight: 600; margin-bottom: 12px; display: block; filter: brightness(0.82); }
.member .quote { border-left: 3px solid var(--peach); padding-left: 18px; color: var(--purple); }
@media (max-width: 640px) { .member { grid-template-columns: 1fr; gap: 16px; } .member img { width: 128px; height: 128px; } }

/* Downloads / forms */
.downloads { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 24px; }
.dl { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; border: 2px solid var(--purple); color: var(--purple); border-radius: var(--radius-pill); padding: 9px 22px; font-weight: 600; }
.dl:hover { background: var(--pink); }
.dl small { font-weight: 400; color: var(--muted); }
form.contact { display: grid; gap: 18px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; color: var(--purple); font-size: 1rem; }
.field .hint { font-size: 0.9rem; color: var(--muted); }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1.5px solid #b9a8c4; border-radius: 6px; padding: 11px 13px; width: 100%; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--peach); border-color: var(--purple); }
button.btn { border: 0; cursor: pointer; font-family: inherit; }
.notice { background: var(--cream); border-left: 4px solid var(--orange); padding: 16px 20px; font-size: 1rem; }
.form-status { font-weight: 500; color: var(--purple); }

/* Footer */
.site-footer { background: var(--purple-deep); color: var(--white); margin-top: 0; }
.site-footer .wrap { padding-block: 44px 30px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.site-footer a { color: var(--white); }
.site-footer h2 { color: var(--peach); font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 1rem; }
.site-footer p { font-size: 1rem; }
.footer-base { border-top: 1px solid rgba(255,255,255,0.18); }
.footer-base .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 16px 22px; font-size: 0.9rem; grid-template-columns: none; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; gap: 26px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 480px) {
  .utility { gap: 4px; padding-top: 12px; }
  .utility a { padding: 5px 11px; font-size: 0.85rem; }
  .brand-name { font-size: 1.8rem; }
  .brand-tag { font-size: 0.85rem; }
  .page-head .wrap { padding-block: 28px 32px; }
}

/* Brand lockup: national Sands logo + group name */
.brand { display: grid; gap: 4px; justify-items: start; }
.brand-logo { width: 230px; height: auto; }
.brand-group { font-size: 1.35rem; font-weight: 600; color: var(--purple); letter-spacing: 0.01em; line-height: 1; padding-left: 4px; }
@media (max-width: 480px) { .brand-logo { width: 170px; } .brand-group { font-size: 1.1rem; } }

/* Radio groups (contact form) */
fieldset.choice { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
fieldset.choice legend { font-weight: 600; color: var(--purple); font-size: 1rem; margin-bottom: 8px; padding: 0; }
fieldset.choice > label { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; cursor: pointer; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 8px; }
fieldset.choice > label:hover { background: var(--cream); }
fieldset.choice > label:has(input:checked) { border-color: var(--purple); background: var(--pink); }
fieldset.choice input[type="radio"] { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--purple); }
fieldset.choice .other { padding-left: 4px; }
.field .hint { font-weight: 400; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
