@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/answer-nunito-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --sky: #eaf5fc;
  --ink: #172f3d;
  --quiet: #425d6c;
  --red: #ad311c;
  --paper: #ffffff;
  --blue-paper: #daebf7;
  --marker: #f9b5a0;
  color-scheme: light;
  font-family: "Nunito Sans", "Arial Rounded MT Bold", ui-rounded, sans-serif;
  color: var(--ink);
  background: var(--sky);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; font-size: 18px; font-weight: 450; line-height: 1.75; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--red); text-underline-offset: .2em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .15em; }
button, input { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 5px; border-radius: 8px; }
::selection { color: var(--ink); background: var(--marker); }
mark {
  color: var(--ink);
  background: linear-gradient(178deg, transparent 30%, var(--marker) 31% 93%, transparent 94%);
  padding: 0 .1em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.skip-link { position: absolute; z-index: 10; top: .75rem; left: .75rem; padding: .7rem 1rem; background: var(--paper); border-radius: 24px; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { width: min(100% - 40px, 68rem); margin: 0 auto; padding: 25px 0 12px; text-align: center; }
.wordmark { display: inline-block; position: relative; padding: 0 0 9px; font-size: 33px; font-weight: 900; line-height: 1.3; letter-spacing: -.055em; text-decoration: none; color: var(--ink); }
.wordmark::after { content: ""; position: absolute; bottom: 0; left: -2%; width: 104%; height: 10px; background: url("../images/marker-underline.svg") center / 100% 100% no-repeat; }
.question-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin: 17px auto 0; }
.question-nav a, .menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 7px 18px; border: 0; border-radius: 100px;
  background: var(--paper); color: var(--ink); font-size: 16px; font-weight: 800; line-height: 1.4;
  text-decoration: none;
}
.question-nav a:hover, .question-nav a[aria-current="page"] { background: var(--marker); }
.menu-toggle { margin: 17px auto 0; color: var(--red); gap: 16px; }
.menu-toggle::after { content: "+"; font-size: 24px; font-weight: 650; line-height: 1; }
.menu-toggle[aria-expanded="true"]::after { content: "−"; }

main { min-width: 0; }
.page-opening { width: min(100% - 40px, 44rem); margin: 38px auto 46px; }
.home-opening { width: min(100% - 40px, 54rem); margin-top: 36px; margin-bottom: 35px; text-align: center; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 900; line-height: 1.2; text-wrap: balance; overflow-wrap: break-word; }
h1 { margin: 0 0 22px; font-size: clamp(34px, 3.6vw, 48px); letter-spacing: -.045em; }
.home-opening h1 { margin: 0 auto 17px; font-size: clamp(36px, 5.1vw, 68px); line-height: 1.06; letter-spacing: -.055em; }
h2 { margin: 2.4em 0 .7em; font-size: 29px; letter-spacing: -.025em; }
h3 { margin: 1.65em 0 .65em; font-size: 23px; letter-spacing: -.018em; }
h4 { font-size: 20px; }
p { margin: 0 0 1.3em; }
strong { font-weight: 850; }
.opening-summary { font-size: 20px; line-height: 1.65; }
.opening-summary p:last-child { margin-bottom: 0; }
.home-opening .opening-summary { max-width: 43rem; margin: 0 auto; font-size: 19px; }
.oath-answer { padding: 0; border: 0; border-radius: 0; background: none; margin: 14px 0 0; font-size: 18px; line-height: 1.65; }
.oath-answer p { margin: 0; }
.oath-answer a { min-height: 44px; display: inline-flex; align-items: center; }
.oath-answer mark { font-weight: 850; }
.oath-note { margin-top: 0; margin-bottom: 23px; font-size: 17px; line-height: 1.7; }
.home-opening .oath-answer { max-width: 43rem; margin: 12px auto 0; }
.reading-layout, .home-body { width: min(100% - 40px, 44rem); margin: 0 auto; }
.reading-content { min-width: 0; }
.reading-content > .container { width: 100%; }
.reading-content h2:first-child { margin-top: 0; }
.reading-content > .container > article > h2:first-child { margin-top: 0; }
.reading-content :is(p, li, td, th, a) { overflow-wrap: anywhere; }
.reading-content ul, .reading-content ol { padding-left: 1.45em; margin: 1.2em 0 1.8em; }
.reading-content li { margin: .6em 0; padding-left: .2em; }
.reading-content li::marker { color: var(--red); font-weight: 850; }

.question-start { width: min(100% - 40px, 68rem); margin: 0 auto 64px; }
.question-start h2 { margin: 0 0 22px; text-align: center; font-size: 25px; }
.question-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 0; margin: 0; list-style: none; }
.question-grid li { margin: 0; min-width: 0; }
.question-grid a {
  display: flex; height: 100%; min-height: 148px; align-items: center; position: relative;
  padding: 24px 26px 30px; border-radius: 28px; background: var(--paper);
  color: var(--ink); font-size: 20px; font-weight: 850; line-height: 1.3; letter-spacing: -.018em;
  text-decoration: none; transition: transform 140ms ease, background-color 140ms ease;
}
.question-grid li:nth-child(3n + 2) a { background: var(--blue-paper); }
.question-grid li:nth-child(4) a, .question-grid li:nth-child(5) a { background: var(--marker); }
.question-grid a::after { content: "↗"; position: absolute; bottom: 6px; right: 18px; color: var(--ink); font-size: 22px; }
.question-grid a:hover { background: var(--marker); transform: translateY(-3px); }
.question-notes { margin-bottom: 3.5rem; }
.question-notes h3 { margin-bottom: .35em; font-size: 21px; }
.question-notes h3 a { color: var(--ink); text-decoration-color: var(--red); }
.question-notes p { color: var(--quiet); }

