/* Gi2T Labs — one stylesheet for every page. System fonts only, no external requests. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f3f7fa;
  --surface-2: #e8f0f6;
  --border: #d5e0e9;
  --text: #0f1d2b;
  --muted: #475869;
  --accent: #0b63a8;
  --accent-hover: #084d84;
  --on-accent: #ffffff;
  --brand-a: #1a73c4;
  --brand-b: #13a89e;
  --brand-c: #4cb867;
  --focus: #e08a00;
  --radius: 14px;
  --gutter: 16px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1520;
    --surface: #111f2d;
    --surface-2: #17293a;
    --border: #24394d;
    --text: #e6eef5;
    --muted: #a7b7c6;
    --accent: #6cc1f2;
    --accent-hover: #9ad5f7;
    --on-accent: #04121d;
    --focus: #ffb547;
  }
}

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

html { -webkit-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: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 24px; } }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--on-accent); padding: 8px 14px; z-index: 10;
}
.skip-link:focus { left: var(--gutter); top: 8px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand img { width: 40px; height: auto; }
.brand-name { display: block; font-weight: 700; font-size: 1.2rem; letter-spacing: 0.01em; line-height: 1.1; }
.brand-tagline { display: block; font-size: 0.78rem; color: var(--muted); line-height: 1.2; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.site-nav a {
  display: inline-block; padding: 8px 10px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-size: 0.95rem; font-weight: 500;
}
.site-nav a:hover { background: var(--surface-2); color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
@media (max-width: 639px) {
  .site-nav { width: 100%; }
  .site-nav ul { justify-content: space-between; margin-inline: -4px; }
  .site-nav a { padding: 8px 4px; font-size: 0.88rem; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 85% -10%, color-mix(in srgb, var(--brand-a) 18%, transparent), transparent 70%),
    radial-gradient(40rem 24rem at 0% 110%, color-mix(in srgb, var(--brand-c) 16%, transparent), transparent 70%),
    var(--surface);
  border-bottom: 1px solid var(--border);
}
.hero .container {
  display: grid; gap: 28px; align-items: center;
  padding-block: clamp(40px, 7vw, 96px);
}
@media (min-width: 860px) { .hero .container { grid-template-columns: 1fr 220px; } }
.hero-mark { display: none; }
@media (min-width: 860px) { .hero-mark { display: block; width: 220px; justify-self: end; } }
.hero .lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); color: var(--muted); max-width: 40ch; }
.eyebrow {
  display: inline-block; margin: 0 0 0.75em; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before {
  content: ""; display: inline-block; width: 22px; height: 3px; margin-right: 8px; vertical-align: middle;
  border-radius: 2px; background: linear-gradient(90deg, var(--brand-a), var(--brand-b), var(--brand-c));
}

.page-hero { background: var(--surface); border-bottom: 1px solid var(--border); }
.page-hero .container { padding-block: clamp(36px, 6vw, 72px); }
.page-hero p { color: var(--muted); max-width: 62ch; font-size: 1.1rem; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 10px 18px; border-radius: 10px; font-weight: 600; text-decoration: none;
  background: var(--accent); color: var(--on-accent); border: 2px solid var(--accent);
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.button.secondary { background: transparent; color: var(--accent); }
.button.secondary:hover { background: var(--surface-2); color: var(--accent-hover); }

/* Sections */
.section { padding-block: clamp(44px, 7vw, 88px); }
.section.tight-top { padding-top: 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-intro { max-width: 68ch; color: var(--muted); font-size: 1.08rem; }
.section > .container > h2 { max-width: 30ch; }

.grid { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 720px) { .grid.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) and (max-width: 959px) { .grid.three { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; min-width: 0;
}
.section.alt .card { background: var(--bg); }
.section:not(.alt) .card { background: var(--surface); }
.card h3 { margin-bottom: 0.4em; }
.card .lead-line { font-weight: 600; color: var(--text); }
.card p:last-child { margin-bottom: 0; }
.card .meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.6em; }

/* Yooha */
.yooha {
  display: grid; gap: 20px; align-items: center;
  border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 4vw, 44px);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand-a) 14%, var(--bg)),
    color-mix(in srgb, var(--brand-c) 14%, var(--bg)));
  border: 1px solid var(--border);
}
.yooha p { font-size: 1.15rem; max-width: 60ch; }
.yooha p:last-child { margin-bottom: 0; }

/* Numbers */
.stats { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats li { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; min-width: 0; }
.stats .value { display: block; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 700; line-height: 1.1; }
.stats .label { display: block; margin-top: 4px; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }

.chips { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); font-weight: 600; }

.tick-list { list-style: none; padding: 0; display: grid; gap: 8px; }
@media (min-width: 720px) { .tick-list { grid-template-columns: repeat(2, 1fr); } }
.tick-list li { padding-left: 1.6em; position: relative; }
.tick-list li::before {
  content: ""; position: absolute; left: 0.2em; top: 0.55em; width: 0.6em; height: 0.6em; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-c));
}

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.timeline > li { display: grid; gap: 6px 24px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
@media (min-width: 720px) { .timeline > li { grid-template-columns: 110px 1fr; } }
.timeline .year { font-size: 1.6rem; font-weight: 700; color: var(--accent); line-height: 1.2; }
.timeline ul { margin: 0.4em 0 1em; }

/* Prose pages */
.prose > * { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); font-size: 0.97rem; }
.site-footer .container { padding-block: 40px 28px; display: grid; gap: 28px; }
@media (min-width: 860px) { .site-footer .container { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h2 { font-size: 1.05rem; margin-bottom: 0.6em; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 18px; color: var(--muted); font-size: 0.9rem; margin: 0; }
.subscribe p { color: var(--muted); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.site-footer .social { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 14px; }
