/* Kestrel Labs.
   Two looks. The company pages are a southern Alberta day: wheat paper, slate sky, the kestrel's rufous, Besley.
   The Learner's pages are the app's night highway: asphalt, sign yellow, sign green, Overpass.
   Body text everywhere is Atkinson Hyperlegible, the app's body font. Signs are drawn with full borders only.
   No scripts. */

@font-face { font-family: 'Besley'; font-weight: 800; font-style: normal; font-display: swap; src: url(/fonts/besley-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Besley'; font-weight: 500; font-style: italic; font-display: swap; src: url(/fonts/besley-latin-500-italic.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/atkinson-hyperlegible-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/atkinson-hyperlegible-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/atkinson-hyperlegible-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Overpass'; font-weight: 800; font-style: normal; font-display: swap; src: url(/fonts/overpass-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Overpass'; font-weight: 900; font-style: normal; font-display: swap; src: url(/fonts/overpass-latin-900-normal.woff2) format('woff2'); }

:root {
  /* day */
  --paper: #f4eee2;
  --paper-2: #ece3d1;
  --ink: #24211d;
  --ink-2: #5c564d;
  --rule: #d8ccb6;
  --rufous: #a1441d;
  --slate: #3d526d;
  --slate-deep: #2c3c51;
  --cream: #f7f1e4;
  /* night (the app's tokens) */
  --asphalt: #141619;
  --asphalt-2: #1c1f23;
  --line: #333840;
  --road: #f3efe4;
  --road-2: #d6d3ca;
  --muted: #a9adb3;
  --yellow: #ffcc1f;
  --yellow-ink: #2a2200;
  --green: #0b6b3a;
  --green-hi: #0d7a43;
  --mint: #d3e9dc;
  /* type */
  --serif: 'Besley', Georgia, serif;
  --body: 'Atkinson Hyperlegible', system-ui, sans-serif;
  --sign: 'Overpass', 'Arial Narrow', sans-serif;
  --wide: 76rem;
  --gutter: 1.5rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font: 400 1.125rem/1.6 var(--body); }
body.day, body.doc { background: var(--paper); color: var(--ink); }
body.night { background: var(--asphalt); color: var(--road); }
img, svg { max-width: 100%; }
p { margin: 0 0 1rem; text-wrap: pretty; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 3px; }
.nowrap { white-space: nowrap; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(var(--wide), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- top bar ---------- */

.bar { width: min(var(--wide), 100% - 2 * var(--gutter)); margin: 0 auto; padding: 1.25rem 0;
  display: flex; align-items: baseline; justify-content: space-between; gap: .4rem 1.5rem; flex-wrap: wrap; }
.bar.home { justify-content: flex-end; }
.wordmark { font: 800 1.3rem/1 var(--serif); letter-spacing: -.01em; text-decoration: none; }
.bar nav { display: flex; gap: 1.4rem; font-weight: 700; font-size: .98rem; }
.bar nav a { text-decoration: none; opacity: .8; }
.bar nav a:hover { opacity: 1; text-decoration: underline; }
.bar nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
.night .bar nav a[aria-current="page"], .doc-top .bar nav a[aria-current="page"] { text-decoration-color: var(--yellow); }

/* ---------- footer ---------- */

.foot { padding: 2.75rem 0 3.25rem; font-size: .95rem; line-height: 1.55; }
.day .foot { background: var(--slate-deep); color: #d3dbe4; }
.night .foot, .doc .foot { background: #0d0f11; color: var(--muted); }
.foot-in { width: min(var(--wide), 100% - 2 * var(--gutter)); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; }
.foot p { margin: 0 0 .3rem; }
.foot .foot-mark { font: 800 1.25rem/1 var(--serif); color: #fff; margin-bottom: .75rem; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; align-content: start; }

/* =========================================================
   Day: company home
   ========================================================= */

.sky { background: var(--slate); color: var(--cream); }
.masthead { width: min(var(--wide), 100% - 2 * var(--gutter)); margin: 0 auto; padding: clamp(1rem, 5vw, 3.5rem) 0 0; }
.masthead h1 { font: 800 clamp(4rem, 11vw, 9rem)/.88 var(--serif); letter-spacing: -.03em; color: #fff; }
.masthead .lede { font: italic 500 clamp(1.2rem, 2.4vw, 1.55rem)/1.45 var(--serif); color: #dde4ec;
  max-width: 31rem; margin: clamp(1rem, 2.5vw, 1.6rem) 0 0; }
.horizon img { display: block; width: 100%; height: clamp(250px, 24vw, 380px); object-fit: cover; object-position: 50% 100%; }

.home-main { width: min(var(--wide), 100% - 2 * var(--gutter)); margin: 0 auto; padding: clamp(2.75rem, 5vw, 4rem) 0 clamp(3.5rem, 8vw, 6rem);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(3rem, 6vw, 4.5rem) 2rem; }
.day h2 { font: 800 clamp(1.7rem, 3vw, 2.2rem)/1.1 var(--serif); letter-spacing: -.01em; margin: 0 0 1.4rem; }

.made { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.5rem clamp(2rem, 5vw, 4rem); align-items: start; }
.made h2 { grid-column: 1 / -1; margin: 0; }
.made-text { padding-top: .5rem; }
.made-text p { font-size: 1.2rem; line-height: 1.55; }
.made-text .status-line { font-size: 1rem; color: var(--ink-2); }
.more { color: var(--rufous); font-weight: 700; }
.more::after { content: " \2192"; }

/* The Learner's guide sign: green with a white inset border, on two posts. */
.guide { position: relative; display: block; isolation: isolate; padding-bottom: 3rem; color: #fff; text-decoration: none; }
.guide::before, .guide::after { content: ""; position: absolute; z-index: -1; top: 40%; bottom: 0; width: 10px;
  background: #8e9296; }
.guide::before { left: 22%; }
.guide::after { right: 22%; }
.guide-panel { display: block; background: var(--green); border-radius: 16px; padding: 6px; transition: background-color .15s; }
.guide:hover .guide-panel { background: var(--green-hi); }
.guide:focus-visible { outline: none; }
.guide:focus-visible .guide-panel { outline: 3px solid var(--slate); outline-offset: 4px; }
.guide-face { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "icon text arrow";
  align-items: center; gap: 1.5rem; padding: 1.6rem 1.75rem; border: 3px solid #fff; border-radius: 11px; }
.guide-icon { grid-area: icon; display: block; width: 92px; height: 92px; border-radius: 20px; }
.guide-text { grid-area: text; display: block; }
.guide-name { display: block; font: 900 clamp(2.5rem, 5vw, 3.6rem)/.95 var(--sign); letter-spacing: -.01em; }
.guide-sub { display: block; margin-top: .55rem; font: 800 1rem/1.2 var(--sign); letter-spacing: .1em; text-transform: uppercase; }
.guide-places { display: block; margin-top: .35rem; color: var(--mint); font-size: 1rem; line-height: 1.4; }
.guide-arrow { grid-area: arrow; width: 56px; height: 56px; transition: transform .2s; }
.guide:hover .guide-arrow { transform: translateX(4px); }

.contact { grid-column: 1 / 7; }
.ledger { margin: 0; border-top: 1px solid var(--rule); }
.ledger div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .15rem 1rem; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.ledger dt { color: var(--ink-2); }
.ledger dd { margin: 0; font-weight: 700; }
.ledger a { color: var(--rufous); }

.name { grid-column: 8 / -1; }
.name-body { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.name-body img { width: 6.5rem; height: auto; margin-top: .35rem; }
.name-body p { font: italic 500 1.15rem/1.55 var(--serif); color: var(--ink-2); margin: 0; }

/* =========================================================
   Night: the Learner's page
   ========================================================= */

.night .wordmark { color: var(--road); }
.kicker { font: 800 .85rem/1.2 var(--sign); letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); margin: 0; }

.lead { padding: clamp(1.75rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 5rem); }
.brand { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon kicker" "icon title";
  column-gap: clamp(1rem, 2.5vw, 2rem); align-items: center; }
.brand img { grid-area: icon; width: clamp(84px, 11vw, 136px); height: auto; display: block; }
.brand .kicker { grid-area: kicker; align-self: end; margin-bottom: .35rem; }
.brand h1 { grid-area: title; align-self: start; min-width: 0; font: 900 clamp(3.3rem, 10.5vw, 8.5rem)/.86 var(--sign);
  text-transform: uppercase; letter-spacing: -.025em; color: var(--road); }
.lead-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 2.5rem clamp(2.5rem, 6vw, 5rem);
  margin-top: clamp(1.75rem, 4vw, 3rem); align-items: center; }
.intro { font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.5; max-width: 34rem; }
.status { display: inline-flex; align-items: center; gap: .65rem; margin: .5rem 0 0; padding: .5rem 1.05rem;
  border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 1rem; line-height: 1.35; }
.status::before { content: ""; flex: none; width: .6rem; height: .6rem; border-radius: 50%; background: var(--yellow); }

/* The three tests, laid out like a distance sign. */
.tests { margin: 0; background: var(--green); border-radius: 16px; padding: 6px; color: #fff;
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .9); }
.tests-face { border: 3px solid #fff; border-radius: 11px; padding: 1.15rem 1.5rem .5rem; }
.tests-head { font: 800 .82rem/1.2 var(--sign); letter-spacing: .16em; text-transform: uppercase; color: var(--mint); margin: 0 0 .25rem; }
.tests li { column-gap: 1.25rem; }
.tests ul { list-style: none; margin: 0; padding: 0; }
.tests li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "prov score" "lic unit";
  gap: .1rem 1.25rem; padding: .8rem 0 .85rem; }
.tests li + li { border-top: 1px solid rgba(255, 255, 255, .4); }
.prov { grid-area: prov; align-self: end; font: 900 1.5rem/1.05 var(--sign); text-transform: uppercase; letter-spacing: .01em; }
.lic { grid-area: lic; color: var(--mint); font-size: .98rem; line-height: 1.4; }
.score { grid-area: score; align-self: end; text-align: right; font: 900 2.2rem/1 var(--sign); letter-spacing: -.01em; }
.unit { grid-area: unit; text-align: right; color: var(--mint); font-size: .98rem; line-height: 1.4; }

/* Lane line between sections. */
.lane { display: block; height: 5px; margin: 0; border: 0;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 3rem, transparent 3rem 5.5rem); opacity: .9; }

.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2.5rem clamp(2.5rem, 6vw, 5rem);
  align-items: center; padding: clamp(3.25rem, 7vw, 5.5rem) 0; }
.night h2 { font: 900 clamp(2.1rem, 4.4vw, 3.2rem)/1 var(--sign); letter-spacing: -.015em; color: var(--road); margin: .55rem 0 1.25rem; }
.feature-text p, .notes p { color: var(--road-2); }
.feature-text a, .notes a, .fine a { color: var(--yellow); }

.ways { display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); margin: 1.5rem 0 0; }
.ways dt, .ways dd { padding: .8rem 0; border-top: 1px solid var(--line); }
.ways dt { font: 900 1.1rem/1.45 var(--sign); letter-spacing: .05em; text-transform: uppercase; color: var(--yellow); }
.ways dd { margin: 0; color: var(--road-2); }

.phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
.phones .phone:nth-child(2) { margin-top: clamp(2rem, 6vw, 4.5rem); }
.phone { margin: 0; }
.phone img { display: block; width: 100%; height: auto; border-radius: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--line); background: #000; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.phone figcaption { margin-top: .85rem; color: var(--muted); font-size: .95rem; line-height: 1.45; text-wrap: pretty; }

/* Price: a yellow sign in two panels. */
.price { padding: clamp(3.25rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.price-sign { background: var(--yellow); color: var(--yellow-ink); border-radius: 16px; padding: 6px; }
.price-face { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; background: var(--asphalt);
  border: 3px solid var(--asphalt); border-radius: 11px; overflow: hidden; }
.price-cell { background: var(--yellow); padding: 1.4rem 1.6rem 1.5rem; }
.price-fig { font: 900 clamp(3rem, 7vw, 5rem)/.9 var(--sign); letter-spacing: -.02em; margin: 0 0 .6rem; }
.price-cell p:last-child { margin: 0; font-size: 1.1rem; line-height: 1.45; }
.price-after { margin: 1.25rem 0 0; color: var(--road-2); max-width: 46rem; }

.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(2rem, 4vw, 3.5rem);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 1rem; }
.notes h2 { font-size: 1.45rem; margin: 0 0 .7rem; }
.fine { padding: 1.25rem 0 clamp(3rem, 6vw, 4.5rem); color: var(--muted); font-size: .92rem; line-height: 1.55; max-width: 60rem; }
.fine p { margin: 0; }

/* =========================================================
   Documents: support, privacy, 404
   ========================================================= */

.doc-top { background: var(--asphalt); color: var(--road); }
.doc-top .wordmark { color: var(--road); }
.doc-head { padding: clamp(1.5rem, 5vw, 3.5rem) 0 clamp(2.25rem, 5vw, 3.75rem); }
.crumb { margin: 0; }
.crumb a { display: inline-flex; align-items: center; gap: .6rem; color: var(--yellow); text-decoration: none;
  font: 800 .88rem/1 var(--sign); letter-spacing: .16em; text-transform: uppercase; }
.crumb a:hover { text-decoration: underline; }
.crumb img { width: 34px; height: 34px; display: block; }
.doc-head h1 { font: 900 clamp(3rem, 9vw, 5.75rem)/.92 var(--sign); letter-spacing: -.02em; margin: 1.1rem 0 0; }
.doc-head .sub { color: var(--muted); font-size: 1.15rem; max-width: 36rem; margin: 1.1rem 0 0; }

.doc-body { display: grid; grid-template-columns: 14rem minmax(0, 40rem); gap: clamp(2.5rem, 6vw, 6rem);
  padding: clamp(2.25rem, 5vw, 4rem) 0 clamp(3.5rem, 8vw, 6rem); }
.toc { position: sticky; top: 1.5rem; align-self: start; font-size: .95rem; line-height: 1.4; }
.toc p { font: 800 .8rem/1 var(--sign); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin: .5rem 0 1rem; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.toc a { text-decoration: underline; text-decoration-color: var(--rule); color: var(--ink); }
.toc a:hover { color: var(--rufous); text-decoration: underline; }

.prose a { color: var(--rufous); }
.prose h2 { font: 800 1.45rem/1.2 var(--sign); letter-spacing: -.005em; margin: 2.75rem 0 .6rem; scroll-margin-top: 1.5rem; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.prose li { margin-bottom: .3rem; }
.prose .effective { color: var(--ink-2); font-style: italic; }

/* Support: the email, on a yellow sign. */
.mailbox { background: var(--yellow); color: var(--yellow-ink); border-radius: 14px; padding: 5px; margin: 0 0 .5rem; }
.mailbox-face { border: 3px solid var(--asphalt); border-radius: 10px; padding: 1.15rem 1.4rem 1.25rem; }
.mailbox-face p { margin: 0; }
.mailbox .to { font: 900 clamp(1.3rem, 3vw, 1.65rem)/1.2 var(--sign); margin-bottom: .45rem; overflow-wrap: anywhere; }
.mailbox a { color: inherit; }

/* Privacy: the short version, as a white regulatory sign. */
.reg { background: #fff; color: #111; border-radius: 14px; padding: 5px; margin: 0 0 2rem; box-shadow: 0 1px 2px rgba(40, 30, 10, .18); }
.reg-face { border: 3px solid #111; border-radius: 10px; padding: 1rem 1.4rem .4rem; }
.reg-head { font: 900 .9rem/1.2 var(--sign); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 .2rem; }
.reg ul { list-style: none; margin: 0; padding: 0; }
.reg li { padding: .6rem 0 .65rem; font: 800 1.2rem/1.3 var(--sign); }
.reg li + li { border-top: 1px solid #d4d4d4; }

/* 404 */
.lost { padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem); max-width: 40rem; }
.lost h1 { font: 800 clamp(2.6rem, 7vw, 4.2rem)/1 var(--serif); letter-spacing: -.02em; margin: 0 0 1.25rem; }
.lost a { color: var(--rufous); }

/* =========================================================
   Narrower screens
   ========================================================= */

@media (max-width: 980px) {
  .doc-body { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .notes { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
}

@media (max-width: 860px) {
  .home-main, .made, .lead-grid, .feature { grid-template-columns: minmax(0, 1fr); }
  .contact, .name { grid-column: 1 / -1; }
  .feature { gap: 2rem; }
  .feature-text { order: -1; }
}

@media (max-width: 600px) {
  :root { --gutter: 1.25rem; }
  body { font-size: 1.0625rem; }
  .bar { padding: 1rem 0; }
  .bar nav { gap: 1.1rem; font-size: .95rem; }
  .masthead h1 { font-size: clamp(3.4rem, 18vw, 4.6rem); }
  .guide-face { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon arrow" "text text";
    gap: 1rem; padding: 1.2rem 1.25rem 1.3rem; }
  .guide-icon { width: 64px; height: 64px; border-radius: 15px; }
  .guide-arrow { justify-self: end; width: 44px; height: 44px; }
  .guide::before { left: 18%; }
  .guide::after { right: 18%; }
  .ledger div { grid-template-columns: minmax(0, 1fr); }
  .tests-face { padding: 1rem 1.1rem .35rem; }
  .ways { grid-template-columns: minmax(0, 1fr); }
  .ways dt { padding-bottom: 0; }
  .ways dd { border-top: 0; padding-top: .15rem; }
  /* Phones: the screenshots become a swipeable strip, each big enough to read. */
  .phones { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) .75rem; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .phones::-webkit-scrollbar { display: none; }
  .phones .phone { flex: 0 0 74%; scroll-snap-align: start; }
  .phones .phone:nth-child(2) { margin-top: 0; }
  .phone figcaption { font-size: .92rem; }
  .brand { grid-template-columns: minmax(0, 1fr); grid-template-areas: "icon" "kicker" "title"; row-gap: .9rem; }
  .brand img { width: 76px; }
  .brand .kicker { margin: .35rem 0 0; }
  .brand h1 { font-size: clamp(2.6rem, 15.5vw, 5rem); }
  .lead { padding-top: 1rem; }
  .masthead { padding-top: .5rem; }
  .name-body { grid-template-columns: minmax(0, 1fr); }
  .name-body img { width: 6rem; margin: 0; }
  .tests li { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "prov prov" "lic lic" "score unit";
    column-gap: .6rem; align-items: baseline; }
  .score { text-align: left; margin-top: .5rem; font-size: 1.6rem; }
  .unit { text-align: left; }
  .doc-head { padding-top: 1rem; }
  .foot { padding: 2.25rem 0 2.5rem; }
  .foot-in { gap: 1rem; }
  .price-face { grid-template-columns: minmax(0, 1fr); }
  .price-cell { padding: 1.15rem 1.25rem 1.25rem; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