.visual-figure { margin: 2.5rem 0 3rem; }
.visual-figure > img { width: 100%; border-radius: 28px; background: var(--blue-paper); }
figcaption { margin-top: 14px; color: var(--quiet); font-size: 16px; line-height: 1.7; }
.diagram-scroll { width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; border-radius: 24px; background: var(--paper); }
.diagram-scroll img { width: 100%; max-width: none; }
.home-notebook { margin-top: 2.5rem; }
.table-wrap { width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; margin: 1.5rem 0 2.5rem; border-radius: 24px; background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.6; text-align: left; }
th { padding: 18px 16px; font-weight: 850; color: var(--ink); background: var(--blue-paper); }
td { padding: 17px 16px; vertical-align: top; border-bottom: 2px solid var(--sky); }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 650; }
.callout-box, .editorial-note, .short-answer-card { margin: 2rem 0; padding: 0 0 0 22px; border-left: 6px solid var(--marker); background: none; }
.callout-title, .editorial-note > strong:first-child { display: block; margin-bottom: 10px; color: var(--ink); font-weight: 850; }
.callout-box p:last-child { margin-bottom: 0; }
.editorial-note { color: var(--quiet); font-size: 17px; }
.card-grid { display: block; }
.info-card { margin: 26px 0 34px; padding: 0; background: none; border: 0; }
.info-card h3 { margin: 0 0 12px; font-size: 21px; }
.info-card h3 a {
  display: inline-flex; min-height: 48px; align-items: center; padding: 10px 21px;
  border-radius: 100px; background: var(--paper); color: var(--ink); text-decoration: none; line-height: 1.4;
}
.info-card h3 a:hover { background: var(--marker); }
.info-card p { margin: 0; color: var(--quiet); }
.related-questions { margin-top: 3.8rem; }
.related-questions h2 { font-size: 25px; }
.faq-item { padding: 0 0 18px; margin-bottom: 24px; }
.faq-item h3 { display: inline; background: linear-gradient(transparent 88%, var(--marker) 88%); }
.faq-item p:first-of-type { margin-top: 17px; }
details { margin: 22px 0; padding: 0; }
summary { cursor: pointer; padding: 16px 23px; min-height: 56px; border-radius: 28px; background: var(--paper); font-size: 20px; font-weight: 850; line-height: 1.5; }
details[open] summary { margin-bottom: 20px; background: var(--blue-paper); }
details > :not(summary) { margin-left: 10px; margin-right: 10px; }
code { font-family: inherit; font-weight: 850; }
.related-row { margin: 4rem 0; }
.related-row h2 { font-size: 24px; }
.related-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.related-chips a { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 20px; border-radius: 100px; background: var(--paper); color: var(--ink); font-size: 17px; font-weight: 800; text-decoration: none; }
.related-chips a:hover { background: var(--marker); }
.site-footer { width: min(100% - 40px, 68rem); margin: 80px auto 0; padding: 30px 0 38px; text-align: center; }
.site-footer::before { content: ""; display: block; margin: 0 auto 30px; width: 180px; height: 12px; background: url("../images/marker-underline.svg") center / 100% 100% no-repeat; }
.site-footer p { max-width: 44rem; margin: 0 auto 15px; font-size: 16px; line-height: 1.75; color: var(--quiet); }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px 22px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 800; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .site-header { padding-top: 17px; }
  .wordmark { font-size: 30px; }
  .question-nav { flex-direction: column; align-items: center; gap: 8px; }
  .question-nav a { max-width: 100%; width: fit-content; }
  .page-opening { margin-top: 22px; margin-bottom: 34px; }
  .home-opening { margin-top: 18px; margin-bottom: 25px; }
  h1 { font-size: 34px; margin-bottom: 18px; line-height: 1.12; }
  .home-opening h1 { font-size: 36px; line-height: 1.08; margin-bottom: 14px; }
  h2 { font-size: 26px; }
  h3 { font-size: 22px; }
  .opening-summary, .home-opening .opening-summary { font-size: 17px; line-height: 1.65; }
  .oath-answer { font-size: 17px; line-height: 1.6; }
  .oath-note { font-size: 16px; line-height: 1.7; }
  .question-start { margin-bottom: 42px; }
  .question-start h2 { font-size: 21px; line-height: 1.3; margin-bottom: 17px; }
  .question-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .question-grid a { font-size: 17px; padding: 20px 18px 29px; min-height: 155px; border-radius: 24px; }
  .visual-figure { margin: 2rem 0 2.5rem; }
  .diagram-scroll img { min-width: 800px; }
  .table-wrap { border-radius: 20px; }
  th, td { min-width: 130px; padding: 14px 15px; }
  .table-wrap table { min-width: 580px; }
  .info-card h3 a { border-radius: 24px; }
  .callout-box, .editorial-note { padding-left: 17px; }
  .site-footer { margin-top: 55px; }
}

@media (min-width: 761px) and (max-width: 1080px) {
  .question-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .question-grid a { transition: none; }
  .question-grid a:hover { transform: none; }
}
