:root {
  --paper: #FFFFFF;
  --ink: #111827;
  --blue: #1E40AF;
  --sun: #FFD166;
  --mineral: #F2F3F5;
  --body: 'Crimson Text', Georgia, serif;
  --display: 'Abril Fatface', Georgia, serif;
  --measure: 1200px;
  --gutter: max(28px, calc((100% - var(--measure)) / 2));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 23px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
::selection { color: var(--paper); background: var(--blue); }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.1;
  text-wrap: balance;
}
h1 { font-size: clamp(56px, 6.35vw, 94px); letter-spacing: -.032em; }
h2 { font-size: clamp(38px, 3.7vw, 54px); letter-spacing: -.018em; }
h3 { font-size: 31px; }
strong { font-weight: 600; }
a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-decoration-color: #6B7280;
  text-underline-offset: .17em;
  transition: text-decoration-color .18s ease, text-underline-offset .18s ease;
}
a:hover { text-decoration-color: var(--blue); text-underline-offset: .25em; text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; text-decoration-thickness: 2px; }
mark {
  padding: 0 .08em;
  color: var(--ink);
  background: var(--sun);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.ko-icon { display: inline-block; width: 22px; height: 22px; flex: 0 0 22px; stroke-width: 1.5; }
.ko-skip { position: absolute; top: 10px; left: 20px; z-index: 10; transform: translateY(-180%); padding: 8px 18px; background: var(--paper); }
.ko-skip:focus { transform: translateY(0); }

/* The name is the low caption of the deep cobalt field. */
.ko-caption-header { height:180px; color: var(--paper); background: var(--blue); }
.ko-caption-inner { position: relative; width: calc(100% - 80px); max-width: var(--measure); height: 100%; margin: auto; }
.ko-caption-name { position: absolute; bottom: 21px; left: 0; color: var(--paper); font: 400 38px/1.1 var(--display); letter-spacing: -.02em; text-decoration: none; }
.ko-caption-nav { position: absolute; top: 20px; right: 0; display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px 36px; width: 610px; font-size: 23px; line-height: 1.25; }
.ko-caption-nav a { display: flex; align-items: baseline; gap: 12px; width: fit-content; padding: 2px 0; color: var(--paper); text-decoration-color: #FFFFFF99; }
.ko-caption-nav a:last-child { grid-column: 1 / -1; }
.ko-caption-nav .ko-icon { align-self: center; }
.ko-caption-header a:hover { text-decoration-color: var(--paper); }
.ko-caption-header a:focus-visible { outline-color: var(--paper); }

/* First beat: one large sentence, then two ordinary words in a lower register. */
.ko-home-opening {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-content: space-between;
  gap: 24px;
  width: calc(100% - 80px);
  max-width: var(--measure);
  min-height:calc(100svh - 180px);
  margin: auto;
  padding: 46px 0 38px;
}
.ko-home-heading { grid-column: 1 / 11; }
.ko-home-heading h1 { max-width: 1000px; line-height: 1.04; }
.ko-home-lead { max-width: 740px; margin-top: 24px; font-size: 24px; line-height: 1.4; }
.ko-word-corner { grid-column: 5 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 45px; padding-top: 10px; }
.ko-repair-word h2 { color: var(--blue); font-size: clamp(78px, 8.4vw, 122px); letter-spacing: -.045em; line-height: .98; }
.ko-repair-word p { max-width: 330px; margin-top: 19px; font-size: 21px; line-height: 1.35; }

/* Second beat: the photograph alone on cobalt; the caption never overlaps it. */
.ko-second-beat { padding: 48px var(--gutter) 0; background: var(--blue); }
.ko-second-beat img { width: 1200px; aspect-ratio: 20 / 9; object-fit: cover; font-size: 18px; }
.ko-second-beat figcaption { padding: 13px 0 14px; color: var(--ink); background: var(--paper); font-size: 18px; line-height: 1.4; }

/* Wide stories end in a white recess that opens to the right edge. */
.ko-outcome-spread {
  display: grid;
  grid-template-columns: minmax(28px, 1fr) repeat(12, minmax(0, 100px)) minmax(28px, 1fr);
  row-gap: 44px;
  padding-top: 98px;
  background: var(--mineral);
}
.ko-outcome-story { grid-column: 2 / 11; min-width: 0; padding-right: 66px; }
.ko-outcome-story h2 { max-width: 840px; margin-bottom: 29px; }
.ko-outcome-story > p { max-width: 780px; }
.ko-definition-mouth { position: relative; grid-column: 10 / -1; min-width: 0; padding: 43px max(28px, calc((100vw - 1200px) / 2)) 46px 44px; background: var(--paper); font-size: 21px; line-height: 1.45; }
.ko-definition-mouth::before, .ko-definition-mouth::after { position: absolute; right: 0; left: 0; height: 1px; content: ''; background: linear-gradient(to right, var(--blue) 0 31%, transparent 31% 39%, var(--blue) 39% 83%, transparent 83%); }
.ko-definition-mouth::before { top: 0; }
.ko-definition-mouth::after { top: 9px; }
.ko-definition-title { position: relative; }
.ko-definition-icon { position: absolute; top: 6px; left: -32px; color: var(--blue); }
.ko-definition-mouth h3 { margin: 0 0 19px; font-size: 31px; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }
.ko-definition-mouth p { max-width: 350px; }
.ko-outcome-spread--second { padding-top: 84px; }
.ko-outcome-spread--second .ko-definition-mouth { grid-column: 9 / -1; padding-left: 48px; }
.ko-outcome-spread--second .ko-definition-mouth p { max-width: 410px; }

/* The inner photographs step out of the story measure, staying in their section. */
.ko-inside-photo { grid-column: 2 / 13; min-width: 0; margin: 1px 0 0; }
.ko-outcome-spread--second .ko-inside-photo { grid-column: 3 / 14; }
.ko-inside-photo img { width: 100%; aspect-ratio: 20 / 9; object-fit: cover; background: #E4E6EA; font-size: 18px; }
.ko-inside-photo figcaption { max-width: 760px; padding: 14px 0 0; font-size: 18px; line-height: 1.4; }
.ko-outcome-spread--second .ko-inside-photo figcaption { max-width: 660px; margin-left: 100px; }

/* The practical limit has the full width and a generous, hanging headline. */
.ko-practical-edge { display: grid; grid-template-columns: 5fr 7fr; gap: 0 65px; width: calc(100% - 80px); max-width: var(--measure); margin: auto; padding: 103px 0 108px; }
.ko-practical-edge h2 { grid-column: 1; grid-row: 1 / span 8; align-self: start; font-size: clamp(40px, 3.7vw, 54px); line-height: 1.15; }
.ko-practical-edge > p { grid-column: 2; font-size: 24px; line-height: 1.5; }
.ko-home .ko-practical-edge { display: block; }
.ko-home .ko-practical-edge h2 { max-width: 1080px; margin-bottom: 37px; font-size: clamp(42px, 4.5vw, 66px); }
.ko-home .ko-practical-edge > p { max-width: 1030px; }

.ko-inner-opening { width: calc(100% - 80px); max-width: var(--measure); margin: auto; padding: 45px 0 65px; }
.ko-crumb { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; font-size: 19px; line-height: 1.4; }
.ko-crumb i, .ko-crumb svg { width: 18px; height: 18px; flex: 0 0 18px; stroke-width: 1.5; }
.ko-inner-opening h1 { max-width: 1080px; font-size: clamp(50px, 5.6vw, 82px); line-height: 1.08; }
.ko-inner-lead { max-width: 850px; margin: 28px 0 0 100px; font-size: 26px; line-height: 1.4; }
.ko-reading-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 52px 85px; width: calc(100% - 80px); max-width: var(--measure); margin: auto; padding-bottom: 20px; }
.ko-reference-entry { padding-top: 22px; border-top: 1px solid #B5BDC9; }
.ko-reference-entry h2 { margin-bottom: 18px; font-size: 32px; line-height: 1.2; }
.ko-reference-entry p { font-size: 21px; line-height: 1.45; }
.ko-reference-entry .ko-reference-context { font-size: 20px; }

.ko-foot { padding: 53px var(--gutter) 30px; background: var(--mineral); }
.ko-foot-note { max-width: 760px; margin-bottom: 35px; font-size: 24px; line-height: 1.4; }
.ko-foot-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px 28px; font-size: 21px; line-height: 1.3; }
.ko-foot-nav a { width: fit-content; }
.ko-copyright { margin-top: 42px; font-size: 18px; }
.ko-missing { width: calc(100% - 80px); max-width: var(--measure); min-height: 500px; margin: auto; padding: 80px 0; }
.ko-missing h1 { max-width: 1000px; margin-bottom: 30px; }
.ko-missing p { max-width: 700px; }

@media (min-width: 1500px) {
  .ko-home-opening { padding-top: 65px; padding-bottom: 50px; }
  .ko-word-corner { padding-top: 25px; }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .ko-caption-nav { width: 550px; }
  .ko-home-heading { grid-column: 1 / -1; }
  .ko-word-corner { grid-column: 4 / -1; gap: 30px; }
  .ko-repair-word h2 { font-size: clamp(70px, 8.4vw, 92px); }
  .ko-outcome-story { grid-column: 2 / 12; padding-right: 35px; }
  .ko-definition-mouth { grid-column: 8 / -1; padding-right: 35px; }
  .ko-outcome-spread--second .ko-definition-mouth { grid-column: 7 / -1; }
  .ko-inner-lead { margin-left: 50px; }
  .ko-practical-edge { gap: 0 35px; grid-template-columns: 1fr 1fr; }
  .ko-reading-index { column-gap: 40px; }
  .ko-foot-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  :root { --gutter: 24px; }
  html { scroll-padding-top: 18px; }
  body { font-size: 21px; line-height: 1.5; }
  .ko-caption-header { height:140px; }
  .ko-caption-inner { width: auto; margin: 0 24px; }
  .ko-caption-name { top: 13px; bottom: auto; font-size: 31px; line-height: 1.15; }
  .ko-caption-nav { top: 59px; right: auto; left: 0; width: 100%; grid-template-columns: 1.45fr 1fr; gap: 5px 16px; font-size: 18px; line-height: 1.2; }
  .ko-caption-nav a { gap: 8px; padding: 0; }
  .ko-caption-nav .ko-icon { width: 18px; height: 18px; flex-basis: 18px; }
  .ko-home-opening { display: block; width: auto; min-height:calc(100svh - 140px); padding: 33px 24px 42px; }
  .ko-home-heading h1 { max-width: 520px; font-size: 50px; line-height: 1.06; letter-spacing: -.026em; }
  .ko-home-lead { margin-top: 25px; font-size: 22px; line-height: 1.4; }
  .ko-word-corner { display: block; padding-top: 35px; }
  .ko-repair-word h2 { font-size: 82px; }
  .ko-repair-word p { max-width: 440px; margin-top: 13px; font-size: 21px; line-height: 1.35; }
  .ko-repair-word + .ko-repair-word { margin-top: 29px; }
  .ko-second-beat { padding: 24px 0 0; }
  .ko-second-beat img { width: 100%; }
  .ko-second-beat figcaption { padding: 12px 24px 14px; font-size: 18px; line-height: 1.35; }
  .ko-outcome-spread { display: block; padding: 55px 0 0; }
  .ko-outcome-story { padding: 0 24px; }
  .ko-outcome-story h2 { margin-bottom: 24px; font-size: 37px; line-height: 1.13; }
  .ko-definition-mouth, .ko-outcome-spread--second .ko-definition-mouth { margin: 36px 0 0 32px; padding: 34px 24px 36px 27px; font-size: 21px; }
  .ko-definition-title { padding-left: 0; }
  .ko-definition-icon { position: static; display: block; margin-bottom: 14px; }
  .ko-definition-mouth h3 { margin-bottom: 17px; font-size: 29px; }
  .ko-definition-mouth p, .ko-outcome-spread--second .ko-definition-mouth p { max-width: none; }
  .ko-inside-photo, .ko-outcome-spread--second .ko-inside-photo { margin: 30px 0 0; }
  .ko-inside-photo img { width: 100%; }
  .ko-inside-photo figcaption, .ko-outcome-spread--second .ko-inside-photo figcaption { max-width: none; margin: 0; padding: 13px 24px 0; font-size: 18px; }
  .ko-practical-edge { display: block; width: auto; padding: 58px 24px 64px; }
  .ko-practical-edge h2, .ko-home .ko-practical-edge h2 { margin-bottom: 28px; font-size: 38px; line-height: 1.15; }
  .ko-practical-edge > p { font-size: 23px; line-height: 1.5; }
  .ko-inner-opening { width: auto; padding: 29px 24px 43px; }
  .ko-crumb { gap: 9px; margin-bottom: 25px; font-size: 18px; }
  .ko-inner-opening h1 { font-size: 46px; line-height: 1.09; letter-spacing: -.025em; }
  .ko-inner-lead { margin: 25px 0 0; font-size: 23px; line-height: 1.4; }
  .ko-reading-index { display: block; width: auto; padding: 0 24px 10px; }
  .ko-reference-entry { margin-bottom: 37px; }
  .ko-reference-entry h2 { font-size: 29px; }
  .ko-reference-entry p { font-size: 21px; }
  .ko-foot { padding: 37px 24px 28px; }
  .ko-foot-note { font-size: 23px; }
  .ko-foot-nav { grid-template-columns: 1fr 1fr; gap: 16px 20px; font-size: 20px; }
  .ko-copyright { margin-top: 32px; }
  .ko-missing { width: auto; min-height: 440px; padding: 58px 24px; }
  .ko-missing h1 { font-size: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a { transition: none; }
}
