@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/media/fonts/roboto-medium.ttf") format("truetype");
}

@font-face {
  font-family: "Carlito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/media/fonts/carlito-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Carlito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/media/fonts/carlito-bold.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #eef2f6;
  --ink: #102038;
  --cobalt: #2552d6;
  --muted: #43556d;
  --rule: #a4b1c4;
  --pale-rule: #d1d9e4;
  --field-rule: #687c98;
  --white: #fbfcfe;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Carlito", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #c7d4ff;
  color: var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

button,
a,
input,
textarea {
  -webkit-tap-highlight-color: #c7d4ff;
}

a {
  color: var(--cobalt);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 5px;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 12px;
  left: 20px;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 20px;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--white);
  font-size: 18px;
}

.skip-link:focus {
  transform: translateY(0);
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  margin: 0 20px;
  padding: 25px 0 20px;
  border-bottom: 2px solid var(--ink);
}

.masthead-name {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.masthead-rule {
  display: block;
  width: 28px;
  height: 5px;
  background: var(--cobalt);
  box-shadow: 0 2px 0 var(--white);
}

.masthead-note {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.35;
}

.masthead-purpose {
  display: block;
  color: var(--ink);
}

.page-main {
  margin: 0 20px;
}

.sheet-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 38px 0 36px;
  border-bottom: 1px solid var(--rule);
}

.sheet-heading {
  min-width: 0;
}

.sheet-kicker {
  margin: 0 0 19px;
  color: var(--cobalt);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.page-title {
  max-width: 18ch;
  margin: 0 0 24px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(38px, 9vw, 52px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.07;
  text-wrap: balance;
  text-shadow: 0 2px 0 var(--white);
}

.page-lede {
  max-width: 61ch;
  margin: 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.5;
}

.press-letter {
  display: none;
}

.start-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 52px;
  margin-top: 26px;
  padding: 12px 19px;
  border: 1px solid var(--cobalt);
  background: var(--cobalt);
  color: var(--white);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}

.start-link:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.sheet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  padding: 32px 0 42px;
}

.reading-column {
  min-width: 0;
}

.reading-section {
  max-width: 65ch;
  margin: 0 0 35px;
}

.reading-section:last-child {
  margin-bottom: 0;
}

.section-title {
  margin: 0 0 16px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.reading-text {
  margin: 0 0 15px;
}

.answer-list {
  margin: 17px 0 0;
  padding: 0 0 0 22px;
}

.answer-item {
  padding-left: 5px;
  margin: 0 0 11px;
}

.answer-item::marker {
  color: var(--cobalt);
  font-size: 0.8em;
}

.reading-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 6px 0;
}

.worksheet {
  align-self: start;
  min-width: 0;
  padding: 25px 20px 23px;
  border: 1px solid var(--rule);
  border-top: 5px solid var(--cobalt);
  background: var(--white);
  box-shadow: 5px 5px 0 #e0e6ef;
}

