:root {
  color-scheme: light;
  --paper: #F5E9F9;
  --ink: #2F202D;
  --plum: #712864;
  --clay: #EBD3C6;
  --sheet: #FCFAFC;
  --gutter: clamp(24px, 5vw, 84px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sheet); color: var(--ink); font: 18px/1.7 "Gowun Dodum", "Trebuchet MS", sans-serif; }
::selection { background: var(--plum); color: var(--sheet); }
a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 5px; transition: text-decoration-color 160ms ease, background-color 160ms ease; }
a:hover { text-decoration-thickness: 2px; text-decoration-color: var(--ink); }
a:focus-visible { outline: 3px solid var(--plum); outline-offset: 5px; background: var(--paper); }
img { max-width: 100%; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-family: "Forum", Georgia, serif; font-weight: 400; text-wrap: balance; }
h1, h2, h3, figure { margin: 0; }
h1 { font-size: clamp(48px, 5.6vw, 80px); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: clamp(36px, 3.5vw, 52px); line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: 31px; line-height: 1.16; letter-spacing: -0.015em; }
.nm-icon { display: inline-flex; flex: 0 0 auto; width: 21px; height: 21px; vertical-align: middle; stroke-width: 1.7; }
.nm-icon svg { width: 100%; height: 100%; }
.nm-skip { position: fixed; top: -100px; left: 18px; padding: 10px 18px; background: var(--sheet); z-index: 20; }
.nm-skip:focus { top: 12px; }

/* Three ruled lines; the wordmark has the middle line to itself. */
.nm-ruler { padding-top: 8px; background: var(--paper); position: relative; z-index: 5; }
.nm-ruler-line { border-bottom: 2px solid var(--plum); padding-right: var(--gutter); padding-left: var(--gutter); }
.nm-ruler-top, .nm-ruler-bottom { display: flex; align-items: center; gap: 42px; min-height: 33px; font-size: 16px; }
.nm-ruler a { text-decoration: none; }
.nm-ruler nav a { display: inline-flex; align-items: center; gap: 9px; min-height: 31px; }
.nm-ruler nav .nm-icon { width: 18px; height: 18px; transition: transform 160ms ease; }
.nm-ruler nav a:hover { background: var(--sheet); box-shadow: 0 2px 0 var(--plum); }
.nm-ruler nav a:hover .nm-icon { transform: translateY(-2px); }
.nm-ruler-middle { display: flex; justify-content: flex-end; align-items: center; min-height: 57px; }
.nm-wordmark { font-family: "Forum", Georgia, serif; font-size: 46px; line-height: 1; color: var(--ink); letter-spacing: -0.04em; }
.nm-wordmark:hover { color: var(--plum); }
.nm-ruler [aria-current="page"] { box-shadow: 0 2px 0 var(--plum); }

/* Opaque reading paper floats over the listening-room photograph. */
.nm-home-hero { position: relative; isolation: isolate; min-height: 680px; padding: 32px var(--gutter) 48px; background: var(--paper); }
.nm-cover-sheet { position: relative; z-index: 2; width: min(770px, 62%); margin: 0 0 0 auto; padding: 32px 36px 34px; background: var(--sheet); box-shadow: -14px 14px 0 var(--clay), 0 18px 40px rgb(47 32 45 / 12%); }
.nm-home-cover h1 { font-size: clamp(52px, 4.7vw, 68px); line-height: 1.04; }
.nm-listening-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: center; margin-top: 22px; }
.nm-measured-word { font-family: "Forum", Georgia, serif; font-size: clamp(64px, 5.3vw, 78px); line-height: 0.96; letter-spacing: -0.065em; color: var(--plum); }
.nm-cover-reflection { font-size: 17px; line-height: 1.55; }
.nm-calibration { max-width: 760px; margin-top: 22px; cursor: text; }
.nm-calibration::before { content: ""; display: block; background: var(--plum); width: 7px; height: 22px; margin-bottom: 10px; }
.nm-calibration-label { display: block; color: var(--plum); font-size: 16px; margin-bottom: 6px; }
.nm-calibration p { font-size: 16px; line-height: 1.6; }
.nm-hero-photo { position: absolute; inset: 0; z-index: -1; background: var(--paper); }
.nm-hero-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.nm-hero-photo figcaption { position: absolute; bottom: 26px; left: var(--gutter); width: min(300px, 27vw); padding: 13px 18px 14px; background: var(--sheet); font-size: 16px; line-height: 1.5; box-shadow: 7px 7px 0 rgb(47 32 45 / 12%); }
.nm-hero-measure { position: absolute; z-index: 1; bottom: 158px; left: var(--gutter); width: 218px; height: 70px; padding: 12px; background: var(--sheet); box-shadow: 7px 7px 0 var(--clay); transform-origin: left; animation: nm-calibrate 900ms cubic-bezier(.2,.7,.3,1) both; }
@keyframes nm-calibrate { from { transform: scaleX(.64); } to { transform: scaleX(1); } }

