:root {
  color-scheme: light;
  --night: #18322d;
  --night-deep: #112620;
  --ink: #202d26;
  --faded: #4c5e53;
  --cream: #f4f2e8;
  --paper: #fffdf6;
  --line: #c4cfc2;
  --mint: #c5f283;
  --forest: #224c3b;
  --yellow: #ffe7a9;
  --wide: 1140px;
  --gutter: clamp(18px, 5.4vw, 72px);
  --display: Georgia, 'Times New Roman', serif;
  --sans: 'Avenir Next', Avenir, system-ui, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
}
a { color: inherit; text-underline-offset: .21em; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #006d64; outline-offset: 4px; }
h1, h2, h3, p { margin-block: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.04; }
h1 { letter-spacing: -.055em; }
h2 { letter-spacing: -.035em; }
.wrap { width: min(var(--wide), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip {
  position: fixed;
  z-index: 2;
  top: 8px;
  left: 8px;
  transform: translateY(-200%);
  padding: 8px 14px;
  background: var(--mint);
  color: var(--ink);
}
.skip:focus { transform: none; }

.bar { color: var(--cream); background: var(--night-deep); }
.mast {
  min-height: 71px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #f9f9ee;
  font: 700 19px/1 var(--mono);
  letter-spacing: .13em;
  text-decoration: none;
}
.mark {
  width: 20px;
  height: 20px;
  border: 1px solid #c9e9cc;
  border-radius: 50%;
  position: relative;
  display: inline-grid;
  place-items: center;
}
.mark::after {
  content: '';
  display: block;
  width: 11px;
  height: 6px;
  border: solid var(--mint);
  border-width: 0 0 2px 2px;
  transform: translateY(-1px) rotate(-45deg);
}
.mast nav { display: flex; gap: clamp(13px, 3.5vw, 36px); font-size: 14px; }
.mast nav a { padding-block: 8px; color: #dbe7d9; text-decoration: none; }
.mast nav a:hover, .back:hover { text-decoration: underline; }
.bar :focus-visible, .hero :focus-visible, .track-header :focus-visible {
  outline-color: var(--mint);
}

.hero-area { background: var(--night); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(30px, 6vw, 92px);
  align-items: center;
  padding: 80px 0 85px;
  min-height: 526px;
  color: var(--cream);
}
.type {
  font: 600 11px/1.45 var(--mono);
  letter-spacing: .10em;
  text-transform: uppercase;
}
.hero-text > .type { color: var(--mint); margin-bottom: 18px; }
.hero h1 { max-width: 9ch; font-size: clamp(62px, 7.25vw, 105px); }
.lede { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; max-width: 47ch; }
.hero .lede { margin-top: 19px; color: #e0eadf; max-width: 41ch; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 45px;
  width: fit-content;
  border: 1px solid var(--forest);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  padding: 11px 16px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  text-decoration: none;
}
.button.mint { background: var(--mint); color: var(--night-deep); }
.button.mint:hover { background: #d5faa3; }
.button.mint:disabled { color: #4d5f53; background: #e2e9de; border-color: #829b89; }
.hero .button { margin-top: 26px; }

.sample {
  position: relative;
  justify-self: end;
  width: min(100%, 412px);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 7px 7px 0 #729086, 14px 14px 0 #30554a;
  border: 1px solid #637c6f;
}
.sample h2 {
  padding: 24px 25px 20px;
  font-size: clamp(24px, 3vw, 33px);
  border-bottom: 1px solid var(--line);
}
.sample-row { padding: 13px 25px 15px; border-bottom: 1px solid var(--line); }
.sample-row .type { color: var(--faded); margin-bottom: 3px; }
.sample-result {
  display: grid;
  align-items: start;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 15px 25px;
  background: #e2edda;
}
.sample-result strong {
  margin-top: 2px;
  border: 1px solid #8b9b69;
  border-radius: 3px;
  background: var(--yellow);
  padding: 3px 7px;
  font: 700 12px/1.2 var(--mono);
}

.practice-list { padding-block: 45px; }
.practice-list h2, .field-link h2 { font-size: clamp(27px, 4vw, 42px); }
.practice-list ul { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid #8e9f92; }
.practice-list li { border-bottom: 1px solid #8e9f92; }
.practice-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 18px 12px 18px 0;
  text-decoration: none;
}
.practice-list a:hover h3 { text-decoration: underline; }
.practice-list h3 { font-size: 19px; margin-bottom: 4px; }
.practice-list li p, .field-link p { color: var(--faded); }
.practice-list a > span { color: var(--forest); font-size: 23px; }
.field-link {
  padding: 24px 26px;
  background: #e8ecdf;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-left: 4px solid var(--forest);
}
.field-link p { margin-top: 6px; }
.quiet {
  display: inline-block;
  border: 0;
  background: transparent;
  color: var(--forest);
  text-decoration: underline;
  padding: 6px 0;
  text-underline-offset: 4px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}
.footer {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 5px;
  justify-content: space-between;
  margin-top: 39px;
  padding-block: 23px 35px;
  border-top: 1px solid var(--line);
  color: var(--faded);
  font-size: 13px;
}
.footer a { font-family: var(--mono); }

.track-header {
  background: var(--night);
  padding: 24px 0 29px;
  color: var(--cream);
}
.back, .dark-back { display: inline-block; font-weight: 650; font-size: 14px; text-decoration: none; }
.track-header .back { color: #e5f5db; }
.track-header h1 {
  margin: 12px 0 7px;
  max-width: 28ch;
  font-size: clamp(36px, 5.4vw, 66px);
}
.track-header .lede { color: #e0eadf; max-width: 67ch; font-size: 16px; }
.exercise { margin-top: 25px; }
.exercise-top {
  display: flex;
  align-items: center;
  gap: 10px 18px;
  flex-wrap: wrap;
  padding: 10px 0 15px;
  border-bottom: 1px solid #879b8c;
}
.cases { display: flex; flex-wrap: wrap; gap: 6px; }
.case-tab {
  padding: 7px 13px;
  min-height: 39px;
  border: 1px solid #839889;
  border-radius: 4px;
  color: var(--forest);
  background: var(--paper);
  font-size: 14px;
  font-weight: 700;
}
.case-tab[aria-current="step"] { color: var(--paper); background: var(--forest); border-color: var(--forest); }
.case-tab:disabled { color: #4c5e53; background: #e3e8e0; }
.case-tab[data-recorded]::after { content: ' ✓'; }
.small { color: var(--faded); font-size: 14px; }
#show-results { margin-left: auto; }
.request { padding-block: 19px; }
.request h2, .results h2 { font-size: clamp(27px, 4.5vw, 43px); margin-bottom: 8px; }
.panes { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 17px; align-items: start; }
.evidence, .draft, .decisions, .feedback, .results, .paper, .after {
  padding: clamp(16px, 2.3vw, 25px);
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
}
.work { min-width: 0; display: grid; gap: 12px; }
.evidence h3, .draft h3 { font-weight: 700; font-size: 17px; }
.evidence h3 { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.record { margin-top: 14px; }
.record + .record { border-top: 1px solid var(--line); padding-top: 14px; }
.record h4 { color: var(--forest); font-size: 14px; margin: 0 0 5px; }
.draft { background: #e4ebe0; }
.draft blockquote { margin: 9px 0 0; font-family: var(--display); font-size: clamp(18px, 2.1vw, 23px); line-height: 1.35; }
.decisions fieldset { padding: 0; border: 0; margin: 0; min-width: 0; }
.decisions legend { font-weight: 700; margin-bottom: 9px; padding: 0; }
.decision {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid #aebfb2;
  border-radius: 3px;
  margin-bottom: 7px;
  cursor: pointer;
}
.decision:hover { border-color: #517762; }
.decision:has(input:checked) { border-color: #224c3b; background: #e9f3db; }
.decision input { accent-color: var(--forest); width: 16px; height: 16px; flex: 0 0 16px; margin: 4px 0 0; }
.decision small { display: block; color: var(--faded); font-size: 13px; }
.decisions .button, .feedback .button { margin-top: 10px; }
.feedback {
  border-left: 4px solid #917031;
  background: #fff3d4;
}
.feedback[data-match="true"] { border-left-color: var(--forest); background: #edf4e1; }
.feedback h3 { font-size: 19px; }
.feedback p + p, .paper p + p { margin-top: 9px; }
.paper h2 { font-size: 29px; margin-bottom: 10px; }
.paper details { margin-top: 17px; }
.paper summary { cursor: pointer; font-weight: 700; }
.after { margin-top: 26px; background: transparent; }
.after h2 { font-size: clamp(24px, 3vw, 33px); }
.after ul { margin-block: 12px; padding-left: 22px; }
.after li + li { margin-top: 5px; }
.after a { font-weight: 700; }
.results { margin-top: 16px; }
.results-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.results-head button { flex-shrink: 0; }
.results ol { padding: 0; margin-block: 18px 25px; list-style: none; }
.results li { border-top: 1px solid var(--line); padding-block: 12px; }
.results li h3 { font-size: 16px; }
.results li p + p { margin-top: 4px; }
.brief { padding: clamp(16px, 2.4vw, 23px); border: 1px solid #aebaad; background: #eaf0e3; }
.brief > p { margin-top: 4px; }
#brief-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 15px; }
#brief-form label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 3px; }
#brief-form input { width: 100%; min-height: 43px; padding: 8px; border: 1px solid #829387; border-radius: 4px; color: var(--ink); background: var(--paper); }
#brief-form button { grid-column: 1 / -1; margin-top: 5px; }
#brief-status { font-size: 14px; }

.guide { max-width: 780px; padding: 42px 0 4px; }
.guide h1 { font-size: clamp(41px, 7vw, 80px); margin: 14px 0; }
.guide .lede { max-width: 56ch; }
.guide-steps { padding-left: 30px; margin: 36px 0; }
.guide-steps > li { border-top: 1px solid #aabbad; padding-block: 16px; padding-inline: 6px; }
.guide-steps > li::marker { color: var(--forest); font-weight: 750; }
.guide h2 { font-size: clamp(24px, 4vw, 36px); margin-bottom: 8px; }
.guide-sources { border-left: 3px solid var(--forest); padding: 16px 20px; background: #e8ecdf; }
.guide-sources ul { margin-bottom: 0; padding-left: 20px; }

@media (max-width: 780px) {
  .hero {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 45px var(--gutter) 50px;
    min-height: auto;
  }
  .hero h1 { max-width: 13ch; font-size: clamp(55px, 11vw, 79px); }
  .hero .lede { max-width: 48ch; }
  .sample { justify-self: start; width: min(100% - 14px, 412px); }
}
@media (max-width: 620px) {
  .panes, #brief-form { grid-template-columns: minmax(0, 1fr); }
  .mast { min-height: 60px; }
  .results-head, .field-link { display: block; }
  .field-link .quiet { margin-top: 6px; }
  .track-header { padding: 21px 0 27px; }
  .exercise { margin-top: 12px; }
  .practice-list { padding-block: 30px; }
  .sample-row, .sample-result { padding-inline: 17px; }
  .sample h2 { padding: 18px 17px 13px; }
}
