/* ProPerX Alliance brand site. Colors and typefaces are the ones in the brand
   guidelines v1.0 / 2026; nothing here invents a new one. No JavaScript, and no
   inline styles (the Content-Security-Policy in staticwebapp.config.json forbids both). */

:root {
  color-scheme: light;
  --navy: #163C6D;
  --green: #5F912E;
  --gold: #C5A42B;
  --yellow: #F5C02E;
  --blue: #1468B1;
  --sky: #199FF2;
  --lime: #B5D839;
  --silver: #C0C0C0;
  --ink: #0E0F12;
  --slate: #5B6472;
  --paper: #F6F7F9;
  --tint: #E8F1FA;
  --white: #FFFFFF;
  --rule: #D5D9E0;
  --head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --body: "Geist", "Segoe UI", Arial, sans-serif;
  --mono: "Geist Mono", Consolas, "Courier New", monospace;
  --figs: "Bricolage Grotesque", "Montserrat", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
a:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 2px; }

code { font: 400 0.875rem/1 var(--mono); color: var(--slate); }

.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }

.skip { position: absolute; left: -999rem; top: 0; background: var(--navy); color: var(--white); padding: 0.75rem 1rem; }
.skip:focus { left: 0; z-index: 10; }

.meta { font: 400 0.875rem/1.4 var(--mono); color: var(--slate); letter-spacing: 0.02em; }

.num { font: 600 1em/1 var(--figs); color: var(--gold); }

/* ---- Hero: blue-tint page with the green arc from the guidelines cover ---- */

.hero { position: relative; overflow: hidden; background: var(--tint); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; top: 50%; }
.hero::before {
  width: 74rem; height: 74rem; right: -52rem; margin-top: -37rem;
  background: linear-gradient(200deg, var(--lime) 0%, var(--green) 55%, #438233 100%);
}
.hero::after {
  width: 78rem; height: 78rem; right: -53rem; margin-top: -39rem;
  border: 2px solid #438233;
}
.hero-inner { position: relative; z-index: 1; padding-top: 5.5rem; padding-bottom: 5.5rem; }
.hero-logo { display: block; width: min(333px, 78%); margin-left: -3px; }
.hero h1 { font: 700 clamp(2.75rem, 8vw, 5rem)/1.02 var(--head); color: var(--navy); margin: 2rem 0 1.75rem; max-width: 8ch; }

/* ---- Contents: the navy panel ---- */

.contents { background: var(--navy); }
.contents ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); column-gap: 2.5rem; padding: 1rem 0 1.25rem; }
.contents a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.8rem 0; color: var(--white); text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}
.contents a:hover { color: var(--white); border-bottom-color: var(--gold); }

/* ---- Sections ---- */

.section { padding-top: 4.5rem; padding-bottom: 1rem; }
.section:last-child { padding-bottom: 5rem; }

h2 {
  font: 700 clamp(1.5rem, 3.4vw, 2rem)/1.2 var(--head); color: var(--navy);
  display: flex; align-items: baseline; gap: 0.85rem;
  padding-bottom: 1rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--rule);
}
h2 .num { font-size: 0.8em; }
h3 { font: 600 1.125rem/1.3 var(--head); color: var(--navy); }
h3.sub { margin: 2.5rem 0 0.9rem; }
h3.group, h3.label { font: 400 0.875rem/1.4 var(--mono); color: var(--slate); letter-spacing: 0.02em; margin: 2rem 0 0.75rem; }
h3.group:first-of-type { margin-top: 0; }

.lead { font-size: 1.25rem; line-height: 1.55; max-width: 44rem; }

.facts { margin-top: 2rem; max-width: 44rem; }
.facts > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.7rem 0; border-top: 1px solid var(--rule); }
.facts dt { color: var(--slate); }

.cards { display: grid; gap: 1.25rem; margin-top: 2rem; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--green); border-radius: 6px; padding: 1.25rem 1.25rem 1.4rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--slate); }

/* Logo artwork sits on a plate whose colour is the background it was drawn on,
   so each image blends into its plate. The artwork is never restyled here. */
img { max-width: 100%; height: auto; }
.plate { display: flex; align-items: center; justify-content: center; background: var(--white); }
.plate img { display: block; }

