:root {
  color-scheme: light;
  --paper: #fbfaf6;
  --ink: #162e35;
  --teal: #24695e;
  --muted: #4e6061;
  --rule: #cbd3cd;
  --serif: "STIX Two Text", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #b04c10; outline-offset: 4px; }
.wrap { width: min(76rem, 90%); margin-inline: auto; }
.skip { position: absolute; top: -5rem; left: 1rem; z-index: 1; padding: .75rem; background: white; }
.skip:focus { top: .5rem; }
.masthead { border-bottom: 1px solid var(--rule); }
.bar, .author, nav, .actions, figcaption, .section-head, .foot { display: flex; align-items: center; }
.bar, .section-head, .foot { justify-content: space-between; }
.bar { min-height: 4.5rem; gap: 1rem; }
.author { gap: .7rem; font: 600 1.2rem var(--serif); }
.mark { width: 2rem; height: 2rem; }
nav { gap: clamp(1rem, 3vw, 2.1rem); font-size: .94rem; }
nav a, .foot a { padding-block: .45rem; }
nav a:hover, .foot a:hover { text-decoration: underline; text-underline-offset: .25em; }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(2.5rem, 5vw, 5rem); }
h1, h2, p, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; }
h1 { font-size: clamp(4.7rem, 8.8vw, 8.2rem); line-height: 1; letter-spacing: -.065em; }
h1 i { color: var(--teal); }
.intro p { max-width: 31em; margin-top: 1.2rem; font: 1.18rem/1.55 var(--sans); color: var(--muted); }
.actions { flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.button { padding: .8rem 1.12rem; border: 1px solid var(--teal); border-radius: 4px; font-weight: 600; font-size: .96rem; }
.primary { color: white; background: var(--teal); }
.primary:hover { background: #184c44; }
.secondary { color: var(--teal); }
.secondary:hover { background: #e6efea; }
figure { color: white; background: #12394b; border-radius: 5px; overflow: hidden; }
figure img { width: 100%; height: auto; display: block; }
figcaption { gap: 1.3rem; flex-wrap: wrap; padding: .65rem 1rem; background: #102f3d; color: #eef5ed; font-size: .81rem; }
figcaption span { display: flex; align-items: center; gap: .45rem; }
.key { display: inline-block; width: 1rem; }
.slope { height: 2px; background: #ffd07c; }
.integral { height: .66rem; background: repeating-linear-gradient(110deg,#427a7b 0 3px,#85baae 3px 4px); }
#worksheets { border-top: 2px solid var(--ink); }
.section-head { align-items: baseline; gap: .75rem; padding-block: 1.65rem 1.1rem; }
h2 { font-size: clamp(2.25rem, 4vw, 3.25rem); letter-spacing: -.045em; line-height: 1.12; }
.section-head > span { color: var(--muted); font-size: .9rem; }
.topics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: 2.2rem; padding: 0; margin: 0; list-style: none; }
.topics li { border-top: 1px solid var(--rule); }
.topics a { display: flex; align-items: flex-start; gap: .95rem; height: 100%; padding: 1.35rem .12rem; }
.symbol { flex: 0 0 2.65rem; height: 2.65rem; display: grid; place-items: center; background: #e6efea; color: var(--teal); border-radius: 3px; font: italic 1.18rem Georgia, serif; }
.symbol.large { font-size: 1.65rem; }
.topics strong { display: block; font: 600 1.25rem/1.18 var(--serif); }
.topics small { display: block; margin-top: .35rem; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.topics a:hover strong { color: var(--teal); text-decoration: underline; text-underline-offset: .16em; }
.foot { gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--rule); margin-top: 2rem; padding-block: 1.25rem 2rem; color: var(--muted); font-size: .87rem; }
@media (max-width: 58rem) {
  .hero { gap: 2rem; }
  .topics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 44rem) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  figure { max-width: 32rem; }
  .section-head { flex-wrap: wrap; }
  .topics { grid-template-columns: 1fr; }
  .topics a { padding-block: 1.05rem; }
  .foot { align-items: flex-start; flex-direction: column; gap: .25rem; }
}
@media (max-width: 24rem) {
  .bar { flex-wrap: wrap; padding-block: .7rem; }
  .section-head { align-items: flex-start; flex-direction: column; }
}
