/* GEO-SIM Tech shared brand stylesheet.
   Edit this file in src/, then run build.py — it is copied into every site. */

:root {
  --slate: #1f3440;      /* harbour slate: text, dark bands */
  --slate-2: #3c5462;    /* secondary text */
  --fog: #e6edef;        /* page background */
  --paper: #f6f9fa;      /* raised surfaces */
  --rule: #c5d3d8;       /* hairlines */
  --amber: #c98a1e;      /* buoy signal: "current step" marker only */
  --venture: #3f7f77;    /* sea-glass; each site overrides */
  --venture-ink: #2d5f59;
  --bg: var(--fog);
  --surface: var(--paper);
  --text: var(--slate);
  --muted: var(--slate-2);
  --line: var(--rule);
  --accent: var(--venture);
  --accent-ink: var(--venture-ink);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --measure: 66ch;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12212a;
    --surface: #182b35;
    --text: #e3ecef;
    --muted: #a9bcc3;
    --line: #2e4652;
    --accent: color-mix(in srgb, var(--venture) 55%, #cfe9e4);
    --accent-ink: color-mix(in srgb, var(--venture) 40%, #e8f6f3);
  }
}
:root[data-theme="dark"] {
  --bg: #12212a;
  --surface: #182b35;
  --text: #e3ecef;
  --muted: #a9bcc3;
  --line: #2e4652;
  --accent: color-mix(in srgb, var(--venture) 55%, #cfe9e4);
  --accent-ink: color-mix(in srgb, var(--venture) 40%, #e8f6f3);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.62;
  font-optical-sizing: auto;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Type scale (1.25 ratio) */
h1, h2, h3, .wordmark { font-family: var(--display); font-weight: 650; letter-spacing: -0.01em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); font-stretch: 112%; max-width: 18ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-stretch: 108%; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; font-stretch: 100%; font-weight: 620; margin-bottom: .35rem; }
p { margin: 0 0 1rem; max-width: var(--measure); }
.lede { font-size: clamp(1.2rem, 1.9vw, 1.4rem); line-height: 1.5; color: var(--muted); max-width: 52ch; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; flex-wrap: wrap; }
.wordmark { display: flex; align-items: center; gap: .6rem; font-size: 1.1rem; font-stretch: 118%; color: var(--text); text-decoration: none; }
.wordmark svg { width: 30px; height: 30px; }
.wordmark small { font-family: var(--body); font-weight: 400; font-stretch: 100%; font-size: .85rem; color: var(--muted); letter-spacing: 0; }
.site-nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; font-family: var(--display); font-size: .95rem; }
.site-nav a { color: var(--text); text-decoration: none; }
.site-nav a:hover { color: var(--accent-ink); text-decoration: underline; }

/* Hero with wave trace */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(7.5rem, 15vw, 11rem); border-bottom: 1px solid var(--line); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { margin-bottom: 1.25rem; }
.trace { position: absolute; inset: auto 0 0 0; height: clamp(6.5rem, 13vw, 9.5rem); z-index: 0; color: var(--accent); pointer-events: none; }
.trace svg { width: 200%; height: 100%; max-width: none; }
.trace g { animation: drift 48s linear infinite; }
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .trace g { animation: none; } }
.trace-caption { font-size: .85rem; color: var(--muted); margin-top: 2.25rem; }

/* Sections */
section { padding: clamp(2.75rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
.split { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 880px) { .split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 4rem; } }

/* Fact sheet (definition list — easy for people and AI to extract) */
.facts { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); padding: 1.4rem 1.5rem; align-self: start; }
.facts h2 { font-size: 1.15rem; margin-bottom: .9rem; }
.facts dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.1rem; font-size: 1rem; }
.facts dt { font-family: var(--display); font-weight: 600; font-size: .92rem; color: var(--muted); }
.facts dd { margin: 0; }

/* Venture rows (umbrella) */
.ventures { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.venture { display: grid; gap: .4rem 2rem; grid-template-columns: 1fr; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .venture { grid-template-columns: 14rem 1fr 11rem; align-items: baseline; } }
.venture h3 { font-size: 1.35rem; font-stretch: 110%; }
.venture h3 a { color: var(--text); }
.venture p { margin: 0; color: var(--muted); }
.status { font-family: var(--display); font-size: .9rem; display: inline-flex; align-items: center; gap: .45rem; }
.status::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; border: 2px solid var(--muted); }
.status.active::before { background: var(--amber); border-color: var(--amber); }
.venture.pending h3 { color: var(--muted); }

/* Principles */
.principles { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 760px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principles p { font-size: 1.02rem; color: var(--muted); }

/* Roadmap (a real sequence, so it is numbered) */
.steps { list-style: none; counter-reset: step; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 650; font-size: 1.6rem; font-stretch: 112%; color: var(--muted); line-height: 1; }
.steps li.now::before { color: var(--amber); }
.steps p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.steps .tag { font-family: var(--display); font-size: .82rem; font-weight: 600; color: var(--amber); margin-left: .5rem; }

/* Two-column lists */
.cols { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .cols { grid-template-columns: 1fr 1fr; } }
.plain { margin: 0; padding-left: 1.1rem; }
.plain li { margin-bottom: .5rem; max-width: 60ch; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 1rem 0; max-width: 760px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-ink); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .75rem 0 0; color: var(--muted); }

/* Contact band */
.contact { background: var(--slate); color: #e6eef0; border-bottom: 0; }
.contact h2 { color: #fff; }
.contact p { color: #c4d4da; }
.contact a { color: #fff; }
.btn { display: inline-block; font-family: var(--display); font-weight: 600; font-size: 1.05rem; padding: .8rem 1.3rem; background: var(--venture); color: #fff !important; text-decoration: none; border-radius: 3px; margin-top: .5rem; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }

/* Footer */
.site-foot { padding: 2rem 0 2.5rem; font-size: .92rem; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-foot p { margin: 0; }
.site-foot ul { list-style: none; display: flex; gap: 1.2rem; margin: 0; padding: 0; flex-wrap: wrap; }

@media print {
  .trace, .site-nav, .skip { display: none; }
  .contact { background: none; color: #000; }
  .contact h2, .contact p, .contact a { color: #000; }
}
