/* capitalkeez.com 1.0.0: "the key cut".
   Type: Barlow Condensed (titles, stamped like a key blank) and Barlow (text), self-hosted, SIL OFL.
   Colour: steel paper, vault ink (the shield's outline), Keez green from the logo for links, brass for the year tags,
   the padlock's amber on dark only.
   Signature: the dark title band ends in the bitting of a key, the cut edge of a key blade; the journey's years hang as
   brass key tags. */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/barlow-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/barlow-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/barlow-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }

:root {
  --paper: #eef0f3;       /* steel paper */
  --sheet: #ffffff;
  --vault: #17202a;       /* the shield's outline */
  --vault-2: #222d39;
  --steel: #545f69;
  --steel-soft: #c9d1d9;
  --rule: #d3d8de;
  --keez: #2a7324;        /* Keez green, deepened for text */
  --keez-bright: #7cd06b;
  --brass: #8a5a0c;
  --brass-tag: #f3c25a;
  --amber: #f0a51e;       /* the padlock */
  --text: "Barlow", "Segoe UI", system-ui, sans-serif;
  --stamp: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--vault); font-family: var(--text); font-size: 1.125rem; line-height: 1.6; }
@media (min-width: 64rem) { body { font-size: 1.1875rem; } }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--keez); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--vault); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--stamp); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: .005em; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 1.35rem + 1.6vw, 2.5rem); margin: 0 0 .55em; }
h3 { font-size: clamp(1.35rem, 1.15rem + .7vw, 1.65rem); margin: 1.4em 0 .45em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nw { white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), 74rem); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 74rem); }
.narrow > * { max-width: 44rem; }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 10; background: var(--sheet); color: var(--vault); padding: .6rem 1rem; }
.skip:focus { left: .75rem; }

/* ------------------------------------------------------------------ header */
.mast { background: var(--sheet); border-bottom: 1px solid var(--rule); }
.mast-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem 2rem; flex-wrap: wrap; padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .55rem; }
.brand-shield { width: 44px; height: 44px; }
.brand-word { width: 160px; height: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem 1.25rem; }
.nav a { font-family: var(--stamp); font-weight: 600; font-size: 1.15rem; color: var(--vault); text-decoration: none;
  padding-block: .3rem; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { border-bottom-color: var(--keez-bright); }
@media (max-width: 40rem) { .nav { width: 100%; } .nav ul { gap: .1rem .8rem; } .nav a { font-size: 1.04rem; } .brand-word { width: 140px; } }
/* 1.0.1: eight menu items (Support and Login restored) sit on phones as two even rows of four, not six and an orphan pair */
@media (max-width: 30rem) { .nav ul { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; } }

/* ------------------------------------------------------------------ the title band, cut like a key */
.hero { background: var(--vault); color: #fff; padding-block: clamp(2.25rem, 6vw, 4.25rem) calc(clamp(2.25rem, 6vw, 4.25rem) + 34px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), 96% calc(100% - 34px), 93% calc(100% - 12px), 89% calc(100% - 12px),
    86% calc(100% - 28px), 81% calc(100% - 28px), 78% 100%, 73% 100%, 70% calc(100% - 20px), 66% calc(100% - 20px),
    63% calc(100% - 6px), 58% calc(100% - 6px), 55% calc(100% - 30px), 50% calc(100% - 30px), 47% calc(100% - 14px),
    42% calc(100% - 14px), 39% 100%, 0 100%); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); } }
