@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/newsreader-v26-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/geist-v5-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/geist-v5-latin-600.woff2') format('woff2');
}

:root {
  --paper: #f3f0e8;
  --color-bg-chrome: #11110f;
  --color-bg-subtle: #e9e5da;
  --accent: #c7ff4a;
  --color-bg-inverse: #11110f;
  --ink: #11110f;
  --color-text-secondary: #4e4d49;
  --color-text-tertiary: #5f5e59;
  --color-text-on-accent: #11110f;
  --rule: #cfccc3;
  --color-border-strong: #11110f;
  --mark-muted: #9d9b94;

  --ease-reveal: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --duration-exit: 150ms;
  --duration-swap: 200ms;
  --duration-drawer: 400ms;
  --duration-enter: 700ms;
  --stagger-block: 100ms;
  --stagger-word: 80ms;

  --font-display: 'Newsreader', Arial, Helvetica, sans-serif;
  --font-ui: 'Geist', Arial, Helvetica, sans-serif;

  --text-display-h1: 500 clamp(3rem, 8vw, 88px) / 78px var(--font-display);
  --text-display-h2: 500 28px / 28px var(--font-display);
  --text-ui-lede: 400 16px / 24px var(--font-ui);
  --text-ui-body: 400 15px / 20px var(--font-ui);
  --text-ui-small: 400 13px / 18px var(--font-ui);
  --text-ui-label: 600 13px / 16px var(--font-ui);
  --text-ui-eyebrow: 600 11.5px / 14px var(--font-ui);
  --text-ui-micro: 600 11px / 13px var(--font-ui);

  /* Section titles and the larger lede of the banded page. */
  --text-display-section: 500 56px / 52px var(--font-display);
  --text-ui-lede-large: 400 18px / 28px var(--font-ui);

  /* A banded section takes the chrome ground in either mode, so the text
     on it never flips, for the same reason chrome does not. */
  --color-bg-band: #11110f;
  --color-bg-band-panel: #1c1c19;
  --color-text-on-chrome: #f3f0e8;
  --color-text-on-chrome-secondary: #b6b3aa;
  --color-border-on-chrome: #3d3c38;

  /* Illustration only: the warm cast and the checkerboard of the layer
     switcher. Never text. */
  --color-illustration-warm: #ff9a3d;
  --color-illustration-checker: #d9d6cd;

  /* Surfaces are solid. Only one floating over a photograph, a pattern or
     moving content may be glass, and glass always pairs a fill with the
     blur. Never a see-through fill on its own. */
  --glass-fill: color-mix(in oklab, var(--paper) 76%, transparent);
  --glass-fill-chrome: color-mix(in oklab, var(--color-bg-band) 74%, transparent);
  --glass-blur: blur(20px) saturate(1.4);
  --color-bg-field: #fbfaf6;
  --color-bg-disabled: #dedad0;
  --color-text-disabled: #55534e;
  --color-pattern-dot: #bfbbb0;

  /* Depth: a card resting on the board, a card lifted under the pointer,
     and a section laid over the one before it. */
  --shadow-card: 0 1px 2px rgb(17 17 15 / 0.06), 0 24px 48px -24px rgb(17 17 15 / 0.24);
  --shadow-lift: 0 18px 36px -18px rgb(17 17 15 / 0.32);
  --shadow-sheet: 0 -28px 56px -20px rgb(17 17 15 / 0.35);
}

@media (max-width: 1279px) {
  :root {
    --text-display-section: 500 38px / 38px var(--font-display);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #11110f;
    --color-bg-subtle: #1c1c19;
    --color-bg-inverse: #f3f0e8;
    --ink: #f3f0e8;
    --color-text-secondary: #b6b3aa;
    --color-text-tertiary: #9d9b94;
    --rule: #3d3c38;
    --color-border-strong: #f3f0e8;
    --color-bg-band: #1c1c19;
    --color-bg-band-panel: #11110f;
    --color-bg-field: #181815;
    --color-bg-disabled: #2a2a27;
    --color-text-disabled: #b6b3aa;
    --color-pattern-dot: #3a3935;
    --shadow-card: 0 1px 2px rgb(0 0 0 / 0.4), 0 24px 48px -24px rgb(0 0 0 / 0.7);
    --shadow-lift: 0 18px 36px -18px rgb(0 0 0 / 0.75);
    --shadow-sheet: 0 -28px 56px -20px rgb(0 0 0 / 0.8);
  }
}

