:root {
  --php-paper: #F8F8FA;
  --php-ink: #242A27;
  --php-green: #0A6B51;
  --php-grey: #E0E1E4;
  --php-white: #FFFFFF;
  --php-reading: 680px;
  color-scheme: light;
  font-family: 'Port Lligat Slab', Georgia, serif;
  font-synthesis: none;
  color: var(--php-ink);
  background: var(--php-paper);
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 22px; line-height: 1.55; }
img, svg { max-width: 100%; }
a { color: var(--php-green); text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { text-decoration-thickness: 3px; }
a:focus-visible { outline: 3px solid var(--php-green); outline-offset: 6px; border-radius: 2px; }
::selection { background: var(--php-green); color: var(--php-white); }
p { margin: 0 0 1.15em; }
h1, h2, h3 { font-weight: 400; }
.ph { font-style: normal; }
.php-skip { position: absolute; z-index: 5; left: 20px; top: 10px; padding: 12px 18px; background: var(--php-white); transform: translateY(-180%); }
.php-skip:focus { transform: translateY(0); }
.php-width { width: min(1188px, calc(100% - 96px)); margin-inline: auto; }

/* An open name and a level line, followed by the complete reading syllabus. */
.php-mast { position: relative; padding-top: 18px; padding-bottom: 18px; }
.php-mast::before, .php-mast::after { content: ''; position: absolute; background: var(--php-green); }
.php-mast::before { width: 41%; height: 3px; right: 25px; top: 74px; }
.php-mast::after { width: 9px; height: 9px; border-radius: 50%; right: 0; top: 71px; }
.php-name { display: inline-block; color: var(--php-ink); text-decoration: none; font-size: 64px; line-height: .86; letter-spacing: -1.5px; }
.php-name-line { display: block; }
.php-name-word { display: inline; }
.php-name:hover { color: var(--php-green); }
.php-syllabus { margin-top: 17px; display: grid; grid-template-columns: 1fr 1.05fr 1fr; gap: 36px; }
.php-syllabus-item { min-width: 0; border-top: 1px solid var(--php-grey); padding-top: 9px; }
.php-syllabus-link { display: flex; align-items: center; gap: 12px; min-height: 30px; font-size: 23px; line-height: 1.15; text-decoration: none; }
.php-syllabus-link i { display: inline-block; width: 28px; font-size: 28px; line-height: 1; flex: 0 0 28px; }
.php-syllabus-link span { text-decoration-color: var(--php-green); text-underline-offset: 5px; }
.php-syllabus-link:hover span, .php-syllabus-link[aria-current='page'] span { text-decoration-line: underline; text-decoration-thickness: 3px; }
.php-syllabus-item p { font-size: 16px; line-height: 1.3; margin: 5px 0 0 40px; }

/* Photograph and type have separate ground. The band is the whole measure. */
.php-opening { background: var(--php-white); padding: 17px 0 18px; }
.php-opening h1 { font-family: 'Borel', cursive; font-size: clamp(35px, 3.45vw, 49px); line-height: 1.42; margin: 0 auto; padding-top: 6px; text-align: center; max-width: 1160px; }
.php-h1-line { display: block; }
.php-h1-line:last-child { color: var(--php-green); }
.php-owner-lead { max-width: 820px; text-align: center; margin: 2px auto 20px; font-size: 21px; line-height: 1.4; }
.php-photo { margin: 0; }
.php-photo img { display: block; width: 100%; object-fit: cover; object-position: center 68%; background: var(--php-grey); color: var(--php-ink); border-radius: 8px; }
.php-photo-home img { aspect-ratio: 3 / 1; height: auto; }
.php-photo figcaption { width: fit-content; max-width: 70%; font-size: 17px; line-height: 1.35; margin: 12px 0 0 auto; }
.php-speech { display: block; width: 78%; height: 38px; margin: 8px auto 0; }

/* Four white faces: outsized words, different pauses, answers at the lower centre. */
.php-below { padding-top: 82px; }
.php-question-face { position: relative; background: var(--php-white); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 30px 48px 36px; }
.php-question-face h2 { width: min(1188px, 100%); font-family: 'Borel', cursive; color: var(--php-green); font-size: clamp(100px, 12.2vw, 176px); line-height: 1.45; margin: 0; padding-left: 24px; }
.php-question-face p { max-width: var(--php-reading); width: 100%; margin: 0; font-size: 29px; line-height: 1.35; }
.php-face-marker { position: absolute; top: 80px; right: max(8%, calc((100% - 1110px) / 2)); font-size: 68px; color: var(--php-green); }
.php-face-what .php-question-face { min-height: 372px; }
.php-face-which .php-question-face { min-height: 474px; }
.php-face-how .php-question-face { min-height: 410px; }
.php-face-who .php-question-face { min-height: 444px; }
.php-explanation { max-width: var(--php-reading); margin: 0 auto; padding: 34px 0 88px; }
.php-explanation p:last-child { margin: 27px 0 0; font-size: 24px; line-height: 1.45; }
.php-green-thought { position: relative; background: var(--php-green); color: var(--php-white); width: min(1188px, calc(100% - 96px)); margin: 12px auto 100px; padding: 70px 88px 78px 190px; }
.php-green-thought > i { position: absolute; left: 60px; top: 76px; font-size: 72px; }
.php-green-thought p { font-size: clamp(38px, 4vw, 58px); line-height: 1.16; max-width: 820px; margin: 0; }
.php-green-thought small { display: block; font-size: 22px; line-height: 1.4; max-width: 580px; margin-top: 28px; }
.php-green-thought::after { content: ''; position: absolute; width: 68px; height: 68px; border-radius: 50%; right: -22px; bottom: -24px; background: var(--php-green); }

/* A smaller, offset photo band and a wide margin for each chapter heading. */
.php-inner-opening { padding-top: 34px; padding-bottom: 20px; }
.php-inner-opening h1 { max-width: 1100px; font-size: clamp(34px, 3.7vw, 52px); }
.php-inner-opening .php-owner-lead { max-width: 760px; margin-top: 16px; margin-bottom: 32px; }
.php-inner-photo { width: 91%; margin-left: auto; }
.php-inner-photo img { aspect-ratio: 3.8 / 1; height: auto; }
.php-inner-photo img[src$="/talking-at-a-distance.webp"] { aspect-ratio: 5 / 2; }
.php-inner-photo figcaption { margin-left: 0; max-width: 85%; }
.php-inner-opening .php-speech { margin-left: 0; width: 65%; }
.php-reading { width: min(1120px, calc(100% - 96px)); margin: 0 auto; padding: 74px 0 24px; }
.php-reading-section { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, var(--php-reading)); justify-content: space-between; gap: 70px; margin-bottom: 86px; }
.php-reading h2 { position: sticky; top: 34px; align-self: start; font-size: 34px; line-height: 1.16; margin: 0; padding-top: 7px; }
.php-reading h2 i { display: block; width: fit-content; color: var(--php-green); font-size: 38px; line-height: 1; margin-bottom: 21px; }
.php-reading h2::after { content: ''; display: block; height: 3px; width: 68px; margin-top: 25px; background: var(--php-green); }
.php-section-copy, .php-source-list { min-width: 0; }
.php-reading section p:last-child { margin-bottom: 0; }
.php-reading .php-source-list { margin: 0; padding: 0; list-style: none; }
.php-source-list li { padding: 25px 0 29px; border-bottom: 1px solid var(--php-grey); }
.php-source-list li:first-child { padding-top: 0; }
.php-source-list h3 { font-size: 29px; line-height: 1.2; margin: 0 0 12px; }
.php-source-list h3 a { text-decoration-thickness: 1px; }
.php-source-list h3 a:hover { text-decoration-thickness: 3px; }
.php-source-list p { margin: 0; font-size: 21px; }
.php-source-list .php-source-publisher { margin-top: 10px; font-size: 17px; }

