:root {
  color-scheme: light;
  --paper: #f4f3eb;
  --panel: #fffef8;
  --ink: #243c33;
  --muted: #53645c;
  --line: #d1d8cd;
  --accent: #235642;
  --tint: #e7eddf;
  --warm: #78491d;
  --warm-bg: #fff2d7;
  --danger: #8b342e;
  --shadow: 0 12px 45px #273d2e09;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 15px/1.65 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}
[hidden] {
  display: none !important;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
button,
input,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 17px;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
}
button.secondary,
.button.secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--line);
}
button:disabled {
  cursor: default;
  opacity: 0.62;
}
button:hover:not(:disabled),
.button:hover {
  filter: brightness(0.94);
}
:focus-visible {
  outline: 3px solid #9a5a1f;
  outline-offset: 4px;
}
.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 20;
  padding: 12px;
  background: var(--panel);
}
.skip:focus {
  top: 12px;
}
.masthead {
  max-width: 1500px;
  margin: auto;
  padding: 24px 40px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.mark {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  height: 38px;
  width: 38px;
  border-radius: 50% 50% 8px 50%;
  font: 20px Georgia, serif;
}
.brand small {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow {
  font: 600 11px/1.6 ui-sans-serif, sans-serif;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
}
.shell {
  max-width: 1500px;
  margin: 0 auto;
  padding: 36px 40px 60px;
}
.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin: 6px 0 26px;
}
h1 {
  font: normal clamp(34px, 4vw, 58px) / 1.08 Georgia, "Times New Roman", serif;
  letter-spacing: -1.7px;
  margin: 12px 0 18px;
  max-width: 860px;
}
h2 {
  font: normal 28px/1.2 Georgia, serif;
  letter-spacing: -0.6px;
  margin: 6px 0 12px;
}
h3 {
  font-size: 16px;
  margin: 0 0 6px;
}
p {
  margin: 0 0 14px;
}
.lede {
  font-size: 16px;
  max-width: 740px;
  color: var(--muted);
}
.scope {
  border: 1px solid #ddc492;
  background: var(--warm-bg);
  color: #67451c;
  padding: 13px 18px;
  border-radius: 6px;
  margin-bottom: 22px;
  font-size: 13px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: start;
  gap: 24px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.preview-card {
  padding: 0;
  overflow: hidden;
}
.card-head {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.card-head p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.card-head h2 {
  font-size: 24px;
  margin: 4px 0 6px;
}
iframe {
  display: block;
  width: 100%;
  height: 760px;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.review-carbon iframe {
  height: 850px;
}
.sticky {
  position: sticky;
  top: 20px;
}
.pill {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--tint);
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  padding: 6px 11px;
  border-radius: 30px;
  white-space: nowrap;
}
.pill::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pill[data-tone="warning"] {
  color: var(--warm);
  background: var(--warm-bg);
  border-color: #ddc492;
}
.pill[data-tone="error"] {
  color: var(--danger);
  background: #fff0ed;
  border-color: #dfb3aa;
}
.steps {
  display: flex;
  padding: 0;
  margin: 0 0 26px;
  list-style: none;
  gap: 8px;
}
.steps li {
  flex: 1;
  border-top: 3px solid var(--line);
  padding-top: 10px;
  color: var(--muted);
  font-size: 12px;
}
.steps li[data-complete="true"] {
  border-color: var(--accent);
  color: var(--accent);
}
.steps strong {
  display: block;
  font-size: 14px;
}
.note {
  font-size: 13px;
  color: var(--muted);
}
.state-note {
  background: var(--tint);
  padding: 14px;
  border-radius: 6px;
  font-size: 13px;
  margin: 16px 0;
}
label.field {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin: 16px 0 7px;
}
input[type="text"],
textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid #aab7aa;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
textarea {
  min-height: 140px;
  resize: vertical;
}
fieldset {
  padding: 0;
  margin: 18px 0;
  border: 0;
}
legend {
  font-size: 13px;
  font-weight: 650;
  padding: 0;
  margin-bottom: 8px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  cursor: pointer;
}
.check input {
  accent-color: var(--accent);
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  flex-shrink: 0;
}
.full {
  width: 100%;
}
.message {
  font-size: 13px;
  padding: 12px 0;
  min-height: 44px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.message[data-tone="error"] {
  color: var(--danger);
}
.message[data-tone="warning"] {
  color: var(--warm);
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.details {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
summary {
  cursor: pointer;
  min-height: 48px;
  padding: 12px 0;
  color: var(--accent);
  font-weight: 650;
  font-size: 13px;
}
dl {
  margin: 0;
}
.identity-row {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
dt {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
dd {
  margin: 3px 0 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
code {
  font: 12px/1.6 ui-monospace, SFMono-Regular, monospace;
  overflow-wrap: anywhere;
}
pre {
  margin: 12px 0;
  padding: 16px;
  background: var(--paper);
  max-height: 340px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px/1.6 ui-monospace, SFMono-Regular, monospace;
  border: 1px solid var(--line);
  border-radius: 6px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 20px 40px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.runtime .shell {
  max-width: 1050px;
  padding: 30px;
}
.runtime .masthead {
  padding: 20px 30px;
}
.runtime h1 {
  font-size: clamp(32px, 5vw, 48px);
}
.runtime-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  align-items: start;
}
.runtime .card {
  padding: 24px;
}
.result-category {
  font: normal 35px/1.15 Georgia, serif;
  letter-spacing: -0.6px;
  margin: 16px 0 10px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 20px 0;
  border-top: 1px solid var(--line);
}
.metric {
  border-bottom: 1px solid var(--line);
  padding: 13px 10px 13px 0;
  min-width: 0;
}
.metric strong {
  display: block;
  font: normal 25px/1.3 Georgia, serif;
}
.metric span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.empty {
  padding: 32px 12px;
  text-align: center;
  color: var(--muted);
}
.orbit {
  width: 70px;
  height: 70px;
  border: 1px solid var(--line);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  font: 32px Georgia, serif;
  color: var(--accent);
}
.rule {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
@media (max-width: 1080px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 16px;
  }
  .shell {
    padding: 28px 24px;
  }
  .masthead {
    padding: 20px 24px;
  }
  .card {
    padding: 20px;
  }
}
@media (max-width: 800px) {
  .layout,
  .runtime-grid {
    grid-template-columns: 1fr;
  }
  .sticky {
    position: static;
  }
  .hero {
    display: block;
  }
  .hero > .pill {
    margin: 0 0 10px;
  }
  .runtime .shell {
    padding: 22px 18px;
  }
  iframe,
  .review-carbon iframe {
    height: 750px;
  }
  .card-head {
    flex-wrap: wrap;
  }
}
@media (max-width: 480px) {
  .shell {
    padding: 22px 16px 40px;
  }
  .masthead,
  .runtime .masthead {
    padding: 16px;
  }
  .masthead > .eyebrow {
    max-width: 100px;
    text-align: right;
    font-size: 10px;
  }
  h1 {
    letter-spacing: -1px;
  }
  .card-head,
  .card,
  .runtime .card {
    padding: 18px;
  }
  .card.preview-card {
    padding: 0;
  }
  .steps strong {
    font-size: 12px;
  }
  footer {
    padding: 20px 16px;
    display: block;
  }
  .runtime .shell {
    padding: 22px 14px;
  }
  .brand {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  .button {
    transition: background 0.15s, filter 0.15s;
  }
}
