@charset "UTF-8";

:root {
  color-scheme: light;
  --yw-paper: #FFFFFF;
  --yw-ink: #201A22;
  --yw-rose: #D1495B;
  --yw-slate: #33415C;
  --yw-reading: "Rosario", Georgia, serif;
  --yw-display: "DM Serif Display", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; color: var(--yw-ink); background: var(--yw-paper); font: 400 20px/1.65 var(--yw-reading); }
body, button, input { font-family: var(--yw-reading); }
img, svg { max-width: 100%; }
img { display: block; }
figure, blockquote, p { margin: 0; }
a { color: inherit; text-underline-offset: .24em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--yw-slate); outline-offset: 6px; border-radius: 2px; }
::selection { background: var(--yw-slate); color: var(--yw-paper); }
h1, h2, h3 { font-family: var(--yw-display); font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(46px, 5.3vw, 76px); letter-spacing: -.035em; }
h2 { font-size: clamp(34px, 3.8vw, 54px); letter-spacing: -.025em; }
h3 { font-size: 30px; }
p { text-wrap: pretty; }
.yw-frame { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.yw-skip { position: absolute; inset: 12px auto auto 20px; padding: 10px 18px; background: var(--yw-paper); transform: translateY(-180%); z-index: 5; }
.yw-skip:focus { transform: none; }

/* The directory is the masthead: two generous sentences, then About. */
.yw-signature { padding-top: 28px; }
.yw-signature-name { display: table; margin-inline: auto; font: 400 43px/1.15 var(--yw-display); letter-spacing: -.035em; text-decoration: none; }
.yw-signature-name:hover { color: var(--yw-slate); }
.yw-purposes { display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; margin-top: 28px; }
.yw-purpose { display: flex; align-items: flex-start; gap: 18px; padding-block: 4px 14px; border-bottom: 1px solid var(--yw-ink); text-decoration: none; font-size: 21px; line-height: 1.35; }
.yw-purpose span { max-width: 33ch; }
.yw-purpose:hover, .yw-purpose:focus-visible { border-bottom-color: var(--yw-slate); color: var(--yw-slate); }
.yw-purpose i, .yw-purpose svg { width: 25px; height: 25px; flex: 0 0 25px; margin-top: 2px; color: var(--yw-slate); }
.yw-purpose svg { transition: transform 180ms ease; }
.yw-purpose:hover svg { transform: translateY(-3px); }
.yw-about-link { display: table; font-size: 18px; margin-top: 14px; }

/* A photograph high left; the whole sentence settles low right, in open air. */
.yw-opening { margin-top: 46px; }
.yw-home-opening { display: grid; grid-template-columns: 320px minmax(0, 1fr); column-gap: 110px; grid-template-areas: "photo title" "first first" "second second"; }
.yw-home-title { grid-area: title; align-self: end; padding-bottom: 70px; max-width: 730px; line-height: 1.07; }
.yw-home-portrait { grid-area: photo; width: 320px; }
.yw-home-portrait img { width: 320px; height: 420px; object-fit: cover; border-radius: 22px; }
.yw-home-portrait figcaption { font-size: 18px; line-height: 1.35; margin-top: 14px; max-width: 29ch; }
.yw-home-first { grid-area: first; margin-top: 44px; font-size: 24px; line-height: 1.5; }
.yw-home-second { grid-area: second; margin-top: 18px; }
.yw-home-first, .yw-home-second { max-width: none; }
.yw-inner-opening { padding-top: 12px; }
.yw-inner-opening h1 { max-width: 23ch; }
.yw-inner-opening .yw-lead { margin-top: 32px; max-width: 80ch; }
.yw-inner-opening .yw-lead + .yw-lead { margin-top: 16px; }
.yw-breadcrumb { font-size: 18px; margin-bottom: 32px; }
.yw-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; list-style: none; padding: 0; margin: 0; }
.yw-breadcrumb li + li::before { content: "/"; padding-right: 14px; }
.yw-page-mark { display: inline-flex; width: 22px; height: 22px; margin-right: 10px; vertical-align: -.2em; color: var(--yw-slate); }
.yw-page-mark svg { width: 22px; height: 22px; }