/* Each entry opens beside a photographic plate, rather than another cover sheet. */
.nm-entry-header { padding: 36px var(--gutter) 74px; background: var(--paper); position: relative; }
.nm-crumb { font-size: 16px; display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.nm-crumb span { color: var(--ink); }
.nm-entry-cover h1 { max-width: 1120px; }
.nm-entry-opening { max-width: 650px; margin: 32px 0 0 auto; font-size: 22px; line-height: 1.6; }
.nm-with-photo { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: center; padding-bottom: 78px; }
.nm-with-photo .nm-entry-cover h1 { font-size: clamp(44px, 4.5vw, 65px); }
.nm-with-photo .nm-entry-opening { font-size: 20px; margin: 26px 0 0; }
.nm-entry-photo { position: relative; padding-top: 18px; align-self: center; }
.nm-entry-photo::before { content: ""; position: absolute; top: 0; right: -16px; width: 70%; height: 67%; background: var(--plum); }
.nm-entry-photo > img { display: block; position: relative; width: 100%; height: 330px; object-fit: cover; box-shadow: -12px 12px 0 var(--clay); }
.nm-entry-photo figcaption { position: relative; z-index: 1; max-width: 88%; margin: -18px 0 0 auto; background: var(--sheet); padding: 14px 18px; font-size: 16px; line-height: 1.5; box-shadow: 6px 6px 0 rgb(47 32 45 / 8%); }

/* Broad observations, followed by narrower, displaced owner notes. */
.nm-observation-band { position: relative; padding: 72px var(--gutter) 102px; background: var(--sheet); }
.nm-observation-band + .nm-observation-band { border-top: 2px solid var(--paper); }
.nm-observation-index { position: absolute; top: 71px; left: var(--gutter); width: 110px; display: flex; flex-direction: column; color: var(--plum); font-size: 16px; line-height: 1.4; margin: 0; }
.nm-observation-number { font-family: "Forum", Georgia, serif; font-size: 112px; line-height: 1.03; letter-spacing: -0.075em; margin-left: -4px; }
.nm-observation-index::after { content: ""; width: 66px; height: 5px; background: var(--plum); margin-top: 15px; }
.nm-observation-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(42px, 6vw, 100px); }
.nm-observation-grid h2 { max-width: 15ch; margin-left: 140px; padding-top: 1px; }
.nm-reading-text { max-width: 660px; }
.nm-reading-text p { margin-bottom: 1.2em; }
.nm-reading-text p:last-child { margin-bottom: 0; }
.nm-reading-text a:hover, .nm-margin-words a:hover { background: var(--paper); }
.nm-margin-band { position: relative; z-index: 2; margin: -30px var(--gutter) 52px; }
.nm-margin-grid { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1fr); gap: 48px; width: min(1080px, 94%); padding: 36px 40px; background: var(--clay); border-left: 7px solid var(--plum); box-shadow: 12px 12px 0 var(--paper), 0 14px 30px rgb(47 32 45 / 7%); }
.nm-margin-right .nm-margin-grid { margin-left: auto; }
.nm-margin-left .nm-margin-grid { margin-right: auto; }
.nm-margin-head { position: relative; padding-top: 5px; }
.nm-margin-head img { display: block; width: 116px; height: 28px; margin: -54px 0 20px; background: var(--sheet); padding: 0 6px; }
.nm-margin-head h3 { max-width: 17ch; }
.nm-margin-words { max-width: 660px; font-size: 20px; line-height: 1.65; }

