/* difable.uk: "Access starts here", a campaign by Difability.
   Brand tokens copied from the main site (app/globals.css). No build step. */

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: optional; /* no late swap, so no layout shift on slow phones */
}

:root {
  --midnight: #001b52;
  --electric: #0057ff;
  --electric-deep: #0046d1;
  --cyan: #31dfff;
  --silver: #e9eff6;
  --ground: #f5f8fc;
  --white: #ffffff;
  --ink: #001b52;
  --ink-lead: #2b3a60;
  --ink-muted: #4a5878;
  --on-dark-muted: #b8c4de;
  --link-on-dark: #7fa8ff;
  --line: #c9d6ea;
  --focus: #0057ff;
  --heading: "Manrope", ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --body: "Source Sans 3", ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --measure: 38rem;
  --wide: 76rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink-lead);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1rem; }

a { color: var(--electric-deep); text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
a:hover { text-decoration-thickness: 0.14em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible { outline-color: var(--cyan); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.85rem 1.25rem;
  background: var(--midnight);
  color: var(--white);
  font-weight: 600;
  border-radius: 0.5rem;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }

/* Header: the Difability wordmark, the campaign line and the way to the main site. */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  min-height: 4.5rem;
  padding-block: 0.75rem;
}
.brand { display: flex; align-items: center; gap: 0.9rem; color: var(--ink); text-decoration: none; }
.brand img { width: 8.5rem; height: auto; }
@media (max-width: 40em) { .brand img { width: 7.5rem; } }
.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  font-family: var(--heading);
  font-weight: 600;
  color: var(--ink);
}

/* Buttons: the main site's primary button. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.75rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--electric);
  color: var(--white);
  font-family: var(--heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}
.button:hover { background: var(--electric-deep); }
.button svg { width: 1.1em; height: 1.1em; flex: none; }
.on-dark .button:focus-visible { outline-color: var(--cyan); }

/* Hero: navy text panel and photograph, as on difability.uk. */
.hero { padding-block: 0; background: var(--midnight); color: var(--on-dark-muted); }
.hero-grid { display: grid; }
.hero-text { padding: clamp(2.5rem, 6vw, 6rem) var(--gutter) clamp(2.5rem, 5vw, 5rem); }
.eyebrow {
  margin-bottom: 1.25rem;
  color: var(--cyan);
  font-family: var(--heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(3rem, 1.6rem + 6vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero h1 .dot { color: var(--cyan); }
.hero .lead { max-width: 34rem; margin-top: 1.5rem; color: var(--white); font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.hero-actions a:not(.button) { color: var(--white); font-weight: 600; min-height: 3rem; display: inline-flex; align-items: center; }
.hero-note { margin-top: 1.25rem; font-size: 1rem; }
.hero-note + .hero-note { margin-top: 0.5rem; }
.hero-note a { color: var(--white); font-weight: 600; }
.hero-figure { margin: 0; position: relative; min-height: 18rem; }
.hero-figure picture, .hero-figure img { width: 100%; height: 100%; }
.hero-figure img { object-fit: cover; object-position: 50% 50%; aspect-ratio: 3 / 2; }
.site-line { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 0.18); font-size: 1rem; }
.site-line a { color: var(--white); font-weight: 600; }

@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); max-width: 120rem; margin-inline: auto; }
  .hero-text { padding-left: max(var(--gutter), calc((100vw - var(--wide)) / 2 + var(--gutter))); align-self: center; }
  .hero-figure img { aspect-ratio: auto; position: absolute; inset: 0; }
}

