/* KLOW in Other Words: let a claim take up space; give its consequence room. */
:root {
  color-scheme: light;
  --paper: #fffdf7;
  --ink: #2c2416;
  --ochre: #b7791f;
  --ochre-ink: #8a5a12;
  --petrol: #3d6b73;
  --rule: #d7cbbb;
  --body: "Figtree", Arial, sans-serif;
  --display: "Bevan", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 20px/1.65 var(--body); }
img { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .22em; transition: color .18s ease, text-decoration-thickness .18s ease; }
a:hover { color: var(--ochre-ink); text-decoration-thickness: 3px; }
a:focus-visible { outline: 3px solid var(--petrol); outline-offset: 6px; }
::selection { color: var(--paper); background: var(--petrol); }
h1, h2, h3, .kio-name { font-family: var(--display); font-weight: 400; }
h1, h2, h3, p, figure { margin: 0; }
p + p { margin-top: 1.15em; }
strong { color: var(--petrol); font-weight: 600; }
.kio-skip { position: fixed; z-index: 10; inset: .6rem auto auto .6rem; padding: .6rem 1rem; color: var(--ink); background: var(--paper); transform: translateY(-200%); }
.kio-skip:focus { transform: translateY(0); }

/* A photograph and a white page meet at the 45% seam. Nothing covers the image. */
.kio-opening { display: grid; grid-template-columns: 45% 55%; min-height: 100svh; background: #fff; }
.kio-first-photo { position: relative; min-height: 100%; overflow: hidden; border-radius: 0 0 0 14px; background: #eee5d6; }
.kio-first-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; }
.kio-white-side { display: flex; min-width: 0; flex-direction: column; }
.kio-gutter { width: 100%; padding: 30px 8% 24px; }
.kio-words-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; line-height: 1.2; }
.kio-words-nav a { padding: 4px 0; text-decoration: none; }
.kio-words-nav a:nth-child(1) { font-size: 36px; }
.kio-words-nav a:nth-child(2) { font-size: 28px; }
.kio-words-nav a:nth-child(3) { font-size: 22px; }
.kio-words-nav a:hover, .kio-words-nav a[aria-current="page"] { color: var(--ochre-ink); text-decoration: underline; text-underline-offset: .18em; }
.kio-name { display: block; width: fit-content; margin-top: 22px; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.25; text-decoration: none; }
.kio-name span { white-space: nowrap; }
.kio-home-statement { margin: auto 8% 38px; padding-top: 25px; text-align: right; }
.kio-home-statement h1 { max-width: 12em; margin-left: auto; font-size: clamp(40px, 4.15vw, 64px); line-height: 1.16; letter-spacing: -.035em; text-wrap: balance; }
.kio-claim-word { color: var(--petrol); }
.kio-home-statement .kio-deck { max-width: 34ch; margin: 24px 0 0 auto; font-size: 20px; line-height: 1.55; }
.kio-ochre-end { position: relative; padding: 23px 8% 25px; background: var(--ochre); color: var(--ink); font-size: 24px; line-height: 1.4; }
.kio-ochre-end p { max-width: 37ch; }
.kio-ochre-end::after { content: ""; position: absolute; bottom: 12px; left: 8%; right: 8%; height: 2px; background: var(--ink); transform-origin: left; }
@media (prefers-reduced-motion: no-preference) {
  .kio-ochre-end::after { animation: kio-finish-line .65s .2s both; }
}
@keyframes kio-finish-line { from { transform: scaleX(.1); } to { transform: scaleX(1); } }

/* The insertion mark belongs to a sentence, never to the surrounding air. */
.kio-opening-note { width: min(1000px, 86%); margin: 84px auto 0; }
.kio-caret-note { display: flex; gap: 24px; align-items: flex-start; }
.kio-caret-note img { flex: 0 0 32px; width: 32px; height: 22px; margin-top: .5em; }
.kio-caret-note p { max-width: 61ch; margin: 0; font-size: 24px; line-height: 1.6; }
.kio-leaves { width: 86%; max-width: 1360px; margin: 0 auto; }
.kio-entry { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: 104px 0 74px; }
.kio-word { position: relative; grid-column: 1 / 13; grid-row: 1; width: fit-content; margin-left: -2.2vw; color: var(--petrol); font-size: clamp(64px, 9.2vw, 144px); line-height: 1.08; letter-spacing: -.045em; overflow-wrap: anywhere; }
.kio-account { grid-column: 3 / 10; grid-row: 2; max-width: 61ch; margin-top: 40px; }
.kio-account p { line-height: 1.75; }
.kio-account > p:first-child { font-size: 22px; line-height: 1.65; }
.kio-margin-mark { position: sticky; top: 40px; grid-column: 12; grid-row: 2; align-self: start; justify-self: end; margin-top: 44px; padding-bottom: 14px; color: var(--ochre-ink); border-bottom: 3px solid var(--ochre); }
.kio-margin-mark i { display: inline-block; width: 28px; height: 28px; }
.kio-margin-mark svg { display: block; width: 28px; height: 28px; stroke-width: 1.5; }
.kio-consequence { position: relative; grid-column: 8 / 13; grid-row: 3; max-width: 37ch; margin-top: 46px; padding-left: 25px; border-left: 3px solid var(--petrol); }
.kio-consequence h3 { position: relative; margin-bottom: 17px; color: var(--petrol); font-size: 23px; line-height: 1.4; }
.kio-consequence h3 i { position: absolute; top: 3px; left: -65px; width: 24px; height: 24px; }
.kio-consequence h3 svg { position: absolute; top: 3px; left: -65px; width: 24px; height: 24px; stroke-width: 1.5; }
.kio-consequence p { font-size: 19px; line-height: 1.75; }

