:root {
  --kraft: #d9c4a4;
  --ink: #2b2118;
  --chestnut: #7a3e1d;
  --paper: #f3ebdd;
  --text: "Kumbh Sans", Arial, sans-serif;
  --display: "Italiana", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 36px; }
body { margin: 0; background: var(--kraft); color: var(--ink); font-family: var(--text); font-size: 18px; font-weight: 400; line-height: 1.8; }
img { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 5px; transition: background-color 180ms ease, text-decoration-thickness 180ms ease; }
a:hover { background-color: var(--paper); text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--chestnut); outline-offset: 5px; background: var(--paper); }
::selection { background: var(--paper); color: var(--chestnut); }
strong { font-weight: 600; }
p { margin: 0 0 1.2em; }
h1, h2, h3 { color: var(--chestnut); font-family: var(--display); font-weight: 400; }
h1 { margin: 0; font-size: clamp(66px, 6.15vw, 92px); line-height: 1.03; letter-spacing: -0.025em; text-wrap: balance; }
h2 { margin: 0 0 32px; font-size: clamp(44px, 4.1vw, 60px); line-height: 1.08; text-wrap: balance; }
h3 { margin: 0 0 24px; font-size: 44px; line-height: 1.12; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.3em; }
li { padding-left: 0.3em; margin-bottom: 0.8em; }
svg { flex: 0 0 auto; }
.hlp-icon { display: inline-block; width: 24px; height: 24px; vertical-align: middle; flex: 0 0 auto; }
.hlp-skip { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 10px 18px; background: var(--paper); }
.hlp-skip:focus { top: 12px; }
.hlp-width { width: min(1312px, calc(100% - 128px)); margin-inline: auto; }

