/* Aide holding site — shared chrome, tokens, and primitives.
   Linked from every page. Page-specific layout stays in a small inline <style>.
   Font paths are root-absolute so nested routes (/vs/, /about/) resolve correctly. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  --ink: #111827;
  --heading: #1a1a2e;
  --muted: #6b7280;
  --paper: #fff;
  --line: #e2e2e7;
  --coral: #f97316;
  --violet: #7c3aed;
  --tint: rgba(124, 58, 237, .03);
  --navy: #12142B;
  --canvas: #F9F8FC;
  --soft: #f4f2f8;
  /* Resources / standpoint comparison tints */
  --gpt-tint: rgba(107, 114, 128, .08);
  --chat-tint: rgba(107, 114, 128, .08);
  --aide-tint: rgba(124, 58, 237, .07);
  --radius: 28px;
  --radius-sm: 16px;
  --radius-xs: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ink: #f3f4f6;
    --heading: #fff;
    --muted: #bdb9c3;
    --paper: #1a1a2e;
    --line: rgba(255, 255, 255, .18);
    --tint: rgba(255, 255, 255, .035);
    --navy: #0c0d1a;
    --canvas: #141628;
    --soft: rgba(255, 255, 255, .04);
    --gpt-tint: rgba(255, 255, 255, .05);
    --chat-tint: rgba(255, 255, 255, .05);
    --aide-tint: rgba(124, 58, 237, .14);
  }
}
html[data-theme='dark'] {
  --ink: #f3f4f6;
  --heading: #fff;
  --muted: #bdb9c3;
  --paper: #1a1a2e;
  --line: rgba(255, 255, 255, .18);
  --tint: rgba(255, 255, 255, .035);
  --navy: #0c0d1a;
  --canvas: #141628;
  --soft: rgba(255, 255, 255, .04);
  --gpt-tint: rgba(255, 255, 255, .05);
  --chat-tint: rgba(255, 255, 255, .05);
  --aide-tint: rgba(124, 58, 237, .14);
}
html[data-theme='light'] {
  --ink: #111827;
  --heading: #1a1a2e;
  --muted: #6b7280;
  --paper: #fff;
  --line: #e2e2e7;
  --tint: rgba(124, 58, 237, .03);
  --navy: #12142B;
  --canvas: #F9F8FC;
  --soft: #f4f2f8;
  --gpt-tint: rgba(107, 114, 128, .08);
  --chat-tint: rgba(107, 114, 128, .08);
  --aide-tint: rgba(124, 58, 237, .07);
}

body {
  margin: 0;
  min-height: 100svh;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
main {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 16px 0 30px;
}
header, .content, footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
}
.wordmark {
  width: clamp(3.3rem, 6.3vw, 4.5rem);
  height: auto;
  display: block;
}
nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.menu-toggle {
  display: none;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
}
.menu-toggle:hover { background: var(--tint); }
.menu-toggle:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.menu-toggle-icon { width: 42px; height: 42px; display: block; }

nav a, footer a {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid;
  border-image: linear-gradient(90deg, var(--coral), var(--violet)) 1;
  padding-bottom: .12em;
}
nav a:hover, nav a:focus-visible,
footer a:hover, footer a:focus-visible { color: var(--ink); }
.nav-home { display: inline-flex; align-items: center; }
.nav-home svg { display: block; }
.nav-login { color: var(--ink); font-weight: 700; }
nav a[aria-current='page'] { color: var(--ink); font-weight: 600; }

.theme-switcher {
  display: inline-flex;
  gap: .1rem;
  padding: .06rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral), var(--violet));
  font: inherit;
  font-size: .62rem;
  line-height: 1;
}
.theme-switcher button {
  border: 0;
  padding: .3rem .45rem;
  cursor: pointer;
  font: inherit;
}
.theme-switcher button[data-theme-choice='light'] {
  color: #111827;
  background: #fff;
  border-radius: 999px 0 0 999px;
}
.theme-switcher button[data-theme-choice='dark'] {
  color: #f3f4f6;
  background: #1a1a2e;
  border-radius: 0 999px 999px 0;
}
.theme-switcher button[aria-pressed='true'] {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .7);
}

.content { flex: 1; }

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--violet);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
}
.lede {
  max-width: 40rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.65;
}
.lede strong { color: var(--heading); font-weight: 700; }

.section-heading {
  max-width: 48rem;
  margin: clamp(3rem, 6vh, 4.5rem) 0 1rem;
  color: var(--heading);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.body-text {
  max-width: 48rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}
.body-text:last-child { margin-bottom: 0; }
.body-text strong { color: var(--ink); }
.body-text ul { margin: .5rem 0 1rem; padding-left: 1.4rem; }
.body-text li { margin-bottom: .3rem; line-height: 1.65; }

/* In-content links — coral→violet underline (nav/footer already covered) */
.body-text a,
.body-text-long a,
.callout a,
.article-body a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid;
  border-image: linear-gradient(90deg, var(--coral), var(--violet)) 1;
  padding-bottom: .1em;
  transition: opacity .2s;
}
.body-text a:hover,
.body-text-long a:hover,
.callout a:hover,
.article-body a:hover { opacity: .7; }

.cta-button {
  display: inline-block;
  padding: .75rem 1.5rem;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(90deg, var(--coral), var(--violet)) no-repeat border-box;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.cta-button:hover { opacity: .92; }

.sr-only,
.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;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid;
  border-image: linear-gradient(90deg, var(--coral), var(--violet)) 1;
  padding-top: 1.2rem;
  color: var(--muted);
  font-size: .86rem;
}
footer span {
  display: flex;
  gap: .6rem;
  align-items: baseline;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

@media (max-width: 680px) {
  .menu-toggle { display: inline-flex; order: 2; margin-left: auto; }
  header { flex-wrap: wrap; }
  nav { display: none; order: 3; gap: .75rem; font-size: .88rem; }
  nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .9rem;
    width: 100%;
    margin-top: 10px;
    padding: 12px 0 4px;
    border-top: 1px solid var(--line);
  }
  header, .content, footer { width: calc(100% - 24px); }
  .theme-switcher button { padding: .28rem .4rem; }
  footer { align-items: flex-end; gap: 1rem; }
  footer span { flex-direction: column; gap: .3rem; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
