@charset "UTF-8";

:root {
  --co-ground: #cfe4da;
  --co-ink: #243932;
  --co-canary: #f3ec35;
  --co-paper: #fbf8e6;
  --co-brick: #a64c36;
  --co-reading: "Andika", sans-serif;
  --co-display: "Inika", Georgia, serif;
  --co-measure: min(1320px, calc(100% - 120px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; color: var(--co-ink); background: var(--co-ground); font: 19px/1.65 var(--co-reading); }
img { display: block; width: 100%; height: auto; background: var(--co-paper); }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .22em; transition: background-color .18s, text-decoration-thickness .18s; }
a:hover { text-decoration-thickness: 3px; }
a:focus-visible { outline: 3px solid var(--co-ink); outline-offset: 5px; background: var(--co-canary); color: var(--co-ink); }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-family: var(--co-display); font-weight: 400; line-height: 1.15; overflow-wrap: break-word; }
h1 { margin: 0; font-size: clamp(48px, 5.9vw, 85px); letter-spacing: -.045em; }
h2 { margin: 0 0 26px; font-size: clamp(32px, 3.1vw, 45px); letter-spacing: -.035em; }
h3 { margin: 0; font-size: 27px; letter-spacing: -.02em; }
::selection { background: var(--co-canary); color: var(--co-ink); }
.co-icon { display: inline-block; width: 21px; height: 21px; flex: 0 0 auto; vertical-align: middle; }
.co-skip { position: absolute; left: 20px; top: -120px; z-index: 10; padding: 10px 18px; background: var(--co-canary); }
.co-skip:focus { top: 12px; }

/* The two branches hold the name open. The overview sits in their gap. */
.co-mast { width: var(--co-measure); margin: 0 auto; padding: 22px 0 21px; }
.co-name { display: table; margin: 0 auto 17px; font: 700 32px/1.1 var(--co-display); letter-spacing: -.045em; text-decoration: none; }
.co-name span { display: inline-block; padding: 0 7px 3px; background: var(--co-canary); }
.co-name:hover span { outline: 2px solid var(--co-ink); outline-offset: 3px; }
.co-family-nav { position: relative; display: grid; grid-template-columns: 1fr 150px 1fr; gap: 18px; }
.co-nav-origin, .co-nav-relative { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 16px; row-gap: 3px; padding: 0 18px 12px; border-bottom: 3px solid var(--co-ink); }
.co-nav-origin { grid-column: 1; border-left: 3px solid var(--co-ink); }
.co-nav-relative { grid-column: 3; border-right: 3px solid var(--co-ink); }
.co-group-name { display: flex; align-items: center; gap: 8px; flex-basis: 100%; font-size: 15px; line-height: 1.4; }
.co-group-name .co-icon { width: 17px; height: 17px; }
.co-family-nav a { font-size: 16px; line-height: 1.4; padding: 5px 0; text-decoration: none; }
.co-family-nav a:hover { background: var(--co-paper); text-decoration: underline; }
.co-family-nav .co-nav-overview { position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 9px; padding: 7px 10px; }