.worksheet-kicker {
  margin: 0 0 14px;
  color: var(--cobalt);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.worksheet-title {
  margin: 0 0 13px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.worksheet-intro {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.4;
}

.checklist {
  min-width: 0;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.checklist-legend {
  margin: 0 0 12px;
  padding: 0;
  font-size: 18px;
  font-weight: 700;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 48px;
  padding: 12px 0;
  border-bottom: 1px solid var(--pale-rule);
  cursor: pointer;
}

.check-input {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin: 2px 0 0;
  accent-color: var(--cobalt);
  cursor: pointer;
}

.check-text {
  font-size: 19px;
  line-height: 1.4;
}

.check-row:has(.check-input:checked) {
  color: var(--cobalt);
}

.note-field {
  margin-top: 22px;
}

.note-label {
  display: block;
  min-height: 44px;
  padding: 7px 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
}

.note-hint {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.35;
}

.note-input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 130px;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid var(--field-rule);
  border-radius: 0;
  background: repeating-linear-gradient(to bottom, var(--white) 0, var(--white) 29px, var(--pale-rule) 29px, var(--pale-rule) 30px);
  color: var(--ink);
  font-size: 20px;
  line-height: 30px;
}

.note-input:focus {
  background: var(--white);
}

.print-note {
  display: none;
  margin: 0;
  font-size: 20px;
  line-height: 30px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.worksheet-tip {
  margin: 23px 0 10px;
  color: var(--muted);
  font-size: 17px;
}

.print-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
  min-height: 48px;
  padding: 11px 15px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.print-button:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}

.shelf {
  padding: 32px 0 40px;
  border-top: 2px solid var(--ink);
}

.shelf-heading {
  max-width: 62ch;
  margin: 0 0 26px;
}

.shelf-kicker {
  margin: 0 0 12px;
  color: var(--cobalt);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
}

.shelf-title {
  max-width: 20ch;
  margin: 0 0 17px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.shelf-intro {
  margin: 0;
  color: var(--muted);
}

.sheet-index {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.sheet-link {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 18px;
  align-items: start;
  gap: 13px;
  min-height: 140px;
  padding: 22px 18px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
}

.sheet-link:hover {
  background: var(--white);
}

.sheet-letter {
  font-family: "Roboto", Arial, sans-serif;
  color: var(--cobalt);
  font-size: 20px;
  font-weight: 500;
}

.sheet-link-copy {
  min-width: 0;
}

.sheet-link-title {
  display: block;
  margin: 0 0 8px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.sheet-link-description {
  display: block;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.4;
}

.sheet-link-arrow {
  color: var(--cobalt);
  font-size: 23px;
  line-height: 1.1;
}

.source-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 27px 0 30px;
  border-top: 2px solid var(--cobalt);
}

.source-kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 16px;
}

.source-title {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.source-content {
  min-width: 0;
}

.source-note {
  max-width: 64ch;
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.4;
}

.source-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-item {
  border-bottom: 1px solid var(--pale-rule);
}

.source-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 12px 0;
  font-size: 18px;
  line-height: 1.4;
  text-decoration: none;
}

.source-link:hover {
  text-decoration: underline;
}

.source-arrow {
  flex-shrink: 0;
  font-size: 23px;
}

.page-footer {
  margin: 0 20px;
  padding: 27px 0 25px;
  border-top: 2px solid var(--ink);
}

.footer-main {
  max-width: 68ch;
}

.footer-name {
  margin: 0 0 10px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
}

.footer-description {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  padding: 9px 0;
  border-top: 1px solid var(--pale-rule);
  border-bottom: 1px solid var(--pale-rule);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 0;
  font-size: 18px;
  line-height: 1.4;
}

.footer-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  padding-top: 8px;
}

.format-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

.term-list {
  margin: 24px 0 0;
}

.term-entry {
  padding: 17px 0;
  border-top: 1px solid var(--rule);
}

.term-name {
  margin-bottom: 7px;
  color: var(--cobalt);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
}

.term-definition {
  margin: 0;
}

.bill-lines {
  margin: 0 0 28px;
}

.bill-label {
  margin: 0 0 13px;
  font-size: 19px;
  font-weight: 700;
}

.bill-row {
  display: block;
  margin-bottom: 16px;
  font-size: 18px;
  line-height: 1.35;
}

.bill-name {
  display: block;
  margin-bottom: 5px;
}

.bill-input {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 7px 10px;
  border: 1px solid var(--field-rule);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 20px;
}

.myth-list {
  margin-top: 20px;
}

.myth-card {
  padding: 22px 20px;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--cobalt);
  margin: 0 0 20px;
  background: var(--white);
}

.myth-question {
  margin: 0 0 18px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.myth-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  width: 100%;
  margin-bottom: 1px;
  padding: 11px 15px;
  border: 1px solid var(--cobalt);
  background: transparent;
  color: var(--cobalt);
  font-size: 18px;
  line-height: 1.4;
}

.myth-button::after {
  content: "+";
  font-family: "Roboto", Arial, sans-serif;
  font-size: 24px;
  line-height: 1;
}

.myth-button[aria-expanded="true"]::after {
  content: "−";
}

.myth-button:hover {
  background: var(--paper);
}

.myth-answer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--pale-rule);
}

.myth-explanation {
  margin: 0 0 14px;
}

.myth-follow {
  margin: 0;
  color: var(--muted);
}