* {
  box-sizing: border-box;
}

.mcp {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: var(--text-ui-body);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 36px;
  background-color: var(--paper);
  box-shadow: inset 0 -1px 0 var(--rule);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav__links {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  color: var(--color-text-secondary);
  font: var(--text-ui-label);
  text-decoration: none;
}

.site-nav__link:hover {
  color: var(--ink);
}

.site-nav__cta {
  display: inline-flex;
  height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--color-border-strong);
  background: var(--color-bg-inverse);
  color: var(--paper);
  font: var(--text-ui-label);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__cta:hover,
.site-nav__cta:focus-visible {
  background: var(--accent);
  color: var(--color-text-on-accent);
}

.site-nav__cta .hgi-stroke {
  font-size: 1.25em;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: var(--text-ui-label);
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark__mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: var(--accent);
  color: var(--color-text-on-accent);
  font: 500 22px / 1 var(--font-display);
  letter-spacing: 0;
}

.input-grid {
  display: grid;
  min-height: calc(100dvh - 72px);
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  padding-inline: 36px;
}

.input-intro {
  display: flex;
  grid-column: 1 / 6;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.5rem;
  padding-block: 3.5rem clamp(2.2rem, 5vw, 5.6rem);
}

.input-intro h1 {
  margin: 0;
  font: var(--text-display-section);
  font-size: clamp(3.3rem, 4.4vw, 5rem);
  letter-spacing: -0.045em;
}

.eyebrow {
  margin: 0;
  color: var(--color-text-tertiary);
  font: var(--text-ui-eyebrow);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lede {
  max-width: 42ch;
  margin: 0;
  color: var(--color-text-secondary);
  font: var(--text-ui-lede);
}

.workbench-board {
  display: grid;
  grid-column: 6 / 13;
  min-height: calc(100dvh - 72px);
  align-content: safe center;
  padding: clamp(20px, 5vh - 16px, 48px) 48px;
  background-color: var(--color-bg-subtle);
  background-image: radial-gradient(var(--color-pattern-dot) 1px, transparent 1.5px);
  background-size: 20px 20px;
}

.workbench-card {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding: 32px 40px;
  border: 1px solid var(--rule);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.mcp__prompt-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.mcp__prompt-title,
.mcp__manuals-title {
  margin: 0;
  font: var(--text-ui-label);
}

.mcp__copy {
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--color-border-strong);
  background: var(--color-bg-inverse);
  color: var(--paper);
  font: var(--text-ui-label);
  cursor: pointer;
}

.mcp__copy:hover,
.mcp__copy:focus-visible {
  background: var(--accent);
  color: var(--color-text-on-accent);
}

.mcp pre {
  margin: 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-border-strong);
  background: var(--color-bg-subtle);
  overflow-x: auto;
  white-space: pre-wrap;
  font: var(--text-ui-small);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.mcp__manuals {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.mcp__manuals-note {
  max-width: 52ch;
  margin: 12px 0 24px;
  color: var(--color-text-secondary);
}

.mcp details {
  border-top: 1px solid var(--rule);
}

.mcp details:last-child {
  border-bottom: 1px solid var(--rule);
}

.mcp summary {
  padding: 16px 0;
  font: var(--text-ui-label);
  cursor: pointer;
}

.mcp details pre {
  margin-bottom: 16px;
}

@media (max-width: 1279px) {
  .site-header,
  .input-grid {
    padding-inline: 16px;
  }

  .site-nav__links {
    display: none;
  }

  .input-grid,
  .workbench-board {
    display: block;
    min-height: 0;
  }

  .workbench-board {
    padding: 24px 16px 48px;
  }

  .workbench-card {
    padding: 24px 20px;
  }
}
