/* Sol, minimal public site. Plain CSS, no build step.
   Tokens copied from brand/design-system/project/tokens.json (Gündüz · Day and Gece · Night). */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/SchibstedGrotesk-VF.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/SchibstedGrotesk-Italic-VF.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --ground: #f9f7f3;
  --ground-raised: #fefdfb;
  --ground-sunk: #f0ede7;
  --ink: #182029;
  --ink-2: #404952;
  --ink-3: #5c646d;
  --rule: #d5dade;
  --rule-strong: #7a8189;
  --night: #172029;
  --night-2: #222c37;
  --on-night: #f4f1ed;
  --on-night-2: #b8bec5;
  --sun: #f5810f;
  --sun-wash: #fcecd9;
  --sun-ring: #182029;
  --focus: #0065b4;
  --focus-on-night: #72b8f2;

  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --radius-s: 6px; --radius-m: 10px; --radius-l: 16px; --radius-sun: 999px;
  --tap-min: 44px;
  --measure: 68ch;
  --container: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #121a22;
    --ground-raised: #1c252e;
    --ground-sunk: #0b1219;
    --ink: #f1eee9;
    --ink-2: #b8bec5;
    --ink-3: #9ea5ad;
    --rule: #303942;
    --rule-strong: #727c86;
    --night: #091017;
    --night-2: #141b24;
    --sun: #fd9330;
    --sun-wash: #402712;
    --sun-ring: #fd9330;
    --focus: #72b8f2;
  }
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

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

a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

.skip {
  position: absolute; left: var(--space-4); top: -100px;
  background: var(--ground-raised); color: var(--ink);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-m);
  border: 1px solid var(--rule-strong); z-index: 10;
}
.skip:focus { top: var(--space-3); }

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-4); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--ground); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 72px; }
.brand { display: inline-flex; align-items: center; min-height: var(--tap-min); text-decoration: none; }
.brand img { height: 28px; width: auto; }
.lang {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap-min); min-width: var(--tap-min); padding: 0 var(--space-4);
  border: 1px solid var(--rule-strong); border-radius: var(--radius-m);
  background: var(--ground-raised); color: var(--ink);
  font-size: 15px; font-weight: 600; text-decoration: none;
}
.lang:hover { background: var(--ground-sunk); }

/* Main */
main { flex: 1 0 auto; padding: var(--space-7) 0 var(--space-8); }
.page { max-width: var(--measure); }

h1, h2, h3 { font-weight: 800; color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: 30px; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; margin-top: var(--space-7); }
h3 { font-size: 19px; line-height: 1.35; font-weight: 650; letter-spacing: -0.01em; margin-top: var(--space-5); }
.home h1 { font-size: 40px; line-height: 1.02; letter-spacing: -0.035em; }

p, ul, ol, dl, table { margin: var(--space-4) 0 0; }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: var(--space-2); }
strong { font-weight: 650; }

