:root {
  color-scheme: light;
  --ink: #192638;
  --blue: #2445ae;
  --paper: #f8f6ef;
  --line: #cdcac1;
  --faint: #eae7df;
  --muted: #545b62;
  --gold: #ffdb63;
  --green: #185a4c;
  --warn: #8b3421;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.55;
}
h1,
h2,
h3,
p,
figure,
fieldset,
blockquote {
  margin: 0;
}
h1,
h2,
h3,
.serif {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(2.6rem, 5.35vw, 5.35rem);
}
h2 {
  font-size: clamp(1.9rem, 3.25vw, 3rem);
}
h3 {
  font-size: 1.55rem;
}
a {
  color: var(--blue);
  text-underline-offset: 0.22em;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
textarea:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #af4518;
  outline-offset: 4px;
}
main:focus {
  outline: none;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 3;
  background: white;
  padding: 0.6rem;
}
.skip:focus {
  top: 1rem;
}
.wrap,
.mast-inner {
  width: min(100% - clamp(2rem, 8vw, 8rem), 76rem);
  margin-inline: auto;
}
.mast {
  background: var(--ink);
  color: white;
}
.mast-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.mast-inner {
  min-height: 4.65rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: white;
  text-decoration: none;
}
.brand b {
  letter-spacing: -0.09em;
  font-size: 1.03rem;
  line-height: 1;
  background: var(--gold);
  color: var(--ink);
  padding: 0.42rem 0.42rem 0.37rem;
  transform: rotate(-4deg);
}
.brand > span {
  font:
    700 1.75rem Georgia,
    serif;
  letter-spacing: -0.065em;
}
.brand-dot {
  color: var(--gold);
}
nav {
  display: flex;
  gap: clamp(0.85rem, 3vw, 2.3rem);
}
nav a {
  color: white;
  text-decoration: none;
  font-size: 0.94rem;
  padding: 0.7rem 0;
}
nav a:hover,
nav a[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.45em;
}
footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner {
  padding-block: 1.4rem;
  flex-wrap: wrap;
}
.footer-inner a {
  color: var(--ink);
}
.fallback,
.body {
  padding: 4rem max(1rem, 5vw);
}
.body p {
  margin-top: 1rem;
}
.eyebrow,
.paper-kicker,
.meta {
  font:
    700 0.83rem/1.45 'Courier New',
    monospace;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--blue);
}
.eyebrow::before {
  content: '';
  width: 1.65rem;
  height: 0.18rem;
  background: currentColor;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 0.98fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5.25rem);
  padding-block: clamp(2.6rem, 5.6vw, 5.4rem);
}
.hero h1 {
  margin: 0.8rem 0 1.1rem;
  line-height: 0.98;
}
.hero h1 em {
  color: var(--blue);
  font-weight: 500;
}
.hero-copy > p:not(.eyebrow) {
  max-width: 37ch;
  color: #424c58;
  font-size: clamp(1.03rem, 1.6vw, 1.2rem);
}
.actions,
.toolrow {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.35rem;
}
.btn,
.secondary,
.linkbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.68rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0.32rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.35;
}
.btn {
  background: var(--blue);
  color: white;
}
.btn:hover {
  background: #142f86;
}
.secondary {
  background: #fffefa;
  color: var(--ink);
  border-color: #9c9d9a;
}
.secondary:hover {
  background: #edeae1;
}
.linkbtn {
  border: none;
  background: none;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  padding: 0.45rem 0.1rem;
}
.time {
  color: var(--muted);
  font-size: 0.9rem;
}
.collage {
  position: relative;
  aspect-ratio: 1.45;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #283e78;
  background-color: #334e9e;
  background-image: radial-gradient(#93a4d0 0.65px, transparent 1px);
  background-size: 5px 5px;
  border-radius: 0.45rem;
}
.clip {
  position: absolute;
  background: #fcf8e9;
  color: #1d2530;
  box-shadow: 2px 5px 0 #18244338;
  padding: 4.1% 4.2% 5.5%;
  width: 67%;
  border-bottom: 4px double #a7a190;
}
.clip.a {
  left: 6%;
  top: 7%;
  transform: rotate(-7deg);
}
.clip.b {
  right: 4%;
  bottom: 9%;
  transform: rotate(6deg);
  background: #f3ecd8;
}
.clip-head {
  font:
    700 clamp(0.82rem, 1.55vw, 1.55rem) / 1.2 Georgia,
    serif;
  border-block: 3px double #343941;
  padding: 0.15em 0;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -0.045em;
}
.clip-title {
  font:
    bold clamp(1.1rem, 2.35vw, 2.3rem) / 1.03 Georgia,
    serif;
  letter-spacing: -0.055em;
  margin: 0.28em 0 0.36em;
}
.clip-title i {
  background: linear-gradient(to top, transparent 4%, #f8d561 4% 50%, transparent 50%);
  font-style: normal;
}
.clip.b .clip-title i {
  background: transparent;
  border-bottom: 3px solid #ad452b;
}
.print-lines {
  height: 1.4rem;
  background: repeating-linear-gradient(to bottom, #66695e 0 1px, transparent 1px 4px);
  opacity: 0.45;
  clip-path: polygon(0 0, 100% 0, 100% 64%, 88% 64%, 88% 100%, 0 100%);
}
.tape {
  position: absolute;
  background: #fae5a4d9;
  height: 7.5%;
  width: 22%;
  transform: rotate(-19deg);
  left: 2%;
  top: 6%;
  z-index: 1;
}
.missions {
  padding-block: 2.1rem 2.6rem;
  border-top: 2px solid var(--ink);
}
.missions h2 {
  margin-bottom: 1.3rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.mission-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fffef9;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-top: 5px solid var(--tone);
  border-radius: 0.25rem;
  color: var(--ink);
  text-decoration: none;
}
.yellow {
  --tone: #d6a51d;
}
.mint {
  --tone: #69ad99;
}
.pink {
  --tone: #d88f96;
}
.mission-card:hover {
  border-color: var(--blue);
  background: #fff;
}
.mission-card h3 {
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  margin: 0.65rem 0;
}
.mission-card p {
  font-size: 0.97rem;
  color: var(--muted);
  margin-bottom: 1.15rem;
}
.card-foot {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue);
}
.teacher {
  padding-block: 0 2.4rem;
  color: var(--muted);
}
details > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  padding: 0.5rem 0;
}
details p {
  max-width: 70ch;
  margin: 0.5rem 0;
}
.desk {
  padding-block: 1.9rem 3.4rem;
}
.desk-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.45rem;
}
.desk-top a {
  font-size: 0.95rem;
}
.saved {
  font-size: 0.88rem;
  color: var(--muted);
}
.desk h1 {
  font-size: clamp(2.25rem, 4.1vw, 4rem);
  margin: 0.5rem 0 1rem;
}
.steps {
  list-style: none;
  margin: 1.6rem 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.steps li {
  border-top: 3px solid var(--line);
  padding-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.steps li[aria-current] {
  border-color: var(--blue);
  font-weight: 700;
  color: var(--blue);
}
.steps li.done {
  border-color: #528c78;
}
.step-title {
  margin-bottom: 0.55rem;
}
.lead {
  color: #414b58;
  font-size: 1.08rem;
  max-width: 75ch;
}
.sources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr));
  gap: 1rem;
  margin: 1.3rem 0;
}
.source,
.panel,
.notebook,
.draftrow,
.finish {
  padding: clamp(1.1rem, 2.4vw, 2rem);
  border: 1px solid var(--line);
  background: #fffef9;
  border-radius: 0.32rem;
}
.source {
  border-top: 4px solid #526c7c;
  max-width: 80ch;
}
.source .paper-kicker,
.notebook .paper-kicker {
  color: var(--muted);
}
.source h3 {
  margin: 0.65rem 0 1rem;
  font-size: clamp(1.65rem, 2.65vw, 2.25rem);
}
.source p:not(.paper-kicker) {
  font:
    1.13rem/1.78 Georgia,
    serif;
  letter-spacing: 0.002em;
}
.source p + p {
  margin-top: 0.75rem;
}
.mark {
  font: inherit;
  line-height: 1.45;
  color: var(--ink);
  background: #f7f2e0;
  text-decoration: underline dotted #806e48;
  text-underline-offset: 0.17em;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0.16rem;
  padding: 0.1em 0.16em;
}
.mark[aria-pressed='true'] {
  background: var(--gold);
  border-color: #745707;
  text-decoration: none;
}
button.mark:hover,
.quote:hover,
.choice:hover {
  outline: 1px solid var(--blue);
  outline-offset: 1px;
}
.panel,
.notebook {
  margin-top: 1.1rem;
}
.panel {
  max-width: 55rem;
}
.panel h3,
.notebook h3 {
  margin-bottom: 0.65rem;
}
.gridwrite {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 0.85fr);
  gap: 1rem;
  align-items: start;
}
.gridwrite .panel,
.gridwrite .notebook {
  height: auto;
}
.notebook {
  background: #f0eee4;
}
fieldset {
  border: none;
  padding: 0;
  min-width: 0;
}
legend,
.field-label {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  display: block;
}
.choices,
.quote-set {
  display: grid;
  gap: 0.55rem;
}
.choice,
.quote {
  width: 100%;
  text-align: left;
  padding: 0.8rem 0.95rem;
  background: white;
  border: 1px solid #b3b4ad;
  border-radius: 0.25rem;
  color: var(--ink);
}
.choice[aria-pressed='true'],
.quote[aria-pressed='true'] {
  border: 2px solid var(--blue);
  background: #eef1fc;
  padding: calc(0.8rem - 1px) calc(0.95rem - 1px);
}
.choice[aria-pressed='true']::before,
.quote[aria-pressed='true']::before {
  content: '✓ ';
  font-weight: bold;
  color: var(--blue);
}
.bank {
  margin-top: 1.3rem;
}
.quote-set {
  margin: 0.75rem 0;
}
.caption,
.hint,
.rubric dd {
  color: var(--muted);
}
.caption {
  font-size: 0.9rem;
}
.feedback {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--green);
  background: #e7f2eb;
  max-width: 72ch;
}
.feedback.retry {
  border-color: #ad5534;
  background: #f9eadf;
}
.feedback p + p {
  margin-top: 0.4rem;
}
.feedback:empty {
  display: none;
}
textarea {
  width: 100%;
  min-height: 9rem;
  resize: vertical;
  padding: 0.85rem 0.95rem;
  border: 1px solid #8a8e8e;
  border-radius: 0.3rem;
  background: white;
  color: var(--ink);
  line-height: 1.6;
}
.rubric {
  margin: 0.8rem 0;
}
.rubric dt {
  font-weight: 700;
  margin-top: 0.65rem;
}
.rubric dd {
  margin: 0;
}
.notebook blockquote {
  font:
    italic 1.05rem/1.45 Georgia,
    serif;
  margin: 0.55rem 0;
}
.back {
  margin-top: 1rem;
}
.goals {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.goals .choice {
  width: auto;
}
.old {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.reading-back .sources {
  margin-bottom: 0;
}
.draftrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}
.draftrow .actions {
  margin: 0;
}
.draftrow h2 {
  font-size: 1.65rem;
}
.draftrow p {
  color: var(--muted);
  font-size: 0.95rem;
}
.finish {
  max-width: 54rem;
  margin-top: 1.5rem;
}
.finish h2,
.finish p {
  margin-bottom: 0.75rem;
}
.finish details {
  margin-top: 0.8rem;
}
.second-reading {
  margin-block: 1.2rem;
  border-block: 1px solid var(--line);
  padding-block: 1.1rem;
}
.second-reading details {
  margin-bottom: 1rem;
}
.second-reading blockquote {
  max-width: 68ch;
  font-family: Georgia, serif;
}
@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 1.3rem;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .mission-card {
    padding: 1rem 1.2rem;
  }
  .mission-card p {
    margin-bottom: 0.5rem;
  }
  .gridwrite {
    grid-template-columns: 1fr;
  }
  .steps {
    gap: 0.3rem;
  }
  .steps li {
    font-size: 0.82rem;
  }
  .clip-title {
    font-size: clamp(1.12rem, 3.1vw, 1.5rem);
  }
}
@media (max-width: 580px) {
  .mast-inner {
    min-height: 3.8rem;
  }
  .brand > span {
    font-size: 1.45rem;
  }
  .brand b {
    font-size: 0.9rem;
  }
  nav a {
    font-size: 0.875rem;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    padding-block: 2rem;
  }
  .hero h1 {
    font-size: clamp(2.9rem, 11.4vw, 4rem);
  }
  .hero h1 br {
    display: none;
  }
  .collage {
    aspect-ratio: 1.95;
  }
  .clip {
    width: 60%;
    padding: 3% 3.7% 4%;
  }
  .clip.a {
    top: 9%;
  }
  .clip.b {
    bottom: 10%;
  }
  .clip-head {
    font-size: clamp(0.87rem, 3.6vw, 1.2rem);
  }
  .clip-title {
    font-size: clamp(1.18rem, 5vw, 1.65rem);
  }
  .print-lines {
    height: 0.85rem;
  }
  .missions {
    padding-top: 1.55rem;
  }
  .desk {
    padding-top: 1.2rem;
  }
  .steps {
    margin-bottom: 1.4rem;
  }
  .mark {
    padding: 0.18em 0.14em;
  }
  .panel,
  .notebook,
  .source {
    padding: 1rem;
  }
}
