/* Cairneen site styles. Dark theme only; colours come from brand/README.md. */

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/hanken-grotesk-latin-wght.woff2") format("woff2-variations"),
       url("/fonts/hanken-grotesk-latin-wght.woff2") format("woff2");
}

:root {
  --paper: #F7F7F3;
  --charcoal: #2C302D;
  --lichen: #7E8F63;
  --stone-light: #E4E5DE;
  --bog-dark: #1C221F;

  --bg: var(--bog-dark);
  --bg-alt: #232A26;
  --surface: #262E2A;
  --text: var(--stone-light);
  --muted: #A9AFA6;
  --line: #36403A;
  --accent: #A7B78C;
  --accent-soft: #2E3829;
  --button-bg: var(--stone-light);
  --button-text: var(--bog-dark);

  --measure: 38rem;
  --wide: 68rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 14px;

  color-scheme: dark;
}


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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--accent); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--button-bg); color: var(--button-text);
  padding: 0.5rem 1rem; border-radius: 8px; z-index: 10;
}
.skip-link:focus { top: 1rem; }

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

/* Header */
.site-header { padding: 1.75rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: block; width: 9.5rem; }
.logo img { width: 100%; }
.header-link { font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; }
.header-link:hover { text-decoration: underline; }

/* Type */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; font-weight: 650; }
h1 { font-size: clamp(2.5rem, 7vw, 4.75rem); letter-spacing: -0.035em; max-width: 14ch; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); max-width: 22ch; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0; }
.eyebrow {
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.lede { font-size: clamp(1.2rem, 2.2vw, 1.4rem); color: var(--muted); max-width: var(--measure); }
.prose > * + * { margin-top: 1.1rem; }
.prose { max-width: var(--measure); }

/* Sections */
section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head .lede { margin-top: 1rem; }

/* Hero */
.hero { padding-top: clamp(2.5rem, 8vw, 6rem); }
.hero .lede { margin-top: 1.5rem; }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

.button {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--button-bg); color: var(--button-text);
  font-weight: 600; font-size: 1.05rem; text-decoration: none;
  padding: 0.9rem 1.4rem; border-radius: 999px;
  transition: transform 120ms ease, opacity 120ms ease;
}
.button:hover { color: var(--button-text); opacity: 0.9; }
.button:active { transform: translateY(1px); }
.quiet-link { color: var(--muted); font-size: 1rem; }

/* Problem */
.problem-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .problem-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.burden-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.burden-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); display: flex; gap: 1rem; align-items: baseline; }
.burden-list li::before { content: ""; flex: none; width: 0.55rem; height: 0.45rem; border-radius: 50%; background: var(--lichen); transform: translateY(-0.15rem); }

/* Cards */
.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem;
}
.card p { color: var(--muted); font-size: 1.05rem; }
.card-number { font-size: 0.875rem; font-weight: 700; color: var(--accent); letter-spacing: 0.06em; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; border-top: 2px solid var(--text); padding-top: 1rem; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-weight: 700; color: var(--accent); font-size: 0.9rem; margin-bottom: 0.5rem; }
.steps h3 { margin-bottom: 0.4rem; font-size: 1.15rem; }
.steps p { color: var(--muted); font-size: 1rem; }

/* Trust */
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .trust-list { grid-template-columns: 1fr 1fr; } }
.trust-list li { background: var(--surface); padding: 1.5rem 1.75rem; }
.trust-list h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.trust-list p { color: var(--muted); font-size: 1rem; }

/* Name */
.name-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 52rem) { .name-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }
.name-figure { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(2rem, 6vw, 3.5rem); display: grid; place-items: center; gap: 1.25rem; }
.name-figure img { width: min(100%, 22rem); }
.pronounce { color: var(--muted); font-size: 1rem; }

/* Founder */
.founder { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 44rem) { .founder { grid-template-columns: 16rem 1fr; gap: 3.5rem; } }
.founder-photo { width: 100%; max-width: 16rem; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.founder blockquote { margin: 0; font-size: clamp(1.25rem, 2.5vw, 1.55rem); line-height: 1.45; letter-spacing: -0.01em; }
.founder-name { margin-top: 1.25rem; font-weight: 600; }
.founder-role { color: var(--muted); font-size: 1rem; }

/* Closing CTA */
.cta { text-align: left; }
.cta .lede { margin-top: 1rem; }
.cta .hero-actions { margin-top: 2rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; font-size: 0.95rem; color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-mark { height: 2rem; width: auto; margin-bottom: 0.75rem; }

/* Privacy and simple pages */
.page { padding: clamp(2rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem); }
.page h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); max-width: none; }
.page h2 { font-size: 1.4rem; margin-top: 2.5rem; max-width: none; }
.page .updated { color: var(--muted); margin-top: 0.75rem; }
.page ul { padding-left: 1.25rem; margin: 0; }
.page li + li { margin-top: 0.4rem; }
.page table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.page th, .page td { text-align: left; vertical-align: top; padding: 0.75rem 0.75rem 0.75rem 0; border-bottom: 1px solid var(--line); }
.page th { font-weight: 600; }
.table-scroll { overflow-x: auto; }
