/* ST Holding Global — tokens from the "Oxblood and Cypress" design system */

@font-face { font-family: "Space Grotesk"; src: url(fonts/space-grotesk.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/dm-sans.woff2) format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url(fonts/space-mono.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light dark;
  --paper: #ECE8E3;
  --surface: #F7F5F2;
  --line: #D6CFC7;
  --ink: #24201D;
  --ink-muted: #5C564F;
  --wine: #5A1F1B;
  --wine-deep: #3A120F;
  --cypress: #2C4A3E;
  --on-wine: #F3EEE8;
  --on-wine-muted: #D6CCC2;
  --rose: #C98A97;
  --rose-text: #9A4A5C;
  --sage: #B7CBBE;
  --cypress-text: #2C4A3E;
  --focus: #5A1F1B;

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-sans: "DM Sans", Arial, Helvetica, sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;

  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --radius-m: 8px;
  --gutter: var(--space-6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171513;
    --surface: #211E1B;
    --line: #3A3530;
    --ink: #F0ECE7;
    --ink-muted: #BDB5AD;
    --wine: #6B2620;
    --wine-deep: #120807;
    --cypress: #2F5245;
    --rose: #D79AA7;
    --rose-text: #E8BCC6;
    --cypress-text: #86B49E;
    --focus: #E8BCC6;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #171513;
  --surface: #211E1B;
  --line: #3A3530;
  --ink: #F0ECE7;
  --ink-muted: #BDB5AD;
  --wine: #6B2620;
  --wine-deep: #120807;
  --cypress: #2F5245;
  --rose: #D79AA7;
  --rose-text: #E8BCC6;
  --cypress-text: #86B49E;
  --focus: #E8BCC6;
  color-scheme: dark;
}

@media (max-width: 720px) {
  :root { --gutter: var(--space-3); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/26px var(--font-sans);
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; }
a { color: var(--cypress-text); }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

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

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-3); padding-bottom: var(--space-3); }
.lockup { display: block; height: 32px; width: auto; }
.lockup .name { fill: var(--ink); }
.nav-link { font-size: 15px; color: var(--ink-muted); text-decoration: none; }
.nav-link:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-block; font: 500 15px/20px var(--font-sans); padding: 12px 20px; border-radius: var(--radius-m); text-decoration: none; border: 1px solid transparent; }
.btn-light { background: var(--on-wine); color: var(--wine); }
.btn-ghost { border-color: var(--on-wine-muted); color: var(--on-wine); }
.btn:focus-visible { outline-color: var(--on-wine); }

/* Eyebrow label */
.label { font: 400 12px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--rose-text); }

/* Hero */
.hero { background: var(--wine); color: var(--on-wine); }
.hero .wrap { display: flex; flex-direction: column; gap: var(--space-4); padding-top: var(--space-6); padding-bottom: var(--space-6); }
.hero .label { color: var(--rose); }
.hero h1 { font-size: 56px; line-height: 60px; letter-spacing: -.01em; max-width: 16ch; }
.hero .lead { font-size: 20px; line-height: 28px; font-weight: 500; color: var(--on-wine-muted); max-width: 52ch; }
.ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Services */
.services { padding: var(--space-6) 0; }
.services h2 { font-size: 44px; line-height: 50px; letter-spacing: -.01em; margin: var(--space-2) 0 var(--space-5); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.card { border-top: 2px solid var(--cypress-text); padding-top: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); }
.card .label { color: var(--cypress-text); }
.card h3 { font-size: 24px; line-height: 30px; }
.card p { font-size: 15px; line-height: 24px; color: var(--ink-muted); }

/* Closing band */
.band { background: var(--cypress); color: var(--on-wine); }
.band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-4); padding-top: var(--space-5); padding-bottom: var(--space-5); }
.band .label { color: var(--sage); }
.band p.statement { font: 600 24px/30px var(--font-display); margin-top: 6px; }
.band .btn-light { color: var(--cypress); }

/* Footer */
.site-footer { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-4); padding-bottom: var(--space-4); }
.site-footer nav { display: flex; gap: var(--space-4); }
.site-footer a { color: var(--ink-muted); }

/* Legal pages */
.legal { padding: var(--space-6) 0; }
.legal .wrap > * { max-width: 65ch; }
.legal h1 { font-size: 44px; line-height: 50px; letter-spacing: -.01em; margin: var(--space-2) 0 var(--space-5); }
.legal h2 { font-size: 22px; line-height: 28px; margin: var(--space-5) 0 var(--space-2); }
.legal p, .legal ul { margin: 0 0 var(--space-3); }
.legal ul { padding-left: 1.2em; }