.primary { margin-top: 2rem; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.primary .plate { padding: 3.5rem 1.5rem; }
.primary figcaption { background: var(--paper); border-top: 1px solid var(--rule); padding: 0.85rem 1.25rem; color: var(--slate); }

.card .plate { height: 11rem; margin: -1.25rem -1.25rem 1.25rem; padding: 1rem; border-bottom: 1px solid var(--rule); border-radius: 3px 3px 0 0; }

.reversed { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.reversed li { border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: var(--paper); }
.reversed li.wide { grid-column: span 2; }
.reversed .plate { height: 9.5rem; padding: 1rem; }
.reversed p { font: 400 0.875rem/1.4 var(--mono); color: var(--slate); padding: 0.7rem 1rem; border-top: 1px solid var(--rule); }
.bg-white { background: #FFFFFF; }
.bg-navy { background: #163C6D; }
.bg-green { background: #5F912E; }
.bg-forest { background: #438233; }
.bg-black { background: #0E0F12; }

.rules li { padding: 0.65rem 0 0.65rem 1.5rem; border-top: 1px solid var(--rule); position: relative; max-width: 44rem; }
.rules li::before { content: ""; position: absolute; left: 0; top: 1.2rem; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--green); }

.donts { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.75rem; }
.donts li {
  font: 400 0.9375rem/1.4 var(--mono); background: var(--paper); border: 1px solid var(--rule); border-radius: 6px;
  padding: 0.85rem 1rem 0.85rem 2.75rem; position: relative;
}
.donts li::before {
  content: "×"; position: absolute; left: 0.85rem; top: 50%; margin-top: -0.7rem;
  width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #C62828; color: var(--white);
  font: 700 1rem/1.4rem var(--body); text-align: center;
}

/* ---- Color ---- */

.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: 1rem; }
.swatches.core { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.swatches li { border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: var(--white); }
.chip { display: flex; align-items: flex-end; height: 2.75rem; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--rule); }
.core .chip { height: 5.5rem; }
.tag { font: 400 0.8125rem/1 var(--mono); color: var(--white); background: rgba(255, 255, 255, 0.2); padding: 0.35rem 0.6rem; border-radius: 999px; }
.c-gold .tag { color: var(--ink); background: rgba(255, 255, 255, 0.35); }
.sw-body { padding: 0.85rem 1rem 1rem; }
.sw-name { font-weight: 500; color: var(--navy); display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.sw-body p + p { color: var(--slate); font-size: 0.9375rem; margin-top: 0.15rem; }

.c-navy { background: var(--navy); }
.c-green { background: var(--green); }
.c-gold { background: var(--gold); }
.c-yellow { background: var(--yellow); }
.c-blue { background: var(--blue); }
.c-sky { background: var(--sky); }
.c-lime { background: var(--lime); }
.c-silver { background: var(--silver); }
.c-ink { background: var(--ink); }
.c-slate { background: var(--slate); }
.c-paper { background: var(--paper); }
.c-tint { background: var(--tint); }

/* ---- Typography ---- */

.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 2.5rem; align-items: start; }
.specimen { margin-bottom: 1.5rem; }
.specimen p + p { color: var(--slate); font-size: 0.9375rem; }
.face { font-size: 2.25rem; line-height: 1.2; color: var(--navy); }
.f-montserrat { font-family: var(--head); font-weight: 700; }
.f-geist { font-family: var(--body); font-weight: 400; }
.f-mono { font-family: var(--mono); font-weight: 400; color: var(--green); }
.f-figures { font-family: var(--figs); font-weight: 600; color: var(--gold); }
.note { padding-top: 1rem; border-top: 1px solid var(--rule); font-size: 0.9375rem; }

.type-demo { background: var(--navy); color: var(--white); border-radius: 6px; padding: 2rem; }
.type-demo p { padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.28); }
.type-demo p:first-child { padding-top: 0; }
.type-demo p:last-child { border-bottom: 0; padding-bottom: 0; }
.d1 { font: 700 clamp(1.9rem, 4.5vw, 2.6rem)/1.15 var(--head); }
.d2 { font: 600 1.6rem/1.2 var(--head); }
.d3 { font: 600 1.2rem/1.3 var(--head); }
.d5 { font: 400 0.9375rem/1.4 var(--mono); color: var(--gold); }

/* ---- Voice ---- */

.voice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 2.5rem; margin-top: 2rem; align-items: start; }
.slogan { font: 600 clamp(1.75rem, 4.2vw, 2.5rem)/1.2 var(--head); color: var(--ink); }
.traits { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 0.5rem; }
.traits li { padding: 0.65rem 0; border-bottom: 1px solid var(--rule); }
.examples { display: grid; gap: 1.25rem; }
.examples figure { border: 1px solid var(--green); border-radius: 6px; padding: 1.1rem 1.25rem 1.25rem; }
.examples figure.not { border-color: #C62828; }
.examples figcaption { font: 400 0.875rem/1.4 var(--mono); color: var(--slate); margin-bottom: 0.5rem; }

/* ---- Hosted files ---- */

.files { margin-top: 2rem; display: grid; gap: 1rem; }
.files li { display: flex; gap: 1.25rem; align-items: center; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 1rem 1.25rem; }
.files img { flex: none; background: var(--white); border: 1px solid var(--rule); border-radius: 4px; }
.files div { min-width: 0; }
.file-name { font-weight: 500; color: var(--navy); }
.file-meta { font: 400 0.875rem/1.5 var(--mono); color: var(--slate); }
.files a { overflow-wrap: anywhere; }

/* ---- Footer ---- */

.footer { background: var(--tint); border-top: 3px solid var(--green); margin-top: 3rem; }
.footer .wrap { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.footer a { font-family: var(--mono); font-size: 0.9375rem; }

/* ---- Not-found page ---- */

.lost { padding-top: 5rem; padding-bottom: 5rem; }
.lost h1 { font: 700 2.25rem/1.15 var(--head); color: var(--navy); margin-bottom: 1rem; }

@media (max-width: 40rem) {
  .hero::before, .hero::after { display: none; }
  .hero-inner { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .facts > div { grid-template-columns: 1fr; gap: 0.1rem; }
  .reversed { grid-template-columns: repeat(2, 1fr); }
  .primary .plate { padding: 2.25rem 1.25rem; }
  .files li { align-items: flex-start; }
  .files img { width: 64px; height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
