:root {
  color-scheme: light;
  --ink: #152c32;
  --muted: #475d62;
  --paper: #f5f2e9;
  --line: #c4ceca;
  --teal: #155f58;
  --mint: #e2eee3;
  --amber: #6d3e13;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 system-ui, sans-serif;
}
header,
main {
  max-width: 1400px;
  margin: auto;
  padding: 24px 5%;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
a {
  color: var(--teal);
  text-underline-offset: 4px;
}
header a {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.08em;
}
header span {
  font-size: 0.7rem;
  font-weight: 500;
}
h1 {
  font: clamp(2.5rem, 5.5vw, 5.5rem) / 1.04 Georgia, serif;
  letter-spacing: -0.04em;
  margin: 20px 0;
}
h2 {
  font: 1.7rem/1.2 Georgia, serif;
  margin: 8px 0 16px;
}
h3 {
  line-height: 1.3;
}
.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 8%;
  padding: 45px 0 60px;
  align-items: center;
}
.eyebrow,
.step {
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  font-weight: 750;
}
.lead {
  font-size: 1.2rem;
  max-width: 42rem;
}
.scope {
  border-left: 2px solid var(--teal);
  padding-left: 28px;
}
.orbit {
  font-size: 3rem;
  color: var(--teal);
}
.quiet {
  font-size: 0.85rem;
  color: var(--muted);
}
.workspace {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: start;
}
.panel {
  overflow-wrap: anywhere;
  min-width: 0;
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
}
.step {
  color: var(--teal);
}
button,
input,
textarea {
  font: inherit;
}
button {
  border: 1px solid #819a94;
  border-radius: 6px;
  padding: 10px 14px;
  background: #fffefa;
  color: var(--ink);
  cursor: pointer;
  min-height: 44px;
}
button:hover:not(:disabled) {
  background: var(--mint);
}
button.primary {
  background: var(--teal);
  color: white;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
:focus-visible {
  outline: 3px solid #b75619;
  outline-offset: 4px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
label {
  display: block;
  font-weight: 650;
  margin: 14px 0 8px;
}
textarea {
  width: 100%;
  max-width: 100%;
  resize: vertical;
  font: 0.85rem/1.5 ui-monospace, monospace;
  min-height: 240px;
  padding: 15px;
  border: 1px solid #819a94;
  border-radius: 7px;
  background: #f7f8f4;
  color: var(--ink);
}
input[type='file'] {
  width: 100%;
  font-size: 0.85rem;
}
input::file-selector-button {
  padding: 9px;
  min-height: 44px;
}
.imports {
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
#status {
  padding: 14px;
  background: var(--mint);
  border-radius: 6px;
  overflow-wrap: anywhere;
}
#status.error {
  background: #fff0e1;
  color: #66350f;
}
#ledger {
  padding: 0;
  list-style: none;
  counter-reset: entry;
}
#ledger li {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  overflow-wrap: anywhere;
}
#ledger h3 {
  margin: 0 0 10px;
}
#ledger .badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 750;
  padding: 4px 9px;
  border-radius: 30px;
  background: var(--mint);
}
#ledger .held {
  background: #fff0e1;
  color: var(--amber);
}
#ledger p {
  margin: 10px 0;
}
.claim {
  font-style: italic;
  color: var(--muted);
}
.hash {
  font: 0.7rem/1.5 ui-monospace, monospace;
  overflow-wrap: anywhere;
}
.summary-number {
  font: 3rem Georgia, serif;
  color: var(--teal);
}
.notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin: 60px 0;
  border-top: 1px solid var(--line);
  padding-top: 35px;
}
footer {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  padding: 12px;
  background: white;
  z-index: 2;
}
.skip:focus {
  top: 12px;
}
@media (max-width: 850px) {
  .hero,
  .workspace,
  .notes {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero {
    padding: 20px 0 32px;
  }
  .scope {
    padding-left: 20px;
  }
  .panel {
    overflow-wrap: anywhere;
    padding: 20px;
  }
  .notes {
    margin: 35px 0;
  }
  header span {
    display: none;
  }
  header,
  main {
    padding: 18px 5%;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition: background 0.15s;
  }
}
@media print {
  header,
  .input-panel,
  .actions,
  .imports,
  button {
    display: none;
  }
  .workspace {
    display: block;
  }
  .hero {
    padding: 0;
  }
  .panel {
    overflow-wrap: anywhere;
    border: 0;
  }
  body {
    background: white;
  }
}
button.primary:hover:not(:disabled) {
  background: #104c46;
  color: white;
}
