/* Tint Bio — design system
   Source of truth: Projects/Tint/brand/brand-tokens.md
   Hard corners, no shadows, navy and blue read first. */

:root {
  /* Masters */
  --navy: #001F3F;
  --blue: #0074D9;
  --cloud: #F4F6FA;
  --paper: #FFFFFF;
  /* Brandbook Graphite is #6C7A8C, which measures 4.37:1 on Paper and 4.04:1
     on Cloud. Both fail the 4.5:1 bar for body and caption text. Darkened along
     the same hue to 4.97:1 on Paper and 4.59:1 on Cloud. */
  --graphite: #647182;
  --graphite-brand: #6C7A8C;
  --graphite-soft: #B8C0CC;
  --rule: #E2E7EE;

  /* Four lines */
  --color-line: #0074D9;
  --sups: #00B7C2;
  --beauty: #E45A8C;
  --agro: #C5A547;

  /* Product accents (Tint Color only) */
  --tintgreen: #2DB66B;
  --tintpurple: #6E3FF3;

  /* Functional */
  --caution: #E67E22;
  --confirm: #1B8C5A;
  --alert: #C0392B;

  /* Type */
  --sans: "Bricolage Grotesque", system-ui, sans-serif;
  --display-serif: "Instrument Serif", Georgia, serif;
  --editorial: "Source Serif 4", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* Spacing, base 4 */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 72px; --s9: 96px;

  --gutter: 24px;
  --margin: 96px;
  --maxw: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--margin);
}

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

section { padding: var(--s8) 0; }
section.tight { padding: var(--s7) 0; }

.bg-cloud { background: var(--cloud); }
.bg-navy  { background: var(--navy); color: var(--paper); }
.bg-navy a { color: #7FC0FF; }
.bg-navy .rule-hair { background: rgba(255,255,255,.18); }
.bg-navy .eyebrow { color: #7FC0FF; }
.bg-navy .lede { color: rgba(255,255,255,.72); }
.bg-navy .caption { color: rgba(255,255,255,.55); }

/* ---------- Type roles ---------- */

.t-cover {
  font-family: var(--display-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(48px, 8.5vw, 116px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
}

.t-display {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
}

.t-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

.t-subhead {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.32;
  letter-spacing: -0.01em;
  margin: 0;
}

.t-pullquote {
  font-family: var(--editorial);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.32;
  margin: 0;
}

.t-editorial, .prose p {
  font-family: var(--editorial);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.62;
}

.lede {
  font-family: var(--editorial);
  font-size: 19px;
  line-height: 1.58;
  color: var(--graphite);
}

.caption {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--graphite);
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.prose p { margin: 0 0 var(--s5); }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Section marker: EYEBROW ──────── id ---------- */

.marker {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin-bottom: var(--s7);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  white-space: nowrap;
}
.rule-hair { flex: 1; height: 1px; background: var(--rule); }
.marker .idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--graphite-soft);
}

/* ---------- Cascade device (Color, Sups, Beauty, Agro) ---------- */

.cascade { display: flex; width: 100%; }
.cascade span { height: 8px; flex: 1; }
.cascade span:nth-child(1) { background: var(--color-line); }
.cascade span:nth-child(2) { background: var(--sups); }
.cascade span:nth-child(3) { background: var(--beauty); }
.cascade span:nth-child(4) { background: var(--agro); }
.cascade.tall span { height: 14px; }

/* Tapered variant, volume flow */
.cascade.tapered span:nth-child(1) { flex: 44; }
.cascade.tapered span:nth-child(2) { flex: 21; }
.cascade.tapered span:nth-child(3) { flex: 5; }
.cascade.tapered span:nth-child(4) { flex: 166; }

.cascade-annotated { display: grid; grid-template-columns: repeat(4, 1fr); }
.cascade-annotated .bar { height: 14px; }
.cascade-annotated .bar.c1 { background: var(--color-line); }
.cascade-annotated .bar.c2 { background: var(--sups); }
.cascade-annotated .bar.c3 { background: var(--beauty); }
.cascade-annotated .bar.c4 { background: var(--agro); }
.cascade-annotated .lbl { padding: var(--s4) var(--s4) 0 0; }
.cascade-annotated .lbl strong {
  display: block; font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
}
.cascade-annotated .lbl span { display: block; font-size: 13px; color: var(--graphite); margin-top: 2px; }

/* ---------- Header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-head .inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: var(--s4) var(--margin);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s5);
}
.brand { display: flex; align-items: center; gap: var(--s3); }
.brand img { width: 30px; height: auto; }
.brand .wm {
  font-weight: 800; font-size: 19px; letter-spacing: -0.02em;
  line-height: .92; color: var(--navy);
}
.brand .wm em { display: block; font-style: normal; font-weight: 800; }

.nav { display: flex; align-items: center; gap: var(--s6); }
.nav a {
  color: var(--navy); font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
}
.nav a:hover { color: var(--blue); text-decoration: none; }
.nav a.here { color: var(--blue); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: var(--s3);
  background: var(--blue); color: var(--paper);
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  letter-spacing: -0.01em;
  padding: 14px var(--s5);
  border: 1px solid var(--blue); border-radius: 0;
  transition: background .18s ease, border-color .18s ease;
  cursor: pointer;
}
.btn:hover { background: #005CAD; border-color: #005CAD; text-decoration: none; color: var(--paper); }
.btn .arw { transition: transform .18s ease; }
.btn:hover .arw { transform: translateX(3px); }

.btn.ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--paper); }

.btn.onnavy { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.btn.onnavy:hover { background: var(--blue); border-color: var(--blue); color: var(--paper); }

.btn.sm { padding: 10px var(--s4); font-size: 14px; }

/* ---------- Spec table (data as design) ---------- */

.spec {
  width: 100%; border-collapse: collapse;
  font-size: 14px; font-variant-numeric: tabular-nums;
}
.spec caption {
  text-align: left;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--graphite);
  padding-bottom: var(--s3);
}
.spec th, .spec td {
  text-align: left; padding: var(--s3) var(--s4) var(--s3) 0;
  border-bottom: 1px solid var(--rule); vertical-align: top;
}
.spec thead th {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--graphite); font-weight: 500;
  border-bottom: 1px solid var(--navy);
}
.spec tbody th { font-weight: 500; color: var(--navy); width: 34%; }
.spec td { color: var(--navy); font-weight: 500; }
.spec td.num { font-weight: 600; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: none; }