.lead { font-size: 20px; line-height: 1.5; color: var(--ink-2); margin-top: var(--space-4); }
.small { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.meta { font-size: 15px; color: var(--ink-3); margin-top: var(--space-3); }

.hero-art { width: 96px; height: 96px; margin-bottom: var(--space-5); }
.page-art { width: 120px; height: 120px; margin-bottom: var(--space-4); }

/* The AI line: Sol's own first sentence, quoted */
.quote {
  margin: var(--space-5) 0 0; padding: var(--space-4) var(--space-5);
  background: var(--ground-sunk); border-radius: var(--radius-m);
  font-size: 17px;
}
.quote p { margin: 0; }
.quote .who { display: flex; align-items: center; gap: var(--space-2); font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: var(--space-2); }
.dot { width: 10px; height: 10px; border-radius: var(--radius-sun); background: var(--sun); box-shadow: 0 0 0 1.5px var(--sun-ring); flex: none; }

/* Draft notice */
.notice {
  margin-top: var(--space-5); padding: var(--space-3) var(--space-4);
  border: 1px solid var(--rule-strong); border-radius: var(--radius-m);
  background: var(--ground-raised);
}
.notice strong { display: block; }
.notice p { margin: var(--space-1) 0 0; font-size: 15px; color: var(--ink-2); }

/* Placeholders for the founders and counsel: pending style (ink-2 on ground-sunk with a hollow ring) */
.todo {
  display: inline; padding: 1px 6px; border-radius: var(--radius-s);
  background: var(--ground-sunk); color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--rule-strong);
  font-size: 0.94em; font-weight: 600;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.todo::before {
  content: ""; display: inline-block; width: 0.55em; height: 0.55em; margin-right: 0.35em;
  border: 1.5px solid currentColor; border-radius: var(--radius-sun); vertical-align: 0.05em;
}

/* Table of contents */
.toc { margin-top: var(--space-6); padding: var(--space-4) var(--space-5); border: 1px solid var(--rule); border-radius: var(--radius-l); background: var(--ground-raised); }
.toc h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.toc ol { margin-top: var(--space-2); }
.toc li + li { margin-top: 0; }
.toc a { display: inline-block; padding: 10px 0; }

/* Definition lists as two-column rows on wider screens */
dl.facts { border-top: 1px solid var(--rule); }
dl.facts > div { padding: var(--space-3) 0; border-bottom: 1px solid var(--rule); }
dl.facts dt { font-size: 13px; font-weight: 600; letter-spacing: 0.01em; color: var(--ink-2); }
dl.facts dd { margin: var(--space-1) 0 0; }

/* Tables: stacked on phones */
.table-wrap { margin-top: var(--space-4); }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
caption { text-align: left; font-size: 15px; color: var(--ink-2); padding-bottom: var(--space-2); }
th, td { text-align: left; vertical-align: top; padding: var(--space-3) var(--space-3) var(--space-3) 0; border-bottom: 1px solid var(--rule); }
thead th { font-size: 13px; font-weight: 600; color: var(--ink-2); border-bottom-color: var(--rule-strong); }
tbody th { font-weight: 650; }
@media (max-width: 600px) {
  table, thead, tbody, tr, th, td { display: block; }
  caption { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { padding: var(--space-3) 0; border-bottom: 1px solid var(--rule); }
  th, td { border: 0; padding: 0; }
  td { margin-top: var(--space-1); }
  td[data-label]::before { content: attr(data-label) ": "; font-size: 13px; font-weight: 600; color: var(--ink-2); }
}

/* Cards of links on the home page */
.links { list-style: none; padding: 0; margin-top: var(--space-6); display: grid; gap: var(--space-3); }
.links li + li { margin-top: 0; }
.links a {
  display: block; padding: var(--space-4) var(--space-5); min-height: var(--tap-min);
  background: var(--ground-raised); border: 1px solid var(--rule); border-radius: var(--radius-l);
  text-decoration: none;
}
.links a:hover { border-color: var(--rule-strong); }
.links a strong { display: block; font-size: 19px; font-weight: 650; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.links a span { display: block; margin-top: var(--space-1); font-size: 15px; color: var(--ink-2); }

.steps { padding-left: 1.5em; }
.steps > li { padding-left: var(--space-2); }
.steps > li::marker { font-weight: 700; }

/* Footer: a night section in both themes */
.site-footer { background: var(--night); color: var(--on-night); padding: var(--space-7) 0 var(--space-6); }
.site-footer a { color: var(--on-night); }
.site-footer :focus-visible { outline-color: var(--focus-on-night); }
.site-footer .logo { height: 28px; width: auto; }
.site-footer nav ul { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: flex; flex-wrap: wrap; gap: 0 var(--space-5); }
.site-footer nav li + li { margin-top: 0; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: var(--tap-min); }
.legal { margin-top: var(--space-5); font-size: 15px; line-height: 1.5; color: var(--on-night-2); }
.legal p { margin: 0; }
.legal p + p, .legal address { margin-top: var(--space-1); }
.legal address { font-style: normal; }
.legal .entity { color: var(--on-night); font-weight: 600; }

@media (min-width: 768px) {
  .wrap { padding: 0 var(--space-6); }
  main { padding: var(--space-8) 0 var(--space-9); }
  h1 { font-size: 36px; }
  .home h1 { font-size: 56px; }
  .brand img, .site-footer .logo { height: 32px; }
  dl.facts > div { display: grid; grid-template-columns: 12rem 1fr; gap: var(--space-4); }
  dl.facts dd { margin: 0; }
  .links { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media print {
  .site-header .lang, .skip, .toc { display: none; }
  .site-footer { background: none; color: #000; }
  .site-footer a, .legal, .legal .entity { color: #000; }
}