.php-next-reading { background: var(--php-white); padding: 44px 0 48px; }
.php-next-reading-inner { position: relative; width: min(var(--php-reading), calc(100% - 48px)); margin: auto; padding-left: 30px; }
.php-next-reading-inner::before { content: ''; position: absolute; left: 0; top: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--php-green); }
.php-next-reading p { margin-bottom: 10px; }
.php-next-reading a { font-size: 30px; line-height: 1.2; }
.php-colophon { padding: 52px 0 32px; }
.php-footer-top { display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px; align-items: start; }
.php-footer-voice { font-size: 24px; line-height: 1.4; max-width: 530px; margin: 0; }
.php-footer-links { display: flex; justify-content: flex-end; gap: 25px; flex-wrap: wrap; font-size: 20px; }
.php-footer-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.php-footer-links i { font-size: 24px; }
.php-footer-end { font-size: 16px; margin: 44px 0 0; }
.php-lost { padding-block: 76px 100px; }
.php-lost h1 { max-width: 900px; }
.php-lost-links { margin: 40px auto 0; width: min(680px, calc(100% - 48px)); }

@media (max-width: 1050px) {
  .php-width { width: calc(100% - 56px); }
  .php-mast::before { width: 32%; }
  .php-name { font-size: 60px; }
  .php-syllabus { gap: 20px; }
  .php-syllabus-link { font-size: 21px; gap: 9px; }
  .php-syllabus-item p { margin-left: 0; }
  .php-question-face h2 { font-size: 140px; padding-left: 0; }
  .php-face-marker { right: 7%; }
  .php-explanation { width: min(680px, calc(100% - 64px)); }
  .php-green-thought { width: calc(100% - 80px); padding: 58px 50px 58px 135px; }
  .php-green-thought > i { left: 38px; top: 64px; font-size: 56px; }
  .php-reading { width: calc(100% - 64px); }
  .php-reading-section { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 40px; }
  .php-reading h2 { font-size: 30px; }
  .php-footer-top { gap: 40px; }
  .php-footer-links { justify-content: flex-start; gap: 16px; }
}

