/* OpenWay – shared styles. Fonts are self-hosted (see /assets/fonts, SIL OFL 1.1). No external requests. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  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: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  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: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans-latin-ext.woff2") format("woff2");
  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: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans-latin.woff2") format("woff2");
  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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-500-latin-ext.woff2") format("woff2");
  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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  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 {
  --bg: #F2F4F0;
  --surface: #E6EBE5;
  --fg: #12262A;
  --muted: #4A6064;
  --line: #C3CEC7;
  --road: #E8A700;
  --on-road: #12262A;
  --link: #0B6B63;
  --band-bg: #12262A;
  --band-fg: #EEF2EC;
  --band-muted: #A9BDBA;
  --band-line: #2D4846;
  --todo-bg: #FFE08A;
  --todo-fg: #12262A;
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C181A;
    --surface: #132427;
    --fg: #E8EEE9;
    --muted: #9BB0AE;
    --line: #27403F;
    --road: #F2B705;
    --on-road: #0C181A;
    --link: #5CCDBD;
    --band-bg: #132427;
    --band-fg: #E8EEE9;
    --band-muted: #9BB0AE;
    --band-line: #2B4543;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C181A;
  --surface: #132427;
  --fg: #E8EEE9;
  --muted: #9BB0AE;
  --line: #27403F;
  --road: #F2B705;
  --on-road: #0C181A;
  --link: #5CCDBD;
  --band-bg: #132427;
  --band-fg: #E8EEE9;
  --band-muted: #9BB0AE;
  --band-line: #2B4543;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--road); outline-offset: 3px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.mono { font-family: var(--font-mono); font-weight: 500; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -64px; z-index: 30;
  background: var(--road); color: var(--on-road);
  padding: 12px 18px; font-weight: 600; text-decoration: none; border-radius: 2px;
}
.skip:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.brand svg { width: 34px; height: 14px; flex: none; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); }
.nav a.link {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}
.nav a.link:hover { color: var(--fg); }
.nav a.link[aria-current="page"] { color: var(--fg); border-bottom-color: var(--road); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 2px solid var(--fg);
  background: transparent;
  color: var(--fg);
  font: 600 0.95rem/1 var(--font-body);
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--road); border-color: var(--road); color: var(--on-road); }

.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid var(--fg);
  background: transparent;
  color: var(--fg);
  font: 600 0.9rem/1 var(--font-body);
  border-radius: 2px;
  cursor: pointer;
}
@media (max-width: 860px) {
  .site-header .wrap { flex-wrap: wrap; padding-block: 8px; }
  .nav { width: 100%; flex-wrap: wrap; gap: 4px 20px; padding-bottom: 8px; }
  .nav .btn { min-height: 40px; }
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .js .nav { display: none; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 12px; }
  .js .nav.open { display: flex; }
  .js .nav a.link { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .js .nav a.link[aria-current="page"] { border-bottom-color: var(--road); }
  .js .nav .btn { margin-top: 14px; min-height: 48px; }
}

/* Hero */
.hero { padding-block: clamp(40px, 8vw, 96px) clamp(48px, 8vw, 104px); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 800; margin-block: 18px 22px; }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 34em; color: var(--muted); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.route { width: 100%; height: auto; display: block; }
.route text { font-family: var(--font-mono); font-weight: 500; font-size: 14px; fill: var(--fg); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Inner page head */
.page-head { padding-block: clamp(40px, 7vw, 88px) clamp(28px, 5vw, 56px); }
.page-head h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); font-weight: 800; margin-block: 16px 20px; max-width: 18em; }
.page-head .lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 38em; color: var(--muted); }
.page-head .roadline { display: block; height: 0; border-top: 4px dashed var(--road); width: 96px; margin-top: 28px; }
.crumbs { font-size: 0.9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--fg); }

/* Sections */
section { padding-block: clamp(56px, 9vw, 112px); }
.flush-top { padding-top: 0; }
.tight { padding-block: clamp(32px, 5vw, 64px); }
.section-head { display: grid; gap: 14px; max-width: 40rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.section-head p { color: var(--muted); }

/* Two paths */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); }
.path { border-top: 4px solid var(--road); padding-top: 22px; display: grid; gap: 14px; align-content: start; }
.path h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.path p { color: var(--muted); max-width: 30em; }
@media (max-width: 720px) { .paths { grid-template-columns: minmax(0, 1fr); } }

/* Band */
.band { background: var(--band-bg); color: var(--band-fg); }
.band .eyebrow { color: var(--band-muted); }
.band .section-head p { color: var(--band-muted); }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--band-line); }
.principle { padding: 24px clamp(14px, 2vw, 28px) 8px 0; display: grid; gap: 10px; align-content: start; }
.principle + .principle { padding-left: clamp(14px, 2vw, 28px); border-left: 1px solid var(--band-line); }
.principle h3 { font-size: 1.25rem; }
.principle p { color: var(--band-muted); font-size: 0.98rem; }
@media (max-width: 900px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principle:nth-child(3) { padding-left: 0; border-left: 0; }
  .principle:nth-child(n+3) { border-top: 1px solid var(--band-line); margin-top: 16px; padding-top: 24px; }
}
@media (max-width: 520px) {
  .principles { grid-template-columns: minmax(0, 1fr); }
  .principle, .principle + .principle { padding-left: 0; border-left: 0; }
  .principle + .principle { border-top: 1px solid var(--band-line); margin-top: 16px; padding-top: 24px; }
}