@media (max-width: 1040px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: var(--space-5) var(--space-4); }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero h1 { font-size: 40px; line-height: 44px; }
  .hero .lead { font-size: 18px; line-height: 26px; }
  .services h2, .legal h1 { font-size: 32px; line-height: 38px; }
  .lockup { height: 26px; }
}

/* Header nav */
.site-nav { display: flex; gap: var(--space-4); }

/* Founder page */
.founder, .career, .approach { padding: var(--space-6) 0 0; }
.approach { padding-bottom: var(--space-6); }
.founder h2, .career h2, .approach h2 { font-size: 44px; line-height: 50px; letter-spacing: -.01em; margin: var(--space-2) 0 var(--space-4); }
.founder-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.prose { display: flex; flex-direction: column; gap: var(--space-3); max-width: 65ch; }
.prose h2 { margin-bottom: 0; }
.prose p:not(.label) { font-size: 17px; line-height: 28px; }
.facts { background: var(--surface); border-radius: var(--radius-m); padding: var(--space-4); }
.facts dl { margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.facts dt { font: 400 12px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--rose-text); margin-bottom: 4px; }
.facts dd { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 4px var(--space-5); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); grid-template-rows: auto 1fr; }
.timeline h3 { font-size: 24px; line-height: 30px; }
.timeline .role { grid-column: 1; align-self: start; font-size: 15px; color: var(--cypress-text); font-weight: 500; }
.timeline li > p:not(.role) { grid-column: 2; grid-row: 1 / span 2; color: var(--ink-muted); max-width: 65ch; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.steps li { counter-increment: step; border-top: 2px solid var(--cypress-text); padding-top: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); }
.steps li::before { content: "0" counter(step); font: 400 12px/16px var(--font-mono); letter-spacing: .08em; color: var(--cypress-text); }
.steps h3 { font-size: 22px; line-height: 28px; }
.steps p { font-size: 15px; line-height: 24px; color: var(--ink-muted); }
@media (max-width: 1040px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .founder h2, .career h2, .approach h2 { font-size: 32px; line-height: 38px; }
  .founder-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .timeline li { grid-template-columns: 1fr; }
  .timeline li > p:not(.role) { grid-column: 1; grid-row: auto; }
  .steps { grid-template-columns: 1fr; }
  .site-nav { gap: var(--space-3); }
}

/* Recognition */
.recognition { padding: var(--space-6) 0 0; }
.recognition h2 { font-size: 44px; line-height: 50px; letter-spacing: -.01em; margin: var(--space-2) 0 var(--space-4); }
.honours { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-5); }
.honours li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-3); border-top: 1px solid var(--line); padding-top: var(--space-3); }
.honours .year { font: 400 12px/24px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--rose-text); }
@media (max-width: 720px) {
  .recognition h2 { font-size: 32px; line-height: 38px; }
  .honours { grid-template-columns: 1fr; }
  .honours li { grid-template-columns: 1fr; gap: 4px; }
}

/* Education */
.education { padding: var(--space-6) 0 0; }
.degrees { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.degrees li { border-top: 1px solid var(--line); padding-top: var(--space-3); display: flex; flex-direction: column; gap: 4px; }
.degrees h3 { font-size: 20px; line-height: 26px; }
.degrees p { font-size: 15px; line-height: 24px; color: var(--ink-muted); }
@media (max-width: 1040px) { .degrees { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .degrees { grid-template-columns: 1fr; } }

/* Contact */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.contact { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.contact-line { color: var(--on-wine); font: 500 20px/30px var(--font-display); text-decoration: none; overflow-wrap: anywhere; }
.contact-line:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-line:focus-visible { outline-color: var(--on-wine); }
.contact-note { font-size: 15px; line-height: 24px; color: var(--on-wine-muted); }

/* Founder portrait */
.hero .wrap.hero-founder { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-5); }
.hero-text { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.portrait { width: 280px; height: 280px; max-width: 100%; object-fit: cover; border-radius: 12px; display: block; }
@media (max-width: 720px) {
  .hero .wrap.hero-founder { grid-template-columns: 1fr; }
  .portrait { width: 160px; height: 160px; order: -1; }
}