/* Two substantial reading columns, then the complete name beneath. */
.hlp-mast { padding-top: 24px; }
.hlp-mast-inner { display: grid; grid-template-columns: 110px 1fr 1fr; column-gap: 42px; border-bottom: 1px solid var(--chestnut); }
.hlp-purpose { grid-column: 2 / 4; grid-row: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.hlp-purpose a { display: grid; grid-template-columns: 28px 1fr 24px; align-items: start; gap: 18px; min-height: 112px; padding: 18px 0 22px; border-top: 3px solid var(--chestnut); font-size: 24px; font-weight: 500; line-height: 1.4; text-decoration: none; }
.hlp-purpose a span { max-width: 360px; }
.hlp-purpose .hlp-purpose-mark { width: 28px; height: 28px; margin-top: 3px; }
.hlp-purpose .hlp-purpose-arrow { margin-top: 4px; transition: transform 180ms ease; }
.hlp-purpose a:hover .hlp-purpose-arrow, .hlp-purpose a:focus-visible .hlp-purpose-arrow { transform: translate(3px, -3px); }
.hlp-purpose a[aria-current="page"] { border-top-width: 5px; }
.hlp-name { grid-column: 2 / 4; grid-row: 2; justify-self: start; color: var(--chestnut); font-family: var(--display); font-size: clamp(64px, 8.1vw, 118px); line-height: 1.06; margin-top: 8px; padding-bottom: 20px; white-space: nowrap; letter-spacing: -0.035em; text-decoration: none; }
.hlp-about { grid-column: 1; grid-row: 2; align-self: end; justify-self: start; margin-bottom: 34px; }

/* A real matte print on kraft, with no overlay or rotation. */
.hlp-opening { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 520px; grid-template-rows: auto 1fr; column-gap: 88px; row-gap: 28px; padding-top: 56px; }
.hlp-opening h1 { grid-column: 1; grid-row: 1; max-width: 690px; }
.hlp-owner { grid-column: 1; grid-row: 2; max-width: 540px; font-size: 19px; line-height: 1.75; }
.hlp-owner p:last-child { margin-bottom: 0; }
.hlp-print { grid-column: 2; grid-row: 1 / 3; width: 520px; height: 360px; margin: 8px 0 0; border: 14px solid #fff; border-radius: 20px; overflow: hidden; background: var(--paper); box-shadow: 0 24px 34px -24px rgba(43, 33, 24, 0.5), 0 5px 10px rgba(43, 33, 24, 0.12); animation: hlp-settle 900ms ease-out both; }
.hlp-print img { width: 100%; height: 100%; object-fit: cover; font-size: 18px; line-height: 1.5; }
@keyframes hlp-settle { from { transform: translateY(10px); } to { transform: translateY(0); } }

.hlp-breadcrumb { margin-top: 34px; margin-bottom: 32px; font-size: 18px; }
.hlp-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 9px 18px; list-style: none; padding: 0; margin: 0; }
.hlp-breadcrumb li { padding: 0; margin: 0; }
.hlp-breadcrumb li + li::before { content: "/"; color: var(--chestnut); padding-right: 18px; }
.hlp-inner-opening { max-width: 1060px; }
.hlp-inner-opening h1 { max-width: 1060px; }
.hlp-inner-opening .hlp-owner { margin-top: 32px; }

/* The long account begins on the opposite edge. Strands only end sections. */
.hlp-chapter { position: relative; margin-top: 112px; padding-bottom: 40px; }
.hlp-section-heading { position: relative; min-width: 0; }
.hlp-section-mark { display: block; width: 30px; height: 30px; color: var(--chestnut); margin-bottom: 22px; }
.hlp-chapter::after { content: ""; display: block; width: 98px; height: 22px; background: url("./strand-end.svg") center / contain no-repeat; margin-top: 40px; }
.hlp-prose { min-width: 0; }
.hlp-prose p:last-child { margin-bottom: 0; }
.hlp-opposite { width: min(735px, 100%); margin-left: auto; }
.hlp-opposite > .hlp-section-heading > .hlp-section-mark { position: absolute; left: -60px; top: 8px; margin: 0; }
.hlp-home .hlp-opposite[aria-labelledby="hair-question"] { margin-top: 132px; }

/* Each band escapes its own section's measure; its caption hangs in the gutter. */
.hlp-photo-band { position: relative; margin: 42px -32px 38px max(-360px, calc(800px - 100vw)); }
.hlp-photo-band img { width: 100%; height: 330px; object-fit: cover; background: var(--paper); }
.hlp-photo-band figcaption { position: absolute; top: calc(100% + 24px); left: 0; width: 294px; padding-left: 18px; border-left: 2px solid var(--chestnut); font-size: 18px; line-height: 1.65; }

/* A broad evidence sheet, offset from the reading column rather than boxed cards. */
.hlp-paper { position: relative; display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 42px 64px; background: var(--paper); padding: 64px 72px 42px; margin-left: -32px; margin-right: 64px; border-top: 3px solid var(--chestnut); box-shadow: 0 28px 36px -36px rgba(43, 33, 24, 0.35); }
.hlp-paper > .hlp-section-heading { grid-column: 1; }
.hlp-paper > .hlp-section-heading h2 { margin-bottom: 0; }
.hlp-paper > .hlp-prose { grid-column: 2; padding-top: 4px; }
.hlp-paper::after { grid-column: 1 / -1; margin-top: 6px; }
.hlp-evidence-columns { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; border-top: 1px solid var(--chestnut); padding-top: 40px; }
.hlp-evidence-column { display: grid; grid-template-columns: 28px 1fr; align-content: start; gap: 0 18px; }
.hlp-column-mark { width: 28px; height: 28px; color: var(--chestnut); margin-top: 7px; }
.hlp-evidence-column h3 { grid-column: 2; }
.hlp-evidence-column p { grid-column: 1 / -1; }
.hlp-evidence-column + .hlp-evidence-column { border-left: 1px solid var(--chestnut); padding-left: 48px; }
.hlp-evidence-column p:last-child { margin-bottom: 0; }
.hlp-reading-rows { grid-column: 1 / -1; counter-reset: hlp-detail; }
.hlp-reading-row { display: grid; grid-template-columns: 58px 230px minmax(0, 1fr); gap: 30px; padding: 30px 0; border-top: 1px solid var(--chestnut); counter-increment: hlp-detail; }
.hlp-reading-row::before { content: counter(hlp-detail, decimal-leading-zero); font-family: var(--display); font-size: 60px; line-height: 1; color: var(--chestnut); }
.hlp-reading-row h3 { font-family: var(--text); font-size: 19px; line-height: 1.6; font-weight: 600; color: var(--ink); margin: 0; }
.hlp-reading-row p { margin: 0; }

/* Open source entries span the whole sheet, with room for the note beside each title. */
.hlp-reference-chapter { width: 100%; }
.hlp-reference-chapter > .hlp-section-heading, .hlp-reference-chapter > .hlp-prose { max-width: 735px; margin-left: auto; }
.hlp-source-list { margin-top: 44px; }
.hlp-source-entry { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 88px; padding-block: 32px; border-top: 1px solid var(--chestnut); }
.hlp-source-entry h3 { font-family: var(--text); color: var(--ink); font-size: 23px; line-height: 1.5; font-weight: 500; margin: 0; max-width: 490px; }
.hlp-source-entry h3 .hlp-icon { width: 20px; height: 20px; margin-left: 12px; vertical-align: baseline; }
.hlp-source-entry p { margin: 0; }
.hlp-source-entry a { overflow-wrap: anywhere; }

/* A practical base, with its heading held alongside the reader's next steps. */
.hlp-base { background: var(--paper); margin-top: 104px; padding: 80px 0 48px; border-top: 2px solid var(--chestnut); }
.hlp-base-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: start; gap: 104px; }
.hlp-base-inner > .hlp-section-heading { position: sticky; top: 36px; }
.hlp-base-inner h2 { max-width: 490px; font-size: clamp(48px, 4.45vw, 66px); }
.hlp-base-copy { max-width: 650px; }
.hlp-base-copy > .hlp-prose > p:first-child { font-size: 23px; line-height: 1.65; }
.hlp-base::after { content: ""; display: block; width: 98px; height: 22px; background: url("./strand-end.svg") center / contain no-repeat; margin: 40px auto 0; }
.hlp-onward { margin: 64px 0 96px auto; max-width: 735px; padding: 16px 0 16px 28px; border-left: 1px solid var(--chestnut); }