/* A large open page: title at upper right, continuous gatefold at lower left. */
.co-opening { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px 24px; width: var(--co-measure); margin: 24px auto 112px; align-items: start; }
.co-guide-line { grid-column: 1 / 4; grid-row: 1; max-width: 250px; margin: 8px 0 0; padding: 19px 0 0; border-top: 3px solid var(--co-ink); font-size: 18px; line-height: 1.6; }
.co-guide-line > .co-icon { width: 30px; height: 30px; margin-bottom: 12px; }
.co-guide-line > span { display: block; }
.co-opening h1 { grid-column: 5 / -1; grid-row: 1; padding: 0 0 5px; }
.co-title-name, .co-title-source { display: block; }
.co-title-name { margin-bottom: 5px; }
.co-title-source { font-size: .78em; line-height: 1.13; letter-spacing: -.035em; max-width: 850px; }
.co-opening .co-photo { grid-column: 1 / 10; grid-row: 2; width: 960px; max-width: 100%; margin: 0; }
.co-opening .co-introduction { grid-column: 10 / -1; grid-row: 2; align-self: center; padding: 0 0 0 18px; font: 400 25px/1.48 var(--co-display); letter-spacing: -.018em; }
.co-introduction::first-letter { font-size: 1.55em; line-height: .8; }
.co-photo-frame { position: relative; overflow: hidden; border-radius: 18px; background: var(--co-paper); box-shadow: 0 18px 38px -28px rgba(36, 57, 50, .6); }
.co-gatefold { aspect-ratio: 960 / 520; animation: co-unfold .85s cubic-bezier(.2,.7,.3,1) both; }
.co-gatefold img { height: 100%; object-fit: cover; }
.co-fold { position: absolute; left: 62%; top: 0; bottom: 0; width: 6px; background: var(--co-ground); box-shadow: -9px 0 14px rgba(36, 57, 50, .12), 3px 0 7px rgba(251, 248, 230, .2); pointer-events: none; }
.co-photo figcaption { position: relative; display: flex; align-items: start; gap: 13px; width: fit-content; max-width: calc(100% - 42px); margin: 0 0 0 42px; padding: 16px 28px 18px 20px; background: var(--co-paper); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%); font-size: 15px; line-height: 1.5; }
.co-photo figcaption .co-icon { width: 18px; height: 18px; margin-top: 2px; }
.co-photo figcaption > span { max-width: 590px; }
@keyframes co-unfold { from { transform: translateY(9px) rotate(-.35deg); } to { transform: translateY(0) rotate(0); } }

/* Chapters use the facing-page structure at a larger, editorial scale. */
.co-home-reading { width: min(1200px, calc(100% - 120px)); margin: 0 auto; }
.co-prose { display: grid; grid-template-columns: .9fr 1.55fr; column-gap: 72px; row-gap: 0; margin: 0 0 80px; padding-top: 30px; border-top: 2px solid var(--co-ink); }
.co-prose > h2 { grid-column: 1; grid-row: 1 / span 8; margin: 0; }
.co-prose > p { grid-column: 2; }
.co-home-reading > .co-prose { margin: 0 0 110px; }
.co-facing { position: relative; margin: 0 0 86px; }
.co-facing-title { display: flex; align-items: center; gap: 28px; margin: 0 0 30px; }
.co-facing-title h2 { max-width: 850px; margin: 0; }
.co-family-count { min-width: 108px; margin-left: -6px; font: 400 90px/.95 var(--co-display); letter-spacing: -.065em; }
.co-facing-leaves { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.co-origin-leaf { background: var(--co-ground); padding: 0 62px 35px 30px; }
.co-adaptation-leaf { position: relative; background: var(--co-paper); padding: 0 30px 35px 52px; }
.co-origin-leaf h3, .co-adaptation-leaf h3 { display: flex; align-items: start; gap: 13px; padding: 22px 30px; margin: 0 -30px 28px -52px; min-height: 86px; }
.co-origin-leaf h3 { margin: 0 -62px 28px -30px; padding-left: 30px; padding-right: 44px; border-top: 3px solid var(--co-ink); }
.co-adaptation-leaf h3 { position: relative; margin-right: -46px; padding-left: 52px; padding-right: 40px; background: var(--co-canary); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%); }
.co-facing-leaves h3 .co-icon { margin-top: 5px; }
.co-relationship { position: absolute; z-index: 1; left: calc(50% - 40px); top: 112px; display: flex; align-items: center; gap: 4px; font: 400 106px/1 var(--co-display); pointer-events: none; }
.co-relationship > span + span { margin-top: 20px; font-size: .7em; }
.co-limitation { position: relative; margin: 0 0 0 30px; padding: 24px 30px 25px; border-top: 2px solid var(--co-ink); background: var(--co-paper); font-size: 18px; line-height: 1.6; }
.co-limitation::before { content: ""; position: absolute; top: 24px; bottom: 25px; left: 0; width: 4px; background: var(--co-brick); }
.co-limitation strong { display: block; margin-bottom: 5px; font-weight: 700; }
.co-next-reading { display: flex; align-items: center; gap: 16px; width: fit-content; max-width: 100%; margin: 10px 0 0 auto; padding: 17px 0 14px; border-top: 3px solid var(--co-ink); border-bottom: 3px solid var(--co-ink); text-decoration: none; }
.co-next-reading .co-icon { width: 28px; height: 28px; transition: transform .18s; }
.co-next-reading:hover { background: var(--co-canary); }
.co-next-reading:hover .co-icon { transform: translateX(4px); }

