@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ivory: #FAF8F1;
  --charcoal: #242321;
  --vermilion: #D93827;
  --blue: #245C7A;
  --gray: #B9BDC1;
  --slate: #6C7C85;
  --heading-font: "Newsreader", Georgia, serif;
  --body-font: "Source Serif 4", Georgia, serif;
  --label-font: "Source Sans 3", sans-serif;
  --reading-width: 680px;
  --body-size: 22px;
  --body-leading: 1.6;
}

:root[data-palette="coastal"] { --ivory: #EFF3F3; --charcoal: #25313A; --vermilion: #C83D31; --blue: #315E76; --gray: #B9C3C7; --slate: #627784; }
:root[data-palette="quiet"] { --ivory: #F4F0E8; --charcoal: #34312E; --vermilion: #AD4338; --blue: #536879; --gray: #C2BEB6; --slate: #746F68; }

:root[data-type="airier"] { --heading-font: "Cormorant Garamond", Georgia, serif; }
:root[data-type="unified"] { --heading-font: "Source Serif 4", Georgia, serif; }

* { box-sizing: border-box; }
html { background: var(--ivory); scroll-padding-top: 32px; }
body { margin: 0; color: var(--charcoal); font-family: var(--body-font); -webkit-font-smoothing: antialiased; }
::selection { background: var(--vermilion); color: var(--ivory); }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
.page { max-width: 1120px; margin: 0 auto; padding: 0 48px; }
.skip-link { position: absolute; top: 12px; left: 16px; padding: 10px 14px; background: var(--ivory); z-index: 2; transform: translateY(-200%); font-family: var(--label-font); }
.skip-link:focus { transform: translateY(0); }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 42px 0 25px; }
.site-name { font-family: var(--heading-font); font-size: 32px; font-weight: 500; letter-spacing: -.035em; color: var(--charcoal); text-decoration: none; }
.name-period { color: var(--vermilion); }
.site-header nav { display: flex; gap: 29px; font: 16px var(--label-font); }
.site-header nav a { color: var(--charcoal); text-decoration: none; padding: 4px 0; }
.site-header nav a[aria-current], .site-header nav a:hover { text-decoration: underline; text-decoration-color: var(--vermilion); text-underline-offset: .4em; }
.palette-rule { height: 2px; background: var(--blue); }

.essay-header { max-width: var(--reading-width); margin: 78px auto 0; }
.eyebrow { margin: 0 0 25px; color: var(--vermilion); font: 600 13px var(--label-font); text-transform: uppercase; letter-spacing: .16em; }
.eyebrow span { margin: 0 .5em; }
h1, h2, p, figure { margin: 0; }
h1 { font: 400 clamp(56px, 6.7vw, 80px)/.99 var(--heading-font); letter-spacing: -.035em; }
.deck { max-width: 620px; margin-top: 26px; font-size: 25px; line-height: 1.4; }
.byline { margin-top: 22px; font: 14px var(--label-font); color: var(--slate); }
.hero { max-width: var(--reading-width); margin: 34px auto 37px; }
.hero img { display: block; width: 100%; height: auto; max-height: 435px; object-fit: contain; mix-blend-mode: multiply; }
.essay-body { max-width: var(--reading-width); margin: 0 auto; font-size: var(--body-size); line-height: var(--body-leading); }
.essay-body p + p { margin-top: 22px; }
.essay-section + .essay-section { margin-top: 60px; }
.essay-section h2 { margin-bottom: 24px; font: 500 36px/1.12 var(--heading-font); letter-spacing: -.018em; max-width: 24ch; }
.section-opening { display: flow-root; }
/* The float inherits body metrics. Its height is precisely two text lines,
   independent of the font used inside it; the third line returns beneath the letter. */
.initial { float: left; display: grid; align-items: center; height: 3.2em; height: 2lh; margin: 0 .4em 0 0; color: var(--vermilion); }
.initial > span { display: block; font-family: var(--body-font); font-size: 3.4em; line-height: .75; font-weight: 400; }
.study-note { margin-top: 49px !important; font: 12px/1.5 var(--label-font); letter-spacing: .04em; color: var(--slate); }

.type-study { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px 30px; border-top: 1px solid var(--gray); margin: 79px auto 0; padding-top: 26px; max-width: 850px; font-family: var(--label-font); }
.color-study { margin-top: 64px; }
.color-study .type-controls button { display: inline-flex; gap: 8px; align-items: center; }
.color-study .swatch { width: 10px; height: 10px; border-radius: 50%; background: var(--swatch); border: 1px solid rgba(0,0,0,.15); }
.type-study h2 { font-size: 17px; font-weight: 600; }
.type-study p { font-size: 14px; line-height: 1.5; margin-top: 4px; color: var(--slate); }
.type-controls { display: flex; flex-wrap: wrap; gap: 7px; }
.type-controls button { padding: 9px 14px; background: transparent; color: var(--charcoal); border: 1px solid var(--gray); border-radius: 0; font: 14px var(--label-font); cursor: pointer; }
.type-controls button:hover { border-color: var(--blue); }
.type-controls button[aria-pressed="true"] { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
.type-study .type-description { grid-column: 1 / -1; margin-top: 0; font-size: 12px; }
.more-about { max-width: 850px; margin: 55px auto 70px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.more-about h2 { font: 500 27px var(--heading-font); margin-bottom: 12px; }
.more-about p { font-size: 17px; line-height: 1.6; }
.site-footer { border-top: 1px solid var(--gray); padding: 23px 0 33px; display: flex; justify-content: space-between; gap: 20px; font: 13px var(--label-font); color: var(--slate); }

@media (max-width: 700px) {
  :root { --body-size: 19px; }
  .page { padding: 0 24px; }
  .site-header { padding: 27px 0 23px; flex-direction: column; align-items: flex-start; gap: 18px; }
  .site-name { font-size: 30px; }
  .site-header nav { gap: 27px; font-size: 15px; }
  .essay-header { margin-top: 46px; }
  .eyebrow { font-size: 11px; margin-bottom: 22px; }
  h1 { font-size: 42px; line-height: 1.04; }
  .deck { font-size: 21px; margin-top: 20px; }
  .byline { font-size: 13px; margin-top: 19px; }
  .hero { margin-top: 29px; margin-bottom: 29px; }
  .essay-body p + p { margin-top: 20px; }
  .essay-section + .essay-section { margin-top: 42px; }
  .essay-section h2 { font-size: 31px; margin-bottom: 21px; }
  .study-note { margin-top: 36px !important; }
  .type-study { grid-template-columns: 1fr; margin-top: 56px; gap: 17px; }
  .more-about { grid-template-columns: 1fr; gap: 32px; margin-top: 41px; margin-bottom: 45px; }
}

@media (prefers-reduced-motion: no-preference) {
  a, .type-controls button { transition: border-color 120ms ease; }
}
