/* Quivira Advisors design tokens. The single source for brand values:
   pages and components compose these and never invent their own.
   Colors are not final (navy stays; accent is gold or silver, TBD with Matt). */

/* Inter Tight, the site's type (Luke, 2026-11-04, from the review font
   switch: its Q has a tail, Matt's #1, "a tail vs a line"; Instrument Sans,
   the face before it, ends its Q in a flat line). Served from the site
   itself: each page preloads the latin file, and font-display: block holds
   text back the few ms until it's in, so the first text you see is the real
   face. size-adjust 94%: its x-height runs 7% taller than Instrument's, so
   at the same size it read large. License: assets/fonts/inter-tight-license.txt */
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
  size-adjust: 94%;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
  size-adjust: 94%;
  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;
}

/* Charter, the logo's face (Bitstream's free release, assets/fonts/charter-license.txt) */
@font-face {
  font-family: "Charter";
  src: url("../fonts/charter_regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- Brand palette ------------------------------------------------ */
  --navy-950: oklch(0.165 0.034 248);
  --navy-900: oklch(0.205 0.044 246);
  --navy-800: oklch(0.27 0.059 243.6);  /* Matt's navy, #062941 */
  --navy-700: oklch(0.34 0.062 243);
  --navy-600: oklch(0.45 0.06 242);
  --sea-500:  oklch(0.6 0.065 238);
  --sea-300:  oklch(0.8 0.035 238);

  --slate-700: oklch(0.45 0.018 245);
  --slate-600: oklch(0.585 0.016 245);  /* Matt's dark grey, #747D85 */
  --slate-550: oklch(0.56 0.016 245);  /* the lightest grey that reads on white at body sizes (4.6:1, WCAG AA) */
  --slate-500: oklch(0.64 0.014 245);
  --slate-400: oklch(0.72 0.012 245);
  --mist-300:  oklch(0.85 0.008 250);   /* Matt's light grey, #CDCDD1, tinted */
  --mist-200:  oklch(0.915 0.009 248);
  --mist-100:  oklch(0.955 0.007 248);
  --mist-50:   oklch(0.975 0.005 248);
  --paper:     oklch(0.988 0.003 250);
  --white:     oklch(0.997 0.002 250);

  --brass-600: oklch(0.56 0.075 72);
  --brass-500: oklch(0.68 0.08 75);
  --silver-100: oklch(0.93 0.006 245);
  --silver-300: oklch(0.83 0.012 245);
  --silver-500: oklch(0.7 0.014 245);

  /* ---- Semantic roles ----------------------------------------------- */
  --bg: var(--paper);
  --surface: var(--white);
  --surface-sunk: var(--mist-50);
  --text: var(--navy-900);
  --text-strong: var(--navy-950);
  --text-muted: var(--slate-700);
  --text-faint: var(--slate-600);
  --text-second: oklch(0.53 0.03 244);   /* second half of two-tone headings */
  --logo-ink: var(--slate-500);          /* employer logos */
  --rule: var(--mist-200);
  --rule-strong: var(--mist-300);
  --guide: oklch(0.925 0.011 248);       /* frame lines, Stripe's #E5EDF5 equivalent */
  --accent: var(--brass-600);
  --cta-bg: var(--navy-800);
  --cta-bg-hover: var(--navy-700);       /* hover lightens a step (Luke's pick; darkening went near black), with the arrow */
  --cta-text: var(--white);
  --link: var(--cta-bg);                /* text CTAs (Get started, Learn more): the button's navy, */
  --link-hover: var(--cta-bg-hover);    /* lightening on hover like the button (Luke, 2026-10-05) */
  --focus: var(--sea-500);
  --error: oklch(0.52 0.15 28);           /* a field's error line and rule: a muted brick, 5.6:1 on white */
  --backdrop: oklch(0.165 0.034 248 / 0.5);   /* behind a window (the booking calendar): navy-950, half through */
  /* bento hover ring: a still silver sheen, light enough not to read as a dark
     outline on photos, deep enough at its darker stops to show on the white page */
  --ring-card: linear-gradient(135deg, var(--silver-300), var(--silver-100) 35%, var(--silver-500) 70%, var(--silver-300));

  /* Dark band: one navy section breaks up the page, as Stripe's dark bands
     do. Matt's navy, with its own guide lines and text tones. */
  --band-dark: var(--navy-800);
  --guide-on-dark: oklch(0.335 0.058 243);   /* Stripe's rgb(24,38,89) role */
  --text-on-dark: var(--white);
  --text-on-dark-second: var(--sea-300);
  --rule-on-dark: oklch(1 0 0 / 0.14);
  /* The hub map (homepage navy band, Luke 2026-10-14): one line for the
     arrows and every outline (the cards and the Q's circle), and one fill
     for the cards and the Q, a shade off the band. Both solid, so an arrow
     starting under a card never shows through and a head never doubles up
     with its line. -lit is the card under the pointer and its arrow. */
  --line-on-dark: color-mix(in oklch, var(--band-dark) 60%, var(--white));
  --line-on-dark-lit: color-mix(in oklch, var(--band-dark) 15%, var(--white));
  --card-on-dark: color-mix(in oklch, var(--band-dark) 94%, var(--white));

  /* Nav bar: the paper. Matt asked for navy with white text (email,
     2026-10-05); it was a review switch until Luke kept this one (2026-10-19). */
  --nav-bg: var(--bg);
  --nav-line: var(--guide);
  --nav-text: var(--text-strong);
  --nav-text-hover: var(--slate-600);
  --nav-rule: var(--rule);                 /* rows in the phone menu */
  --nav-control-line: var(--rule-strong);  /* the Menu button outline */
  --nav-cta-bg: var(--cta-bg);
  --nav-cta-hover: var(--cta-bg-hover);
  --nav-cta-text: var(--cta-text);

  /* ---- Type ----------------------------------------------------------- */
  /* Inter Tight at its own width (Luke, 2026-11-04; Instrument Sans at 94%
     before it). Every type size from --text-base up is 4% under the earlier
     scale and every tracking 0.02em looser, his picks from the review
     switches; the small sizes (xs, sm, nav) stay at 13, 14, 15, since 4%
     down read too small (Luke, 2026-11-04). */
  --font-sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-width: 100%;
  /* Charter, from the logo, for statement headings only (review option, Luke 2026-10-06) */
  --font-display: "Charter", "Bitstream Charter", Georgia, serif;
  --display-statement: calc(var(--display) * 0.94);   /* Charter sets larger than the sans: 45 at desktop */
  --text-2xl-statement: 1.8rem;                        /* 28.8 */
  --leading-statement: 1.12;
  --tracking-statement: 0.005em;

  --text-xs: 0.8125rem;   /* 13 */
  --text-fine: 0.6875rem; /* 11: fine print, two steps under xs (Matt's "As of" date under the assets line, Luke 2026-11-12; 10 was tried and read too small) */
  --text-sm: 0.875rem;    /* 14: buttons, labels, eyebrows */
  --text-nav: 0.9375rem;  /* 15: nav links and the nav buttons (Luke, 2026-10-05) */
  --text-base: 0.96rem;   /* 15.4 */
  --text-md: 1.08rem;     /* 17.3 */
  --text-lg: 1.26rem;     /* 20.2 */
  --text-xl: 1.56rem;     /* 25 */
  --text-2xl: 1.92rem;    /* 30.7: section headings (Stripe's 28 is a step small for a two-word title) */
  --display: clamp(1.8rem, 1.152rem + 2.016vw, 2.88rem);  /* hero h1: 29 on phones, 46 at desktop */
  --display-lg: clamp(2.4rem, 0.8928rem + 3.3696vw, 3.84rem);   /* a one-sentence hero h1 on two lines (Luke, 2026-10-26): 61 at desktop, 38 on phones, keeping pace with the hero column so a line broken by hand fits from 1024 up */
  --display-xl: clamp(3.75rem, 1.5rem + 6vw, 7rem);   /* a figure set on its own (Matt's assets line, #1): 110 at desktop, 60 on phones */
  --leading-display-lg: 1.06;      /* big type sets its lines closer, */
  --tracking-display-lg: -0.015em; /* its letters tighter (-0.045 touched) and a step lighter, or it reads as enlarged body text (Luke, 2026-10-26) */

  --leading-display: 1.15;
  --leading-snug: 1.4;    /* captions, as on Stripe */
  --leading-body: 1.55;
  --tracking-display: -0.01em;   /* hero headline: Libre Franklin sets wider than Stripe's Söhne, so a step past its -0.02 (Luke, 2026-10-05) */
  --tracking-heading: 0em;       /* section and card titles: a step tighter than the text (Luke, 2026-10-05) */
  --tracking-body: 0.02em;       /* everything else, set on body (Luke, 2026-11-04) */

  /* Weights. Stripe sets headings in Söhne 300, which carries as much ink as
     Libre Franklin at 450 (measured on stripe.com, 2026-10-05); at 300 our
     headings read about a quarter thinner. */
  --weight-regular: 400;   /* body, captions, the eyebrow */
  --weight-book: 450;      /* headings, ledes, nav links */
  --weight-medium: 500;    /* buttons, photo names, card titles */
  --weight-bold: 650;      /* Matt's name and number in Let's Get Acquainted (Matt, round 10 #36 #37: "so it pops more") */

  /* ---- Grid (see DESIGN.md) -------------------------------------------
     One 12-column grid runs the whole site. The frame is 1266px including
     its two 1px guide lines; content sits 16px inside them, which leaves
     1232px: twelve 88px columns with 16px gutters. */
  --frame-max: 1266px;
  --frame-pad: 16px;
  --page-margin: 16px;
  --guide-w: 1px;       /* the frame's two side lines; 0 on phones, where they'd sit on the window's edges */
  --gutter: 16px;
  --cols: 12;
  --nav-h: 76px;
  --section-y: clamp(3rem, 2.1rem + 3.4vw, 5.5rem);   /* above and below every section: 48 on phones, about 62 on tablets, 83 at 1440, 88 at most. A step tighter everywhere (Luke, 2026-11-16: the space between sections read as a lot; it was 64 / 96) */
  --cfo-top-trim: 1.5rem;    /* taken off the space above the Personal CFO heading, right under the logo strip (Luke, 2026-10-05) */
  --hero-y: clamp(3rem, 1rem + 7vw, 7.5rem);   /* above and below the hero copy: ~117 at 1440, as on Stripe */
  --intro-y: clamp(2.5rem, 1.5rem + 2.75vw, 4rem);   /* above and below a sub-page's intro: 64 at 1440, 40 on phones. Tighter than a section, so the page gets to its content sooner; the homepage hero keeps --hero-y (Luke, 2026-10-14) */
  --hero-top-trim: 1rem;     /* taken off the space above the eyebrow (never below 32px) */
  --hero-bottom-add: 2rem;   /* added below the buttons; the horizon rises with them */
  --horizon-opacity: 0.85;   /* the hero photo, Matt's cove, over the paper (2026-10-22; the island haze was 0.75) */
  --horizon-filter: saturate(1.2) brightness(1.06);   /* its color, a little brighter (the island haze took saturate(1.475) contrast(1.076)) */
  --sky-fade: 1.15;          /* how far its sky fade is pulled down to the ridge (Luke's 115%) */
  --strip-h: 72px;

  /* ---- Space ---------------------------------------------------------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  /* ---- Shape (Stripe-calibrated: nearly square) ---------------------- */
  --radius-xs: 2px;
  --radius-s: 4px;    /* buttons, inputs */
  --radius-m: 6px;    /* cards, panels, photos */

  /* ---- Elevation ------------------------------------------------------ */
  --shadow-nav:
    0 1px 2px oklch(0.2 0.04 248 / 0.025),
    0 4px 12px -4px oklch(0.2 0.04 248 / 0.04),
    0 12px 28px -14px oklch(0.2 0.04 248 / 0.07);

  /* ---- Motion --------------------------------------------------------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-hover: cubic-bezier(0.25, 1, 0.5, 1);       /* hover arrow */
  --ease-ui: cubic-bezier(0.45, 0.05, 0.55, 0.95);   /* fills and colors */
  --dur-hover: 300ms;
  --dur-ui: 240ms;
  --dur-fade-in: 200ms;    /* hover shadows: in quick, */
  --dur-fade-out: 320ms;   /* out a little softer */
  --ease-card: cubic-bezier(0.165, 0.84, 0.44, 1);   /* Stripe's card hovers: case studies, bento */
  --dur-card: 600ms;   /* Stripe runs 800ms; a step snappier for an institutional feel (Luke, 2026-10-05) */
  --ease-move: cubic-bezier(0.65, 0, 0.35, 1);   /* travel: a line, marker or row moving from one place to another */
  --ease-fill: cubic-bezier(0.61, 1, 0.88, 1);   /* a dot filling from its center: grows from empty at once, eases into full */

  /* ---- Logo (nav): the stacked QUIVIRA / ADVISORS lockup ------------- */
  --logo-h: 30px;     /* the lockup's height since 10-05 (never tied to the 40px button). Luke's final lockup (2026-10-23, ADVISORS 6.4 units higher) is more compact, so at 30px its ink is the same 29.5px and QUIVIRA's capitals grow from 16.4 to 17px */
}

@media (max-width: 1023px) { :root { --cols: 8; --nav-h: 64px; } }
/* Phones (2026-11-16, the mobile build). The frame's guide lines sit on the
   window's own edges, so they're never seen and the content gets the whole
   screen less 20px a side (Stripe keeps 16 on phones and hides its guides
   the same way); the full-width rules still cross the page. Type and the
   two largest spaces take one step down together, as Stripe's do (its 28
   section headings set at 22 on a phone): section headings 24, card titles
   21, the 48px and 64px gaps 40 and 56. */
@media (max-width: 639px)  {
  :root {
    --cols: 4;
    --strip-h: 64px;
    --page-margin: 0px;
    --guide-w: 0px;
    --frame-pad: 20px;
    --text-lg: 1.17rem;   /* 18.7 */
    --text-xl: 1.3rem;    /* 20.8: card titles */
    --text-2xl: 1.5rem;   /* 24: section headings */
    --space-7: 2.5rem;    /* 40 */
    --space-8: 3.5rem;    /* 56 */
  }
}

/* ---- Photo overlays (the "How we work" cards) --------------------------
   Product-style cards that sit on Matt's photos are liquid glass: a thin
   white base that's brighter at the top-left, a light blur that keeps the
   photo's shapes and color readable through it (brightened, so it never goes
   grey), a bright rim with a soft inner glow, and a soft navy shadow. Text on
   them stays ink. */
:root {
  --text-on-photo: var(--white);
  --glass-bg: linear-gradient(150deg, oklch(0.99 0.004 250 / 0.46), oklch(0.99 0.004 250 / 0.3) 55%, oklch(0.99 0.004 250 / 0.38));
  --glass-bg-light: linear-gradient(150deg, oklch(0.99 0.004 250 / 0.66), oklch(0.99 0.004 250 / 0.5) 55%, oklch(0.99 0.004 250 / 0.58));   /* Services panels, over busier photos (2026-11-16) */
  --glass-blur: blur(10px) saturate(1.8) brightness(1.08);
  --glass-sheen: inset 0 1px 0 oklch(1 0 0 / 0.55), inset 0 0 1.5em oklch(1 0 0 / 0.2);   /* top edge + inner glow */
  --glass-line: oklch(0.25 0.05 245 / 0.11);   /* rules and tracks drawn on glass */
  --glass-fill: oklch(0.25 0.05 245 / 0.06);   /* tinted rows and controls on glass */
  --shadow-float:
    0 2px 6px -2px oklch(0.2 0.04 248 / 0.12),
    0 14px 28px -12px oklch(0.2 0.04 248 / 0.28),
    0 32px 60px -28px oklch(0.2 0.04 248 / 0.34);
}