/* Each inner photograph opens its own subject, with a caption cut into its foot. */
.kio-section-photo { grid-column: 1 / 12; grid-row: 2; margin: 32px 0 4px -7vw; }
.kio-section-photo img { width: 100%; height: clamp(270px, 30vw, 430px); object-fit: cover; border-radius: 0 0 0 14px; background: #eee5d6; }
.kio-section-photo figcaption { position: relative; max-width: 37ch; margin: -30px -3vw 0 auto; padding: 18px 24px 2px; border-left: 4px solid var(--ochre); background: var(--paper); font-size: 18px; line-height: 1.55; }
.kio-entry:nth-child(even) .kio-section-photo { grid-column: 2 / 13; margin-left: 0; margin-right: -7vw; }
.kio-entry:nth-child(even) .kio-section-photo figcaption { margin-right: 4vw; }
.kio-with-photo .kio-account, .kio-with-photo .kio-margin-mark { grid-row: 3; }
.kio-with-photo .kio-consequence { grid-row: 4; }
.kio-source-list { list-style: none; padding: 0; margin: 27px 0 0; }
.kio-source-list li { margin-top: 28px; }
.kio-source-list a { font-weight: 600; }
.kio-source-list p { margin-top: 7px; font-size: 19px; }
.kio-source-list i { display: inline-block; width: 20px; margin-right: 9px; }
.kio-source-list svg { width: 20px; height: 20px; margin-right: 9px; vertical-align: -.15em; color: var(--petrol); stroke-width: 1.5; }
.kio-next-line { display: flex; align-items: baseline; justify-content: space-between; gap: 30px; width: min(1160px, 86%); margin: 24px auto 90px; padding-top: 24px; border-top: 4px solid var(--ochre); }
.kio-next-line p { max-width: 45ch; font-size: 22px; }
.kio-next-line a { white-space: nowrap; }

/* The same broad navigation gutter carries through to the inside pages. */
.kio-inside-header { position: relative; display: grid; grid-template-columns: 45% 55%; background: #fff; }
.kio-inside-header::after { content: ""; position: absolute; left: 0; bottom: 0; width: 45%; height: 6px; background: var(--ochre); }
.kio-inside-header .kio-gutter { grid-column: 2; }
.kio-page-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; width: min(1220px, 86%); margin: 50px auto 0; }
.kio-breadcrumb { grid-column: 1 / -1; margin-bottom: 30px; font-size: 18px; }
.kio-breadcrumb span { margin: 0 .55em; color: var(--ochre-ink); }
.kio-page-top h1 { grid-column: 1 / 12; max-width: 23ch; font-size: clamp(36px, 4.2vw, 64px); line-height: 1.19; letter-spacing: -.035em; text-wrap: balance; }
.kio-page-top .kio-deck { grid-column: 6 / 13; max-width: 42ch; margin-top: 26px; color: var(--ochre-ink); font-size: 22px; line-height: 1.6; }
.kio-page-top .kio-intro { grid-column: 3 / 10; max-width: 61ch; margin-top: 36px; }
.kio-footer { display: grid; grid-template-columns: 1.4fr 1fr; gap: 34px; padding: 45px 7% 36px; border-top: 10px solid var(--ochre); background: #f4eee2; }
.kio-footer p { max-width: 58ch; font-size: 18px; }
.kio-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: start; gap: 16px 26px; font-size: 18px; }
.kio-footer nav a { min-height: 32px; }
.kio-copyright { grid-column: 1 / -1; }
.kio-missing { min-height: 60svh; padding: 70px 7%; }
.kio-missing h1 { max-width: 15ch; font-size: clamp(38px, 5vw, 72px); line-height: 1.18; }
.kio-missing p { max-width: 50ch; margin-top: 32px; }

@media (min-width: 1700px) {
  .kio-home-statement { max-width: 760px; }
  .kio-section-photo { margin-left: -4vw; }
  .kio-entry:nth-child(even) .kio-section-photo { margin-right: -4vw; }
}
@media (max-width: 1000px) and (min-width: 701px) {
  .kio-gutter { padding: 24px 7%; }
  .kio-home-statement { margin-right: 7%; margin-left: 7%; }
  .kio-home-statement h1 { font-size: 40px; }
  .kio-home-statement .kio-deck { font-size: 18px; }
  .kio-ochre-end { padding-right: 7%; padding-left: 7%; }
  .kio-name { font-size: 20px; }
  .kio-entry, .kio-page-top { column-gap: 14px; }
  .kio-account, .kio-page-top .kio-intro { grid-column: 2 / 11; }
  .kio-consequence { grid-column: 6 / 13; }
}
@media (max-width: 700px) {
  body { font-size: 18px; line-height: 1.7; }
  .kio-opening { display: block; min-height: 0; }
  .kio-first-photo { height: 60svh; min-height: 0; }
  .kio-first-photo img { object-position: 50% 46%; }
  .kio-gutter { padding: 12px 20px 8px; }
  .kio-words-nav { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 19px; }
  .kio-words-nav a:nth-child(n) { padding: 3px 0; font-size: 18px; line-height: 1.5; }
  .kio-name { max-width: 100%; margin-top: 7px; font-size: 22px; line-height: 1.12; }
  .kio-name span { display: block; }
  .kio-home-statement { margin: 12px 20px 28px; padding: 0; }
  .kio-home-statement h1 { max-width: 100%; font-size: clamp(26px, 7.18vw, 36px); line-height: 1.17; letter-spacing: -.035em; }
  .kio-home-statement .kio-deck { max-width: 33ch; margin-top: 20px; font-size: 18px; line-height: 1.6; }
  .kio-ochre-end { padding: 23px 20px 28px; font-size: 24px; }
  .kio-ochre-end::after { left: 20px; right: 20px; }
  .kio-opening-note { width: auto; margin: 50px 20px 0; }
  .kio-caret-note { gap: 13px; }
  .kio-caret-note img { flex-basis: 24px; width: 24px; }
  .kio-caret-note p { font-size: 20px; line-height: 1.65; }
  .kio-leaves { width: auto; margin: 0 20px; }
  .kio-entry { display: block; padding: 64px 0 30px; }
  .kio-word { max-width: 100%; margin-left: -3px; font-size: clamp(45px, 13.6vw, 80px); line-height: 1.1; letter-spacing: -.045em; }
  .kio-account { margin-top: 27px; }
  .kio-account > p:first-child { font-size: 20px; line-height: 1.7; }
  .kio-account p { line-height: 1.75; }
  .kio-margin-mark { display: none; }
  .kio-consequence { max-width: none; margin: 34px 0 0 12%; padding-left: 19px; }
  .kio-consequence h3 { font-size: 21px; line-height: 1.45; }
  .kio-consequence h3 i, .kio-consequence h3 svg { left: -53px; width: 23px; height: 23px; }
  .kio-consequence p, .kio-source-list p { font-size: 18px; }
  .kio-section-photo, .kio-entry:nth-child(even) .kio-section-photo { margin: 26px -20px 0; }
  .kio-section-photo img { height: 260px; object-position: 50% 45%; }
  .kio-section-photo figcaption, .kio-entry:nth-child(even) .kio-section-photo figcaption { max-width: none; margin: -22px 20px 0 12%; padding: 15px 18px 0; font-size: 18px; }
  .kio-next-line { display: block; width: auto; margin: 40px 20px 58px; padding-top: 20px; }
  .kio-next-line p { margin-bottom: 12px; font-size: 20px; }
  .kio-next-line a { white-space: normal; }
  .kio-inside-header { display: block; padding-bottom: 16px; }
  .kio-inside-header::after { width: 100%; height: 4px; }
  .kio-page-top { display: block; width: auto; margin: 30px 20px 0; }
  .kio-breadcrumb { margin-bottom: 26px; }
  .kio-page-top h1 { max-width: 100%; font-size: clamp(31px, 8.5vw, 45px); line-height: 1.2; }
  .kio-page-top .kio-deck { max-width: 100%; margin-top: 25px; font-size: 20px; }
  .kio-page-top .kio-intro { margin-top: 26px; }
  .kio-footer { display: block; padding: 32px 20px; }
  .kio-footer nav { justify-content: flex-start; margin: 26px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
