:root {
  color-scheme: light dark;
  --ink: light-dark(#211c20, #fff);
  --ember: light-dark(#f6a483, #614238);
  --plum: light-dark(#563c69, #463251);
  --gold: light-dark(#f3d96b, #554827);
  --paper: light-dark(#fff, #000);
  --muted: light-dark(#625c61, #bfbfbf);
  --pastel-peach: light-dark(#fce3d9, #3a2928);
  --pastel-lavender: light-dark(#eee5f2, #332b3b);
  --pastel-gold: light-dark(#faf0cd, #373022);
  --pastel-blue: light-dark(#dcecf9, #2c3f4f);
  --setup-hover: light-dark(#c7e0f4, #354f63);
  --quote: light-dark(#fcf0ec, #342726);
  --flame: #ea8e7e;
  font-family: Courier, "Courier New", monospace;
  font-weight: 400;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}

/* Auto follows the device by default; saved choices override it. */
:root[data-appearance="auto"] { color-scheme: light dark; }
:root[data-appearance="light"] { color-scheme: light; }
:root[data-appearance="dark"] { color-scheme: dark; }
/* Keep the controls usable on this page if scripts are disabled. */
:root:not([data-appearance]):has(.appearance-control input[value="light"]:checked) { color-scheme: light; }
:root:not([data-appearance]):has(.appearance-control input[value="dark"]:checked) { color-scheme: dark; }

* { box-sizing: border-box; }
body { margin: 0; padding: 18px 16px 32px; font-size: 16px; line-height: 1.4; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
p, h1, h2, h3, blockquote { margin: 0; font-size: inherit; font-weight: 400; }
img { display: block; max-width: 100%; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 2; padding: 12px; background: var(--gold); }
.skip-link:focus { top: 12px; }
.masthead { position: relative; min-height: 116px; }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 9px; text-decoration: none; }
.brand img { width: 72px; height: 72px; }
.wordmark { font-size: 16px; line-height: 1.3; }
.navigation { display: flex; align-items: center; gap: 7px; margin-top: 8px; }
.navigation a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border: 1px dotted var(--ink); text-decoration: none; }
.navigation a[aria-current="page"] { border-style: solid; }
.navigation a:hover { background: var(--ink); color: var(--paper); }
.navigation .setup-tab { background: var(--pastel-blue); }
.navigation .setup-tab:hover { color: var(--ink); background: var(--setup-hover); }
.tagline { margin: 24px 0 19px; }
.waitlist-note { margin-bottom: 20px; max-width: 64ch; color: var(--muted); }
.content-width { width: 100%; max-width: 1280px; }
.story-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; aspect-ratio: 1; min-width: 0; padding: 13px; }
.tile-invitation { border: 1px dotted var(--ink); gap: 16px; }
.tile-author { background: var(--ember); }
.tile-listener { color: white; background: var(--plum); }
.tile-introduction { background: var(--gold); }
.tile-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 16px; font-size: 12px; line-height: 1.35; }
.step-label { white-space: nowrap; }
.tile-copy { font-size: clamp(17px, 1.47vw, 21px); line-height: 1.3; overflow-wrap: break-word; }
.tile blockquote.tile-copy { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.4; }
.tile-caption { font-size: 13px; line-height: 1.35; }
.tile-caption p + p { margin-top: 10px; }
.waitlist-form { display: grid; gap: 10px; font-size: 14px; }
.waitlist-form input, .waitlist-form button { min-width: 0; min-height: 44px; border: 1px solid var(--ink); border-radius: 0; color: var(--ink); font: inherit; padding: 8px 10px; }
.waitlist-form input { width: 100%; background: var(--paper); font-size: 16px; }
.waitlist-form button { justify-self: start; margin-top: 4px; background: var(--pastel-blue); cursor: pointer; }
.waitlist-form button:hover { background: var(--setup-hover); }
.waitlist-form :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.privacy-line { margin-top: 24px; }
.site-footer { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 42px; font-size: 12px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 32px; }
.site-footer > p { display: flex; align-items: center; min-height: 32px; }
.footer-dot { display: flex; align-items: center; }
.guide { max-width: 960px; margin-top: 29px; }
.page-title { font-size: clamp(23px, 3vw, 34px); line-height: 1.2; margin-bottom: 12px; }
.page-intro { max-width: 660px; line-height: 1.5; }
.page-intro + .page-intro { margin-top: 12px; }
.availability { margin-top: 24px; padding: 17px; max-width: 720px; border: 1px dotted var(--ink); background: var(--pastel-gold); }
.setup-prompt { max-width: 720px; margin-top: 16px; padding: 20px; border: 1px dotted var(--ink); background: var(--pastel-blue); font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; user-select: all; }
.setup-summary { max-width: 720px; margin-top: 28px; }
.setup-summary p + p { margin-top: 12px; }
.setup-summary strong { font-weight: inherit; }
.connection-details { max-width: 720px; margin-top: 28px; border-top: 1px dotted var(--ink); border-bottom: 1px dotted var(--ink); }
.connection-details summary { min-height: 48px; padding: 13px 0; cursor: pointer; }
.connection-content { padding: 4px 0 18px; }
.agent-guide { max-width: 720px; }
.setup-steps { list-style: none; padding: 0; margin: 32px 0 0; counter-reset: setup; }
.setup-step { counter-increment: setup; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 23px 0; border-top: 1px dotted var(--ink); }
.setup-step::before { content: "0" counter(setup); font-size: 13px; padding-top: 2px; }
.setup-step h2, .sharing-section h2 { margin-bottom: 9px; font-size: 18px; }
.setup-step p, .sharing-section p { max-width: 660px; }
.setup-step p + p { margin-top: 10px; }
.mcp-connection { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px 14px; max-width: 660px; margin: 16px 0 0; padding: 14px; border: 1px dotted var(--ink); font-size: 14px; }
.mcp-connection dt { color: var(--muted); }
.mcp-connection dd { min-width: 0; margin: 0; }
.mcp-connection code { font: inherit; overflow-wrap: anywhere; }
.opt-in-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; max-width: 760px; margin-top: 16px; }
.opt-in { padding: 15px; border: 1px dotted var(--ink); }
.opt-in-suggest { background: var(--pastel-peach); }
.opt-in-listen { background: var(--pastel-lavender); }
.opt-in h3 { margin-bottom: 10px; }
.opt-in p { font-size: 13px; line-height: 1.45; }
.guide-note { margin-top: 13px; font-size: 13px; color: var(--muted); }
.return-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; }
.sharing-section { padding: 23px 0; border-top: 1px dotted var(--ink); }
.sharing-sections { margin-top: 28px; }
.sharing-section p + p { margin-top: 10px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 15px; }
.whitepaper { max-width: 760px; margin-top: 28px; }
.whitepaper-tools { display: flex; justify-content: flex-end; margin-top: 28px; }
.download-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px dotted var(--ink); text-decoration: none; font-size: 14px; line-height: 1.2; }
.download-link svg { display: block; flex-shrink: 0; }
.download-link:hover { background: var(--pastel-gold); }
.whitepaper-body { line-height: 1.65; overflow-wrap: break-word; }
.whitepaper-body h1 { font-size: clamp(24px, 3vw, 32px); line-height: 1.25; margin-bottom: 16px; }
.whitepaper-body h2 { font-size: 20px; line-height: 1.35; margin: 32px 0 12px; }
.whitepaper-body p + p { margin-top: 18px; }
.whitepaper-body blockquote { margin: 24px 0; padding: 14px 18px; border-left: 3px solid var(--flame); background: var(--quote); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (min-width: 1161px) {
  .story-grid { column-gap: 12px; }
}

@media (min-width: 761px) and (max-width: 1160px) {
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 800px; }
  .tile-copy { font-size: 21px; }
  .tile blockquote.tile-copy { font-size: 19px; }
}

@media (max-width: 760px) {
  body { padding: 14px 12px 24px; }
  .masthead { min-height: 112px; }
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .tile { aspect-ratio: auto; min-height: 260px; gap: 36px; padding: 14px; }
  .tile-invitation { min-height: 270px; }
  .tile-copy { font-size: 21px; max-width: 32ch; }
  .tile blockquote.tile-copy { font-size: 19px; }
  .tile-label { margin-bottom: 18px; }
  .tile-caption { max-width: 52ch; }
  .privacy-line { font-size: 14px; max-width: 44ch; }
  .site-footer { margin-top: 30px; }
  .guide { margin-top: 25px; }
  .setup-step { grid-template-columns: 27px 1fr; gap: 12px; }
  .mcp-connection { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .mcp-connection dd + dt { margin-top: 9px; }
  .opt-in-grid { grid-template-columns: 1fr; }
}

/* A compact native radio group keeps appearance controls keyboard accessible. */
.appearance-control { display: inline-flex; align-items: center; gap: 2px; min-inline-size: 0; margin: 0; padding: 0; border: 0; font-size: 12px; }
.appearance-control legend, .appearance-control input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.appearance-control label { display: inline-flex; align-items: center; min-height: 44px; margin: 0; cursor: pointer; }
.appearance-control span { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 7px; border: 1px dotted transparent; }
.appearance-control label:hover span { border-color: var(--ink); }
.appearance-control input:checked + span { border-color: var(--ink); border-style: solid; }
.appearance-control input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
