/* Source guide: base.css
 * Shared foundations.
 * Load order: base.css, components.css, page stylesheet, refresh.css.
 * Later rules intentionally refine earlier layouts; preserve cascade order.
 */

/* Local fonts keep typography consistent without contacting a third party. */
@font-face {
  font-family: Poppins;
  src: url("fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

/* Brand values from the September 2026 web color system. */
:root {
  --navy: #262d60;
  --navy-deep: #101243;
  --teal: #48b9b0;
  --teal-ink: #007b74;
  --paper: #fff;
  --tint: #f2f8ff;
  --mint: #edf6f3;
  --beige: #f6f1e8;
  --line: #e4ebf3;
  --muted: #565e6b;
  --error: #b3261e;
  --success: #146c43;
  --page-width: 1240px;
  --space-section: 100px;
  --radius: 24px;
}
/* Group: Reset and document defaults. */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: Poppins, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.menu-open {
  overflow: hidden;
}
img,
svg {
  max-width: 100%;
  display: block;
}
img {
  height: auto;
}
/* Group: Native controls inherit site typography. */
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
a:hover {
  color: var(--teal-ink);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--teal-ink);
  outline-offset: 4px;
}
/* Group: Heading hierarchy and readable body copy. */
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-weight: 500;
  line-height: 1.15;
}
h1 {
  font-size: clamp(42px, 4.55vw, 65px);
  letter-spacing: -2.7px;
}
h2 {
  font-size: clamp(32px, 3.2vw, 46px);
  letter-spacing: -1.6px;
}
h3 {
  font-size: 24px;
  letter-spacing: -0.6px;
}
p + p {
  margin-top: 18px;
}
ul,
ol {
  padding-left: 22px;
}
li + li {
  margin-top: 8px;
}
::selection {
  background: #bce5df;
  color: var(--navy);
}
[hidden] {
  display: none !important;
}
/* Group: Page width, section backgrounds, and editorial text. */
.container {
  width: min(var(--page-width), calc(100% - 96px));
  margin-inline: auto;
}
.section {
  padding-block: var(--space-section);
}
.section-tint {
  background: var(--tint);
}
.section-beige {
  background: var(--beige);
}
.section-mint {
  background: var(--mint);
}

.lead {
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 550px;
  margin-top: 24px;
}
.small {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 50px;
  margin-bottom: 50px;
}
.section-heading h2 {
  max-width: 620px;
}
.section-heading > p {
  max-width: 360px;
  color: var(--muted);
}
.prose {
  max-width: 760px;
}
.prose h2 {
  font-size: 28px;
  margin: 38px 0 16px;
}
.prose p,
.prose li {
  color: var(--muted);
}
/* Group: Screen-reader-only text remains accessible. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Viewport (max-width: 1000px): component adjustments at this breakpoint. */
@media (max-width: 1000px) {
  .container {
    width: calc(100% - 56px);
  }
  :root {
    --space-section: 76px;
  }
  h1 {
    letter-spacing: -2px;
  }
  .section-heading {
    gap: 28px;
  }
}
/* Viewport (max-width: 700px): component adjustments at this breakpoint. */
@media (max-width: 700px) {
  .container {
    width: calc(100% - 40px);
  }
  :root {
    --space-section: 60px;
  }
  h1 {
    font-size: 43px;
    letter-spacing: -1.9px;
  }
  h2 {
    font-size: 33px;
    letter-spacing: -1px;
  }
  .lead {
    font-size: 16px;
  }
  .section-heading {
    display: block;
    margin-bottom: 32px;
  }
  .section-heading > p {
    margin-top: 20px;
  }
}
/* Accessibility: honor the visitor's reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Small editorial spacing utilities used across content blocks. */
/* Group: Progressive reveal; reduced-motion rules below keep content visible. */
.scroll-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}
.scroll-reveal.is-visible,
.scroll-reveal:focus-within {
  opacity: 1;
  transform: none;
}
body:not(.page-index) :is(h1, h2, h3, h4, h5, h6) {
  text-align: left !important;
}
/* Accessibility: honor the visitor's reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}
/* Print: remove nonessential screen-only decoration. */
@media print {
  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}
.mt-18 {
  margin-top: 18px;
}
.mt-20 {
  margin-top: 20px;
}
.mt-25 {
  margin-top: 25px;
}
.mt-35 {
  margin-top: 35px;
}

/* Long headings must remain inside compact mobile layouts. */
h1,
h2,
h3,
h4 {
  overflow-wrap: anywhere;
}

/* Inset colour panels share the same outer alignment as the editorial content. */
/* Group: Inset panels aligned to the shared content container. */
.section-panel {
  width: min(var(--page-width), calc(100% - 96px));
  margin: 32px auto;
  padding: 64px 48px;
  border-radius: var(--radius);
}
.section-panel > .container {
  width: 100%;
}
/* Viewport (max-width: 1000px): component adjustments at this breakpoint. */
@media (max-width: 1000px) {
  .section-panel {
    width: calc(100% - 56px);
    padding: 48px 32px;
  }
}

/* Fluid text keeps compact screens readable without splitting ordinary words. */
/* Viewport (max-width: 700px): component adjustments at this breakpoint. */
@media (max-width: 700px) {
  h1 {
    font-size: clamp(32px, 8.5vw, 43px);
  }
  h2 {
    font-size: clamp(27px, 7vw, 33px);
  }
}
/* Viewport (max-width: 700px): component adjustments at this breakpoint. */
@media (max-width: 700px) {
  .section-panel {
    width: calc(100% - 40px);
    padding: 36px clamp(16px, 4vw, 22px);
    margin-block: 24px;
    border-radius: 18px;
  }
}
