:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #535353;
  --paper: #f8f8f8;
  --white: #fff;
  --line: #d8d8d8;
  --accent: #303030;
  --tint: #efefef;
  --mono: ui-monospace, Consolas, monospace;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .24em; }
button, select { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

.wrap { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 2; top: 10px; left: 10px; padding: .55em 1em; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.topbar { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 72px; }
.wordmark, nav a, footer a { font-size: .875rem; text-decoration: none; font-weight: 600; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.wordmark-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: var(--ink); color: var(--white); font: 1rem/1 var(--sans); }
nav { display: flex; gap: clamp(12px, 3vw, 36px); color: var(--muted); }
nav a:hover, footer a:hover { color: var(--accent); text-decoration: underline; }

.hero { display: grid; grid-template-columns: 1.22fr 1fr; align-items: center; gap: clamp(24px, 5vw, 72px); padding-block: clamp(48px, 6vw, 86px); }
.eyebrow, .render-label, .render-view, .figure-index, .step-index, .control-label { font: 600 .72rem/1.35 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0 0 20px; color: var(--accent); }
.status-dot { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.slash { color: var(--muted); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, blockquote { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(3rem, 5.6vw, 5.4rem); line-height: 1; letter-spacing: -.062em; }
h1 em { color: var(--accent); }
.hero-summary { max-width: 36ch; margin-top: 24px; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.action { display: inline-flex; align-items: center; gap: 16px; min-height: 46px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 8px; font-size: .875rem; font-weight: 650; text-decoration: none; }
.primary { border-color: var(--ink); background: var(--ink); color: var(--white); }
.primary:hover { background: var(--accent); border-color: var(--accent); }
.secondary:hover { border-color: var(--accent); color: var(--accent); }

.hero-figure { align-self: center; min-width: 0; }
.hero-render, .example-preview { position: relative; display: grid; place-items: center; isolation: isolate; overflow: hidden; background: var(--tint); }
.hero-render { border: 1px solid var(--line); border-radius: 16px; }
.hero-render img, .example-preview img { width: 100%; height: auto; max-width: 440px; mix-blend-mode: multiply; }
.render-label, .render-view { position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 5px; color: var(--ink); background: var(--white); }
.render-label { top: 13px; left: 13px; }
.render-view { right: 13px; bottom: 13px; }
figcaption { display: flex; align-items: baseline; gap: 13px; margin-top: 12px; color: var(--ink); font-size: .91rem; }
.figure-index { color: var(--accent); white-space: nowrap; }
figcaption small { display: block; color: var(--muted); font-size: .8rem; }

.section { padding-block: clamp(44px, 6.2vw, 76px); border-top: 1px solid var(--line); }
.section-number { margin-bottom: 12px; }
.section-number span { width: 20px; height: 1px; background: var(--muted); }
.section-heading { display: grid; grid-template-columns: 1.25fr 1fr; align-items: end; gap: 24px; margin-bottom: 28px; }
h2 { font-size: clamp(2.25rem, 4.4vw, 3.6rem); line-height: 1.05; letter-spacing: -.045em; }
.section-heading p, .steps p, .figure-note, .example-copy > p:last-child { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.step-index, .control-label { color: var(--accent); }
.steps h3 { margin: 11px 0 6px; font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.1; }
.steps p { font-size: .94rem; }

.prompt-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); align-items: start; gap: 16px; }
.prompt-reference { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.prompt-reference img { width: 100%; height: auto; aspect-ratio: 1; background: var(--tint); }
.prompt-reference figcaption { display: block; margin: 0; padding: 14px 16px; border-top: 1px solid var(--line); }
.prompt-reference label { display: block; }
.prompt-reference select { width: 100%; min-height: 42px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); }
.prompt-cards { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.prompt-cards li { display: grid; grid-template-columns: minmax(9rem, 1fr) minmax(0, 2.1fr); align-items: baseline; gap: 7px 18px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.prompt-cards h3 { font-size: 1.4rem; line-height: 1.2; }
.prompt-cards h3 span { display: block; margin-bottom: 6px; color: var(--muted); }
.prompt-cards p { margin-top: 5px; color: var(--muted); font-size: .82rem; }
.prompt-cards q { color: var(--ink); font-size: .93rem; }

.examples-section { background: var(--tint); }
.example-subheading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 16px; }
.example-subheading h3 { font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.1; letter-spacing: -.025em; }
.example-subheading p { max-width: 55ch; color: var(--muted); font-size: .94rem; }
.refinement-heading { margin-top: clamp(35px, 5vw, 58px); }
.object-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.object-gallery figure { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.object-gallery img { width: 100%; height: auto; aspect-ratio: 1; background: var(--tint); }
.object-gallery figcaption { display: block; margin: 0; padding: 12px 14px 15px; border-top: 1px solid var(--line); }
.object-gallery strong { display: block; margin-bottom: 4px; }
.object-gallery q { color: var(--muted); font-size: .85rem; }
.example-panel { display: grid; grid-template-columns: 1.13fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.example-preview { min-height: 320px; }
.example-controls { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: clamp(19px, 4vw, 40px); }
.control-label { margin-bottom: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 6px; }
.choices button { min-width: 42px; min-height: 39px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); color: var(--ink); font-size: .875rem; cursor: pointer; }
.choices button:hover { border-color: var(--accent); }
.choices button[aria-pressed='true'] { border-color: var(--accent); background: var(--accent); color: white; }
blockquote { margin: 0 0 8px; font-size: clamp(1.5rem, 2.7vw, 2.25rem); line-height: 1.17; letter-spacing: -.025em; }
.figure-note { max-width: 80ch; margin-top: 13px; font-size: .88rem; }

table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
caption { margin-bottom: 8px; text-align: left; color: var(--muted); font-size: .88rem; }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: right; }
th:first-child { text-align: left; }
thead { background: var(--tint); }
tbody { background: var(--white); }
tbody th { font-weight: 550; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
footer a { white-space: nowrap; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 56px); }
  .hero { gap: 26px; }
  h1 { font-size: clamp(2.9rem, 6vw, 5.4rem); }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 59px; }
  .hero, .section-heading, .prompt-panel, .example-panel { grid-template-columns: 1fr; }
  .section-heading { gap: 12px; }
  .hero-figure { width: min(100%, 475px); }
  .prompt-reference { display: grid; grid-template-columns: minmax(96px, 34%) minmax(0, 1fr); align-items: center; }
  .prompt-reference figcaption { padding: 10px 12px; border-top: 0; }
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .steps li { padding: 17px; }
  .object-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .example-preview { min-height: 0; }
}

@media (max-width: 420px) {
  .header-inner { flex-wrap: wrap; align-content: center; gap: 8px 16px; padding-block: 10px; }
  nav { gap: 14px; }
  nav a { font-size: .8rem; }
  .hero { padding-top: 37px; }
  .eyebrow { font-size: .63rem; }
  .prompt-cards li { grid-template-columns: 1fr; }
  .object-gallery figcaption { padding: 10px; }
  th, td { padding: 9px 8px; font-size: .84rem; }
}
