/* BlomQuest LLC — site styles
   Fonts: Big Shoulders Display (headlines), Atkinson Hyperlegible (text). Both SIL OFL 1.1, self-hosted. */

@font-face { font-family: "Big Shoulders Display"; src: url("fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url("fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* BlomQuest corporate */
  --paper: #ffffff;
  --mist: #f2f5f9;
  --rule: #d6dde7;
  --ink: #15213a;
  --slate: #4b586f;
  --brand: #2b3f8f;        /* BlomQuest indigo */
  --brand-deep: #1d2c6b;

  /* Puzzsaw */
  --pz: #17804a;
  --pz-deep: #0f5c35;
  --pz-tint: #e7f3ec;

  /* Left Seat Lab — sectional-chart colors */
  --lsl: #1b5fa8;          /* chart blue */
  --lsl-deep: #134680;
  --lsl-accent: #a8226a;   /* VOR magenta */
  --lsl-tint: #e8f0fa;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --text: "Atkinson Hyperlegible", system-ui, sans-serif;

  --measure: 34rem;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Modular scale, ratio 1.25 */
  --s-1: 0.8rem; --s0: 1rem; --s1: 1.25rem; --s2: 1.563rem; --s3: 1.953rem; --s4: 2.441rem; --s5: 3.052rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 7.2vw, 5.6rem); }
h2 { font-size: clamp(2.2rem, 4.2vw, var(--s5)); }
h3 { font-size: var(--s3); font-weight: 700; line-height: 1.05; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: var(--s1); line-height: 1.5; color: var(--slate); max-width: 36rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; }
.wordmark svg { width: 2rem; height: 2rem; flex: none; }
.wordmark span { font: 800 1.7rem/1 var(--display); letter-spacing: 0.01em; }
.site-nav ul { display: flex; gap: clamp(1rem, 3vw, 2rem); list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--slate); text-decoration: none; font-weight: 700; font-size: .95rem; padding: .35rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font: 700 1rem/1 var(--text); text-decoration: none;
  padding: .95rem 1.35rem; border-radius: 6px; border: 2px solid transparent;
  background: var(--brand); color: #fff;
}
.btn:hover { background: var(--brand-deep); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.pz { background: var(--pz); } .btn.pz:hover { background: var(--pz-deep); }
.btn.lsl { background: var(--lsl); } .btn.lsl:hover { background: var(--lsl-deep); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- Home hero ---------- */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem); border-bottom: 1px solid var(--rule); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 11ch; }
.hero .lede { margin-top: 1.25rem; }

