@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/Newsreader-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/Newsreader-Italic-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fbf8f1;
  --cream: #f4efe6;
  --accent: #1d2bb8;
  --accent-deep: #141c7e;
  --body-ink: #181310;
  --muted: rgba(24, 19, 16, 0.56);
  --line: rgba(126, 33, 16, 0.16);
  --panel: rgba(255, 252, 246, 0.72);
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono: "Geist Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  color: var(--body-ink);
  background: var(--cream);
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* Faded engraving wallpaper, chrome-relay style: Dorian and his portrait
   (Dété engraving, 1908 edition — public domain) lifted to faint outlines
   on cream. One image, full bleed, behind everything. */
.bg-art {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url(/assets/dorian.jpg);
  background-size: cover;
  background-position: center 26%;
  background-repeat: no-repeat;
  opacity: 0.17;
  filter: saturate(0.2) contrast(0.5) brightness(1.55);
}

/* ---------- header ---------- */
.site-header {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 16px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img { width: 28px; height: 28px; display: block; border-radius: 6px; border: 1px solid var(--line); }
.brand span {
  color: var(--accent);
  font: 560 23px/1 var(--serif);
  letter-spacing: -0.015em;
}
.nav-cta {
  text-decoration: none;
  font-weight: 620;
  font-size: 14px;
  padding: 10px 16px;
  color: #fff8f0;
  background: var(--accent);
  border-radius: 10px;
}
.nav-cta:hover { background: var(--accent-deep); }

/* ---------- hero ---------- */
.hero {
  width: min(980px, calc(100vw - 32px));
  margin: 0 auto;
  padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 6vw, 80px);
  text-align: center;
}
.hero h1 {
  margin: 0 auto;
  color: var(--body-ink);
  font: 560 clamp(44px, 6.6vw, 78px)/1.02 var(--serif);
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.scope {
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 1.8vw, 18px);
  letter-spacing: -0.01em;
}
.cta-row { margin: 30px auto 0; }
.cta {
  display: inline-block;
  text-decoration: none;
  font-weight: 640;
  font-size: 16px;
  padding: 14px 26px;
  color: #fff8f0;
  background: var(--accent);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(29, 43, 184, 0.22);
}
.cta:hover { background: var(--accent-deep); }

/* ---------- hero visual: the chat ---------- */
.stage {
  width: min(660px, calc(100vw - 32px));
  margin: clamp(44px, 6vw, 72px) auto 0;
  padding: clamp(22px, 3.4vw, 36px);
  text-align: left;
  background: var(--panel);
  border: 1px solid rgba(24, 19, 16, 0.08);
  border-radius: 22px;
  box-shadow: 0 34px 80px rgba(66, 27, 12, 0.14), 0 6px 18px rgba(66, 27, 12, 0.07);
  backdrop-filter: blur(3px);
}
.chat {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-family: var(--sans);
}
.msg-user {
  align-self: flex-end;
  max-width: 88%;
  padding: 12px 17px;
  background: #f1ede4;
  border: 1px solid rgba(24, 19, 16, 0.05);
  border-radius: 20px;
  border-bottom-right-radius: 7px;
  font-size: 15.5px;
}
.worked {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13.5px;
}
.worked svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.thought {
  color: var(--body-ink);
  font: italic 500 16.5px/1.5 var(--serif);
}
.tool {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
}
.tool img { width: 20px; height: 20px; border-radius: 4px; }

.result-mini {
  margin-top: 6px;
  padding: 18px 20px 20px;
  background: #fffcf4;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.result-kicker {
  color: var(--accent);
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.16em;
}
.result-name {
  margin-top: 8px;
  color: var(--body-ink);
  font: 570 30px/1.05 var(--serif);
  letter-spacing: -0.025em;
}
.traits { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.trait { display: grid; grid-template-columns: 118px 1fr 34px; align-items: center; gap: 12px; }
.trait i { font-style: normal; font-size: 13px; color: var(--muted); }
.trait b { font-size: 13px; font-weight: 620; text-align: right; color: var(--body-ink); }
.bar { height: 7px; background: rgba(24, 19, 16, 0.07); border-radius: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.w87 { width: 87%; }
.w86 { width: 86%; }
.w16 { width: 16%; }

/* ---------- footer ---------- */
.site-footer {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 26px 4px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--body-ink); }

/* ---------- get-started ---------- */
.gs {
  width: min(720px, calc(100vw - 32px));
  margin: 0 auto;
  padding: clamp(44px, 7vw, 72px) 0 clamp(56px, 7vw, 88px);
}
.gs h1 {
  color: var(--body-ink);
  font: 560 clamp(34px, 4.6vw, 50px)/1.05 var(--serif);
  letter-spacing: -0.035em;
}
.gs-sub { margin-top: 14px; color: var(--muted); font-size: 16px; }
.step { margin-top: 40px; display: grid; grid-template-columns: 52px 1fr; gap: 18px; }
.step-num {
  color: var(--accent);
  font: 500 34px/1 var(--serif);
  letter-spacing: -0.02em;
}
.step h2 {
  font: 620 19px/1.3 var(--sans);
  letter-spacing: -0.015em;
  color: var(--body-ink);
}
.step p { margin-top: 8px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.step p b { color: var(--body-ink); font-weight: 620; }
.field {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffcf4;
  overflow: hidden;
}
.field-label {
  padding: 9px 14px 0;
  color: var(--accent);
  font: 600 10.5px/1 var(--mono);
  letter-spacing: 0.14em;
}
.field-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 10px 11px 14px;
}
.field-row code {
  flex: 1;
  font: 450 13.5px/1.5 var(--mono);
  color: var(--body-ink);
  word-break: break-all;
  padding-top: 4px;
}
.copy-btn {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--accent);
  font: 600 12.5px/1 var(--sans);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.copy-btn:hover { background: rgba(29, 43, 184, 0.06); }
.say {
  margin-top: 12px;
  padding: 13px 16px;
  background: #fffcf4;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--body-ink);
  font: italic 500 16.5px/1.45 var(--serif);
}

.host-toggle {
  display: inline-flex;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  background: #fffcf4;
}
.host-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font: 600 15px/1 var(--sans);
  color: var(--body-ink);
  background: transparent;
  border-radius: 999px;
  padding: 9px 16px;
}
.host-btn svg { width: 17px; height: 17px; }
.host-btn[aria-selected="true"] { background: var(--body-ink); color: var(--paper); }
body.claude .gpt-only { display: none; }
body:not(.claude) .claude-only { display: none; }
.claude-open { font-weight: 600; color: var(--accent); }

@media (max-width: 720px) {
  .bg-art { opacity: 0.12; }
  .trait { grid-template-columns: 96px 1fr 32px; }
  .step { grid-template-columns: 40px 1fr; }
}