/* Focus areas / criteria lists */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 5vw, 72px); list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fields li { padding-block: 22px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.fields h3 { font-size: 1.25rem; }
.fields p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 720px) { .fields { grid-template-columns: minmax(0, 1fr); } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; max-width: 44rem; border-left: 3px dashed var(--road); margin-left: 15px; }
.steps li { counter-increment: step; position: relative; padding: 0 0 36px 36px; display: grid; gap: 6px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: -17px; top: -2px;
  width: 31px; height: 31px;
  display: grid; place-items: center;
  background: var(--road);
  color: var(--on-road);
  border-radius: 50%;
  font: 500 0.85rem/1 var(--font-mono);
}
.steps h3 { font-size: 1.3rem; }
.steps p { color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .aud { background: var(--bg); border: 1px solid var(--line); padding: 24px; display: grid; gap: 10px; align-content: start; border-radius: 2px; }
.surface .card { background: var(--bg); }
.card h3, .aud h3 { font-size: 1.2rem; }
.card p, .aud p { color: var(--muted); font-size: 0.98rem; }
.card .more, .aud .more { font-weight: 600; font-size: 0.95rem; color: var(--link); text-underline-offset: 3px; }
@media (max-width: 860px) { .cards, .cards.two { grid-template-columns: minmax(0, 1fr); } }

/* Contact */
.contact-intro, .surface { background: var(--surface); }
.audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); }
@media (max-width: 860px) { .audiences { grid-template-columns: minmax(0, 1fr); } }
.mailbox { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.mail-text { font-family: var(--font-mono); font-weight: 500; font-size: clamp(1.05rem, 2.6vw, 1.5rem); user-select: all; overflow-wrap: anywhere; min-width: 0; }
.mail-note { font-size: 0.9rem; color: var(--muted); margin-top: 12px; min-height: 1.4em; }
.js-only { display: none; }
.js .js-only { display: inline-flex; }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.person { background: var(--bg); border: 1px solid var(--line); border-radius: 2px; padding: 24px; display: grid; gap: 8px; align-content: start; }
.avatar {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--band-bg); color: var(--band-fg);
  border: 3px dashed var(--road);
  font: 800 1.7rem/1 var(--font-display);
  margin-bottom: 8px;
}
.person h3 { font-size: 1.3rem; }
.person .role { font-family: var(--font-mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.person p { color: var(--muted); font-size: 0.98rem; }
.person.open { border-style: dashed; background: transparent; }
.person.open .avatar { background: transparent; color: var(--fg); border-color: var(--line); }
@media (max-width: 860px) { .team { grid-template-columns: minmax(0, 1fr); } }

/* Notice box */
.notice { border-left: 4px solid var(--road); background: var(--surface); padding: 16px 20px; font-size: 0.95rem; color: var(--muted); max-width: 46rem; border-radius: 0 2px 2px 0; }
.notice strong { color: var(--fg); }

/* Prose (legal pages, articles) */
.prose { max-width: 46rem; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--link); text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose address { font-style: normal; border-left: 4px solid var(--road); padding-left: 16px; }
.prose .small { font-size: 0.92rem; color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--font-mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.prose code { font-family: var(--font-mono); font-size: 0.9em; }
.toc { background: var(--surface); border-radius: 2px; padding: 18px 22px; max-width: 46rem; }
.toc p { margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; font-size: 0.95rem; }
.toc li { break-inside: avoid; padding-block: 2px; }
.toc a { color: var(--link); text-underline-offset: 3px; }
@media (max-width: 720px) { .toc ol { columns: 1; } }
mark.todo { background: var(--todo-bg); color: var(--todo-fg); padding: 0 0.3em; border-radius: 2px; }
.lang-switch { font-size: 0.92rem; }
.lang-switch a { color: var(--link); text-underline-offset: 3px; }

/* News */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 46rem; }
.news-list li { padding-block: 28px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.news-list h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.news-list h2 a { text-decoration: none; }
.news-list h2 a:hover { text-decoration: underline; text-decoration-color: var(--road); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.news-list p { color: var(--muted); }
.post-meta { font-family: var(--font-mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.post-meta .tag { color: var(--link); }
.feed-note { margin-top: 28px; font-size: 0.92rem; color: var(--muted); }
.feed-note a { color: var(--link); text-underline-offset: 3px; }
.article-head { padding-block: clamp(40px, 7vw, 88px) clamp(24px, 4vw, 40px); }
.article-head h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; margin-block: 16px 18px; max-width: 20em; }
.article-head .lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 38em; }
.article-foot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 46rem; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.article-foot a { color: var(--link); text-underline-offset: 3px; font-weight: 600; }

/* 404 */
.err { padding-block: clamp(56px, 12vw, 140px); }
.err .code { font-family: var(--font-mono); font-weight: 500; font-size: clamp(4rem, 16vw, 9rem); line-height: 1; letter-spacing: -0.04em; display: flex; align-items: center; gap: clamp(10px, 2vw, 24px); }
.err .code::after { content: ""; flex: 1; border-top: 6px dashed var(--road); min-width: 48px; }
.err h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; margin-block: 24px 16px; }
.err p { color: var(--muted); max-width: 34em; }
.err .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 28px; font-size: 0.9rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px; }
footer .foot-id { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer nav a { color: var(--muted); text-underline-offset: 3px; }
footer nav a:hover { color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* Additions */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fields + .notice { margin-top: 32px; }
.principles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.principles.three .principle:nth-child(3) { padding-left: clamp(14px, 2vw, 28px); border-left: 1px solid var(--band-line); }
@media (max-width: 900px) {
  .principles.three { grid-template-columns: minmax(0, 1fr); }
  .principles.three .principle, .principles.three .principle + .principle, .principles.three .principle:nth-child(3) { padding-left: 0; border-left: 0; }
  .principles.three .principle + .principle { border-top: 1px solid var(--band-line); margin-top: 16px; padding-top: 24px; }
}