/* Sections */
section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-head { max-width: 44rem; }
.section-head p { margin-top: 1.25rem; font-size: 1.2rem; }
.kicker {
  margin-bottom: 1rem;
  color: var(--electric-deep);
  font-family: var(--heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ground { background: var(--ground); }

/* Where access stops: a ruled, numbered list beside one photograph. */
.barriers-grid { display: grid; gap: 3rem; margin-top: 3rem; }
.barriers { list-style: none; margin: 0; padding: 0; counter-reset: barrier; }
.barriers li {
  counter-increment: barrier;
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}
.barriers li:last-child { border-bottom: 1px solid var(--line); }
.barriers li::before {
  content: counter(barrier, decimal-leading-zero);
  grid-row: span 2;
  color: var(--electric);
  font-family: var(--heading);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}
.barriers p { margin-top: 0.4rem; }
.practices { margin-top: 2.5rem; max-width: 52rem; }
.practices-more { margin-top: 2rem; max-width: 44rem; font-size: 1.2rem; }
.figure { margin: 0; }
.figure img { width: 100%; border-radius: 0.75rem; }
.figure figcaption { margin-top: 0.75rem; color: var(--ink-muted); font-size: 0.95rem; }
.source-note { margin-top: 2rem; max-width: var(--measure); color: var(--ink-muted); font-size: 0.95rem; }

@media (min-width: 60rem) {
  .barriers-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 4rem; align-items: start; }
}

/* The access check. Works as a plain list without JavaScript. */
.check-grid { display: grid; gap: 2.5rem; margin-top: 3rem; }
.check-intro p { max-width: var(--measure); }
.check-intro h2 { margin-bottom: 1.25rem; }
.check-form fieldset { margin: 0 0 2.25rem; padding: 0; border: 0; }
.check-form legend {
  width: 100%;
  margin-bottom: 0.25rem;
  padding: 0;
  color: var(--ink);
  font-family: var(--heading);
  font-size: 1.3rem;
  font-weight: 700;
}
.check-item {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.25rem 0.85rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.check-item label { color: var(--ink); font-weight: 600; cursor: pointer; }
.check-item input {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.15rem 0 0;
  accent-color: var(--electric);
  cursor: pointer;
}
.check-item .why { grid-column: 2; margin: 0; color: var(--ink-muted); font-size: 1rem; }
.check-item .why a { white-space: nowrap; }
.check-status {
  margin-top: 0.5rem;
  padding: 1.5rem;
  border-left: 4px solid var(--electric);
  background: var(--white);
}
.check-status[hidden] { display: none; }
.check-status p { color: var(--ink); }
.check-status .count { font-family: var(--heading); font-size: 1.3rem; font-weight: 700; }
.check-status .actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 1rem; }
.reset {
  min-height: 3rem;
  padding: 0.6rem 1.25rem;
  border: 2px solid var(--midnight);
  border-radius: 999px;
  background: transparent;
  color: var(--midnight);
  font: 600 1rem var(--heading);
  cursor: pointer;
}
.reset:hover { background: var(--silver); }
.disclaimer { margin-top: 1.5rem; color: var(--ink-muted); font-size: 0.95rem; }

@media (min-width: 60rem) {
  .check-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4.5rem; align-items: start; }
}

@media (min-width: 60rem) and (min-height: 50em) {
  .check-intro, .barriers-grid .figure { position: sticky; top: 2rem; }
}

/* Difability's role: three steps on one line, then the real join page. */
.role-grid { display: grid; gap: 3rem; margin-top: 3rem; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { padding: 1.5rem 0; border-top: 2px solid var(--midnight); }
.steps li + li { margin-top: 1rem; }
.steps .label { display: block; margin-bottom: 0.5rem; color: var(--electric-deep); font: 700 0.95rem var(--heading); letter-spacing: 0.04em; text-transform: uppercase; }
.steps p { margin-top: 0.5rem; }
.screen { margin: 0; justify-self: center; max-width: 22rem; }
.screen img { border: 1px solid var(--line); border-radius: 1.25rem; box-shadow: 0 1.5rem 3rem -1.5rem rgb(0 27 82 / 0.35); }
.screen figcaption { margin-top: 1rem; color: var(--ink-muted); font-size: 0.95rem; }

@media (min-width: 60rem) {
  .role-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 5rem; align-items: start; }
}

/* Joining: facts and the common questions. */
.join-grid { display: grid; gap: 3rem; margin-top: 3rem; }
.questions details { border-bottom: 1px solid var(--line); }
.questions details:first-of-type { border-top: 1px solid var(--line); }
.questions summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  min-height: 3rem;
  color: var(--ink);
  font: 600 1.15rem var(--heading);
  cursor: pointer;
  list-style: none;
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; flex: none; color: var(--electric); font-size: 1.5rem; line-height: 1; }
.questions details[open] summary::after { content: "\2212"; }
.questions details > div { padding-bottom: 1.25rem; max-width: var(--measure); }

@media (min-width: 60rem) {
  .join-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 5rem; }
}

/* Closing */
.closing { background: var(--midnight); color: var(--on-dark-muted); }
.closing h2 { color: var(--white); font-size: clamp(2.5rem, 1.5rem + 4.5vw, 4.75rem); letter-spacing: -0.035em; }
.closing p { margin-top: 1.25rem; max-width: 34rem; color: var(--white); font-size: 1.2rem; }
.closing .button { margin-top: 2rem; }
.closing .eyebrow { margin-top: 0; color: var(--cyan); font-size: 1.05rem; }
.closing .site-line { max-width: 34rem; }

/* Footer */
.site-footer { padding-block: 3rem; background: var(--ground); color: var(--ink-muted); font-size: 1rem; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 3rem; font-weight: 600; }
.site-footer p { max-width: 48rem; }
.credits { margin-top: 1.5rem; }
.credits summary { width: fit-content; padding-block: 0.75rem; color: var(--electric-deep); font-weight: 600; cursor: pointer; }
.credits ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.credits li + li { margin-top: 0.5rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (forced-colors: active) {
  .button, .reset { border-color: ButtonText; }
  .barriers li::before { color: CanvasText; }
}

/* 404 page */
.page-title { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem); }
.section-head .page-action { margin-block: 2rem 1rem; }
.page-action { display: flex; flex-wrap: wrap; gap: .75rem; }
