/* ─────────────────────────────────────────────────────────────────────────
   gloWWWup × TSPEC — Proposal Site
   Design tokens lifted from the gloWWWup style guide v1
   ───────────────────────────────────────────────────────────────────────── */

:root {
  /* Surfaces */
  --bg:              #EEE9E3;
  --bg-alt:          #F6F6F6;
  --bg-dark:         #141414;
  --surface:         #FFFFFF;

  /* Foreground */
  --fg1:             #000000;
  --fg2:             rgba(0,0,0,.55);
  --fg3:             rgba(0,0,0,.30);
  --fg-on-dark:      #FFFFFF;
  --fg-on-dark-mute: rgba(255,255,255,.60);
  --fg-on-dark-dim:  rgba(255,255,255,.35);

  /* Accent */
  --accent:          #F43C00;
  --accent-soft:     #FFE9DF;
  --accent-deep:     #5A1500;
  --on-accent:       #FFFFFF;

  /* Borders */
  --border:          rgba(0,0,0,.10);
  --border-strong:   rgba(0,0,0,.20);
  --border-dark:     rgba(255,255,255,.10);

  /* TSPEC accent (used sparingly, paired with brand) */
  --tspec-green:     #6F9A40;
  --tspec-deep:      #3A4A28;

  /* Typography */
  --font-sans:  "Helvetica Neue", "HelveticaNeue", "Inter", system-ui, -apple-system, sans-serif;
  --font-geist: "Geist Mono", "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --font-serif: "Playfair Display", "Times New Roman", serif;

  /* Spacing scale */
  --sp-1: 4px;  --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px;  --sp-7: 48px;  --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;

  /* Radii */
  --r-xs: 6px; --r-sm: 12px; --r-md: 20px; --r-lg: 28px; --r-xl: 40px; --r-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.12);

  /* Motion */
  --ease-out: cubic-bezier(.2,.7,.1,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

/* ── BASE TYPOGRAPHY ── */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg1);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -.01em;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
h1 { font-size: clamp(56px, 9vw, 96px); }
h2 { font-size: clamp(40px, 6vw, 80px); }
h3 { font-size: clamp(32px, 4vw, 56px); line-height: 1.05; }
h4 { font-size: clamp(24px, 2.6vw, 40px); font-weight: 500; line-height: 1.1; }
h5 { font-size: 28px; font-weight: 600; line-height: 1.15; }
h6 { font-size: 22px; font-weight: 600; line-height: 1.2; }

p { margin: 0; }
em, .italic-serif { font-family: var(--font-serif); font-style: italic; font-weight: 500; }

.eyebrow {
  font-family: var(--font-geist);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg3);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--accent);
}
.eyebrow.no-rule::before { display: none; }
.eyebrow-on-dark { color: var(--fg-on-dark-mute); }

.lede {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
  color: var(--fg2);
  letter-spacing: -.01em;
  max-width: 60ch;
}

.accent { color: var(--accent); }
.muted  { color: var(--fg2); }

