@import url("https://fonts.googleapis.com/css2?family=Literata:opsz,wght@7..72,400..700&family=Public+Sans:wght@400..700&display=swap");

:root {
  color-scheme: light;
  --ink: #183540;
  --muted: #465b62;
  --paper: #edf5f7;
  --white: #ffffff;
  --blue: #87ceeb;
  --pink: #ffb6c1;
  --green: #90ee90;
  --blue-field: #e4f1f7;
  --pink-field: #fcebee;
  --green-field: #eaf6e9;
  --edge: #bbccd1;
  --shadow: 10px 12px 24px #cedee3, -8px -8px 20px #ffffff;
  --display: "Literata", Georgia, serif;
  --body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; }
[hidden] { display: none !important; }
main, [data-role="masthead"], [data-role="footer-inner"] { width: min(1168px, calc(100% - 64px)); margin-inline: auto; }
p, li, label, input, textarea, button, a, legend, figcaption, summary, output { font-size: 1rem; }
p { margin: 0 0 1rem; max-width: 72ch; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { color: var(--ink); margin: 0; overflow-wrap: break-word; }
h1, h2 { font-family: var(--display); font-optical-sizing: auto; font-weight: 700; letter-spacing: -.045em; }
h1 { font-size: 2.25rem; line-height: 1.15; }
h2 { font-size: clamp(1.75rem, 2.8vw, 2.25rem); line-height: 1.25; }
h3 { font-size: 1.125rem; font-weight: 650; line-height: 1.4; letter-spacing: -.015em; }
ul { margin-block: 0; padding-left: 1.25rem; }
li { max-width: 72ch; }
li + li { margin-top: .65rem; }
a { color: #174753; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a, button { -webkit-tap-highlight-color: transparent; transition: background-color 220ms, box-shadow 220ms, border-color 220ms; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #275a77; outline-offset: 4px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button, [data-role="button"] { display: inline-flex; align-items: center; justify-content: center; gap: 1.25rem; min-height: 52px; padding: .75rem 1.3rem; border: 1px solid #b1c9d3; border-radius: 10px; background: #f5fafb; color: var(--ink); text-decoration: none; font-weight: 600; box-shadow: 5px 5px 12px #cedee3, -5px -5px 12px #ffffff; }
button:hover, [data-role="button"]:hover { background: #d9eef5; box-shadow: 3px 3px 8px #c4d6dd, -3px -3px 8px #ffffff; }
[data-role="button"] span { font-size: 1.25rem; }
[data-role="eyebrow"], [data-role="small-label"], [data-role="path-label"] { font-size: .875rem; font-weight: 500; letter-spacing: .06em; }
[data-role="eyebrow"] { font-size: 1rem; margin-bottom: 1.2rem; color: #38505a; }
[data-role="lede"] { font-size: 1.125rem; line-height: 1.6; color: #38505a; }
[data-role="skip"] { position: fixed; top: 12px; left: 12px; z-index: 10; padding: .7rem 1rem; min-height: 48px; border-radius: 8px; background: var(--ink); color: white; transform: translateY(-200%); }
[data-role="skip"]:focus { transform: translateY(0); }
[data-role="masthead"] { display: flex; align-items: center; gap: 1rem; padding-block: 32px; }
[data-role="mark"] { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 11px; background: var(--blue-field); box-shadow: 5px 5px 10px #cedee3, -5px -5px 10px #ffffff; font-family: var(--display); font-size: 1.5rem; font-weight: 600; }
[data-role="mark"] span { color: #526b55; }
[data-role="masthead-name"] { font-weight: 600; line-height: 1.35; margin: 0; }
[data-role="masthead-caption"] { margin: .15rem 0 0; color: var(--muted); }
[data-role="footer"] { border-top: 1px solid var(--edge); padding-block: 32px; background: #e5eff2; }
[data-role="footer-inner"] { display: flex; justify-content: space-between; align-items: center; gap: 3rem; }
[data-role="footer"] p { max-width: 54ch; }
[data-role="footer"] nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
[data-role="footer"] a { display: inline-flex; align-items: center; min-height: 48px; padding: .65rem .8rem; border-radius: 8px; }
[data-role="footer"] a:hover, [data-role="footer"] a[aria-current] { background: #d5e6ec; }
[data-role="missing"] { max-width: 72ch; padding-block: 72px; }
[data-role="missing"] h1 { margin-bottom: 1.5rem; }
[data-role="missing"] a { margin-top: 1rem; }

@media (max-width: 700px) {
  main, [data-role="masthead"], [data-role="footer-inner"] { width: calc(100% - 40px); }
  [data-role="masthead"] { padding-block: 24px; gap: .85rem; }
  [data-role="footer-inner"] { display: block; }
  [data-role="footer"] nav { justify-content: flex-start; margin-top: 20px; gap: .3rem; }
  [data-role="footer"] a { padding-inline: .65rem; }
  [data-role="missing"] { padding-block: 36px; }
}

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

@media print {
  :root { background: white; color: black; }
  [data-role="masthead"], [data-role="footer"], [data-role="path"], [data-role="skip"], [data-role="illustration"], button { display: none !important; }
  main { width: 100%; }
  a { color: black; text-decoration: none; }
  [data-role="chapter"], [data-role="comparison-panel"], [data-role="worksheet"] { box-shadow: none !important; background: white !important; }
  h2, h3 { break-after: avoid; }
}