.co-chapter { width: min(1100px, calc(100% - 120px)); margin: 42px auto 90px; }
.co-chapter-opening { display: grid; grid-template-columns: 1fr 2.35fr; gap: 65px; align-items: start; margin-bottom: 76px; }
.co-breadcrumb { position: sticky; top: 28px; font-size: 16px; padding-top: 14px; border-top: 3px solid var(--co-ink); }
.co-breadcrumb a { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.co-breadcrumb > span { display: block; max-width: 210px; font-size: 15px; line-height: 1.5; }
.co-chapter-heading h1 { font-size: clamp(46px, 4.8vw, 70px); margin-bottom: 28px; }
.co-chapter-heading .co-introduction { max-width: 700px; font-size: 20px; }
.co-chapter > .co-prose { margin-bottom: 76px; }
.co-prose-photo { display: block; padding-top: 28px; }
.co-prose-photo > h2 { max-width: 760px; margin: 0 0 0 auto; }
.co-prose-photo > p { max-width: 760px; margin-left: auto; }
.co-prose .co-photo { width: calc(100% + 40px); max-width: calc(100vw - 80px); margin: 28px -20px 36px; }
.co-prose .co-photo-frame { aspect-ratio: 8 / 3; }
.co-prose .co-photo img { height: 100%; object-fit: cover; }
.co-chapter > .co-facing { margin-bottom: 76px; }
.co-chapter .co-facing-title { border-top: 3px solid var(--co-ink); padding-top: 25px; }
.co-shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.co-shelf li { display: grid; grid-template-columns: 50px 1fr; column-gap: 20px; align-content: start; padding: 27px 0 35px; border-top: 2px solid var(--co-ink); }
.co-reference-count { grid-column: 1; grid-row: 1 / span 2; font: 400 38px/1 var(--co-display); letter-spacing: -.05em; }
.co-shelf h2 { grid-column: 2; font-size: 27px; line-height: 1.25; margin: 0 0 17px; }
.co-shelf p { grid-column: 2; font-size: 18px; line-height: 1.6; }

.co-site-footer { width: var(--co-measure); margin: 112px auto 0; padding: 37px 36px 28px; border-top: 4px solid var(--co-ink); background: var(--co-paper); display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px 90px; }
.co-footer-thought { max-width: 740px; margin: 0; font: 400 31px/1.4 var(--co-display); letter-spacing: -.025em; }
.co-footer-links { display: flex; flex-direction: column; align-items: start; gap: 11px; }
.co-footer-links a { display: inline-flex; align-items: center; gap: 12px; }
.co-footer-links .co-icon { width: 18px; height: 18px; }
.co-copyright { font-size: 15px; grid-column: 1 / -1; margin: 0; }
.co-missing { padding: 55px 0 70px; }
.co-missing h1 { max-width: 850px; }
.co-missing p { max-width: 650px; margin-top: 30px; }

@media (max-width: 1199px) {
  :root { --co-measure: calc(100% - 64px); }
  .co-home-reading, .co-chapter { width: calc(100% - 64px); }
  .co-family-nav { grid-template-columns: 1fr 115px 1fr; gap: 12px; }
  .co-nav-origin, .co-nav-relative { column-gap: 10px; padding-left: 12px; padding-right: 12px; }
  .co-family-nav a { font-size: 15px; }
  .co-opening h1 { grid-column: 4 / -1; font-size: clamp(52px, 6.8vw, 80px); }
  .co-opening .co-photo { width: 100%; }
  .co-opening .co-introduction { padding-left: 0; font-size: 22px; }
  .co-guide-line { font-size: 17px; }
  .co-prose { column-gap: 45px; }
  .co-family-count { min-width: 90px; font-size: 78px; }
  .co-chapter-opening { gap: 40px; }
  .co-shelf { column-gap: 35px; }
  .co-site-footer { column-gap: 50px; }
}

@media (max-width: 900px) and (min-width: 761px) {
  .co-family-nav { grid-template-columns: 1fr 95px 1fr; }
  .co-nav-origin, .co-nav-relative { justify-content: start; }
  .co-opening .co-photo { grid-column: 1 / -1; width: 100%; }
  .co-opening .co-introduction { grid-column: 5 / -1; grid-row: 3; font-size: 25px; }
  .co-origin-leaf { padding-right: 48px; padding-left: 20px; }
  .co-adaptation-leaf { padding-right: 20px; padding-left: 42px; }
  .co-origin-leaf h3 { margin-left: -20px; margin-right: -48px; padding-left: 20px; }
  .co-adaptation-leaf h3 { margin-left: -42px; margin-right: -30px; padding-left: 42px; }
  .co-facing-leaves h3 { font-size: 24px; }
}

@media (max-width: 760px) {
  :root { --co-measure: calc(100% - 40px); }
  html { scroll-padding-top: 18px; }
  body { font-size: 18px; line-height: 1.65; }
  h2 { font-size: 32px; line-height: 1.2; }
  h3 { font-size: 25px; }
  .co-mast { padding: 18px 0 18px; }
  .co-name { margin: 0 0 11px; font-size: 29px; }
  .co-name span { padding-bottom: 2px; }
  .co-family-nav { display: grid; grid-template-columns: .85fr 1.15fr; gap: 10px 20px; }
  .co-family-nav .co-nav-overview { position: static; transform: none; grid-column: 1 / -1; grid-row: 1; justify-self: start; min-height: 36px; padding: 3px 0; font-size: 16px; }
  .co-nav-origin, .co-nav-relative { display: flex; flex-direction: column; align-items: start; justify-content: start; grid-row: 2; gap: 0; border: 0; padding: 0; }
  .co-nav-origin { grid-column: 1; }
  .co-nav-relative { grid-column: 2; }
  .co-group-name { flex-basis: auto; gap: 6px; margin-bottom: 5px; font-size: 14px; line-height: 1.4; white-space: nowrap; }
  .co-group-name .co-icon { width: 16px; height: 16px; }
  .co-family-nav a { max-width: 100%; min-height: 30px; font-size: 15px; line-height: 1.35; padding: 4px 0; text-decoration: underline; }
  .co-opening { display: flex; flex-direction: column; gap: 22px; margin: 22px auto 65px; }
  .co-guide-line { display: flex; gap: 12px; max-width: 100%; font-size: 16px; line-height: 1.5; margin: 0; padding-top: 14px; border-top-width: 2px; }
  .co-guide-line > .co-icon { width: 24px; height: 24px; margin: 1px 0 0; }
  .co-opening h1 { padding: 0; font-size: clamp(40px, 11.1vw, 68px); line-height: 1.14; letter-spacing: -.045em; }
  .co-title-name { margin-bottom: 4px; }
  .co-title-source { font-size: .9em; line-height: 1.16; }
  .co-opening .co-photo { width: 100%; max-width: 100%; margin: 0; }
  .co-gatefold { aspect-ratio: 350 / 230; animation: none; }
  .co-gatefold img { object-position: 43% center; }
  .co-fold { display: none; }
  .co-photo-frame { box-shadow: 0 14px 25px -23px rgba(36, 57, 50, .6); }
  .co-photo figcaption { max-width: calc(100% - 12px); margin-left: 12px; padding: 13px 19px 15px 14px; gap: 9px; font-size: 14px; }
  .co-photo figcaption .co-icon { width: 17px; height: 17px; }
  .co-opening .co-introduction { padding: 0 0 0 18px; border-left: 2px solid var(--co-ink); font-size: 25px; line-height: 1.45; }
  .co-home-reading, .co-chapter { width: calc(100% - 40px); }
  .co-prose { display: block; padding-top: 23px; }
  .co-prose > h2 { margin-bottom: 24px; }
  .co-home-reading > .co-prose { margin-bottom: 64px; }
  .co-facing { margin-bottom: 60px; }
  .co-facing-title { align-items: start; gap: 17px; margin-bottom: 24px; }
  .co-family-count { min-width: 54px; margin: 0; font-size: 52px; line-height: 1.05; }
  .co-facing-title h2 { font-size: 31px; }
  .co-facing-leaves { display: block; }
  .co-origin-leaf, .co-adaptation-leaf { padding: 0 24px 26px; }
  .co-origin-leaf { padding-left: 0; }
  .co-origin-leaf h3, .co-adaptation-leaf h3 { min-height: 0; margin: 0 -24px 22px; padding: 18px 24px; gap: 10px; }
  .co-origin-leaf h3 { margin-left: 0; padding-left: 0; padding-right: 22px; }
  .co-adaptation-leaf h3 { margin-right: -8px; padding-right: 28px; }
  .co-facing-leaves h3 .co-icon { margin-top: 4px; width: 20px; height: 20px; }
  .co-relationship { position: static; justify-content: end; margin: -18px 18px 13px 0; font-size: 50px; line-height: 1; }
  .co-relationship > span + span { margin-top: 7px; }
  .co-limitation { margin-left: 0; padding: 22px 18px 24px; font-size: 18px; }
  .co-limitation::before { top: 24px; bottom: 26px; }
  .co-next-reading { margin-left: 0; font-size: 18px; gap: 13px; }
  .co-chapter { margin: 28px auto 60px; }
  .co-chapter-opening { display: block; margin-bottom: 45px; }
  .co-breadcrumb { position: static; padding-top: 12px; margin-bottom: 25px; border-top-width: 2px; }
  .co-breadcrumb a { margin: 0; }
  .co-breadcrumb > span, .co-breadcrumb br { display: none; }
  .co-chapter-heading h1 { font-size: 44px; line-height: 1.16; margin-bottom: 22px; }
  .co-chapter-heading .co-introduction { font-size: 19px; }
  .co-chapter > .co-prose, .co-chapter > .co-facing { margin-bottom: 54px; }
  .co-prose .co-photo { width: calc(100% + 16px); max-width: calc(100vw - 24px); margin: 24px -8px 30px; }
  .co-prose .co-photo-frame { aspect-ratio: 350 / 175; }
  .co-chapter .co-facing-title { padding-top: 22px; }
  .co-shelf { display: block; }
  .co-shelf li { grid-template-columns: 35px 1fr; gap: 0 15px; padding: 25px 0 30px; }
  .co-reference-count { font-size: 30px; }
  .co-shelf h2 { font-size: 25px; }
  .co-shelf p { font-size: 18px; }
  .co-site-footer { display: block; margin-top: 70px; padding: 26px 20px; }
  .co-footer-thought { font-size: 26px; margin-bottom: 27px; }
  .co-footer-links { margin-bottom: 28px; gap: 14px; font-size: 17px; }
  .co-missing { padding: 25px 0; }
}

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