.hero-text { max-width: 40rem; }
.crumbs ol { list-style: none; margin: 0 0 1.1rem; padding: 0; display: flex; gap: .5rem; font-size: .95rem; color: var(--steel-soft); }
.crumbs a { color: var(--steel-soft); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--amber); }
.h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.2rem); line-height: 1.02; color: #fff; margin-bottom: .35em; }
.hero-sub { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); color: var(--brass-tag); margin: 0 0 .9rem; font-weight: 600; }
.hero-line { color: var(--steel-soft); font-size: 1.15rem; }
.hero a { color: var(--keez-bright); }
.hero a:hover { color: #fff; }
.hero-quote { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; margin: 1.4rem 0 1.2rem;
  padding: 1.1rem 1.2rem; background: var(--vault-2); border-left: 4px solid var(--amber); }
.quote-badge img { width: 64px; height: 64px; }
.quote { margin: 0; font-size: 1.12rem; line-height: 1.5; color: #fff; font-style: italic; }
.hero-cta a { display: inline-block; font-family: var(--stamp); font-weight: 700; font-size: 1.25rem; color: var(--vault);
  background: var(--keez-bright); padding: .5rem 1.15rem; text-decoration: none; }
.hero-cta a:hover { background: #fff; color: var(--vault); }
.hero-art { justify-self: center; }
.hero-art img { border: 1px solid #3a4756; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7); }
.hero--plain .hero-grid { grid-template-columns: minmax(0, 1fr); }
.hero-shield img { width: 80px; height: 80px; margin-bottom: 1rem; }
.tm { font-family: var(--stamp); font-weight: 600; font-size: 1.2rem; color: var(--amber); margin-bottom: .3rem; }

/* ------------------------------------------------------------------ sections */
.sec { padding-block: clamp(2rem, 5vw, 3.5rem); }
.sec--rule { border-top: 1px solid var(--rule); }
.prose h2 { margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }
.split { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .split { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; } }
.split-main { max-width: 44rem; }
.free-note { background: var(--sheet); border: 1px solid var(--rule); border-top: 4px solid var(--keez-bright); padding: 1.4rem; }
.free-note .fig { margin: 0 auto 1rem; max-width: 180px; }
.free-note p { margin-bottom: .5rem; font-size: 1.02rem; }
.tools { margin: 0 0 1.2em; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .5rem; }
.tools li { background: var(--sheet); border: 1px solid var(--rule); padding: .55rem .8rem; font-weight: 500; }
.tools li::before { content: ""; display: inline-block; width: .55rem; height: .55rem; background: var(--amber); margin-right: .55rem; transform: rotate(45deg); vertical-align: .1em; }
.motto { font-family: var(--stamp); font-weight: 700; font-size: 1.6rem; color: var(--keez); }
.signoff { font-family: var(--stamp); font-weight: 600; font-size: 1.35rem; color: var(--keez); }
.ed-note { font-size: 1rem; color: var(--steel); border-left: 3px solid var(--rule); padding-left: .9rem; }
.pair { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .pair { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.pair-item { border-top: 4px solid var(--vault); padding-top: .9rem; }
.pair-item h3 { margin-top: 0; }
.pair-item h3 a { color: var(--vault); text-decoration-color: var(--keez-bright); text-decoration-thickness: 3px; }
.pair-item p { color: var(--steel); }

/* ------------------------------------------------------------------ the journey: brass key tags */
.story p:first-child { font-size: 1.22rem; }
.tags { list-style: none; margin: 1.5rem 0 0; padding: 0 0 0 1.2rem; border-left: 3px solid var(--vault); }
.tags li { position: relative; padding: 0 0 1.6rem 1.6rem; }
.tags li::before { content: ""; position: absolute; left: -1.95rem; top: .45rem; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  border: 3px solid var(--vault); background: var(--paper); }
.tags h3 { margin: 0 0 .4rem; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); }
.yr { display: inline-block; font-weight: 700; color: var(--vault); background: var(--brass-tag); padding: .05rem .7rem .05rem 1.35rem;
  margin-right: .5rem; border-radius: 2px 14px 14px 2px; position: relative; }
.yr::before { content: ""; position: absolute; left: .45rem; top: 50%; width: .45rem; height: .45rem; margin-top: -.225rem; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 0 0 1px rgba(23, 32, 42, .35); }

/* ------------------------------------------------------------------ philosophy */
.principles-page { padding-block: clamp(1.5rem, 4vw, 3rem); }
.pr { display: grid; gap: 1.5rem; padding-block: clamp(1.75rem, 4vw, 3rem); border-top: 1px solid var(--rule); grid-template-areas: "fig" "text"; }
.pr:first-child { border-top: 0; }
.pr-text { grid-area: text; max-width: 42rem; }
.pr .fig { grid-area: fig; margin: 0; justify-self: center; }
.pr .fig img { width: 180px; }
@media (min-width: 52rem) {
  .pr { grid-template-columns: 220px minmax(0, 1fr); grid-template-areas: "fig text"; align-items: center; gap: 3rem; }
  .pr:nth-child(even) { grid-template-columns: minmax(0, 1fr) 220px; grid-template-areas: "text fig"; }
}
.cta-wrap { padding-bottom: 1rem; }
.cta a { display: inline-block; font-family: var(--stamp); font-weight: 700; font-size: 1.3rem; color: #fff; background: var(--vault);
  padding: .6rem 1.3rem; text-decoration: none; }
.cta a:hover { background: var(--keez); color: #fff; }
.journey-quote { margin: 0; padding: 1.2rem 1.4rem; background: var(--sheet); border-left: 5px solid var(--amber); font-size: 1.15rem; line-height: 1.6; }

/* ------------------------------------------------------------------ the four principles band */
.principles { background: var(--vault); color: #fff; padding-block: clamp(2.25rem, 5vw, 3.25rem); }
.principles h2 { color: #fff; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.pr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.pr-list li { display: flex; align-items: center; gap: .9rem; background: var(--vault-2); padding: .9rem 1rem; border-top: 3px solid var(--keez-bright); }
.pr-list .pic img { width: 56px; height: 56px; }
.pr-list .pic { flex: none; border-radius: 50%; background: #2f3c4a; padding: 6px; }
.pr-list h3 { margin: 0; font-size: 1.4rem; }
.pr-list h3 a { color: #fff; text-decoration: none; }
.pr-list h3 a:hover { color: var(--keez-bright); text-decoration: underline; }

/* ------------------------------------------------------------------ videos */
.videos { display: grid; gap: clamp(1.25rem, 3vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
.video { background: var(--sheet); border: 1px solid var(--rule); }
.screen { aspect-ratio: 16 / 9; background: var(--vault) repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, .03) 3px 4px);
  display: grid; place-items: center; }
.screen-play { width: 0; height: 0; border-style: solid; border-width: 22px 0 22px 36px; border-color: transparent transparent transparent var(--amber); }
.video--missing .screen-play { border-left-color: #56616c; }
.video-text { padding: 1rem 1.2rem 1.2rem; }
.video-title { font-size: 1.5rem; margin: 0 0 .5rem; }
.video-meta { color: var(--steel); font-size: 1rem; margin-bottom: .6rem; }
.video-go { margin: 0; }
.video-go a { font-weight: 600; }

/* ------------------------------------------------------------------ the sign-up form, as a record */
.fr-intro { color: var(--steel); }
.fr-card { background: var(--sheet); border: 1px dashed #9aa4ae; padding: 1.4rem; max-width: 26rem; }
.fr-img img { width: 96px; margin-bottom: 1rem; }
.fr-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--rule);
  background: var(--paper); padding: .55rem .8rem; margin-bottom: .6rem; }
.fr-ph { margin: 0; color: var(--steel); }
.fr-req { font-size: .9rem; color: var(--brass); }
.fr-label { margin: .3rem 0 .3rem; font-weight: 600; font-size: 1rem; }
.fr-button { display: inline-block; margin: .6rem 0 0; font-family: var(--stamp); font-weight: 700; font-size: 1.2rem;
  background: var(--steel-soft); color: var(--vault); padding: .4rem 1.1rem; }

/* ------------------------------------------------------------------ privacy notice */
.notice h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.95rem); }
.notice-date { color: var(--steel); }

/* ------------------------------------------------------------------ references, further reading, about */
.references, .further-reading, .about-page { padding-block: 1.6rem; }
.references h2, .further-reading h2, .about-page h2 { font-size: 1.35rem; margin-bottom: .4rem; }
.references ol, .further-reading ul { margin: 0; padding-left: 1.2rem; font-size: 1rem; }
.references li, .further-reading li { margin-bottom: .5rem; }
.references li:target { background: #fff3d1; outline: 2px solid var(--brass-tag); }
.ref-back { margin-right: .3rem; }
.ref-intro, .about-page p { font-size: 1rem; color: var(--steel); }
.ref-site, .ref-note { color: var(--steel); }
sup.cite { font-size: .72em; line-height: 0; }
sup.cite a { text-decoration: none; font-weight: 600; }
.about-page { border-top: 1px solid var(--rule); }
.addr { font-weight: 500; }
main > :last-child { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
main > .principles:last-child { padding-bottom: clamp(2.25rem, 5vw, 3.25rem); }
.nf-list { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }

/* ------------------------------------------------------------------ footer */
.foot { background: #10171f; color: var(--steel-soft); }
.foot-grid { display: grid; gap: 1.75rem; padding-block: 2.5rem 1.5rem; }
@media (min-width: 52rem) { .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.foot-shield { width: 52px; height: 52px; margin-bottom: .6rem; }
.foot-tag { font-family: var(--stamp); font-weight: 600; font-size: 1.25rem; color: #fff; }
.foot-h { font-family: var(--stamp); font-weight: 700; font-size: 1.15rem; color: #fff; margin-bottom: .4rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .25rem; }
.foot a { color: var(--steel-soft); }
.foot a:hover { color: #fff; }
.foot-founder { margin-top: 1rem; }
.foot-founder a { color: var(--brass-tag); font-weight: 600; }
.foot-base { border-top: 1px solid #2a3542; padding-block: 1rem 1.6rem; font-size: .95rem; }
.foot-base p { margin: 0; }
.foot :focus-visible { outline-color: var(--brass-tag); }

@media print { .hero { clip-path: none; } .principles, .nav { display: none; } }