/* ---------- Data rail / stat block ---------- */

.stat { border-top: 2px solid var(--navy); padding-top: var(--s4); }
.stat .v {
  font-weight: 800; font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -0.03em; line-height: 1; display: block;
}
.stat .k {
  font-family: var(--mono); font-size: 11px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--graphite); margin-top: var(--s3); display: block;
}
.stat .n { font-size: 13px; color: var(--graphite); margin-top: var(--s2); line-height: 1.45; }
.bg-navy .stat { border-top-color: var(--blue); }
.bg-navy .stat .k, .bg-navy .stat .n { color: rgba(255,255,255,.6); }

/* ---------- Island card (no shadow, hairline only) ---------- */

.island {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: var(--s6);
}
.island .top-accent { height: 4px; margin: calc(var(--s6) * -1) calc(var(--s6) * -1) var(--s5); }

/* ---------- Notes ---------- */

.note {
  border-left: 2px solid var(--caution);
  padding: var(--s2) 0 var(--s2) var(--s4);
  font-size: 14px; color: var(--graphite); line-height: 1.55;
}
.note.ok { border-left-color: var(--confirm); }

/* ---------- Forms ---------- */

.field { margin-bottom: var(--s5); }
.field label {
  display: block;
  font-family: var(--mono); font-size: 11px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--graphite);
  margin-bottom: var(--s2);
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--sans); font-size: 15px; color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--graphite-soft);
  border-radius: 2px;
  padding: 12px var(--s3);
  transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
}
.field textarea { min-height: 108px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--graphite); margin-top: var(--s2); }

/* ---------- Footer ---------- */

.site-foot { background: var(--navy); color: var(--paper); padding: var(--s8) 0 var(--s6); }
.site-foot a { color: rgba(255,255,255,.72); font-size: 14px; }
.site-foot a:hover { color: var(--paper); }
.site-foot .fh {
  font-family: var(--mono); font-size: 11px; letter-spacing: .13em;
  text-transform: uppercase; color: rgba(255,255,255,.62);
  margin-bottom: var(--s4);
}
.site-foot .legal {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: var(--s7); padding-top: var(--s5);
  font-size: 12px; color: rgba(255,255,255,.45);
  display: flex; justify-content: space-between; gap: var(--s5); flex-wrap: wrap;
}
.foot-links { display: flex; flex-direction: column; gap: var(--s3); align-items: flex-start; }

