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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-body);
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

svg {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
ul,
ol,
li,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-h1);
}

h2 {
  font-size: var(--text-h2);
}

h3 {
  font-size: var(--text-h3);
  line-height: var(--leading-snug);
}

h4 {
  font-size: 1.0625rem;
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

strong {
  font-weight: 600;
  color: var(--text);
}

hr {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--border);
}

::selection {
  background: var(--accent-subtle);
  color: var(--accent-text);
}

/* One focus style everywhere: a solid ring in the tone's focus colour
   (blue on light, sky on navy), offset so it never merges with the control. */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ----- layout ----- */
/* In-page anchors (About, Who we connect) land below the sticky header. */
[id] {
  scroll-margin-top: 72px;
}

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

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

.section {
  padding-block: var(--section-y);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-label);
  font-weight: 600;
  line-height: 20px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--accent-text);
}

.lead {
  font-size: var(--text-lead);
  line-height: 1.6;
  color: var(--text-secondary);
  text-wrap: pretty;
}

/* ----- body copy ----- */
/* Supporting paragraph under a heading: full body size, readable measure. */
.body_copy {
  max-width: 62ch;
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--text-secondary);
}
.body_copy + .body_copy {
  margin-top: var(--space-4);
}

/* ----- section heads ----- */
.section_head {
  max-width: var(--prose);
  margin-bottom: var(--space-7);
}
.section_head h2 {
  margin-top: var(--space-4);
}
.section_head .lead {
  margin-top: var(--space-5);
}
.personas .section_head {
  margin-bottom: var(--space-6);
}
.personas .section_head h2 {
  max-width: 26ch;
}
.personas .section_head .lead {
  margin-top: var(--space-4);
}
.outcome .section_head {
  margin-bottom: 0;
}

/* ----- lists -----
 * .checklist: a tick in a soft accent disc, dark body-size text, even rhythm.
 * .checklist.is_compact: the same at small size, for cards.
 */
.checklist {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.checklist li {
  position: relative;
  padding-left: 34px;
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--text);
  /* disc */
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-subtle);
}
.checklist li {
  /* tick */
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 10px;
  height: 10px;
  background: var(--accent-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 6.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 6.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.checklist.is_compact {
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.checklist.is_compact li {
  padding-left: 28px;
  font-size: var(--text-small);
  line-height: 1.55;
}
.checklist.is_compact li::before {
  top: 1px;
  width: 18px;
  height: 18px;
}
.checklist.is_compact li::after {
  left: 5px;
  top: 6px;
  width: 8px;
  height: 8px;
}

/* ----- buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: 600;
  line-height: 22px;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}
.btn:active {
  transform: translateY(1px);
}

.btn_primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn_primary:hover {
  background: var(--accent-hover);
}

.btn_secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn_secondary:hover {
  border-color: var(--accent-text);
  color: var(--accent-text);
}

.btn_ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn_ghost:hover {
  background: var(--surface-sunken);
  color: var(--text);
}

.btn_lg {
  padding: 14px 26px;
  font-size: var(--text-body);
}

/* ----- surfaces ----- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-z1);
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

/* ----- forms ----- */
input,
textarea,
select {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: var(--text-small);
  line-height: 22px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition:
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}
input::placeholder,
textarea::placeholder,
select::placeholder {
  color: var(--text-tertiary);
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--focus);
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

button {
  font-family: var(--font-sans);
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}

/* ----- scroll reveal (see js/site.js) ----- */
[data-reveal="out"] {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
}

[data-reveal="out"][data-reveal-style="fade"] {
  transform: none;
}

[data-reveal="out"][data-reveal-style="left"] {
  transform: translate3d(-32px, 0, 0);
}

[data-reveal="out"][data-reveal-style="right"] {
  transform: translate3d(32px, 0, 0);
}

[data-reveal="out"][data-reveal-style="scale"] {
  transform: scale(0.96);
}

[data-reveal="in"] {
  opacity: 1;
  transform: none;
  transition:
    opacity 700ms var(--ease-out),
    transform 900ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

@media print {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
/* generic
 *
 * Typography, colour and the container now live in inc/_base.scss so both
 * themes follow. What remains here are the shared utilities the older pages
 * still rely on.
 */
.flex {
  display: flex;
}

.button_component {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* Accent word inside a heading — the old pages mark these up with <span>. */
h1 span,
h2 span,
h3 span,
h4 span {
  color: var(--accent-text);
}
