@font-face {
  font-family: "Fraunces Notebook";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("tesa-notebook-fraunces.woff2") format("woff2");
}

:root {
  --ink: #273e48;
  --blue: #24577c;
  --blue-deep: #1d4969;
  --paper: #fffdf7;
  --peach: #f8ddcc;
  --sky: #dfedf0;
  --mustard: #edc85c;
  --clay: #803e32;
  --rule: #c0cfd0;
  --white: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--blue-deep); text-underline-offset: .2em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
button, textarea, input { font: inherit; }
button { cursor: pointer; }
button, a, summary, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 4px; }
h1, h2, h3, h4, p, figure, ul { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
h1, h2, h3, h4, .notebook-name { font-family: "Fraunces Notebook", Georgia, serif; font-weight: 400; font-optical-sizing: auto; }
h1 { font-size: clamp(2.7rem, 5.2vw, 4.15rem); line-height: 1.07; letter-spacing: -.035em; color: var(--blue-deep); font-variation-settings: "opsz" 80; }
h2, .chapter-title, .worksheet-title { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -.02em; color: var(--blue-deep); }
h3, h4 { font-size: 1.4rem; line-height: 1.25; color: var(--blue-deep); }
p + p { margin-top: .85rem; }
ul { padding-left: 1.3rem; }
li + li { margin-top: .6rem; }
.page-width { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.guide-label, .chapter-tab, .entry-label { font-size: 1rem; font-weight: 700; }
.chapter-tab { font-family: Arial, Helvetica, sans-serif; line-height: 1.6; letter-spacing: normal; color: var(--ink); text-wrap: wrap; }
.guide-label { margin-bottom: 1rem; }
.opening-deck { max-width: 48ch; font-size: 1.1rem; line-height: 1.55; }
.button, .plain-button, .quiet-link, .source-jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-width: 44px;
  min-height: 48px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
.button {
  padding: .8rem 1.35rem;
  border: 2px solid var(--blue);
  border-radius: 100px;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  text-align: center;
}
.button:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.plain-button { padding: .7rem 1rem; background: transparent; border: 2px solid var(--blue); border-radius: 12px; color: var(--blue-deep); text-align: center; }
.quiet-link { justify-content: flex-start; padding-block: .6rem; }
.source-jump { font-size: .9rem; font-weight: 400; justify-content: flex-start; gap: .5rem; }
.comparison-caption { margin-top: 1rem; font-size: 1rem; }
.question-prompt { display: block; color: var(--clay); margin-top: .45rem; }

@media (max-width: 700px) {
  :root { font-size: 17px; }
  .page-width { width: calc(100% - 40px); }
  h1 { font-size: clamp(2.65rem, 11vw, 3.3rem); line-height: 1.1; }
  h2, .chapter-title, .worksheet-title { font-size: 2rem; }
  h3, h4 { font-size: 1.4rem; }
  .source-jump { font-size: 1rem; }
  .button { padding-inline: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

@media print {
  :root { font-size: 12pt; background: white; color: black; }
  .page-width { width: 100%; }
  a { color: black; }
  .button, .notes-tools, .notebook-menu, .skip-link, .back-to-top { display: none !important; }
  h1 { font-size: 32pt; }
  h2, .chapter-title, .worksheet-title { font-size: 22pt; }
  h3, h4 { font-size: 16pt; }
  section, article, figure, table { break-inside: avoid; }
}