/* ---------- Motion: fades and slides only ---------- */

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .5s ease, transform .5s ease;
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utilities ---------- */

.col-12 { grid-column: span 12; }
.col-8  { grid-column: span 8; }
.col-7  { grid-column: span 7; }
.col-6  { grid-column: span 6; }
.col-5  { grid-column: span 5; }
.col-4  { grid-column: span 4; }
.col-3  { grid-column: span 3; }
.mt4 { margin-top: var(--s4); } .mt5 { margin-top: var(--s5); }
.mt6 { margin-top: var(--s6); } .mt7 { margin-top: var(--s7); }
.mt8 { margin-top: var(--s8); }
.mb4 { margin-bottom: var(--s4); } .mb5 { margin-bottom: var(--s5); }
.mb6 { margin-bottom: var(--s6); } .mb7 { margin-bottom: var(--s7); }
.measure { max-width: 62ch; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  :root { --margin: 48px; }
  .col-8, .col-7, .col-6, .col-5 { grid-column: span 12; }
  .col-4, .col-3 { grid-column: span 6; }
}

@media (max-width: 720px) {
  :root { --margin: 24px; --s9: 64px; --s8: 48px; }
  body { font-size: 15px; }
  .nav { gap: var(--s4); }
  .nav a:not(.btn) { display: none; }
  .col-4, .col-3 { grid-column: span 12; }
  .cascade-annotated { grid-template-columns: repeat(2, 1fr); }
  .spec tbody th { width: 46%; }
  .site-head .inner { padding: var(--s3) var(--margin); }
}

/* Tables scroll rather than breaking the page */
.table-scroll { overflow-x: auto; }

/* The wordmark is a link but never reads as one. */
.brand:hover { text-decoration: none; }

/* Cart. A basket with a count badge, the way a store does it. Square badge,
   because the brand has hard corners everywhere else. */
.nav .cart { position: relative; display: inline-flex; align-items: center; padding: 6px; color: var(--navy); }
.nav .cart:hover { color: var(--blue); }
.nav .cart .cart-n {
  position: absolute; top: -3px; right: -5px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--blue); color: var(--paper);
  font-family: var(--mono); font-weight: 600; font-size: 11px; line-height: 16px; text-align: center;
}
.nav .cart .cart-n:empty { display: none; }

/* ---- The wordmark never underlines: hover, focus or the click itself. ---- */
.brand, .brand:hover, .brand:focus, .brand:active { text-decoration: none; }

/* ---- Buttons keep their contrast against whatever they sit on. Blue on a
   white page darkens to navy on hover. White on navy shifts to cloud rather
   than to blue, because blue on navy is mud. A ghost on navy fills white. ---- */
.btn:hover { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.btn.onnavy:hover { background: var(--cloud); border-color: var(--cloud); color: var(--navy); }
.btn.ghost-onnavy { background: transparent; color: var(--paper); border-color: rgba(255, 255, 255, 0.55); }
.btn.ghost-onnavy:hover { background: var(--paper); border-color: var(--paper); color: var(--navy); }

/* ---- Mobile navigation. A burger opens the nav as a panel under the bar. ---- */
.site-head { z-index: 40; }
.nav-burger {
  display: none; width: 40px; height: 40px; padding: 9px;
  flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: 1px solid var(--rule); cursor: pointer;
  margin-left: auto; margin-right: var(--s4);
}
.nav-burger span { display: block; height: 2px; background: var(--navy); transition: transform 200ms ease, opacity 160ms ease; }
.nav a.only-mobile, .nav .cart-label { display: none; }
@media (max-width: 720px) {
  .nav-burger { display: flex; }
  .site-head.open .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: var(--s3) var(--gutter) var(--s6);
  }
  .site-head.open .nav a { display: flex; align-items: center; gap: var(--s3); font-size: 18px; padding: var(--s4) 0; border-bottom: 1px solid var(--rule); }
  .site-head.open .nav a.cart { padding: var(--s4) 0; }
  .site-head.open .nav .cart-label { display: inline; }
  .site-head.open .nav .cart .cart-n { position: static; margin-left: var(--s2); }
  .site-head.open .nav a.btn { margin-top: var(--s5); justify-content: center; border-bottom: none; }
  .site-head.open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-head.open .nav-burger span:nth-child(2) { opacity: 0; }
  .site-head.open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}


