/* Go Work Inc — public site
   Fintech / endowment desk: ink navy, warm paper, electric teal.
*/

:root {
  --ink: #0b1f33;
  --ink-soft: #1a3348;
  --paper: #f6f1e8;
  --paper-deep: #ebe4d8;
  --surface: #fffdf9;
  --muted: #5c6b78;
  --border: #d5cdc0;
  --accent: #0d9b8a;
  --accent-deep: #087a6c;
  --copper: #b87333;
  --white: #ffffff;

  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px;
  --gutter: clamp(20px, 5vw, 56px);
  --maxw: 1120px;
  --measure: 66ch;
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6.2vw, 68px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.35;
  max-width: 38ch;
  color: var(--ink-soft);
}

.prose {
  max-width: var(--measure);
  color: var(--ink-soft);
}
.prose + .prose { margin-top: var(--s3); }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.5; }

.section { padding: var(--s6) 0; }
.section-tight { padding: var(--s5) 0; }
.section-ink {
  background: var(--ink);
  color: var(--paper);
}
.section-ink .lead,
.section-ink .prose,
.section-ink .muted { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.section-ink .eyebrow { color: var(--accent); }
.section-deep { background: var(--paper-deep); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand-text { font-size: 15px; }
.nav {
  display: none;
  gap: 4px 18px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  padding: var(--s3) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.drawer[hidden] { display: none !important; }
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer .nav-toggle {
  background: transparent;
  border-color: color-mix(in srgb, var(--paper) 25%, transparent);
  color: var(--paper);
}
.drawer nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drawer nav a {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 32px;
  padding: 8px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 12%, transparent);
  color: var(--paper);
}
.drawer nav a:hover { color: var(--accent); }

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--s4);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-deep); color: var(--white); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.section-ink .btn-ghost {
  border-color: color-mix(in srgb, var(--paper) 35%, transparent);
  color: var(--paper);
}
.section-ink .btn-ghost:hover {
  border-color: var(--paper);
  color: var(--paper);
}

/* Cards / grids */
.grid-3 {
  display: grid;
  gap: var(--s3);
  grid-template-columns: 1fr;
  margin-top: var(--s4);
}
.grid-2 {
  display: grid;
  gap: var(--s3);
  grid-template-columns: 1fr;
  margin-top: var(--s4);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s3);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card a.card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: none;
}
.card a.card-link:hover { text-decoration: underline; }

.proof {
  display: grid;
  gap: var(--s3);
  grid-template-columns: 1fr;
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--border);
}
.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 6px;
}
.proof-item span { color: var(--muted); font-size: 14px; }

/* Compare */
.compare {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: var(--s4);
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
}
.compare-row > div { padding: var(--s3); }
.compare-row .label {
  background: var(--paper-deep);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.compare-row.ours {
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.compare-row.ours .label {
  background: color-mix(in srgb, var(--accent) 18%, var(--paper-deep));
  color: var(--accent-deep);
}
.compare-row p { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* Seats */
.seat {
  display: grid;
  gap: 8px;
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--border);
}
.seat:last-child { border-bottom: 0; }
.seat-title {
  font-family: var(--font-display);
  font-size: 24px;
}
.seat-role {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.seat p { color: var(--muted); max-width: 62ch; font-size: 15px; }

/* JD */
.jd {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s4);
  margin-top: var(--s4);
}
.jd + .jd { margin-top: var(--s3); }
.jd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 12px 0 var(--s3);
  font-size: 13px;
  color: var(--muted);
}
.jd-meta span {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--paper);
}
.jd ul {
  margin: 12px 0 0 1.2em;
  color: var(--ink-soft);
  font-size: 15px;
}
.jd li + li { margin-top: 6px; }
.jd h3 { margin-top: var(--s3); font-size: 18px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

/* Callout */
.callout {
  border-left: 3px solid var(--accent);
  padding: var(--s2) var(--s3);
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  margin-top: var(--s4);
}
.callout p { color: var(--ink-soft); font-size: 15px; }
.callout a { color: var(--accent-deep); font-weight: 600; }

.disclaimer {
  margin-top: var(--s5);
  padding: var(--s3);
  border: 1px solid var(--border);
  background: var(--paper-deep);
  font-size: 13px;
  color: var(--muted);
  max-width: 70ch;
}

.footnote {
  margin-top: var(--s4);
  font-size: 13px;
  color: var(--muted);
  max-width: 70ch;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--s5) 0 var(--s4);
  background: var(--ink);
  color: color-mix(in srgb, var(--paper) 80%, transparent);
}
.footer-grid {
  display: grid;
  gap: var(--s4);
  grid-template-columns: 1fr;
  margin-bottom: var(--s4);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--paper);
  margin-bottom: 8px;
}
.footer-tag, .footer-loc { font-size: 14px; color: color-mix(in srgb, var(--paper) 65%, transparent); }
.footer-loc { margin-top: 6px; }
.footer-nav, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a, .footer-contact a {
  text-decoration: none;
  font-size: 14px;
  color: color-mix(in srgb, var(--paper) 75%, transparent);
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--accent); }
.legal {
  font-size: 12px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--paper) 45%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--paper) 12%, transparent);
  padding-top: var(--s3);
}

@media (min-width: 720px) {
  .nav { display: flex; }
  .nav-toggle[data-drawer-open] { display: none; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .proof { grid-template-columns: repeat(3, 1fr); }
  .compare-row { grid-template-columns: 200px 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 960px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--s5);
    align-items: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