/* The entrances have unequal lengths and different starting heights. */
.yw-entrances { display: grid; grid-template-columns: .76fr 1.24fr; gap: 90px; padding-block: 110px 104px; align-items: start; }
.yw-concern-entry { max-width: 35ch; }
.yw-comfort-entry { margin-top: 95px; max-width: 53ch; }
.yw-entry-heading { font-size: 38px; line-height: 1.12; margin-bottom: 22px; max-width: 15ch; }
.yw-entry-icon { display: inline-flex; width: 48px; height: 48px; margin-bottom: 23px; color: var(--yw-slate); }
.yw-entry-icon svg { width: 48px; height: 48px; }
.yw-concern-entry p { max-width: 32ch; }
.yw-comfort-entry p { max-width: 45ch; }

/* One continuous essay; photos and the reader's sentence escape its measure. */
.yw-essay { width: 100%; padding: 72px 72px 110px; border-top: 1px solid var(--yw-slate); }
.yw-chapter { margin-top: 70px; }
.yw-chapter:first-child { margin-top: 0; }
.yw-chapter h2 { max-width: 29ch; margin-bottom: 28px; }
.yw-chapter p { max-width: 72ch; }
.yw-chapter p + p { margin-top: 22px; }
.yw-language { margin: 51px -32px 56px -72px; }
.yw-language-label { font-size: 18px; margin-bottom: 18px; }
.yw-language blockquote { color: var(--yw-rose); font: italic 400 clamp(32px, 4.5vw, 56px)/1.22 var(--yw-reading); letter-spacing: -.025em; }
.yw-word-mark { display: inline-block; position: relative; padding-bottom: 24px; }
.yw-word-mark::after { content: ""; position: absolute; height: 12px; bottom: 1px; left: 1px; right: -8px; background: url("./your-line.svg") no-repeat center/100% 100%; }
.yw-section-photo { width: calc(100% + 144px); max-width: none; margin: 42px -72px 48px; }
.yw-section-photo img { width: 100%; height: auto; aspect-ratio: 7 / 3; object-fit: cover; border-radius: 22px; }
.yw-section-photo figcaption { font-size: 18px; line-height: 1.45; margin: 18px 0 0 auto; max-width: 43ch; padding-right: 24px; }
.yw-source-list { padding: 0; margin: 34px 0 0; list-style: none; max-width: 72ch; }
.yw-source-list li { padding-bottom: 25px; border-bottom: 1px solid var(--yw-slate); }
.yw-source-list li + li { margin-top: 25px; }
.yw-source-list a { font-weight: 600; }
.yw-source-list p { margin-top: 9px; }