.nm-mind { padding: 64px var(--gutter) 76px; background: var(--plum); color: var(--sheet); }
.nm-mind > img { display: block; width: 230px; height: 49px; margin-bottom: 28px; filter: brightness(0) invert(1); }
.nm-mind-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(42px, 6vw, 100px); }
.nm-mind h2 { max-width: 13ch; font-size: clamp(44px, 4.5vw, 66px); }
.nm-mind .nm-reading-text { font-size: 23px; line-height: 1.65; }
.nm-mind a { color: var(--sheet); }
.nm-mind a:hover, .nm-mind a:focus-visible { color: var(--ink); background: var(--clay); outline-color: var(--clay); }
.nm-footer { position: relative; background: var(--sheet); padding: 38px var(--gutter) 31px; font-size: 16px; }
.nm-footer-sentence { max-width: 690px; }
.nm-footer-links { display: flex; flex-wrap: wrap; gap: 17px 32px; margin: 27px 0 32px; }
.nm-footer-links a { display: inline-flex; align-items: center; gap: 9px; }
.nm-footer-copyright { font-family: "Forum", Georgia, serif; font-size: 29px; }
.nm-lost { min-height: 500px; padding: 70px var(--gutter); background: var(--paper); }
.nm-lost h1 { max-width: 900px; margin-bottom: 35px; }
.nm-lost p { max-width: 650px; font-size: 22px; }

