:root {
  color-scheme: light;
  --paper: #f7f4ed;
  --surface: #fffcf6;
  --ink: #242139;
  --muted: #5c5969;
  --line: #dcd5ca;
  --accent: #5e6ad2;
  --accent-dark: #474eae;
  --accent-wash: #eeedfa;
  --display: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: system-ui, sans-serif;
  --mono: ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 var(--body);
}
a { color: inherit; }
button { font: inherit; }
button, summary { cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, pre:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.wrap {
  width: min(100% - 88px, 1280px);
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 1;
  padding: 9px 14px;
  background: var(--surface);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }
.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header { min-height: 79px; border-bottom: 1px solid var(--line); }
.wordmark, .site-header nav a, .site-footer a, .primary { text-decoration: none; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 760;
  font-size: 1.15rem;
  letter-spacing: -.055em;
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: var(--ink);
  border-radius: 4px;
}
.mark i {
  width: 3px;
  height: 13px;
  transform: rotate(42deg);
  border-radius: 2px 2px 0 0;
  background: #e8e6fd;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
  font-size: .83rem;
  font-weight: 650;
}
.site-header nav a:hover, .site-footer a:hover { color: var(--accent-dark); }
.nav-demo span, .site-footer span { margin-inline-start: 3px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, .73fr) minmax(0, 1.27fr);
  gap: clamp(32px, 5vw, 78px);
  align-items: center;
  padding-block: clamp(58px, 8vw, 110px);
}
.eyebrow, .file, .prompt > span {
  margin: 0;
  font: 600 .7rem/1.4 var(--mono);
  letter-spacing: .065em;
  text-transform: uppercase;
  color: var(--muted);
}
h1, .review h2 { margin: 0; font-family: var(--display); font-weight: 500; }
h1 {
  margin-block: 18px 22px;
  font-size: clamp(3.8rem, 6vw, 6.4rem);
  line-height: .96;
  letter-spacing: -.079em;
}
h1 em { color: var(--accent-dark); font-weight: inherit; }
.lede { max-width: 36ch; color: var(--muted); margin: 0 0 27px; }
.primary {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding: 11px 16px;
  background: var(--ink);
  color: var(--surface);
  border-radius: 5px;
  font-size: .85rem;
  font-weight: 700;
  transition: background-color 160ms ease;
}
.primary:hover { background: var(--accent-dark); }
.workbench {
  min-width: 0;
  border: 1px solid #c8c0b3;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 17px 40px -21px #3c354e66, 0 2px 6px #3c354e0a;
  scroll-margin-top: 16px;
  overflow: hidden;
}
.workbench:focus { outline: 3px solid var(--accent); outline-offset: 3px; }
.workbench-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 23px 15px;
}
.workbench h2 {
  margin: 2px 0 0;
  font: 500 2.06rem/1.08 var(--display);
  letter-spacing: -.058em;
}
.editor-icon {
  color: var(--accent-dark);
  background: var(--accent-wash);
  padding: 7px 8px;
  border-radius: 4px;
  font: 700 .78rem/1.2 var(--mono);
}
.presets { margin: 0 23px 16px; min-width: 0; padding: 0; border: 0; }
.presets legend { padding: 0; margin-bottom: 7px; font-size: .78rem; font-weight: 700; }
.preset-list { display: flex; flex-wrap: wrap; gap: 6px; }
.preset-list button,
.receipt button {
  padding: 6px 9px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #d2c9ba;
  border-radius: 5px;
  font-size: .72rem;
  font-weight: 650;
  white-space: nowrap;
}
.preset-list button:hover, .receipt button:hover { border-color: var(--accent); }
.preset-list button[aria-pressed="true"] {
  color: var(--accent-dark);
  background: var(--accent-wash);
  border-color: var(--accent);
}
.load-status { margin: 0 23px 22px; color: var(--muted); }
.prompt {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
  padding: 9px 23px;
  border-block: 1px solid var(--line);
  background: #f3f0e9;
  font: .77rem/1.6 var(--mono);
}
.prompt > span { font-size: .64rem; }
.inspection { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); }
.preview, .source { min-width: 0; }
.preview { background: #f8f6f0; }
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-height: 45px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
}
.panel-heading h3 { margin: 0; font-size: .78rem; font-weight: 740; }
.view-options { display: flex; align-items: center; gap: 2px; }
.view-options button {
  border: 0;
  border-radius: 4px;
  padding: 5px 8px;
  background: transparent;
  color: inherit;
  font-size: .72rem;
  font-weight: 680;
  white-space: nowrap;
}
.view-options button:hover { background: #e9e5df; }
.view-options button[aria-pressed="true"] { color: var(--accent-dark); background: var(--accent-wash); }
.preview iframe {
  display: block;
  width: 100%;
  height: 195px;
  border: 0;
  background: white;
}
.source { background: #272439; color: #eeeaf9; }
.source .panel-heading { justify-content: flex-start; border-color: #514c62; }
.source .view-options button:hover { background: #413b55; }
.source .view-options button[aria-pressed="true"] { background: #51487b; color: #f9f7ff; }
.source .view-options button:focus-visible, .source pre:focus-visible { outline-color: #cec5ff; }
.source pre {
  height: 195px;
  margin: 0;
  overflow: auto;
  padding: 12px;
  font: .72rem/1.65 var(--mono);
  tab-size: 2;
}
.source pre:focus-visible { outline-offset: -3px; }
.source code { font: inherit; }
.source-line { display: block; min-height: 1.65em; width: max-content; min-width: 100%; }
.line-added { color: #b3f3ce; background: #233e3c; }
.line-removed { color: #ffc4ce; background: #492d42; }
.line-section { color: #d9cbfe; }
.receipt { border-top: 1px solid var(--line); padding: 9px 23px; }
.receipt summary { width: fit-content; font-size: .78rem; font-weight: 700; }
.receipt p { margin: 7px 0; color: var(--muted); font-size: .76rem; }
.receipt p:empty { display: none; }
.receipt-value { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.receipt-value code { font: .71rem/1.5 var(--mono); overflow-wrap: anywhere; }
.review {
  border-block: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 24px 56px;
  align-items: center;
  padding: 36px 0 40px;
}
.review h2 { max-width: 18ch; font-size: clamp(2rem, 3.5vw, 3.7rem); line-height: 1.02; letter-spacing: -.06em; }
.review p { max-width: 54ch; color: var(--muted); margin: 0; }
.site-footer { padding-block: 24px 34px; font-size: .8rem; }
.site-footer .wordmark { font-size: .92rem; }

@media (max-width: 1000px) {
  .wrap { width: min(100% - 60px, 760px); }
  .hero { grid-template-columns: 1fr; gap: 35px; padding-block: 52px 60px; }
  h1 { max-width: 12ch; }
}
@media (max-width: 580px) {
  .wrap { width: calc(100% - 34px); }
  .site-header { min-height: 62px; }
  .site-header nav { gap: 11px; font-size: .74rem; }
  .site-header nav a:first-child { display: none; }
  .hero { gap: 29px; padding-block: 42px; }
  h1 { font-size: clamp(2.9rem, 11.1vw, 4.6rem); margin-block: 13px 17px; }
  .lede { margin-bottom: 20px; }
  .workbench-header { padding: 16px 14px 12px; }
  .presets { margin: 0 14px 13px; }
  .prompt, .receipt { padding-inline: 14px; }
  .load-status { margin-inline: 14px; }
  .inspection { grid-template-columns: minmax(0, 1fr); }
  .preview iframe { height: 157px; }
  .source pre { height: 150px; }
  .review { display: block; padding-block: 25px 29px; }
  .review p { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .primary { transition: none; }
}
