/* iconwright site. Steel, graphite ink, and the brand spectrum (straw, bronze, plum, blue),
   used in one place each: the mark, and the specimen in the hero. */
:root {
  --steel: #edeff2;
  --plate: #f8f9fb;
  --rule: #d6dae0;
  --graphite: #25282d;
  --muted: #5b616c;
  --blue: #2d5ba6;
  --blue-ink: #1f4583;
  --straw: #e9c46a;
  --bronze: #c47335;
  --plum: #7b3f92;
  --code-bg: #e4e7ec;
  --measure: 70ch;
  --sans: Inter, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --display: "Inter Tight", Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, ui-monospace, monospace;
  font: 16px/1.6 var(--sans);
  color: var(--graphite);
  background: var(--steel);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--graphite); text-decoration: none; font: 700 20px/1 var(--display); letter-spacing: -0.02em; }
.top nav { display: flex; gap: 22px; flex-wrap: wrap; }
.top nav a { color: var(--graphite); text-decoration: none; font-weight: 500; font-size: 15px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--blue); }

/* buttons and code */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--rule); background: var(--plate); color: var(--graphite); text-decoration: none; font: 500 15px/1.2 var(--sans); cursor: pointer; }
.btn:hover { border-color: #b5bcc6; color: var(--graphite); }
.btn.primary { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.btn.primary:hover { background: #000; color: #fff; }
code, pre, kbd { font-family: var(--mono); font-size: 0.86em; }
:not(pre) > code { background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 5px; }
pre { background: #1d2025; color: #e8eaee; padding: 16px 18px; border-radius: 12px; overflow-x: auto; line-height: 1.55; position: relative; }
pre code { background: none; padding: 0; font-size: 13.5px; }
.copy { position: absolute; top: 8px; right: 8px; font: 500 12px/1 var(--sans); padding: 6px 9px; border-radius: 7px; border: 1px solid #3a3f47; background: #2a2e35; color: #d9dce2; cursor: pointer; opacity: 0; transition: opacity .15s; }
pre:hover .copy, .copy:focus-visible { opacity: 1; }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; padding: 56px 24px 72px; }
.hero h1 { font: 700 clamp(40px, 5.4vw, 66px)/1.02 var(--display); letter-spacing: -0.035em; margin: 0 0 22px; max-width: 13ch; }
.hero .lede { font-size: 19px; line-height: 1.55; color: #3a3f47; max-width: 34em; margin: 0 0 28px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.hero .fine { font-size: 14px; color: var(--muted); margin: 0; }
.specimen { background: var(--plate); border: 1px solid var(--rule); border-radius: 22px; padding: 22px; display: grid; gap: 14px; max-width: 420px; justify-self: end; width: 100%; }
.specimen figure { margin: 0; }
.specimen .zoom { display: block; width: 100%; image-rendering: pixelated; border-radius: 10px; }
.specimen figcaption { font-size: 13.5px; color: var(--muted); }
.specimen .strip { display: grid; grid-template-columns: 1fr 1fr; border-radius: 12px; overflow: hidden; }
.specimen .sizes { display: flex; align-items: flex-end; justify-content: center; gap: 12px; padding: 14px 10px 10px; background: #1f1f1f; }
.specimen .sizes.light { background: #f3f3f3; }
.specimen .sizes span { display: grid; justify-items: center; gap: 6px; font-size: 11px; color: #a3a8b0; }
.specimen .sizes.light span { color: #6b717c; }
.specimen .sizes img { image-rendering: auto; }

.section { padding: 64px 0; border-top: 1px solid var(--rule); }
.section h2 { font: 700 clamp(28px, 3.2vw, 38px)/1.1 var(--display); letter-spacing: -0.025em; margin: 0 0 14px; max-width: 22ch; }
.section .intro { font-size: 18px; color: #3a3f47; max-width: 40em; margin: 0 0 36px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px; align-items: start; counter-increment: step; }
.steps h3 { font: 600 21px/1.25 var(--display); letter-spacing: -0.01em; margin: 0 0 8px; }
.steps h3::before { content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 8px; background: var(--graphite); color: #fff; font: 600 14px/1 var(--sans); vertical-align: 2px; }
.steps p { margin: 0 0 10px; color: #3a3f47; }
.steps .tool { font-size: 14px; color: var(--muted); }
.steps figure { margin: 0; background: var(--plate); border: 1px solid var(--rule); border-radius: 16px; padding: 14px; }
.steps figure img { display: block; border-radius: 8px; }
.steps figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

.chat { background: var(--plate); border: 1px solid var(--rule); border-radius: 18px; padding: 22px; display: grid; gap: 12px; max-width: 760px; }
.chat p { margin: 0; }
.chat .you { justify-self: end; background: var(--graphite); color: #fff; padding: 10px 14px; border-radius: 14px 14px 4px 14px; max-width: 80%; }
.chat .call { font-family: var(--mono); font-size: 13px; color: #3a3f47; background: var(--code-bg); padding: 8px 12px; border-radius: 8px; justify-self: start; max-width: 100%; overflow-x: auto; white-space: pre; }
.chat .agent { background: #fff; border: 1px solid var(--rule); padding: 10px 14px; border-radius: 14px 14px 14px 4px; max-width: 85%; }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.facts li { padding-left: 18px; border-left: 3px solid var(--rule); }
.facts b { display: block; font-weight: 600; }
.handoff pre { white-space: pre-wrap; }
.matrix { width: 100%; border-collapse: collapse; font-size: 15px; }
.matrix th, .matrix td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.matrix th { font-weight: 600; }

footer { border-top: 1px solid var(--rule); margin-top: 32px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 22px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr) 200px; gap: 40px; padding-top: 24px; padding-bottom: 40px; align-items: start; }
.side, .toc { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; font-size: 14.5px; }
.side h2 { font: 600 12.5px/1 var(--sans); color: var(--muted); margin: 22px 0 8px; }
.side h2:first-child { margin-top: 0; }
.side a { display: block; padding: 5px 10px; margin-left: -10px; border-radius: 7px; color: var(--graphite); text-decoration: none; }
.side a:hover { background: #e2e5ea; }
.side a[aria-current] { background: var(--graphite); color: #fff; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; }
.toc a:hover { color: var(--blue); }
.toc h2 { font: 600 12.5px/1 var(--sans); color: var(--muted); margin: 0 0 8px; }
.page-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.page-tools .btn { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.prose { max-width: var(--measure); min-width: 0; }
.prose h1 { font: 700 40px/1.1 var(--display); letter-spacing: -0.03em; margin: 0 0 16px; }
.prose h2 { font: 650 26px/1.2 var(--display); letter-spacing: -0.02em; margin: 44px 0 12px; }
.prose h3 { font: 600 19px/1.3 var(--display); margin: 30px 0 8px; }
.prose h4 { font: 600 16px/1.3 var(--sans); margin: 22px 0 6px; }
.prose p, .prose li { color: #30343a; }
.prose li + li { margin-top: 4px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 18px 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-weight: 600; white-space: nowrap; }
.prose blockquote { margin: 18px 0; padding: 12px 16px; border-left: 3px solid var(--blue); background: #e6ecf6; border-radius: 0 10px 10px 0; }
.prose blockquote p { margin: 0; }
.prose img { border-radius: 10px; border: 1px solid var(--rule); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 36px 0; }
.prose :is(h2, h3) a.anchor { visibility: hidden; text-decoration: none; margin-left: 6px; color: var(--muted); }
.prose :is(h2, h3):hover a.anchor { visibility: visible; }

@media (max-width: 1080px) {
  .docs { grid-template-columns: 200px minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 860px) {
  .hero, .steps li, .two { grid-template-columns: 1fr; }
  .specimen { justify-self: start; }
  .hero { padding-top: 28px; }
  .docs { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 4px 12px; }
  .side h2 { width: 100%; margin: 10px 0 2px; }
  .side a { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 640px) {
  .top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .top nav { gap: 6px 18px; }
  .hero .lede { font-size: 17px; }
}