.lost-sheet {
  max-width: 65ch;
  padding: 36px 0 45px;
}

@media (min-width: 700px) {
  .masthead,
  .page-main,
  .page-footer {
    width: calc(100% - 80px);
    max-width: 1240px;
    margin-right: auto;
    margin-left: auto;
  }

  .masthead {
    align-items: center;
    padding-top: 31px;
    padding-bottom: 23px;
  }

  .masthead-name {
    font-size: 22px;
  }

  .masthead-rule {
    width: 40px;
  }

  .masthead-note {
    text-align: right;
  }

  .sheet-header {
    grid-template-columns: minmax(0, 1fr) 130px;
    gap: 30px;
    align-items: end;
    padding: 49px 0 46px;
  }

  .page-title {
    font-size: 58px;
  }

  .press-letter {
    display: block;
    align-self: center;
    padding-left: 28px;
    border-left: 1px solid var(--rule);
    color: var(--field-rule);
    font-family: "Roboto", Arial, sans-serif;
    font-size: 130px;
    font-weight: 500;
    line-height: 1;
    text-shadow: 1px 2px 0 var(--white), -1px -1px 0 #b1bfd3;
  }

  .sheet-layout {
    padding-top: 42px;
    padding-bottom: 52px;
  }

  .worksheet {
    padding: 29px 28px;
  }

  .sheet-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shelf {
    padding-top: 38px;
    padding-bottom: 48px;
  }

  .shelf-title {
    max-width: 28ch;
    font-size: 42px;
  }

  .source-box {
    grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr);
    gap: 42px;
    padding: 34px 0 39px;
  }

  .footer-nav {
    justify-content: space-between;
  }
}

@media (min-width: 1060px) {
  .sheet-header {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 60px;
    padding-top: 61px;
    padding-bottom: 52px;
  }

  .page-title {
    max-width: 19ch;
    font-size: 70px;
    line-height: 1.04;
  }

  .page-lede {
    font-size: 23px;
  }

  .press-letter {
    padding-left: 65px;
    font-size: 218px;
  }

  .sheet-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(330px, 1fr);
    gap: 75px;
    padding: 45px 0 60px;
  }

  .reading-section {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: 27px;
  }

  .sheet-index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sheet-link {
    min-height: 160px;
    padding: 24px 23px;
  }

  .sheet-link-title {
    font-size: 22px;
  }

  .source-box {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 75px;
  }

  .page-footer {
    padding-top: 34px;
    padding-bottom: 29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  body {
    background: white;
    color: #102038;
    font-size: 16px;
  }

  .masthead,
  .page-main,
  .page-footer {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .masthead {
    padding: 0 0 12px;
  }

  .sheet-header {
    padding: 20px 0;
  }

  .page-title {
    max-width: 27ch;
    font-size: 32px;
    text-shadow: none;
  }

  .page-lede {
    font-size: 17px;
  }

  .sheet-layout {
    display: block;
    padding: 24px 0;
  }

  .section-title {
    font-size: 21px;
  }

  .reading-section {
    margin-bottom: 22px;
    break-inside: avoid;
  }

  .worksheet {
    margin-top: 26px;
    padding: 22px;
    box-shadow: none;
    break-inside: avoid;
  }

  .note-input {
    min-height: 110px;
    background: white;
    border-color: #a4b1c4;
  }

  .note-field:has(.print-note) .note-input {
    display: none;
  }

  .print-note {
    display: block;
    min-height: 110px;
    padding: 10px 12px;
    border: 1px solid #687c98;
    background: white;
  }

  .note-hint {
    font-size: 16px;
  }

  .myth-answer[hidden] {
    display: block !important;
  }

  .myth-card {
    break-inside: avoid;
  }

  .source-box {
    display: block;
    padding: 22px 0;
  }

  .source-content {
    margin-top: 14px;
  }

  .page-footer {
    padding: 18px 0;
  }

  .press-letter,
  .skip-link,
  .start-link,
  .shelf,
  .print-button,
  .myth-button,
  .footer-nav,
  .footer-formats,
  .worksheet-tip {
    display: none !important;
  }
}
