:root {
  color-scheme: light;
  --paper: #fcfcf9;
  --ink: #1c211d;
  --muted: #4a514b;
  --rule: #cdd1c8;
  --blue: #2234ae;
  --serif: Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, fieldset { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--blue); }
::selection { color: #fff; background: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
[id] { scroll-margin-block: 1.5rem; }

.wrap {
  width: min(88.8%, 84rem);
  margin-inline: auto;
}

.visually-hidden, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
}

.skip:focus {
  position: absolute;
  top: .7rem;
  left: .7rem;
  z-index: 1;
  padding: .8rem 1rem;
  background: var(--paper);
}

.masthead, .footer, .masthead-nav, .footer nav, .wordmark {
  display: flex;
  align-items: center;
}

.masthead {
  justify-content: space-between;
  min-height: 5.35rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  gap: .42rem;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 680;
  line-height: 1;
  letter-spacing: -.065em;
  text-decoration: none;
}

.wordmark img { width: 1.77rem; height: auto; }
.masthead-nav, .footer nav { gap: clamp(1.2rem, 3vw, 2.7rem); }
.masthead-nav a, .footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: .96rem;
  font-weight: 490;
  text-decoration: none;
}

.masthead-nav a[aria-current], .footer a[aria-current], .masthead-nav a:hover, .footer a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .38em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(2.4rem, 5vw, 5.5rem);
  padding-block: clamp(3.1rem, 5.65vw, 5.55rem) clamp(2.7rem, 4.65vw, 4.8rem);
}

.hero-copy { padding-bottom: 2.25rem; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(5.15rem, 8.15vw, 8.95rem);
  line-height: .96;
  letter-spacing: -.071em;
  margin-left: -.055em;
}

.hero h1 em { font-weight: 400; letter-spacing: -.077em; }
.hero-copy p, .doc-heading > p:not(.updated) {
  color: var(--muted);
  font-size: clamp(1.06rem, 1.32vw, 1.28rem);
  line-height: 1.52;
  letter-spacing: -.022em;
}

.hero-copy p { margin-top: 1.7rem; max-width: 24rem; text-wrap: pretty; }
.text-link {
  color: var(--blue);
  font-weight: 550;
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
}

.text-link:hover { text-decoration-thickness: 2px; }
.hero-copy > a { display: inline-block; padding-block: .65rem; margin-top: .9rem; }
.ink-study { position: relative; min-width: 0; padding: 0; border: 0; }
.flow-radio { right: 4.2rem; bottom: 1.4rem; }
.study-paper {
  width: 100%;
  aspect-ratio: 25 / 18;
  background: #f2f2ea url('/assets/ink-50.webp') center / 100% 100% no-repeat;
}

#flow-0:checked ~ .study-paper { background-image: url('/assets/ink-0.webp'); }
#flow-100:checked ~ .study-paper { background-image: url('/assets/ink-100.webp'); }
.study-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  padding-top: .6rem;
  color: var(--muted);
  font-size: .875rem;
}

.study-title { font-family: var(--serif); font-size: 1.05rem; font-style: italic; }
.flow-switch { display: inline-flex; gap: .1rem; align-items: center; }
.flow-switch label {
  display: grid;
  position: relative;
  min-width: 2.72rem;
  min-height: 2.75rem;
  place-items: center;
  padding-inline: .44rem;
  isolation: isolate;
  color: var(--muted);
  cursor: pointer;
  font-size: .86rem;
  font-variant-numeric: tabular-nums;
}

.flow-switch label::before {
  position: absolute;
  z-index: -1;
  inset: .51rem 0;
  border-radius: 2rem;
  content: "";
}

.flow-switch label:hover::before { background: #e7e8e2; }
#flow-0:checked ~ .study-caption [for="flow-0"],
#flow-50:checked ~ .study-caption [for="flow-50"],
#flow-100:checked ~ .study-caption [for="flow-100"] { color: white; }
#flow-0:checked ~ .study-caption [for="flow-0"]::before,
#flow-50:checked ~ .study-caption [for="flow-50"]::before,
#flow-100:checked ~ .study-caption [for="flow-100"]::before { background: var(--blue); }
#flow-0:focus-visible ~ .study-caption [for="flow-0"]::before,
#flow-50:focus-visible ~ .study-caption [for="flow-50"]::before,
#flow-100:focus-visible ~ .study-caption [for="flow-100"]::before {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5.5rem);
  border-top: 1px solid var(--rule);
  padding-block: clamp(1.8rem, 3.3vw, 3.2rem) clamp(3rem, 5.8vw, 5.4rem);
}

.features h2, .reading h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 2.6vw, 2.55rem);
  line-height: 1.16;
  letter-spacing: -.05em;
}