/* Slate closes the reading with a broad, useful directory. */
.yw-bottom { color: #FFFFFF; background: var(--yw-slate); padding-block: 72px 35px; }
.yw-bottom > .yw-frame { display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 110px; }
.yw-bottom a:focus-visible { outline-color: #FFFFFF; }
.yw-afterword { max-width: 21ch; font-size: 41px; line-height: 1.22; letter-spacing: -.025em; }
.yw-reading-directory { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; padding: 0; margin: 0; list-style: none; }
.yw-reading-directory a { display: inline-flex; align-items: baseline; gap: 10px; font-size: 19px; text-decoration: none; }
.yw-reading-directory a:hover, .yw-reading-directory a:focus-visible { text-decoration: underline; }
.yw-directory-icon { display: inline-flex; width: 19px; height: 19px; flex: 0 0 19px; align-self: center; }
.yw-directory-icon svg { width: 19px; height: 19px; }
.yw-footer-sentence { grid-column: 1 / -1; max-width: 76ch; font-size: 18px; line-height: 1.55; margin-top: 65px; }
.yw-copyright { grid-column: 1 / -1; margin-top: 18px; font-size: 18px; }
.yw-not-found { min-height: 47vh; padding-block: 70px 100px; }
.yw-not-found p { max-width: 62ch; margin-top: 30px; }

@media (prefers-reduced-motion: no-preference) and (min-width: 761px) {
  .yw-home-portrait img { animation: yw-arrival 850ms cubic-bezier(.2, .65, .3, 1) both; }
  @keyframes yw-arrival { from { transform: translateY(-10px); } to { transform: translateY(0); } }
}

@media (max-width: 1100px) {
  .yw-frame { width: calc(100% - 56px); }
  .yw-purposes { gap: 60px; }
  .yw-home-opening { column-gap: 80px; }
  .yw-home-title { font-size: clamp(48px, 5.8vw, 64px); }
  .yw-entrances { gap: 56px; }
  .yw-bottom > .yw-frame { column-gap: 56px; }
}

@media (max-width: 900px) and (min-width: 761px) {
  .yw-home-opening { grid-template-columns: 280px minmax(0, 1fr); }
  .yw-home-portrait, .yw-home-portrait img { width: 280px; }
  .yw-home-portrait img { height: 368px; }
  .yw-home-title { font-size: 48px; padding-bottom: 62px; }
  .yw-essay { padding-inline: 40px; }
  .yw-section-photo { width: calc(100% + 80px); margin-inline: -40px; }
  .yw-language { margin-left: -40px; }
  .yw-afterword { font-size: 34px; }
}

@media (max-width: 760px) {
  .yw-frame { width: calc(100% - 40px); }
  .yw-signature { padding-top: 24px; }
  .yw-signature-name { font-size: clamp(28px, 8.4vw, 36px); white-space: nowrap; }
  .yw-purposes { display: flex; flex-direction: column; gap: 18px; margin-top: 25px; }
  .yw-purpose { width: 100%; font-size: 20px; gap: 13px; padding-block: 0 12px; }
  .yw-purpose span { max-width: none; }
  .yw-purpose i, .yw-purpose svg { width: 23px; height: 23px; flex-basis: 23px; }
  .yw-about-link { margin-top: 14px; }
  .yw-opening { margin-top: 36px; }
  .yw-home-opening { display: flex; flex-direction: column; gap: 0; }
  .yw-home-title { order: 0; margin: 0; padding: 0; align-self: auto; font-size: clamp(39px, 11.1vw, 58px); line-height: 1.08; }
  h1 { font-size: clamp(39px, 11.1vw, 58px); line-height: 1.08; letter-spacing: -.03em; }
  .yw-home-first { order: 1; margin-top: 25px; font-size: 20px; line-height: 1.65; }
  .yw-home-portrait { order: 2; width: 100%; margin-top: 30px; }
  .yw-home-portrait img { width: 100%; height: 280px; object-position: center 25%; }
  .yw-home-portrait figcaption { max-width: none; margin-top: 12px; }
  .yw-home-second { order: 3; margin-top: 27px; }
  .yw-inner-opening { padding-top: 0; }
  .yw-inner-opening h1 { max-width: 20ch; }
  .yw-inner-opening .yw-lead { margin-top: 26px; }
  .yw-breadcrumb { margin-bottom: 25px; }
  .yw-entrances { grid-template-columns: 1fr; gap: 45px; padding-block: 75px 67px; }
  .yw-concern-entry { max-width: 30ch; }
  .yw-comfort-entry { margin-top: 0; margin-left: 25px; max-width: 40ch; }
  .yw-entry-heading { font-size: 32px; margin-bottom: 18px; }
  .yw-entry-icon { width: 38px; height: 38px; margin-bottom: 18px; }
  .yw-entry-icon svg { width: 38px; height: 38px; }
  .yw-essay { padding: 48px 0 70px; }
  .yw-chapter { margin-top: 48px; }
  .yw-chapter h2 { font-size: 36px; margin-bottom: 23px; }
  .yw-chapter p + p { margin-top: 20px; }
  .yw-section-photo { width: 100%; margin: 32px 0 35px; }
  .yw-section-photo img { aspect-ratio: auto; height: 240px; }
  .yw-section-photo figcaption { padding-right: 0; margin-top: 14px; max-width: 31ch; }
  .yw-language { margin: 36px 0 39px; }
  .yw-language-label { margin-bottom: 14px; }
  .yw-language blockquote { font-size: 32px; }
  .yw-word-mark { padding-bottom: 20px; }
  .yw-bottom { padding-top: 48px; }
  .yw-bottom > .yw-frame { display: block; }
  .yw-afterword { max-width: 22ch; font-size: 32px; line-height: 1.25; margin-bottom: 39px; }
  .yw-reading-directory { gap: 17px 14px; }
  .yw-reading-directory a { font-size: 18px; gap: 8px; }
  .yw-directory-icon, .yw-directory-icon svg { width: 18px; height: 18px; flex-basis: 18px; }
  .yw-footer-sentence { margin-top: 44px; }
}

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