/* Heading-indicator rose: the card turns, the grid and lubber line stay put. */
.instrument { position: relative; width: min(100%, 26rem); justify-self: end; aspect-ratio: 1; }
.instrument svg { width: 100%; height: 100%; overflow: visible; }
.instrument .bezel { fill: var(--ink); }
.instrument .rose-face { fill: var(--paper); }
.instrument .tick { stroke: var(--slate); stroke-width: 1.4; }
.instrument .tick.major { stroke: var(--ink); stroke-width: 2.6; }
.instrument .rose-label { font: 700 20px/1 var(--display); fill: var(--slate); text-anchor: middle; dominant-baseline: central; }
.instrument .rose-label.card { fill: var(--ink); font-size: 26px; font-weight: 800; }
.instrument .lubber { fill: var(--brand); }
.instrument .cell { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.instrument .cell.block { fill: var(--ink); }
.instrument .cell.word { fill: var(--pz-tint); }
.instrument .cell.cursor { fill: #c9e6d4; stroke: var(--pz); stroke-width: 3; }
.instrument .letter { font: 800 22px/1 var(--display); fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.instrument .num { font: 700 9px/1 var(--text); fill: var(--slate); }
.instrument .needle { stroke: var(--lsl-accent); stroke-width: 3; stroke-linecap: round; }
.rose-card { transform-origin: 200px 200px; animation: settle 2.6s cubic-bezier(.3,.7,.2,1) .2s both; }
@keyframes settle {
  0%   { transform: rotate(-62deg); }
  55%  { transform: rotate(9deg); }
  75%  { transform: rotate(-3.5deg); }
  90%  { transform: rotate(1deg); }
  100% { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) { .rose-card { animation: none; } }

/* ---------- Sections ---------- */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--slate); margin: 0; }

/* Products — two panels with their own brand color, not a card grid */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.product {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(1.75rem, 3.5vw, 2.75rem); border-radius: 10px;
  border: 1px solid var(--rule); border-top: 8px solid var(--c);
  background: var(--paper);
}
.product.pz { --c: var(--pz); --t: var(--pz-tint); --d: var(--pz-deep); }
.product.lsl { --c: var(--lsl); --t: var(--lsl-tint); --d: var(--lsl-deep); }
.product .mark { width: 4.5rem; height: 4.5rem; margin-bottom: 1.5rem; }
.product h3 { font-size: var(--s4); font-weight: 800; color: var(--d); margin-bottom: .35em; }
.product .what { font-size: var(--s1); line-height: 1.4; margin-bottom: 1rem; }
.product ul { margin: 0 0 1.5rem; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.product li { padding: .7rem 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; }
.product li b { color: var(--slate); font-weight: 700; font-size: .95rem; }
.product .actions { margin-top: auto; }
.product .btn.pz, .product .btn.lsl { padding: .8rem 1.1rem; }

/* Approach */
.approach { background: var(--mist); border-block: 1px solid var(--rule); }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.principles h3 { font-size: var(--s2); padding-top: 1rem; border-top: 3px solid var(--ink); }
.principles p { color: var(--slate); }

/* About */
.about .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem 4rem; }
.about dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .75rem 1.5rem; align-content: start; padding: 1.5rem; border: 1px solid var(--rule); border-radius: 10px; }
.about dt { color: var(--slate); }
.about dd { margin: 0; font-weight: 700; }

/* Contact */
.contact { background: var(--brand); color: #fff; }
.contact h2 { color: #fff; max-width: 14ch; }
.contact p { color: #dfe5f7; }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; }
.contact .btn { background: #fff; color: var(--brand-deep); }
.contact .btn:hover { background: var(--mist); }
.contact a:not(.btn) { color: #fff; }
.contact :focus-visible { outline-color: #fff; }

/* Footer */
.site-footer { padding: 2.5rem 0 3rem; font-size: .92rem; color: var(--slate); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 0; padding: 0; }
.site-footer a { color: var(--slate); }

/* ---------- Product overview pages ---------- */
.p-hero { padding: clamp(3rem, 7vw, 5.5rem) 0; background: var(--t); border-bottom: 1px solid var(--rule); }
.p-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.p-hero .crumb { font-size: .95rem; margin: 0 0 1.25rem; color: var(--slate); }
.p-hero .crumb a { color: var(--slate); }
.p-hero h1 { color: var(--d); }
.p-hero .lede { color: var(--ink); }
.p-hero figure { margin: 0; justify-self: center; width: min(100%, 24rem); }
.p-hero figcaption { font-size: .9rem; color: var(--slate); margin-top: .75rem; text-align: center; }
body.pz { --c: var(--pz); --t: var(--pz-tint); --d: var(--pz-deep); }
body.lsl { --c: var(--lsl); --t: var(--lsl-tint); --d: var(--lsl-deep); }
body.pz :focus-visible { outline-color: var(--pz); }
body.lsl :focus-visible { outline-color: var(--lsl); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem 4rem; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.features h3 { font-size: var(--s2); color: var(--d); }
.features p { color: var(--slate); }

/* Area list (Puzzsaw) and lab list (Left Seat Lab): status is real information, so it is shown. */
.areas { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.areas li { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; gap: .5rem 2rem; align-items: baseline; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.areas .name { font: 800 var(--s3)/1 var(--display); color: var(--d); }
.areas p { margin: 0; color: var(--slate); }
.areas p strong { color: var(--ink); }
.status { font-size: .85rem; font-weight: 700; padding: .3rem .65rem; border-radius: 999px; white-space: nowrap; }
.status.live { background: var(--c); color: #fff; }
.status.soon { background: var(--paper); color: var(--d); border: 1px solid currentColor; }
.status.plan { background: transparent; color: var(--slate); border: 1px dashed currentColor; }

.band { background: var(--mist); border-block: 1px solid var(--rule); }
.callout { border-left: 6px solid var(--c); padding: .25rem 0 .25rem 1.5rem; margin-bottom: 1.5rem; }
.callout p { margin-bottom: 0; }
.callout p { font-size: var(--s1); line-height: 1.45; max-width: 38rem; }

/* Instruments on product pages */
.vor .bezel { fill: var(--ink); }
.vor .face { fill: #0f1a2e; }
.vor .tick { stroke: #fff; stroke-width: 2; }
.vor .tick.minor { stroke-width: 1.2; opacity: .75; }
.vor .lbl { font: 700 22px/1 var(--display); fill: #fff; text-anchor: middle; dominant-baseline: central; }
.vor .dot { fill: none; stroke: #fff; stroke-width: 2; }
.vor .cdi { stroke: #fff; stroke-width: 5; stroke-linecap: round; }
.vor .idx { fill: #f2c230; }
.vor .flag { fill: #fff; }
.vor .flagtext { font: 800 15px/1 var(--display); fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.vor .obs { fill: var(--lsl-accent); }

.grid-fig .cell { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.grid-fig .block { fill: var(--ink); }
.grid-fig .hl-a { fill: #cfe8d9; }
.grid-fig .hl-b { fill: #dde4f5; }
.grid-fig .cur-a { fill: none; stroke: var(--pz); stroke-width: 4; }
.grid-fig .cur-b { fill: none; stroke: var(--brand); stroke-width: 4; }
.grid-fig .ltr { font: 800 26px/1 var(--display); fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.grid-fig .ltr.b { fill: var(--brand-deep); }
.grid-fig .num { font: 700 9px/1 var(--text); fill: var(--slate); }
.grid-fig .tag { font: 700 13px/1 var(--text); fill: #fff; }

/* ---------- 404 ---------- */
.lost { padding: clamp(4rem, 12vw, 9rem) 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .p-hero .wrap, .section-head, .about .wrap, .contact .wrap, .split { grid-template-columns: 1fr; }
  .instrument { justify-self: center; width: min(100%, 20rem); }
  .products, .principles, .features { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .site-nav { display: none; }
  .areas li { grid-template-columns: 1fr auto; }
  .areas li p { grid-column: 1 / -1; }
  .product li { grid-template-columns: 1fr; gap: .15rem; }
}