.features p, .contact p, .reading p {
  margin-top: .7rem;
  color: var(--muted);
  line-height: 1.57;
  letter-spacing: -.014em;
}

.features p { max-width: 29ch; text-wrap: pretty; }
.footer {
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.3rem 2rem;
  border-top: 1px solid var(--rule);
}

.footer a { color: var(--muted); font-size: .9rem; }
.footer .footer-brand { color: var(--ink); font-weight: 600; letter-spacing: -.035em; }
.doc-heading {
  padding-block: clamp(3.4rem, 6vw, 6rem) clamp(2.4rem, 4.4vw, 4.5rem);
  border-bottom: 1px solid var(--rule);
}

.doc-heading h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.9rem, 7.45vw, 7.6rem);
  line-height: 1;
  letter-spacing: -.067em;
  margin-left: -.045em;
}

.doc-heading p { max-width: 57ch; margin-top: 1.2rem; text-wrap: pretty; }
.updated { color: var(--muted); font-size: .875rem; }
.document-grid {
  display: grid;
  grid-template-columns: minmax(13rem, .75fr) minmax(0, 1.35fr);
  gap: clamp(3rem, 7.5vw, 9.5rem);
  padding-top: clamp(2.7rem, 4.1vw, 4.2rem);
  padding-bottom: clamp(4rem, 6.5vw, 7rem);
}

.contents, .contact { align-self: start; max-width: 22rem; }
.contents h2, .contact h2 {
  font-family: var(--sans);
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -.03em;
}

.contents ul { list-style: none; margin: .8rem 0 0; padding: 0; }
.contents li + li { margin-top: .15rem; }
.contents a { display: inline-block; color: var(--muted); padding-block: .45rem; }
.contents a:hover { color: var(--blue); }
.contact > a { display: inline-block; margin-block: .75rem .4rem; overflow-wrap: anywhere; }
.contact p { max-width: 31ch; font-size: 1rem; }
.reading { max-width: 43.5rem; }
.reading section + section { margin-top: 2.3rem; padding-top: 2.1rem; border-top: 1px solid var(--rule); }
.reading p { max-width: 66ch; font-size: clamp(1rem, 1.18vw, 1.12rem); }
.reading p a { color: var(--ink); overflow-wrap: anywhere; }
.reading p a:hover { color: var(--blue); }
.guide > h2 { margin-bottom: 1.75rem; }
.guide h3 { font-weight: 620; font-size: 1.2rem; line-height: 1.35; letter-spacing: -.03em; }
.guide section + section { margin-top: 1.55rem; padding-top: 1.55rem; }

@media (min-width: 72rem) {
  .contents { position: sticky; top: 2rem; }
}

@media (max-width: 49rem) {
  .wrap { width: min(90%, 39rem); }
  .masthead { min-height: 4.55rem; }
  .wordmark { font-size: 1.28rem; }
  .wordmark img { width: 1.52rem; }
  .masthead-nav { gap: 1.1rem; }
  .masthead-nav a { font-size: .93rem; }
  .hero { display: block; padding-block: 2.7rem 2.3rem; }
  .hero-copy { padding-bottom: 1.8rem; }
  .hero h1 { font-size: clamp(4.5rem, 11vw, 6.3rem); }
  .hero-copy p { max-width: 34ch; margin-top: 1.05rem; }
  .hero-copy > a { margin-top: .5rem; }
  .features { gap: 1.4rem; }
  .features h2 { font-size: 1.65rem; }
  .document-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contents, .contact { max-width: none; border-bottom: 1px solid var(--rule); padding-bottom: 2rem; }
  .contact p { max-width: 47ch; }
  .contents ul { display: flex; flex-wrap: wrap; gap: .1rem 1.25rem; }
  .contents li + li { margin-top: 0; }
}

@media (max-width: 33rem) {
  .features { grid-template-columns: 1fr; padding-block: .4rem 1.4rem; gap: 0; }
  .features > div { padding: 1.15rem 0; }
  .features > div + div { border-top: 1px solid var(--rule); }
  .features p { max-width: 38ch; margin-top: .38rem; }
  .footer { align-items: flex-start; gap: .5rem; padding-block: .7rem 1.4rem; }
  .footer nav { gap: .8rem; }
  .footer a { font-size: .86rem; }
  .doc-heading h1 { font-size: clamp(3.15rem, 13vw, 4.05rem); }
}

@media (forced-colors: active) {
  .flow-switch label::before { border: 1px solid ButtonText; }
  #flow-0:checked ~ .study-caption [for="flow-0"],
  #flow-50:checked ~ .study-caption [for="flow-50"],
  #flow-100:checked ~ .study-caption [for="flow-100"] { font-weight: 800; text-decoration: underline; }
}
