/* Tellurion — tellurionai.com
   Brand: navy #0E1B2C + brass #CAA24A (see assets/brand/BRAND.md). Neutrals are for text only. */
:root {
  --navy: #0E1B2C;
  --brass: #CAA24A;
  --brass-ink: #7A5D1C;      /* brass for text on light backgrounds (passes 4.5:1) */
  --ivory: #ECE7DA;          /* text on navy */
  --mist: #B9C3CC;           /* secondary text on navy */
  --rule-dark: #263646;
  --paper: #F2F4F5;          /* light reading background */
  --ink: #0E1B2C;
  --ink-2: #2C3B4A;
  --ink-3: #4F5B67;
  --rule-light: #D3D8DC;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1240px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; background: var(--navy); color: var(--ivory); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass); }
a:hover { color: #E6CF96; }
a:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--brass); color: var(--navy); padding: 8px 12px; z-index: 10; }

/* header */
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding-block: 26px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand svg { width: 52px; height: auto; color: var(--brass); }
.brand span { font-family: var(--display); font-size: 28px; letter-spacing: .3px; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; }
.nav a { color: inherit; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brass); }

/* type */
.eyebrow { margin: 0 0 18px; font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(46px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -.5px; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.1; }
h3 { font-size: 30px; line-height: 1.15; }
.lede { font-size: 19px; color: var(--mist); max-width: 60ch; }
.muted { color: var(--mist); }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 3px; text-decoration: none; font-weight: 600; }
.btn-primary { background: var(--brass); color: var(--navy); }
.btn-primary:hover { background: #D8B566; color: var(--navy); }
.btn-ghost { border: 1px solid #4A5D70; color: var(--ivory); font-weight: 500; }
.btn-ghost:hover { border-color: var(--brass); color: var(--ivory); }

/* sections */
.section { border-top: 1px solid var(--rule-dark); }
.section > .wrap { padding-block: 88px; }
.hero .wrap { padding-block: 64px 96px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-copy { flex: 999 1 560px; min-width: 0; }
.hero-mark { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; color: var(--brass); }
.hero-mark svg { width: 100%; max-width: 520px; height: auto; }

.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--rule-dark); border: 1px solid var(--rule-dark); margin-top: 48px; }
.three > div { background: var(--navy); padding: 32px 28px; }
.three .n { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--brass); }
.three h3 { margin: 12px 0 10px; }
.three p:last-child { margin: 0; color: var(--mist); }

.result .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; }
.result-copy { flex: 1 1 420px; min-width: 0; }
.stats { flex: 1 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.stat { border-top: 2px solid #4A5D70; padding-top: 18px; }
.stat.ours { border-top-color: var(--brass); }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(60px, 8vw, 104px); line-height: 1; }
.stat.ours b { color: var(--brass); }
.stat p { margin: 10px 0 0; color: var(--mist); }

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.principles h3 { font-size: 28px; margin-bottom: 10px; }
.principles p { margin: 0; color: var(--mist); }

/* footer */
.site-footer { border-top: 1px solid var(--rule-dark); }
.site-footer .top { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-end; padding-block: 72px 48px; }
.site-footer h2 { font-size: clamp(28px, 3.4vw, 44px); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; }
.site-footer .base { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-bottom: 40px; font-family: var(--mono); font-size: 12px; color: #8C9AA8; }
.motto { font-style: italic; }

/* light reading pages */
.paper { background: var(--paper); color: var(--ink); }
.paper a { color: var(--brass-ink); }
.paper a:hover { color: var(--ink); }
.article .wrap { display: flex; flex-wrap: wrap; gap: 32px 72px; padding-block: 72px 96px; }
.article aside { flex: 1 1 220px; max-width: 260px; min-width: 0; font-size: 14px; color: var(--ink-3); }
.article aside .k { margin: 22px 0 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.article aside .k:first-child { margin-top: 0; }
.article aside ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.article .body { flex: 999 1 640px; min-width: 0; max-width: 820px; }
.article h1 { font-size: clamp(42px, 5.6vw, 76px); }
.article .standfirst { margin: 28px 0 0; font-size: 20px; color: var(--ink-2); }
.article h2 { font-size: 36px; margin-top: 56px; }
.article p, .article li { color: var(--ink-2); }
.article li b { color: var(--ink); }
.article ol { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
figure { margin: 48px 0 0; }
figure img { background: #fff; border: 1px solid var(--rule-light); }
figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.table-wrap { overflow-x: auto; margin-top: 18px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-variant-numeric: tabular-nums; font-size: 16px; }
th { text-align: right; padding: 10px 12px; border-bottom: 1px solid var(--ink); font-weight: 500; }
th:first-child, td:first-child { text-align: left; padding-left: 0; }
td { text-align: right; padding: 12px; border-bottom: 1px solid var(--rule-light); font-family: var(--mono); }
td:first-child { font-family: var(--body); }
th.ours { color: var(--brass-ink); font-weight: 600; }
td.ours { font-weight: 600; color: var(--ink); }
.paper .site-footer { border-top-color: var(--rule-light); }
.paper .site-footer .base { color: var(--ink-3); padding-top: 32px; }

@media (max-width: 560px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .section > .wrap { padding-block: 64px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