/* ── LAYOUT ── */
.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 600px) {
  .shell { padding: 0 20px; }
}
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section.tight { padding: clamp(48px, 6vw, 80px) 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-on-dark { background: var(--bg-dark); color: var(--fg-on-dark); }
.section-on-dark + .section { border-top: none; }
.section-on-dark .lede { color: var(--fg-on-dark-mute); }
.section-on-alt { background: var(--bg-alt); }

/* Page-wide stripe to put a dark band edge-to-edge */
.dark-band {
  background: var(--bg-dark);
  color: var(--fg-on-dark);
  padding: clamp(72px, 10vw, 144px) 0;
}
.dark-band .lede { color: var(--fg-on-dark-mute); }
.dark-band .eyebrow { color: var(--fg-on-dark-mute); }

/* ── NAV PILL ── */
.nav-pill {
  position: sticky;
  top: 16px;
  z-index: 100;
  margin: 16px auto;
  width: calc(100% - 32px);
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--r-pill);
  padding: 10px 14px 10px 22px;
  transition: all .3s var(--ease-out);
}
.nav-pill .brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-geist);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg2);
}
.nav-pill .brand img { height: 22px; width: auto; }
.nav-pill .brand img[src*="tspec-logo"] { height: 46px; min-height: 46px; }
.nav-pill .brand .x { color: var(--accent); font-weight: 700; }
.nav-pill .links {
  display: flex; gap: 24px;
  font-size: 14px; font-weight: 500;
}
.nav-pill .links a {
  position: relative;
  padding: 6px 2px;
  transition: color .18s var(--ease-out);
}
.nav-pill .links a:hover { color: var(--accent); }
.nav-pill .links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent);
  border-radius: 2px;
}
.nav-pill .cta {
  background: #000; color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500;
  transition: background .18s var(--ease-out);
}
.nav-pill .cta:hover { background: var(--accent); }
@media (max-width: 900px) {
  .nav-pill .links { display: none; }
}
@media (max-width: 600px) {
  .nav-pill {
    padding: 8px 10px 8px 16px;
    gap: 8px;
    width: calc(100% - 40px);
    top: 12px;
  }
  .nav-pill .brand span:last-child,
  .nav-pill .brand .x { display: none; }
  .nav-pill .brand img { height: 18px; }
  .nav-pill .cta { padding: 8px 14px; font-size: 13px; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 8px 14px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: background .2s var(--ease-out), color .2s var(--ease-out), transform .2s var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow {
  width: 32px; height: 32px;
  border-radius: var(--r-pill);
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn .arrow svg { width: 12px; height: 12px; }
.btn-primary { background: #000; color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-primary:hover .arrow svg path { stroke: var(--accent); }
.btn-accent  { background: var(--accent); color: #fff; }
.btn-accent .arrow svg path { stroke: var(--accent); }
.btn-ghost   { background: transparent; color: #000; border-color: var(--border-strong); padding: 14px 22px; }
.btn-ghost:hover { background: #000; color: #fff; }
.btn-on-dark.btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.btn-on-dark.btn-ghost:hover { background: #fff; color: #000; }

/* ── CARD ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 30px;
}
.card.flush { padding: 0; overflow: hidden; }
.card-on-dark {
  background: rgba(255,255,255,.04);
  border-color: var(--border-dark);
}

/* ── FOOTER ── */
.site-foot {
  background: var(--bg-dark);
  color: var(--fg-on-dark);
  padding: 64px 0 36px;
}
.site-foot .row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.site-foot h6 { color: var(--fg-on-dark); font-weight: 600; margin-bottom: 12px; font-size: 18px; }
.site-foot p, .site-foot a { color: var(--fg-on-dark-mute); font-size: 14px; line-height: 1.6; }
.site-foot a:hover { color: var(--accent); }
.site-foot .legal {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-geist);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg-on-dark-dim);
}

/* ── UTILITY ── */
.grid     { display: grid; gap: var(--sp-5); }
.grid-2   { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.grid-3   { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.grid-4   { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.flex     { display: flex; }
.between  { justify-content: space-between; }
.center   { justify-content: center; align-items: center; }
.stack    { display: flex; flex-direction: column; gap: var(--sp-4); }
.stack-lg { display: flex; flex-direction: column; gap: var(--sp-7); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── BADGE / CHIP ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-family: var(--font-geist);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.badge-on-dark {
  background: rgba(255,255,255,.08);
  color: var(--fg-on-dark);
}
.badge-accent {
  background: var(--accent);
  color: #fff;
}

/* Hairline divider */
.rule { height: 1px; background: var(--border); border: none; margin: 0; }
.rule-on-dark { background: var(--border-dark); }

/* TOC dot leader for cover */
.dot-leader {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 12px;
}
.dot-leader .dots {
  border-bottom: 1px dotted var(--border-strong);
  height: 0;
  align-self: end;
  margin-bottom: 6px;
}

/* Accent link */
.alink {
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color .18s var(--ease-out);
}
.alink:hover { color: var(--accent); }
