/* Kestrel10 — shared stylesheet */

/* ---------- fonts ----------
 *
 * Self-hosted from Google Fonts. Inter and Space Grotesk are VARIABLE fonts:
 * one file per subset covers the whole weight range, so the range is declared
 * on font-weight rather than shipping a file per weight. JetBrains Mono is a
 * static 500 instance — it is the only weight the site uses.
 *
 * unicode-range means a visitor reading English fetches only the three -latin
 * files; the -latin-ext files are requested only if such a character appears.
 */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-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: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-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: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/inter-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-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;
}

:root {
  --bg:            #0B0F14;
  --bg-alt:        #0E141B;
  --panel:         #111823;
  --line:          #1C232C;
  --line-strong:   #263140;
  --text:          #E7ECF1;
  --text-muted:    #A7B0BC;
  --text-dim:      #8B96A5;
  --text-faint:    #818D9D;
  --text-fainter:  #7B8799;
  --text-faintest: #758294;
  --accent:        #3FBDB0;
  --accent-hover:  #67D2C6;
  --accent-select: #2A9D93;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --width: 1120px;
}

* { box-sizing: border-box; }

/* The header is sticky, so an in-page anchor must stop clear of it. Measured
   header height is 71px here and 98px once the nav stacks below 720px. */
html { scroll-padding-top: 88px; }

/* Column layout so the footer sits at the bottom of the viewport on short
   pages (contact, 404) instead of floating mid-screen with dead space below. */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

::selection { background: var(--accent-select); color: var(--bg); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

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

/* Keyboard users would otherwise tab the brand plus five nav links on every
   page before reaching content. Off-screen until focused. */
.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  z-index: 20;
  padding: 12px 22px;
  border-radius: 2px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  transition: top 0.15s ease;
}

.skip-link:focus { top: 12px; color: var(--bg); }

/* ---------- layout ---------- */

.container { max-width: var(--width); margin: 0 auto; }

.page      { max-width: 760px; margin: 0 auto; padding: 96px 24px 120px; }
.page-wide { max-width: 920px; margin: 0 auto; padding: 96px 24px 120px; }
.page-narrow { max-width: 640px; margin: 0 auto; padding: 96px 24px 140px; }

.hero { padding: 120px 24px 96px; }

.section { padding: 96px 24px; }
.section-tight { padding: 72px 24px; }
.section-alt { background: var(--bg-alt); }
.bordered-top { border-top: 1px solid var(--line); }

.rule { height: 1px; background: var(--line); margin: 40px 0; }
.rule-top { margin: 0 0 40px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 15, 20, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand-name .accent,
.accent { color: var(--accent); }

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.navlink {
  font-family: var(--font-body);
  font-size: 14px;
  text-decoration: none;
  color: var(--text-dim);
}

.navlink:hover { color: var(--text); }
.navlink[aria-current='page'] { color: var(--text); }

/* ---------- typography ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.eyebrow-accent { color: var(--accent); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}

.dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 820px;
}

.title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}

.title-sm {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}

.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 40px;
}

.intro { max-width: 560px; margin-bottom: 56px; }

.prose {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 22px;
}

.body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 36px;
}

.prose ul {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 22px;
  padding-left: 22px;
}

.prose li { margin-bottom: 8px; }

.subhead {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin: 40px 0 14px;
}

.note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-faint);
  margin: 0;
}

.note-spaced { margin-bottom: 40px; }

.mono-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.8;
  margin: 0;
}

/* ---------- buttons & links ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border: none;
  border-radius: 2px;
  font-family: var(--font-body);
  cursor: pointer;
}

.btn-primary:hover { background: var(--accent-hover); color: var(--bg); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 2px;
  font-family: var(--font-body);
  cursor: pointer;
}

.btn-secondary:hover { border-color: var(--accent); color: var(--text); }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

.link-arrow-spaced { margin-top: 48px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-body);
}

/* ---------- home: principles ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px;
}

.principle-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
}

.principle h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
}

.principle p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}

/* ---------- home: flagship card ---------- */

.flagship {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--panel);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}

.flagship h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.flagship p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 24px;
  max-width: 460px;
}

.made-by {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 28px;
  background: var(--bg);
}

.made-by-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.made-by-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}

.made-by p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-faint);
  margin: 14px 0 0;
}

/* ---------- about: callout ---------- */

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 28px 32px;
  background: var(--panel);
}

.callout p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  margin: 0;
}

/* ---------- services ---------- */

.service-block {
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.service-block + .service-block,
.service-block.has-gap { margin-bottom: 32px; }

.service {
  display: flex;
  gap: 20px;
  align-items: baseline;
}

.service-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  flex-shrink: 0;
}

.service h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 4px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.service p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 12px 0 0;
  max-width: 640px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px 40px;
  margin-bottom: 32px;
}

.service-sm > div { display: flex; gap: 16px; align-items: baseline; }

.service-sm h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.service-sm p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 10px 0 0 32px;
  max-width: none;
}

.service-md h3 { font-size: 18px; margin: 0; }
.service-md p { font-size: 14px; margin: 10px 0 0; max-width: 600px; }

/* ---------- contact ---------- */

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.contact-method {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 16px 22px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
}

.contact-method:hover { border-color: var(--accent); color: var(--text); }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 24px;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-faint);
}

.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav .navlink { color: var(--text-faint); }
.footer-nav .navlink:hover { color: var(--text-dim); }

.footer-fineprint {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-fainter);
  margin: 0;
}

.footer-fineprint a { color: var(--text-fainter); text-decoration: underline; }
.footer-fineprint a:hover { color: var(--text-dim); }

.footer-legal {
  font-size: 12px;
  color: var(--text-faintest);
  margin: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .flagship {
    grid-template-columns: 1fr;
    padding: 32px;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .display { font-size: 38px; }
  .title { font-size: 30px; }
  .title-sm { font-size: 28px; }
  .lead { font-size: 17px; }
  .flagship h2 { font-size: 26px; }
  .section { padding: 64px 24px; }
  .section-tight { padding: 56px 24px; }
  .page, .page-wide, .page-narrow { padding: 64px 24px 88px; }
  .hero { padding: 72px 24px 64px; }
}

/* Below this the four nav items no longer sit beside the wordmark, so stack
   them onto their own full-width row instead of letting them wrap raggedly. */
@media (max-width: 720px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 24px;
  }
  .nav { gap: 20px; }
  .footer-top { align-items: flex-start; }
  /* Taller stacked header needs more anchor clearance. */
  html { scroll-padding-top: 116px; }
}

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