/* ---- Contrast on navy. Plain links inherit the page blue, which is 3.5:1
   on navy; on dark drenches they go sky. Display type set light on dark gets
   a touch more leading. ---- */
.drench.on-dark a:not(.btn):not(.house-panel):not(.hs-lab), .hero-split a:not(.btn):not(.hs-lab) { color: #8FC1EE; }
.drench.on-dark a:not(.btn):not(.house-panel):not(.hs-lab):hover { color: var(--paper); }
.drench.on-dark .t-mega, .hero-split .t-mega { line-height: 1.06; }
/* Anything set in graphite inside a dark drench resolves to the soft tone:
   3.3:1 becomes 9:1 without touching a single inline style. */
.drench.on-dark, .hero-split, .site-foot { --graphite: var(--graphite-soft); }

/* ---- Footer: compact. The mark and one line on the left, 4 real columns,
   the entity line below. It ends the page, it does not start a section. ---- */
.site-foot { padding: var(--s8) 0 var(--s6); }
.site-foot .fh { margin-bottom: var(--s4); }
@media (max-width: 720px) { .site-foot .grid12 > div { grid-column: span 6; } .site-foot .grid12 > .col-4 { grid-column: span 12; } }

/* Social icons in the footer: the mark only, no label. */
.foot-social { display: flex; gap: var(--s4); }
.foot-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.18); }
.foot-social a:hover { color: var(--paper); border-color: var(--paper); text-decoration: none; }

/* ---- Footer: compact. The mark and one line on the left, 4 real columns,
   the entity line below. It ends the page, it does not start a section. ---- */
.site-foot { padding: var(--s8) 0 var(--s6); }
.site-foot .fh { margin-bottom: var(--s4); }
@media (max-width: 720px) { .site-foot .grid12 > div { grid-column: span 6; } .site-foot .grid12 > .col-4 { grid-column: span 12; } }

/* ==== DESIGN SYSTEM PASS 2026-09-08 ==== */

/* ---- Buttons: explicit transitions, a press you can feel. ---- */
.btn { transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 120ms ease; }
.btn:active { transform: scale(0.98); }
.btn .arw { transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1); }

/* ---- Kickers: a label, not a headline. ---- */
.hs-kicker, .hero-kicker, .eyebrow, .mono { letter-spacing: 0.12em; }

/* ---- Footer: the whole width on desktop. Brand block left, 3 columns
   spread across the right two thirds, the entity line under a hairline.
   The social mark is a 16px glyph at half opacity beside the tagline. ---- */
.site-foot { position: relative; overflow: hidden; padding: clamp(72px, 8vw, 120px) 0 var(--s6); border-top: 1px solid rgba(255,255,255,0.08); }
.foot-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 3fr 1fr 2fr 2fr 2fr; gap: var(--s6); align-items: start; }
.foot-brand { grid-column: 1; }
.foot-col:nth-of-type(2) { grid-column: 3; }
.foot-col:nth-of-type(3) { grid-column: 4; }
.foot-col:nth-of-type(4) { grid-column: 5; }
.foot-line { margin: var(--s5) 0 0; font-family: var(--editorial); font-size: 17px; line-height: 1.5; color: rgba(255,255,255,0.72); max-width: 26ch; }
.foot-social { display: flex; gap: var(--s3); margin-top: var(--s5); }
.foot-social a { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: -6px; color: rgba(255,255,255,0.5); border: none; transition: color 160ms ease; }
.foot-social a:hover { color: var(--paper); text-decoration: none; }
.foot-social svg { width: 16px; height: 16px; }
.site-foot .fh { margin-bottom: var(--s5); }
.site-foot .foot-links { gap: 14px; }
.site-foot .foot-links a { font-size: 15px; }
.site-foot .legal { position: relative; z-index: 1; margin-top: clamp(56px, 7vw, 96px); padding-top: var(--s5); }
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: var(--s7) var(--s5); }
  .foot-brand { grid-column: 1 / -1; }
  .foot-col:nth-of-type(2), .foot-col:nth-of-type(3), .foot-col:nth-of-type(4) { grid-column: auto; }
}

/* ---- The bar's sample button never wraps on a phone. ---- */
@media (max-width: 720px) {
  .nav a.btn { white-space: nowrap; }
}
@media (max-width: 480px) {
  .nav a.btn { padding-inline: 12px; }
  .nav a.btn .arw { display: none; }
}
