/* Scouting 3.0 website
   Fonts are self-hosted (SIL Open Font License), no external requests. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Source Serif 4";
  src: url("fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-latin-ext-opsz-normal.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Source Serif 4";
  src: url("fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --night: #0d1520;      /* page base, floodlit-night navy */
  --deep: #131e2b;       /* raised surfaces */
  --line: #263649;       /* rules and pitch lines on surfaces */
  --chalk: #f2f4f6;      /* primary text, pitch markings */
  --mist: #a6b2c0;       /* secondary text */
  --signal: #ff6b1a;     /* Scouting 3.0 orange */
  --signal-ink: #1a0d04; /* text on orange */

  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;

  --measure: 36rem;
  --wrap: 76rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

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

body {
  margin: 0;
  background: var(--night);
  color: var(--chalk);
  font-family: var(--text);
  font-size: 1.1875rem;          /* 19px */
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--signal); }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--signal); color: var(--signal-ink);
  padding: .6rem 1rem; font-family: var(--display); font-weight: 600; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

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

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; min-height: 4.75rem;
}

.wordmark {
  display: inline-flex; align-items: baseline; gap: .38rem;
  font-family: var(--display); font-stretch: 78%; font-weight: 800;
  font-size: 1.45rem; letter-spacing: -0.01em; text-decoration: none; color: var(--chalk);
  line-height: 1;
}
.wordmark b {
  font-weight: 800; color: var(--signal-ink); background: var(--signal);
  padding: .14em .28em .1em; border-radius: 3px; font-size: .92em;
}
.wordmark:hover { color: var(--chalk); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav ul { list-style: none; display: flex; gap: 1.9rem; margin: 0; padding: 0; }
.nav a {
  font-family: var(--display); font-weight: 500; font-size: 1rem; text-decoration: none;
  color: var(--mist); padding: .4rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--chalk); }
.nav a[aria-current="page"] { color: var(--chalk); border-bottom-color: var(--signal); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--chalk);
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  padding: .5rem .85rem; border-radius: 3px; cursor: pointer;
}

@media (max-width: 46rem) {
  .nav-toggle { display: inline-block; }
  .nav ul {
    display: none; position: absolute; left: 0; right: 0; top: 4.75rem;
    flex-direction: column; gap: 0; background: var(--deep);
    border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1rem; z-index: 5;
  }
  .nav.open ul { display: flex; }
  .nav ul a { display: block; padding: .85rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .nav ul li:last-child a { border-bottom: 0; }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--signal); }
  .site-header { position: relative; }
}

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--display); font-weight: 800; font-stretch: 72%;
  line-height: .98; letter-spacing: -0.012em; margin: 0; text-wrap: balance;
}
h1 { font-size: clamp(3.4rem, 10.5vw, 8.75rem); }
h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-stretch: 80%; line-height: 1.05; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
.lede { font-size: clamp(1.2rem, 1.8vw, 1.42rem); line-height: 1.55; color: var(--chalk); max-width: 34rem; }
.quiet { color: var(--mist); }

.ui { font-family: var(--display); font-stretch: 100%; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; font-family: var(--display); font-weight: 650; font-size: 1.05rem;
  text-decoration: none; padding: .9rem 1.4rem; border-radius: 3px; line-height: 1.1;
  border: 2px solid var(--signal); background: var(--signal); color: var(--signal-ink);
}
.btn:hover { background: #ff8441; border-color: #ff8441; color: var(--signal-ink); }
.btn.ghost { background: transparent; color: var(--chalk); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--chalk); color: var(--chalk); }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .wrap { position: relative; padding-top: clamp(4rem, 11vw, 8.5rem); padding-bottom: clamp(4rem, 9vw, 7rem); }
.hero h1 { max-width: 9.5ch; position: relative; z-index: 1; }
.hero .lede { margin-top: 2rem; position: relative; z-index: 1; }

.pitch {
  position: absolute; z-index: 0; pointer-events: none;
  right: calc(var(--gutter) * -1 - 4rem); top: 50%; transform: translateY(-50%);
  width: min(54rem, 66vw); opacity: .9;
}
.pitch .ln { fill: none; stroke: var(--line); stroke-width: 2; }
.pitch .mk { fill: var(--signal); }
.pitch .run { fill: none; stroke: var(--signal); stroke-width: 2.5; stroke-dasharray: 6 9; }

