/* IT Kestrel: the page tokens and the little page CSS the kit allows.
   Everything else comes from assets/ (the tasteskill kit, unedited). */

/* Onest, variable 400 to 700, self-hosted (SIL Open Font License 1.1, fonts/OFL-Onest.txt) */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/onest-latin-wght-normal.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;
}

/* the kestrel's colours, as start.mjs brand printed them around the logo's own rust (#a3441a, sampled from
   logo-source.png): slate-grey ground (its wings), cream surface (its face), blue-black ink (its bars). */
:root {
  --p-bg: #e9edf0; --p-surface: #f1e9da; --p-ink: #15181b; --p-muted: #4e5a64;
  --p-accent: #a3441a; --p-accent-ink: #e9edf0; --p-action: #a3441a; --p-action-ink: #e9edf0;
  --p-inv-bg: #15181b; --p-inv-surface: #212427; --p-inv-ink: #e9edf0; --p-inv-muted: #909497;
  --p-inv-accent: #e9edf0; --p-inv-accent-ink: #15181b; --p-inv-action: #e9edf0; --p-inv-action-ink: #15181b;
  --font-display: "Onest", system-ui, sans-serif;
  --font-text: "Onest", system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.04em;
}

/* the client's logo in the header (logo.png, cut from logo-source.png); the footer keeps the name in text */
.nav__logo .wordmark { font-weight: 500; letter-spacing: -0.02em; }
.nav__logo img { display: block; height: 30px; width: auto; }
@media (max-width: 639px) { .nav__logo img { height: 26px; } }

/* a statement moment beside one photograph (home, about): the frame keeps the photograph's ratio */
.statement__photo { margin: 0; aspect-ratio: 4 / 3; height: auto; }
.statement__photo > img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* the full rate list on pricing.html: name and price on the left half, details from the split line (x 732) */
.rates > li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s-5); }
.rates .rows__name { grid-column: 1; grid-row: 1; }
.rates .rows__value { grid-column: 1; grid-row: 2; text-align: left; white-space: normal; color: var(--ink); }
.rates > li > p { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 639px) { .rates > li { grid-template-columns: minmax(0, 1fr); } .rates .rows__value, .rates > li > p { grid-column: 1; grid-row: auto; } }
/* response times on pricing.html, as rows of term and answer */
.rows--dl { margin: 0; display: grid; }
.rows--dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s-5); padding-block: var(--s-3); border-bottom: 1px solid var(--line); }
.rows--dl dd { margin: 0; }
@media (max-width: 639px) { .rows--dl > div { grid-template-columns: minmax(0, 1fr); } }

/* the home page's service index: the list is the section's picture, set large */
.rows--index > li { align-items: baseline; padding-block: var(--s-4); }
.rows--index .rows__name { font: var(--display-weight) var(--t-h3)/1.15 var(--font-display); letter-spacing: -0.02em; }
.rows--index .rows__value { color: var(--muted); }

/* a phone stacks each step over its photograph: the section takes two phone screens */
@media (max-width: 639px) { main > #start[data-moment]:not(.is-live) { min-height: calc(2 * 100lvh); } }
@media (max-width: 639px) { .rows--index .rows__name { font-size: var(--t-lead); } }

/* links: the words and a drawn underline, no arrow glyph */
.link::after { content: none; }
html:not([data-motion="off"]) .link { background-size: 0% 1px, 100% 1px; }
html:not([data-motion="off"]) .link:is(:hover, :focus-visible) { background-size: 100% 1px, 100% 1px; }


/* the browser's own surfaces, in the kestrel colours */
::selection { background: var(--p-accent); color: var(--p-accent-ink); }
.ground-brand ::selection { background: var(--p-ink); color: var(--p-bg); }
html { accent-color: var(--p-accent); caret-color: var(--p-accent); scrollbar-color: color-mix(in oklab, var(--p-ink) 35%, transparent) var(--p-bg); }
.rows__value, .price { font-variant-numeric: tabular-nums; }

/* pricing.html: room around the note and the response times; prices read first */
.rates .rows__value { font-size: var(--t-lead); }
#rates .rates + .t-small { margin-top: var(--s-4); }
#hourly .rates + #response { margin-top: var(--s-7); }


/* in-page anchors to a row or block land below the fixed header */
.rows > li[id], #response { scroll-margin-top: calc(var(--nav) + var(--s-5)); }

/* the primary's hover steps darker, never lighter, so its label keeps 4.5:1 on the logo rust */
html:not([data-motion="off"]) .btn--primary:hover { background: color-mix(in oklab, var(--action) 84%, var(--p-ink)); }
.services__photo { aspect-ratio: 16 / 9; }
/* home services: the photograph stacks under the list on a tablet, so the section takes two screens there */
@media (min-width: 640px) and (max-width: 1023px) { #services { --h: 2; } }

/* contact form (contact.html): the form on the cream surface; the honeypot off screen; the no-JS result lines show
   only when the function redirects back to #sent or #not-sent */
.contact-card { background: var(--p-surface); border-radius: var(--r-lg); padding: var(--s-7); }
@media (max-width: 639px) { .contact-card { padding: var(--s-5); } }
.contact-card .field :is(input, textarea) { background: #fff; }
.form > .cf-turnstile { grid-column: 1 / -1; min-height: 65px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { display: none; margin: 0; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--p-surface); font-weight: 500; }
.form-note:target { display: block; }
.form-note--error { color: #8a1c12; }
@media (max-width: 639px) { .services__photo { aspect-ratio: 3 / 4; } }
@media (max-width: 359px) { .services__photo { aspect-ratio: 16 / 9; } }