.hlp-end { border-top: 3px solid var(--chestnut); padding-top: 36px; padding-bottom: 32px; }
.hlp-end-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 160px; }
.hlp-end p { max-width: 610px; }
.hlp-footer-links { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 16px 28px; }
.hlp-footer-links a { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.hlp-footer-links .hlp-icon { width: 21px; height: 21px; }
.hlp-copyright { margin-top: 30px; font-size: 18px; }
.hlp-notfound { padding-block: 60px 110px; max-width: 900px; }
.hlp-notfound p { margin-top: 32px; max-width: 540px; }

@media (max-width: 1150px) {
  .hlp-width { width: calc(100% - 80px); }
  .hlp-mast-inner { grid-template-columns: 85px 1fr 1fr; column-gap: 24px; }
  .hlp-purpose { gap: 40px; }
  .hlp-purpose a { font-size: 21px; grid-template-columns: 24px 1fr 20px; gap: 12px; }
  .hlp-purpose .hlp-purpose-mark { width: 24px; height: 24px; }
  .hlp-purpose .hlp-purpose-arrow { width: 20px; height: 20px; }
  .hlp-opening { grid-template-columns: minmax(0, 1fr) 42%; column-gap: 38px; }
  .hlp-print { width: 100%; height: 330px; }
  h1 { font-size: 64px; }
  .hlp-opposite { width: min(700px, 100%); }
  .hlp-photo-band { margin-left: -160px; margin-right: 0; }
  .hlp-photo-band img { height: 280px; }
  .hlp-photo-band figcaption { position: static; width: auto; max-width: 640px; margin-top: 20px; }
  .hlp-paper { margin-inline: 0; padding-inline: 42px; gap: 36px; }
  .hlp-evidence-columns { gap: 36px; }
  .hlp-evidence-column + .hlp-evidence-column { padding-left: 30px; }
  .hlp-reading-row { grid-template-columns: 50px 185px minmax(0, 1fr); gap: 22px; }
  .hlp-base-inner { gap: 50px; }
  .hlp-end-top { gap: 70px; }
  .hlp-source-entry { gap: 50px; }
}

@media (min-width: 761px) and (max-width: 980px) {
  .hlp-mast-inner { grid-template-columns: 72px 1fr 1fr; }
  .hlp-purpose { gap: 28px; }
  .hlp-purpose a { min-height: 122px; }
  .hlp-purpose .hlp-purpose-mark { display: none; }
  .hlp-purpose a { grid-template-columns: 1fr 20px; }
  .hlp-opening { column-gap: 30px; }
  h1 { font-size: 54px; }
  .hlp-print { height: 300px; }
  .hlp-opposite > .hlp-section-heading > .hlp-section-mark { position: static; margin-bottom: 20px; }
  .hlp-photo-band { margin-left: 0; }
  .hlp-paper { grid-template-columns: 1fr; }
  .hlp-paper > .hlp-prose { grid-column: 1; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 20px; }
  body { font-size: 18px; line-height: 1.75; }
  .hlp-width { width: calc(100% - 40px); }
  .hlp-mast { padding-top: 14px; }
  .hlp-mast-inner { display: flex; flex-direction: column; gap: 0; padding-bottom: 14px; }
  .hlp-name { order: 1; font-size: clamp(34px, 10.8vw, 64px); line-height: 1.16; letter-spacing: -0.04em; align-self: flex-start; margin: 0; padding: 0; }
  .hlp-purpose { order: 2; display: flex; flex-direction: column; gap: 0; margin-top: 14px; }
  .hlp-purpose a { padding: 9px 0 11px; min-height: 0; font-size: 18px; line-height: 1.4; grid-template-columns: 24px 1fr 20px; gap: 12px; border-top-width: 1px; }
  .hlp-purpose a span { max-width: 285px; }
  .hlp-purpose .hlp-purpose-mark { width: 22px; height: 22px; margin-top: 3px; }
  .hlp-purpose .hlp-purpose-arrow { width: 20px; height: 20px; margin-top: 3px; }
  .hlp-about { order: 3; align-self: flex-start; margin: 3px 0 0; }
  .hlp-opening { display: flex; flex-direction: column; gap: 18px; padding-top: 28px; }
  h1 { font-size: clamp(44px, 11.8vw, 64px); line-height: 1.07; letter-spacing: -0.025em; }
  h2 { font-size: 39px; line-height: 1.12; margin-bottom: 24px; }
  h3 { font-size: 35px; }
  .hlp-owner { max-width: 540px; font-size: 18px; line-height: 1.65; }
  .hlp-print { width: 100%; height: 248px; flex: 0 0 auto; margin: 6px 0 0; }
  .hlp-print img { height: 220px; }
  .hlp-chapter { margin-top: 72px; padding-bottom: 24px; }
  .hlp-home .hlp-opposite[aria-labelledby="hair-question"] { margin-top: 80px; }
  .hlp-section-mark { width: 26px; height: 26px; margin-bottom: 18px; }
  .hlp-chapter::after { margin-top: 30px; }
  .hlp-opposite { width: 100%; }
  .hlp-opposite > .hlp-section-heading > .hlp-section-mark { position: static; margin-bottom: 18px; }
  .hlp-paper { display: grid; grid-template-columns: 1fr; gap: 28px; margin-left: -20px; margin-right: -20px; padding: 38px 20px 30px; }
  .hlp-paper > .hlp-prose { grid-column: 1; padding-top: 0; }
  .hlp-evidence-columns { grid-template-columns: 1fr; gap: 30px; padding-top: 28px; }
  .hlp-evidence-column + .hlp-evidence-column { padding: 30px 0 0; border-left: 0; border-top: 1px solid var(--chestnut); }
  .hlp-column-mark { width: 25px; height: 25px; margin-top: 3px; }
  .hlp-reading-row { grid-template-columns: 48px minmax(0, 1fr); gap: 16px 18px; padding-block: 24px; }
  .hlp-reading-row::before { font-size: 48px; }
  .hlp-reading-row p { grid-column: 1 / -1; }
  .hlp-photo-band { margin: 30px 0; }
  .hlp-photo-band img { height: 180px; }
  .hlp-photo-band figcaption { position: static; width: auto; margin-top: 18px; font-size: 18px; }
  .hlp-base { margin-top: 64px; padding-top: 40px; padding-bottom: 34px; }
  .hlp-base-inner { grid-template-columns: 1fr; gap: 10px; }
  .hlp-base-inner > .hlp-section-heading { position: static; }
  .hlp-base-inner h2 { font-size: 40px; }
  .hlp-base-copy > .hlp-prose > p:first-child { font-size: 20px; line-height: 1.7; }
  .hlp-onward { margin: 40px 0 64px; padding: 8px 0 8px 20px; }
  .hlp-breadcrumb { margin-top: 28px; margin-bottom: 26px; }
  .hlp-inner-opening .hlp-owner { margin-top: 26px; }
  .hlp-source-list { margin-top: 30px; }
  .hlp-source-entry { grid-template-columns: 1fr; gap: 14px; padding-block: 26px; }
  .hlp-source-entry h3 { font-size: 21px; }
  .hlp-end { padding-top: 28px; }
  .hlp-end-top { grid-template-columns: 1fr; gap: 18px; }
  .hlp-footer-links { gap: 18px 20px; }
  .hlp-footer-links a { gap: 9px; }
  .hlp-copyright { margin-top: 32px; }
  .hlp-notfound { padding-block: 48px 70px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hlp-purpose a:hover .hlp-purpose-arrow, .hlp-purpose a:focus-visible .hlp-purpose-arrow { transform: none; }
}
