@font-face { font-family: "IBM Plex Sans"; src: url(/assets/fonts/IBMPlexSans-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(/assets/fonts/IBMPlexSans-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }

/* Paper and ink, as the brand has it; orange only for what Otōto found. */
:root {
  --paper: #f6f4ef; --paper-2: #eeebe3; --card: #fbfaf7;
  --ink: #15202b; --ink-2: #3b4753; --muted: #5e6975;
  --rule: rgba(21, 32, 43, 0.14); --rule-2: rgba(21, 32, 43, 0.28);
  --orange: #d9692b; --orange-ink: #a8481a; --wash: rgba(217, 105, 43, 0.13);
  --blue: #2c5f8a; --band: #15202b; --band-text: #f6f4ef;
  --mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15202b; --paper-2: #1b2733; --card: #1d2a37;
    --ink: #eef0ee; --ink-2: #c4ccd4; --muted: #95a2ae;
    --rule: rgba(246, 244, 239, 0.13); --rule-2: rgba(246, 244, 239, 0.26);
    --orange: #f08a4b; --orange-ink: #f5a676; --wash: rgba(240, 138, 75, 0.16);
    --blue: #8ab4dc; --band: #f6f4ef; --band-text: #15202b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #15202b; --paper-2: #1b2733; --card: #1d2a37;
  --ink: #eef0ee; --ink-2: #c4ccd4; --muted: #95a2ae;
  --rule: rgba(246, 244, 239, 0.13); --rule-2: rgba(246, 244, 239, 0.26);
  --orange: #f08a4b; --orange-ink: #f5a676; --wash: rgba(240, 138, 75, 0.16);
  --blue: #8ab4dc; --band: #f6f4ef; --band-text: #15202b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-underline-offset: 3px; }
p { margin: 0 0 14px; }
code, .mono { font-family: var(--mono); font-size: 0.86em; }
p code, li code, td code { background: var(--paper-2); border-radius: 3px; padding: 1px 4px; }
p code, td code { white-space: nowrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* What Otōto found: in the hug's brackets, on a wash. */
.found { background: var(--wash); border-radius: 3px; padding: 0 2px; color: var(--ink); white-space: nowrap; }
.found::before { content: "( "; color: var(--orange); font-weight: 600; }
.found::after { content: " )"; color: var(--orange); font-weight: 600; }
.lockup-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lockup-light { display: none; }
  :root:not([data-theme="light"]) .lockup-dark { display: block; }
}
:root[data-theme="dark"] .lockup-light { display: none; }
:root[data-theme="dark"] .lockup-dark { display: block; }

/* The top */
header.top { display: flex; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
header.top img { height: 28px; }
header.top nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
header.top nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
header.top nav a:hover { color: var(--ink); text-decoration: underline; }
header.top nav a.cta { color: var(--ink); font-weight: 600; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px 56px; padding: 72px 0 64px; align-items: start; }
.hero .head { grid-column: 1 / -1; }
.hero .lead { margin-top: 8px; }
h1 { font-size: clamp(40px, 6.6vw, 80px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 12px; }
h1 .hug { white-space: nowrap; }
h1 .hug::before, h1 .hug::after { color: var(--orange); font-weight: 400; }
h1 .hug::before { content: "("; margin-right: 0.08em; }
h1 .hug::after { content: ")"; margin-left: 0.08em; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 520px; }
.actions { margin-top: 26px; max-width: 520px; }
.actions .also { font-size: 15px; color: var(--muted); margin-top: 10px; }
.actions .also a { color: var(--ink-2); }

/* A command to copy */
.line { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--rule-2); border-radius: 4px; padding: 8px 8px 8px 14px; font: 15px/1.4 var(--mono); }
.line span { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; }
.line span::before { content: "$ "; color: var(--muted); }
.copy { font: 13px/1 var(--sans); color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--rule); border-radius: 3px; padding: 7px 10px; cursor: pointer; flex: none; }
.copy:hover { color: var(--ink); border-color: var(--rule-2); }

/* Figures, captioned as in a manual */
figure { margin: 0; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
figcaption b { font: 600 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin-right: 8px; }

/* The exchange: Claude Code asks, Otōto answers */
.exchange { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.turn { padding: 20px 22px; }
.turn + .turn { border-top: 1px dashed var(--rule-2); }
.who { display: flex; align-items: center; gap: 8px; font: 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.who img { width: 18px; height: 18px; }
.who .dot { width: 18px; height: 18px; border-radius: 4px; background: var(--rule-2); }
.q { font-size: 18px; font-weight: 600; margin: 0; }
.answer p { color: var(--ink-2); font-size: 16px; }
.cites { list-style: none; margin: 14px 0 0; padding: 0; font: 13px/1.5 var(--mono); }
.cites li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; padding: 6px 0; border-top: 1px solid var(--rule); }
.cites .found { justify-self: start; }
.cites code { font-size: 1em; color: var(--ink-2); overflow-wrap: anywhere; background: none; padding: 0; white-space: normal; }
.meta { font: 12px/1.4 var(--mono); color: var(--muted); padding: 10px 22px; background: var(--paper-2); border-top: 1px solid var(--rule); }

/* The examples above the fold: tabs, and panels stacked in one cell so the figure keeps the tallest one's height */
.ex-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ex-tabs button { font: 12px/1 var(--mono); letter-spacing: 0.03em; color: var(--ink-2); background: none; border: 1px solid var(--rule-2); border-radius: 999px; padding: 7px 11px; cursor: pointer; }
.ex-tabs button:hover { color: var(--ink); border-color: var(--ink-2); }
.ex-tabs button[aria-selected="true"] { background: var(--band); color: var(--band-text); border-color: var(--band); }
.ex-panels { display: grid; }
.ex-panels > .exchange { grid-area: 1 / 1; display: flex; flex-direction: column; }
.ex-panels .meta { margin-top: auto; }
.ex-panels > .exchange[hidden] { display: block; visibility: hidden; }
.who .repo { margin-left: auto; text-transform: none; letter-spacing: 0; }
.q code { font-size: 0.9em; background: var(--paper-2); border-radius: 3px; padding: 1px 5px; }
.plugin-out { margin: 12px 0 0; font: 12.5px/1.7 var(--mono); color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.plugin-out .hit { display: block; background: var(--wash); box-shadow: inset 3px 0 0 var(--orange); margin: 0 -8px; padding: 0 8px; color: var(--ink); }

/* Sections */
section.part { padding: 72px 0; border-top: 1px solid var(--rule); }
.label { font: 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: flex; gap: 10px; }
.label span { color: var(--orange-ink); }
h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -0.015em; font-weight: 600; margin: 0 0 18px; max-width: 760px; }
h3 { font-weight: 600; }
.intro { color: var(--ink-2); max-width: 680px; font-size: 18px; }

/* A section's heading beside its illustration: grey line art, laid on the paper (inverted on ink) */
.part-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 24px 56px; align-items: center; }
.art { margin: 0; }
.art img, .art video { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.art .todo { aspect-ratio: 4 / 3; border: 1px dashed var(--rule-2); border-radius: 8px; display: grid; place-items: center; padding: 16px; text-align: center; color: var(--muted); font-size: 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .art img, :root:not([data-theme="light"]) .art video { filter: invert(1); mix-blend-mode: screen; } }
:root[data-theme="dark"] .art img, :root[data-theme="dark"] .art video { filter: invert(1); mix-blend-mode: screen; }

/* How it works: three steps */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr); margin-top: 40px; align-items: start; }
.step { border-top: 2px solid var(--ink); padding-top: 16px; }
.step.little { border-top-color: var(--orange); }
.step h3 { font-size: 19px; margin: 6px 0 8px; }
.step p { color: var(--ink-2); font-size: 16px; }
.step .n { font: 12px/1 var(--mono); color: var(--muted); }
.arrow { text-align: center; padding-top: 34px; color: var(--muted); font-family: var(--mono); }

/* Two context windows of the same size */
.contexts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 40px; }
.ctx h3 { font-size: 16px; margin: 0 0 10px; }
.ctx h3 small { display: block; font: 400 13px/1.4 var(--sans); color: var(--muted); }
.window { height: 300px; display: flex; flex-direction: column; gap: 5px; padding: 12px; background: var(--card); border: 1px solid var(--rule-2); border-radius: 8px; overflow: hidden; }
.window .bar { font: 12px/1 var(--mono); padding: 7px 10px; border-radius: 3px; background: var(--paper-2); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; }
.window .bar.big { padding-top: 15px; padding-bottom: 15px; }
.window .bar.huge { padding-top: 24px; padding-bottom: 24px; }
.window .bar.task { background: var(--band); color: var(--band-text); }
.window .bar.got { background: var(--wash); color: var(--ink); box-shadow: inset 3px 0 0 var(--orange); }
.window .free { flex: 1; border: 1px dashed var(--rule-2); border-radius: 3px; display: grid; place-items: center; font-size: 14px; color: var(--muted); }
.window .full { margin-top: auto; font: 12px/1 var(--mono); color: var(--orange-ink); text-align: center; padding: 4px 0 0; }
.gauge { margin-top: 10px; font: 12px/1.4 var(--mono); color: var(--muted); }
.gauge i { display: block; height: 6px; border-radius: 3px; background: var(--paper-2); margin-bottom: 6px; overflow: hidden; }
.gauge i::after { content: ""; display: block; height: 100%; width: var(--used); background: var(--ink-2); }

/* Tools, as a reference */
table.ref { width: 100%; border-collapse: collapse; margin-top: 32px; font-size: 16px; }
.ref th { text-align: left; font: 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 400; padding: 0 16px 10px 0; border-bottom: 1px solid var(--rule-2); }
.ref td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-2); }
.ref td:first-child { font-family: var(--mono); font-size: 15px; color: var(--ink); white-space: nowrap; width: 1%; }
.ref td:last-child { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.ref .model { font: 11px/1 var(--mono); color: var(--orange-ink); border: 1px solid var(--orange); border-radius: 3px; padding: 2px 5px; margin-left: 8px; vertical-align: 2px; text-transform: uppercase; letter-spacing: 0.06em; }

/* A figure of output, on paper */
.sheet { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.sheet pre { margin: 0; padding: 18px 20px; font: 13px/1.65 var(--mono); color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.sheet .cmd { color: var(--ink); font-weight: 600; }
.sheet .hit { display: block; background: var(--wash); box-shadow: inset 3px 0 0 var(--orange); margin: 0 -20px; padding: 0 20px; color: var(--ink); }
.sheet .dim { color: var(--muted); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 36px; }

/* A picture of the dashboard */
.shot { border: 1px solid var(--rule-2); border-radius: 8px; overflow: hidden; background: var(--card); }
.shot img { display: block; width: 100%; height: auto; }
.shots { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 36px; }

/* Plugins, as cartridges */
.carts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 36px; }
.cart { border: 1px solid var(--rule-2); border-radius: 8px; overflow: hidden; background: var(--card); display: flex; flex-direction: column; }
.cart .name { background: var(--band); color: var(--band-text); font: 600 14px/1 var(--mono); padding: 12px 14px; display: flex; justify-content: space-between; }
.cart .name small { font-weight: 400; opacity: 0.7; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.cart p { padding: 12px 14px 0; font-size: 15px; color: var(--ink-2); margin: 0; flex: 1; }
.cart .reads { padding: 10px 14px 12px; font: 12px/1.4 var(--mono); color: var(--muted); }
.cart.forge .name { background: var(--orange); color: #15202b; }

/* Short columns: what it promises, what an organisation gets */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; margin-top: 36px; }
.cols h3 { font-size: 17px; margin: 0 0 6px; }
.cols p { color: var(--ink-2); font-size: 16px; }
.cols > div { border-top: 1px solid var(--rule-2); padding-top: 16px; }

/* The numbers, as a spec sheet */
.spec { margin: 32px 0 0; }
.spec div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.spec div:first-child { border-top: 1px solid var(--rule-2); }
.spec dt { font-size: 44px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.spec dd { margin: 0; font-size: 18px; }
.spec dd small { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.how { color: var(--muted); font-size: 15px; max-width: 760px; margin-top: 18px; }

/* Installing */
.steps { list-style: none; counter-reset: s; margin: 32px 0 0; padding: 0; max-width: 820px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(s, decimal-leading-zero); font: 13px/2.2 var(--mono); color: var(--orange-ink); }
.steps li > p { grid-column: 2; margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }

/* Release notes */
.release { max-width: 820px; margin-top: 28px; }
.release h2, .release h3 { font-size: 22px; margin: 0; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.release :is(h2, h3) time, .release :is(h2, h3) small { font: 13px/1 var(--mono); color: var(--muted); font-weight: 400; }
.release ul { margin: 14px 0 0; padding-left: 20px; }
.release li { margin-bottom: 10px; color: var(--ink-2); }
.release li strong { color: var(--ink); }
.release p { color: var(--ink-2); font-size: 16px; margin-top: 12px; }
.release + .release { border-top: 1px solid var(--rule); padding-top: 28px; }
.more { margin-top: 20px; font-size: 16px; }

/* Pages after the home page, and the installer's script */
.first-part { border-top: 0; }
.first-part h1 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 18px; max-width: 760px; }
.buttons { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin: 24px 0 0; }
.button { display: inline-block; background: var(--band); color: var(--band-text); text-decoration: none; font: 600 16px/1 var(--sans); padding: 13px 20px; border-radius: 4px; border: 0; cursor: pointer; }
.button:hover { opacity: 0.9; }
.quiet { color: var(--ink); font-size: 16px; }
figure.script { margin-top: 36px; }
pre.code { margin: 0; padding: 16px 0; font: 13px/1.6 var(--mono); color: var(--ink); white-space: pre; overflow-x: auto; counter-reset: ln; tab-size: 2; }
pre.code .ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 3em; margin-right: 1.2em; text-align: right; color: var(--muted); opacity: 0.7; user-select: none; }
pre.code .c { color: var(--muted); }

/* Source, soon */
.soon { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; background: var(--card); border: 1px solid var(--rule-2); border-radius: 8px; padding: 28px; }
.soon .mark { font: 600 28px/1 var(--mono); color: var(--orange); }
.soon h2 { margin-bottom: 10px; }
.soon p { color: var(--ink-2); max-width: 680px; }

footer { border-top: 1px solid var(--rule); padding: 32px 0 48px; color: var(--muted); font-size: 14px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; }
footer .sign { font-family: var(--mono); color: var(--ink); font-size: 15px; }
footer .sign b { color: var(--orange); }
footer .sign .note { display: block; font: 13px/1.4 var(--sans); color: var(--muted); margin-top: 6px; white-space: nowrap; }
footer .sign .jp { font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; font-size: 15px; color: var(--ink); margin-right: 4px; }
footer p { margin: 0 0 8px; }
footer a { color: var(--ink-2); }

@media (max-width: 900px) {
  .hero, .pair, .contexts, .shots { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero { padding-top: 48px; row-gap: 8px; }
  .hero figure { margin-top: 24px; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .arrow { padding: 8px 0; text-align: left; }
  .arrow::after { content: "↓"; }
  .arrow span { display: none; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .part-head { grid-template-columns: minmax(0, 1fr); }
  .art { max-width: 360px; }
}
@media (max-width: 600px) {
  header.top nav a:not(.cta) { display: none; }
  .ref td:last-child, .ref th:last-child { display: none; }
  .spec div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .spec dt { font-size: 36px; }
  footer, .soon { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  section.part { padding: 56px 0; }
  .line { font-size: 13px; }
  .line span::before { content: none; }
  p code { white-space: normal; overflow-wrap: anywhere; }
  .steps li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .steps li::before { line-height: 1; }
  .steps li > p { grid-column: 1; }
  .window { height: 260px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