@media (max-width: 700px) {
  .php-reading { width: min(620px, calc(100% - 48px)); padding-top: 48px; }
  .php-reading-section { display: block; margin-bottom: 54px; }
  .php-reading h2 { position: static; max-width: 540px; margin-bottom: 25px; font-size: 34px; padding-top: 0; }
  .php-reading h2 i { display: inline-block; margin: 0 12px 0 0; font-size: 28px; vertical-align: middle; }
  .php-reading h2::after { width: 54px; margin-top: 19px; }
  .php-footer-top { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 600px) {
  body { font-size: 20px; line-height: 1.5; }
  .php-width { width: calc(100% - 40px); }
  .php-mast { padding-top: 18px; padding-bottom: 16px; }
  .php-mast::before { width: 28%; right: 20px; top: 77px; }
  .php-mast::after { width: 8px; height: 8px; top: 74px; }
  .php-name { font-size: 47px; line-height: .86; letter-spacing: -.5px; }
  .php-name-word { display: block; }
  .php-syllabus { grid-template-columns: 1fr; gap: 9px; margin-top: 17px; }
  .php-syllabus-item { padding-top: 7px; }
  .php-syllabus-link { min-height: 24px; font-size: 20px; gap: 9px; }
  .php-syllabus-link i { width: 23px; font-size: 23px; flex-basis: 23px; }
  .php-syllabus-item p { margin: 2px 0 0 32px; font-size: 16px; line-height: 1.2; }
  .php-opening { padding-top: 20px; padding-bottom: 14px; }
  .php-opening h1 { font-size: 29px; line-height: 1.5; padding-top: 3px; }
  .php-h1-line { display: inline; }
  .php-h1-line + .php-h1-line::before { content: ' '; }
  .php-owner-lead { font-size: 18px; line-height: 1.4; text-align: left; margin: 6px 0 20px; }
  .php-photo-home img { aspect-ratio: 16 / 9; object-position: 49% 68%; }
  .php-photo figcaption { font-size: 16px; line-height: 1.35; max-width: 94%; margin-top: 10px; }
  .php-speech { width: 67%; height: 23px; margin-top: 10px; }
  .php-below { padding-top: 38px; }
  .php-question-face { padding: 25px 24px 30px; }
  .php-question-face h2 { font-size: clamp(72px, 22.5vw, 88px); line-height: 1.6; }
  .php-question-face p { font-size: 25px; line-height: 1.35; }
  .php-face-marker { top: 43px; right: 28px; font-size: 30px; }
  .php-face-what .php-question-face { min-height: 318px; }
  .php-face-which .php-question-face { min-height: 390px; }
  .php-face-how .php-question-face { min-height: 336px; }
  .php-face-who .php-question-face { min-height: 362px; }
  .php-explanation { width: calc(100% - 48px); padding: 27px 0 54px; }
  .php-explanation p:last-child { font-size: 22px; margin-top: 24px; }
  .php-green-thought { width: calc(100% - 56px); margin: 0 auto 60px; padding: 32px 25px 36px; }
  .php-green-thought > i { position: static; display: block; font-size: 39px; line-height: 1; margin-bottom: 22px; }
  .php-green-thought p { font-size: 37px; line-height: 1.15; }
  .php-green-thought small { font-size: 20px; margin-top: 24px; }
  .php-green-thought::after { width: 30px; height: 30px; right: -8px; bottom: -12px; }
  .php-inner-opening { padding-top: 27px; }
  .php-inner-opening h1 { font-size: 31px; line-height: 1.55; }
  .php-inner-opening .php-owner-lead { margin-top: 13px; margin-bottom: 27px; font-size: 20px; }
  .php-inner-photo { width: 100%; }
  .php-inner-photo img, .php-inner-photo img[src$="/talking-at-a-distance.webp"] { aspect-ratio: 16 / 9; object-position: center 65%; }
  .php-inner-photo img[src$="/sitting-with-a-book.webp"] { aspect-ratio: 5 / 2; }
  .php-inner-opening .php-speech { width: 67%; margin-inline: auto; }
  .php-reading { padding-top: 41px; padding-bottom: 14px; }
  .php-reading h2 { font-size: 31px; }
  .php-source-list h3 { font-size: 26px; }
  .php-source-list p { font-size: 20px; }
  .php-next-reading { padding-block: 30px 36px; }
  .php-next-reading-inner { padding-left: 23px; }
  .php-next-reading a { font-size: 27px; }
  .php-colophon { padding-top: 36px; }
  .php-footer-voice { font-size: 22px; }
  .php-footer-links { gap: 20px; font-size: 20px; }
  .php-footer-end { margin-top: 32px; }
  .php-lost { padding-block: 46px 68px; }
}

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