/* Driden Labs — site styles. Brand direction D "Orbit": see docs/BRAND.md.
   Every brand value lives in the tokens below; change the brand here, not in the rules. */

:root {
  /* Colour */
  --ground: #F6F7F9;      /* cool white */
  --surface: #FFFFFF;
  --rule: #DDE1E7;
  --ink: #121826;         /* night ink */
  --muted: #5A6272;       /* slate */
  --accent: #0E7C7B;      /* deep teal */
  --accent-light: #7FD4CF;

  /* Type */
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Space and measure */
  --page: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section: clamp(4rem, 10vw, 8rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--ink); text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--ground); padding: 0.75rem 1rem;
}
.skip:focus { left: 0; }

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

.label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--ground); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.5rem;
}
.brand {
  display: flex; align-items: center; gap: 0.625rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  letter-spacing: -0.02em; text-decoration: none;
}
.brand img { width: 1.6rem; height: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; font-size: 0.9375rem;
}

.langs {
  display: inline-flex; gap: 0.25rem; margin-left: 0.5rem; padding-left: 1rem;
  border-left: 1px solid var(--rule);
}
.langs a { font-family: var(--font-mono); font-size: 0.8125rem; min-width: 44px; justify-content: center; color: var(--muted); }
.langs a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.mail { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.02em; }

/* Hero */
.hero { padding: var(--section) 0; }
.hero .wrap { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: end; }
.hero h1 {
  margin: 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: 1.0; letter-spacing: -0.035em;
}
.hero p { margin: 0 0 1.5rem; max-width: 34rem; }
.values { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.values li {
  font-family: var(--font-mono); font-size: 0.8125rem;
  border: 1px solid var(--rule); background: var(--surface); padding: 0.25rem 0.75rem;
}

/* Sections */
section.block { padding: var(--section) 0; border-top: 1px solid var(--rule); }
section.block h2 {
  margin: 0.5rem 0 2rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.025em;
}

/* Explorations */
.explorations { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.explorations li { border-bottom: 1px solid var(--rule); }
.explorations .row {
  display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: 1rem; align-items: baseline;
  padding: 1.25rem 0; text-decoration: none;
}
.explorations .num { font-family: var(--font-mono); color: var(--accent); }
.explorations .title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.015em; }
.explorations .meta { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); }
.more { margin: 1.5rem 0 0; color: var(--muted); }

/* About */
.about { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.about p { margin: 0 0 1rem; max-width: 36rem; }
.heritage {
  background: var(--surface); border: 1px solid var(--rule); padding: 2rem;
  display: flex; gap: 1.5rem; align-items: flex-start;
}
.heritage img { width: 3.5rem; height: auto; flex: none; }
.heritage p { margin: 0.5rem 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 2rem 0; font-size: 0.875rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer a { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
