/* Onward C.I.C.U. public site. Colours are the brand tokens of web/src/assets/styles/tokens.css. */

@font-face {
  font-family: 'Onward Glyphs';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-glyphs-wght.woff2') format('woff2-variations');
  unicode-range: U+20A6, U+1E62-1E63;
}
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('fonts/manrope-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('fonts/sora-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Sora Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('fonts/sora-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #252467;
  --navy-deep: #171647;
  --purple: #4d1d5c;
  --gold: #f2c52a;
  --canvas: #f7f8fc;
  --surface: #ffffff;
  --heading: #0a2342;
  --text: #1f2937;
  --muted: #4b5563;
  --border: #dbdfe6;
  --warning: #8a5200;
  --warning-soft: #fff7e6;
  --font-body: 'Onward Glyphs', 'Manrope Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Onward Glyphs', 'Sora Variable', 'Manrope Variable', system-ui, sans-serif;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--navy);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--purple);
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--heading);
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
}
.brand img {
  width: 36px;
  height: 36px;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--navy);
  text-decoration: underline;
}

/* Hero */
.hero {
  background:
    radial-gradient(circle at 85% 15%, rgb(242 197 42 / 18%), transparent 45%),
    linear-gradient(135deg, var(--navy) 0%, var(--purple) 100%);
  color: #fff;
  padding: clamp(56px, 9vw, 112px) 0;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  margin: 0 0 20px;
  max-width: 18ch;
}
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 56ch;
  margin: 0 0 32px;
  color: rgb(255 255 255 / 88%);
}
.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgb(242 197 42 / 18%);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 180px;
  padding: 10px 18px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  border: 1px solid rgb(255 255 255 / 35%);
  text-decoration: none;
  line-height: 1.2;
}
.store-badge small {
  font-size: 0.75rem;
  opacity: 0.85;
}
.store-badge strong {
  font-size: 1.15rem;
}
.store-badge[aria-disabled='true'] {
  cursor: default;
}
.store-note {
  margin-top: 12px;
  font-size: 0.9rem;
  color: rgb(255 255 255 / 75%);
}

/* Sections */
section {
  padding: clamp(48px, 7vw, 88px) 0;
}
.section-head {
  max-width: 62ch;
  margin-bottom: 36px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin: 0 0 12px;
}
.section-head p {
  margin: 0;
  color: var(--muted);
}
.alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.alt .card {
  background: var(--canvas);
}
.card h3 {
  font-size: 1.15rem;
  margin: 14px 0 8px;
}
.card p {
  margin: 0;
  color: var(--muted);
}
.card-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 800;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 20px 20px 72px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 18px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--heading);
  font-family: var(--font-display);
  font-weight: 800;
}
.steps strong {
  display: block;
  color: var(--heading);
}

.contact {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: start;
}
.contact dl {
  margin: 0;
}
.contact dt {
  font-weight: 700;
  color: var(--heading);
}
.contact dd {
  margin: 0 0 14px;
}

/* Legal pages */
.legal-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--purple) 100%);
  color: #fff;
  padding: clamp(40px, 6vw, 72px) 0;
}
.legal-hero h1 {
  color: #fff;
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 4.4vw, 2.8rem);
}
.legal-hero p {
  margin: 0;
  color: rgb(255 255 255 / 85%);
}
.legal {
  max-width: 76ch;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) var(--gutter) 72px;
}
.legal h2 {
  font-size: 1.45rem;
  margin: 2.2em 0 0.6em;
  padding-top: 0.6em;
  border-top: 1px solid var(--border);
}
.legal h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.legal h3 {
  font-size: 1.12rem;
  margin: 1.6em 0 0.4em;
}
.legal ul,
.legal ol {
  padding-left: 1.3em;
}
.legal li {
  margin: 0.3em 0;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}
.legal th,
.legal td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.legal th {
  background: var(--surface);
}
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 8px;
}
.toc h2 {
  font-size: 1rem;
  margin: 0 0 8px;
  border: 0;
  padding: 0;
}
.toc ol {
  margin: 0;
  columns: 2 220px;
}
.notice {
  border: 1px solid var(--warning);
  background: var(--warning-soft);
  color: var(--text);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 24px;
}
.notice strong {
  color: var(--warning);
}
.placeholder {
  background: var(--warning-soft);
  color: var(--warning);
  font-weight: 700;
  border-radius: 4px;
  padding: 0 4px;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgb(255 255 255 / 80%);
  padding: 40px 0;
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}
.site-footer a {
  color: #fff;
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer p {
  margin: 0;
}
