/* S12 Studio — company site.
   Hand-written, no framework. Fonts are self-hosted (no Google Fonts: loading
   them from Google's CDN is itself a GDPR issue in the EU). */

@font-face { font-family: "Clash Display"; src: url("/assets/fonts/clash-display-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("/assets/fonts/clash-display-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #f6f4ee;
  --paper-raised: #fffefb;
  --ink: #121722;
  --muted: #5b6472;
  --line: rgba(18, 23, 34, 0.12);
  --accent: #c2410c; /* burnt orange, used sparingly */
  --max: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--max); 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; height: 72px; }
.wordmark { font-family: "Clash Display", sans-serif; font-weight: 600; font-size: 20px; letter-spacing: -0.01em; text-decoration: none; }
.wordmark span { color: var(--accent); }
.nav { display: flex; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding-block: clamp(72px, 12vw, 148px) clamp(56px, 8vw, 96px); }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; }
h1, h2, h3 { font-family: "Clash Display", sans-serif; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 84px); max-width: 16ch; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 58ch; margin: 28px 0 0; }

/* Sections */
section { border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 96px) 0; }
.section-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 880px) { .section-grid { grid-template-columns: 280px 1fr; gap: 64px; } }
h2 { font-size: clamp(26px, 3vw, 34px); }
.section-label { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 6px 0 0; }

/* App entry */
.app { display: grid; grid-template-columns: 88px 1fr; gap: 24px; align-items: start; padding: 28px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 14px; }
.app img { width: 88px; height: 88px; border-radius: 20px; display: block; }
.app h3 { font-size: 28px; }
.app .tagline { font-weight: 500; margin: 6px 0 10px; }
.app p { margin: 0; color: var(--muted); max-width: 60ch; }
.app .meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 14px; }
.app .meta span { color: var(--muted); }
.app .meta a { font-weight: 500; }
@media (max-width: 520px) { .app { grid-template-columns: 1fr; } }

/* Principles */
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.principles li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.principles li:first-child { padding-top: 0; }
.principles .num { font-family: "Clash Display", sans-serif; font-weight: 500; color: var(--accent); font-size: 15px; padding-top: 4px; }
.principles h3 { font-size: 21px; letter-spacing: -0.01em; }
.principles p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }

/* Facts table */
.facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.facts div { display: grid; grid-template-columns: 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 600px) { .facts div { grid-template-columns: 200px 1fr; } }
.facts dt { color: var(--muted); font-size: 15px; }
.facts dd { margin: 0; }

.contact-line { font-size: clamp(22px, 3vw, 30px); font-family: "Clash Display", sans-serif; font-weight: 500; letter-spacing: -0.01em; margin: 0; }
.contact-line a { text-decoration: none; border-bottom: 1px solid currentColor; }
.muted { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer nav { display: flex; gap: 20px; }

/* Legal pages */
.legal { padding: clamp(56px, 8vw, 96px) 0; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 15px; margin: 0 0 40px; }
.legal h2 { font-size: 22px; margin: 40px 0 10px; }
.legal p, .legal li { max-width: 68ch; }
.legal ul { padding-left: 20px; }

/* Entrance: a single calm fade. Nothing moves for reduced-motion users. */
@media (prefers-reduced-motion: no-preference) {
  .fade { animation: fade 700ms ease-out both; }
  .fade.d1 { animation-delay: 80ms; } .fade.d2 { animation-delay: 160ms; }
  @keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