@media (min-width: 1600px) {
  :root { --gutter: max(80px, calc((100vw - 1440px) / 2)); }
  .nm-home-hero { min-height: 720px; }
}
@media (max-width: 1100px) and (min-width: 651px) {
  .nm-home-hero { padding-top: 30px; }
  .nm-cover-sheet { width: 68%; padding: 28px; }
  .nm-home-cover h1 { font-size: 52px; }
  .nm-listening-pair { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 18px; }
  .nm-measured-word { font-size: 65px; }
  .nm-cover-reflection { font-size: 16px; }
  .nm-hero-measure { width: 160px; }
  .nm-hero-photo figcaption { width: 215px; font-size: 16px; }
  .nm-entry-photo > img { height: 360px; }
  .nm-with-photo { gap: 36px; }
  .nm-with-photo .nm-entry-cover h1 { font-size: 48px; }
  .nm-observation-number { font-size: 86px; }
  .nm-observation-grid h2 { margin-left: 105px; font-size: 39px; }
  .nm-observation-index { width: 90px; }
  .nm-margin-grid { gap: 30px; padding: 32px; }
  .nm-margin-words { font-size: 19px; }
}
@media (max-width: 1000px) and (min-width: 651px) {
  .nm-listening-pair { display: block; }
  .nm-measured-word { font-size: 72px; margin-bottom: 17px; }
}
@media (max-width: 800px) and (min-width: 651px) {
  .nm-cover-sheet { width: 78%; }
  .nm-hero-photo figcaption { width: calc(100% - var(--gutter) * 2); }
  .nm-hero-measure { display: none; }
  .nm-with-photo { grid-template-columns: 1fr 0.8fr; gap: 28px; }
  .nm-entry-photo > img { height: 400px; }
  .nm-observation-grid { gap: 36px; grid-template-columns: 1fr 1fr; }
  .nm-observation-grid h2 { margin-left: 0; padding-top: 130px; }
}
@media (max-width: 650px) {
  :root { --gutter: 22px; }
  body { font-size: 17px; line-height: 1.7; }
  .nm-ruler { padding-top: 6px; }
  .nm-ruler-top, .nm-ruler-bottom { min-height: 31px; font-size: 16px; gap: 27px; }
  .nm-ruler nav a { min-height: 29px; gap: 7px; }
  .nm-ruler nav .nm-icon { width: 17px; height: 17px; }
  .nm-ruler-middle { min-height: 45px; }
  .nm-wordmark { font-size: 34px; }
  .nm-home-hero { min-height: 0; padding: 0; background: var(--sheet); }
  .nm-cover-sheet { width: 100%; padding: 24px var(--gutter) 28px; margin: 0; box-shadow: none; }
  .nm-home-cover h1 { font-size: 34px; line-height: 1.12; letter-spacing: -0.02em; text-wrap: initial; }
  .nm-listening-pair { display: block; margin-top: 17px; }
  .nm-measured-word { display: none; }
  .nm-cover-reflection { font-size: 16px; line-height: 1.55; }
  .nm-calibration { margin-top: 24px; }
  .nm-calibration::before { height: 24px; width: 7px; margin-bottom: 10px; }
  .nm-calibration-label { font-size: 16px; margin-bottom: 7px; }
  .nm-calibration p { font-size: 16px; line-height: 1.55; }
  .nm-hero-photo { position: relative; inset: auto; z-index: auto; padding: 0 0 30px; }
  .nm-hero-photo > img { height: auto; aspect-ratio: 4 / 3; object-position: center; }
  .nm-hero-photo figcaption { position: relative; bottom: auto; left: auto; width: calc(100% - 44px); padding: 14px 17px; margin: -24px 22px 0; box-shadow: 7px 7px 0 var(--paper); }
  .nm-hero-measure { display: none; animation: none; }
  .nm-entry-header { display: block; padding-top: 22px; padding-bottom: 42px; }
  .nm-crumb { font-size: 16px; margin-bottom: 23px; gap: 12px; }
  .nm-entry-cover h1, .nm-with-photo .nm-entry-cover h1 { font-size: 39px; line-height: 1.1; }
  .nm-entry-opening, .nm-with-photo .nm-entry-opening { margin: 24px 0 0; font-size: 19px; line-height: 1.6; }
  .nm-entry-photo { padding-top: 0; margin-top: 36px; margin-right: 6px; }
  .nm-entry-photo::before { top: -12px; right: -12px; }
  .nm-entry-photo > img { height: auto; aspect-ratio: 4 / 3; box-shadow: -8px 8px 0 var(--clay); }
  .nm-entry-photo figcaption { max-width: 92%; margin-top: -13px; padding: 12px 15px; }
  .nm-observation-band { padding-top: 42px; padding-bottom: 63px; }
  .nm-home-hero + .nm-observation-band { padding-top: 54px; }
  .nm-observation-index { position: static; display: flex; flex-direction: row; align-items: center; gap: 14px; width: auto; margin-bottom: 20px; }
  .nm-observation-number { font-size: 65px; line-height: 1; letter-spacing: -0.05em; margin: 0; }
  .nm-observation-index::after { width: 44px; height: 4px; margin-top: 0; }
  .nm-observation-grid, .nm-margin-grid, .nm-mind-grid { display: block; }
  .nm-observation-grid h2 { font-size: 36px; max-width: 17ch; margin: 0 0 24px; padding-top: 0; }
  .nm-reading-text { max-width: none; }
  .nm-margin-band { margin: -20px 22px 26px; }
  .nm-margin-grid { width: 100%; padding: 29px 22px 27px; border-left-width: 4px; box-shadow: 7px 7px 0 var(--paper); }
  .nm-margin-head { padding-top: 0; margin-bottom: 18px; }
  .nm-margin-head h3 { font-size: 29px; max-width: none; }
  .nm-margin-head img { width: 95px; height: 24px; margin: -41px 0 19px; }
  .nm-margin-words { font-size: 18px; line-height: 1.7; }
  .nm-mind { padding-top: 40px; padding-bottom: 48px; }
  .nm-mind > img { width: 160px; height: 34px; margin-bottom: 23px; }
  .nm-mind h2 { font-size: 42px; margin-bottom: 25px; }
  .nm-mind .nm-reading-text { font-size: 20px; }
  .nm-footer { padding-top: 30px; padding-bottom: 26px; }
  .nm-footer-links { display: grid; grid-template-columns: 1fr; gap: 17px; }
  .nm-footer-copyright { font-size: 27px; }
  .nm-lost { padding-top: 40px; }
  .nm-lost h1 { font-size: 41px; }
  .nm-lost p { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .nm-ruler, .nm-footer-links, .nm-skip, .nm-hero-measure { display: none; }
  body { background: white; color: black; font-size: 12pt; }
  .nm-home-hero { padding: 0; min-height: 0; }
  .nm-cover-sheet { width: 100%; padding: 0; box-shadow: none; }
  .nm-hero-photo { position: relative; }
  .nm-hero-photo > img { height: 200px; }
  .nm-hero-photo figcaption { position: static; box-shadow: none; }
  .nm-observation-band, .nm-margin-band, .nm-mind { break-inside: avoid; }
  .nm-observation-grid, .nm-margin-grid, .nm-mind-grid, .nm-with-photo { display: block; }
  .nm-margin-grid { box-shadow: none; width: 100%; }
  .nm-observation-index { position: static; }
  .nm-observation-number { font-size: 32px; }
  .nm-observation-grid h2 { margin-left: 0; }
  .nm-mind { background: white; color: black; }
  a { color: black; }
}