@media (prefers-reduced-motion: no-preference) {
  .pitch .ln { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 1.6s cubic-bezier(.4,.1,.2,1) forwards; }
  .pitch .mk, .pitch .run { opacity: 0; animation: show .5s ease-out 1.35s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes show { to { opacity: 1; } }

@media (max-width: 46rem) {
  .pitch { display: none; }
}

/* Page heads on inner pages */
.page-head { border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.page-head h1 { font-size: clamp(3rem, 8vw, 6.5rem); max-width: 14ch; }
.page-head .lede { margin-top: 1.6rem; }

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

.section { padding: clamp(4rem, 9vw, 7rem) 0; border-bottom: 1px solid var(--line); }
.section.raised { background: var(--deep); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split > :first-child { position: sticky; top: 2rem; }
@media (max-width: 52rem) {
  .split { grid-template-columns: 1fr; }
  .split > :first-child { position: static; }
}

.intro-h2 { max-width: 12ch; }
.intro-h2 + p { margin-top: 1.4rem; }

/* Solution index on home: rows, not cards */
.solutions { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.solutions li { border-bottom: 1px solid var(--line); }
.solutions a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem 2rem;
  padding: 2rem 0; text-decoration: none; color: var(--chalk);
}
.solutions h3 { grid-column: 1; }
.solutions p { grid-column: 1; margin: .4rem 0 0; color: var(--mist); }
.solutions .go {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; color: var(--mist);
}
.solutions a:hover h3 { color: var(--signal); }
.solutions a:hover .go { border-color: var(--signal); color: var(--signal); }

/* Principles: a definition list */
.principles { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; }
.principles div { border-top: 2px solid var(--signal); padding-top: 1.1rem; }
.principles dt { font-family: var(--display); font-weight: 750; font-stretch: 85%; font-size: 1.4rem; line-height: 1.15; margin-bottom: .5rem; }
.principles dd { margin: 0; color: var(--mist); }
@media (max-width: 40rem) { .principles { grid-template-columns: 1fr; } }

/* Statement */
.statement { font-family: var(--display); font-weight: 700; font-stretch: 80%; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.06; max-width: 22ch; margin: 0; text-wrap: balance; }
.statement-by { margin-top: 1.8rem; color: var(--mist); }

/* Feature lists inside solutions */
.facts { list-style: none; padding: 0; margin: 1.6rem 0 0; max-width: var(--measure); }
.facts li { padding: .85rem 0 .85rem 1.6rem; border-top: 1px solid var(--line); position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 1.45rem; width: .55rem; height: .55rem; background: var(--signal); border-radius: 50%; }
.facts li:last-child { border-bottom: 1px solid var(--line); }

.note {
  margin-top: 2rem; padding: 1.1rem 1.3rem; border-left: 3px solid var(--signal);
  background: rgba(255, 107, 26, .07); max-width: var(--measure); font-size: 1.05rem;
}
.note p { margin: 0; }

/* Process: a real sequence, so numbered */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step); font-family: var(--display); font-weight: 800; font-stretch: 72%;
  font-size: 2.4rem; line-height: 1; color: var(--signal);
}
.steps h3 { font-size: 1.45rem; margin-bottom: .45rem; }
.steps p { margin: 0; color: var(--mist); }

/* In-page solution nav */
.jump { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.2rem; }
.jump a {
  font-family: var(--display); font-weight: 600; font-size: .98rem; text-decoration: none;
  padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 999px; color: var(--chalk);
}
.jump a:hover { border-color: var(--signal); color: var(--signal); }

.anchor { scroll-margin-top: 1.5rem; }
.kicker { font-family: var(--display); font-weight: 600; color: var(--signal); font-size: 1.05rem; margin: 0 0 1rem; }

/* ---------- Contact ---------- */

.contact-mail {
  display: inline-block; font-family: var(--display); font-weight: 800; font-stretch: 75%;
  font-size: clamp(1.7rem, 4vw, 3.2rem); line-height: 1.1; text-decoration: none;
  border-bottom: 3px solid var(--signal); overflow-wrap: normal;
}
.details { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0; max-width: 40rem; }
.details dt, .details dd { padding: .85rem 0; border-top: 1px solid var(--line); margin: 0; }
.details dt { font-family: var(--display); font-weight: 600; color: var(--mist); padding-right: 2rem; font-size: 1rem; padding-top: 1.05rem; }
.details dt:last-of-type, .details dd:last-of-type { border-bottom: 1px solid var(--line); }
@media (max-width: 34rem) {
  .details { grid-template-columns: 1fr; }
  .details dd { border-top: 0; padding-top: 0; }
  .details dt:last-of-type { border-bottom: 0; }
}

/* Placeholder for details still to be confirmed. Remove class when filled in. */
.todo {
  background: rgba(255, 107, 26, .16); outline: 1px dashed var(--signal);
  padding: 0 .3em; border-radius: 2px; color: #ffb48a; font-style: normal;
}

/* ---------- CTA band ---------- */

.cta { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.cta h2 { max-width: 16ch; }
.cta p { margin-top: 1.3rem; color: var(--mist); }

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

.site-footer { background: #0a111a; font-size: .98rem; color: var(--mist); }
.site-footer .wrap { padding-top: 3.5rem; padding-bottom: 2.5rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
.foot-grid h2 { font-size: 1.05rem; font-stretch: 100%; font-weight: 650; color: var(--chalk); margin-bottom: .9rem; letter-spacing: 0; line-height: 1.3; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: .4rem; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.foot-grid p { margin: 0 0 .35rem; }
.foot-base { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .92rem; }
@media (max-width: 52rem) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 30rem) { .foot-grid { grid-template-columns: 1fr; } }

/* Legal text */
.legal h2 { font-size: 1.7rem; font-stretch: 85%; margin: 2.6rem 0 .8rem; }
.legal p, .legal ul { max-width: 40rem; }
.legal li { margin-bottom: .4rem; }

/* Scouting 3.0 logo (original HPT mark.png, unchanged) */
.wordmark { align-items: center; gap: .5rem; }
.wordmark img { height: 2.7rem; width: auto; flex: none; }
.site-footer .wordmark img { height: 3rem; }
@media (max-width: 46rem) { .wordmark img { height: 2.3rem; } }

/* About: founder portrait */
.about-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: clamp(2rem, 6vw, 5rem); align-items: end; }
.portrait { margin: 0; }
.portrait img { width: 100%; height: auto; border-radius: 3px; border-bottom: 3px solid var(--signal); }
.portrait figcaption { margin-top: .8rem; font-family: var(--display); font-weight: 600; font-size: .98rem; color: var(--mist); }
@media (max-width: 52rem) { .about-head { grid-template-columns: 1fr; } .portrait { max-width: 22rem; } }
