/* A studio journal: blue ink, a cloth-bound spine, and notes in the margin. */
:root {
  --paper: #f7f8fa;
  --paper-deep: #edf0f5;
  --ink: #253449;
  --muted: #596577;
  --accent: #754253;
  --line: #cbd2de;
  --dark: #1e2a3b;
}

body::before { opacity: .014; }
::selection { background: #ded5e0; color: var(--ink); }

/* The imprint and table of contents. */
.site-header { border-bottom: 3px double var(--line); }
.header-inner { min-height: 108px; }
.brand {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.8rem;
  line-height: .95;
  letter-spacing: -.01em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 53px;
  border: 1px solid var(--ink);
  border-left: 4px double var(--ink);
  font-size: 2.25rem;
  font-style: italic;
  line-height: 1;
  padding: 0 .15rem .15rem 0;
}
.brand i { font-weight: 400; }
.main-nav { gap: 2.2rem; }
.main-nav .nav-contact {
  border: 0;
  border-bottom: 1px solid var(--accent);
  padding: .5rem 0;
  color: var(--accent);
}
.nav-contact:hover { background: transparent; color: var(--ink); }

/* A title page facing a frontispiece. */
.hero { padding-top: 2rem; }
.hero-topline { padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.hero-topline .eyebrow {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.edition { text-transform: none; letter-spacing: .025em; }
.hero-layout {
  position: relative;
  grid-template-columns: 1.12fr 1fr;
  min-height: 610px;
  padding-block: 2.8rem 3rem;
  gap: 2.5rem;
}
.hero-layout::after {
  position: absolute;
  top: 2rem;
  bottom: 2rem;
  left: 53%;
  width: 1px;
  content: "";
  background: linear-gradient(transparent, var(--line) 15%, var(--line) 85%, transparent);
}
.prologue-label {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 1.6rem;
}
.hero h1 { font-size: clamp(4.7rem, 7.35vw, 7rem); line-height: 1.02; }
.hero h1 em { color: var(--ink); }
.hero-subtitle { margin-top: 2rem; }
.hero-description { max-width: 28rem; }
.button-dark {
  margin-top: 1.8rem;
  background: transparent;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding: .65rem 0;
  gap: 2rem;
  min-height: 48px;
}
.button-dark:hover { background: transparent; color: var(--ink); transform: none; border-color: var(--ink); }
.button-symbol { font-family: var(--serif); font-style: italic; font-size: 1.1rem; }
.hero-art { padding: 0 .25rem 0 1.5rem; }
.hero-art img { mix-blend-mode: multiply; }
.hero-art figcaption {
  flex-direction: column;
  gap: .25rem;
  margin-top: .5rem;
  font-style: italic;
  color: var(--ink);
}
.figure-number {
  font-size: .75rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
}
.hero-baseline { border-top: 3px double var(--line); }
.scroll-link { font-family: var(--serif); font-style: italic; font-size: 1.1rem; }

/* Chapters, marginalia, and numbered references replace UI ornaments. */
.section-label {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  align-items: baseline;
  gap: 1.2rem;
  color: var(--muted);
}
.section-number { font-style: italic; white-space: nowrap; }
.section-label::after { content: ""; height: 1px; background: var(--line); flex: 1; margin-left: .7rem; }
.section-label { line-height: 1.35; }
.problem-content > p:first-child::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 4rem;
  line-height: .8;
  margin: .1rem .55rem 0 0;
  color: var(--ink);
}
.list-index, .journey-number { font-family: var(--serif); font-style: italic; letter-spacing: 0; }
.list-index { font-size: 1.2rem; }
.creator-section { background: var(--paper-deep); border-block: 1px solid var(--line); }
.discipline-detail { border-left: 1px solid var(--accent); padding-left: 1.4rem; }
.detail-kicker { font-family: var(--serif); font-size: 1.1rem; font-style: italic; letter-spacing: 0; text-transform: none; }
.creator-core {
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
  border: 3px double var(--ink);
  box-shadow: 0 0 0 8px var(--paper-deep);
}
.creator-core strong { font-style: italic; }
.discipline-node { border: 0; border-bottom: 1px solid #b7c2d4; border-radius: 0; }
.discipline-node:hover, .discipline-node.is-selected { background: var(--paper); border-bottom-color: var(--accent); }
.discipline-node.is-selected { box-shadow: none; }
.node-glyph { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--accent); line-height: 1; }
.diagram-caption { font-family: var(--serif); font-size: 1.05rem; font-style: italic; text-transform: none; letter-spacing: 0; }
.step-marker { border-radius: 0; width: 13px; height: 19px; border-color: #aab6c8; }
.step-marker::after { border-radius: 0; inset: 5px 3px; }
.workflow-step.is-selected .step-marker { border-color: var(--accent); background: var(--accent); }
.workflow-step.is-selected .step-marker::after { inset: 5px 3px; background: var(--paper); }
.workflow-track::after { bottom: 9px; }
.workflow-stage-label { font-family: var(--serif); font-size: 1.2rem; font-style: italic; text-transform: none; letter-spacing: 0; }
.infrastructure-section { background: #f1f3f7; }
.feature-icon { font-family: var(--serif); font-style: italic; font-size: 2.1rem; color: var(--accent); }
.infrastructure-item h3 { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; line-height: 1.15; }
.tools-note p { color: var(--muted); }

/* A passage underlined in the author's ink. */
.philosophy-section { background: var(--paper); color: var(--ink); border-block: 3px double var(--line); }
.philosophy-section .section-label { color: var(--muted); }
.philosophy-section .section-number { color: var(--accent); }
.philosophy-heading { gap: 2rem; }
.opening-quote { font-family: var(--serif); font-size: 9rem; line-height: .9; color: var(--accent); }
.philosophy-heading h2 { font-size: clamp(4.5rem, 7.5vw, 7.2rem); }
.philosophy-heading h2 em { color: var(--accent); }
.philosophy-bottom > p { color: var(--ink); }
.philosophy-bottom > div p { color: var(--muted); }
.philosophy-bottom > div p + p { color: var(--accent); }
.principles { border-color: var(--line); color: var(--muted); }
.journey-footnote > span { font-family: var(--serif); font-style: italic; font-size: 1rem; }

/* The last page is a letter, set against a blue cloth cover. */
.contact-section { background: var(--dark); color: var(--paper); border-block: 0; }
.contact-inner { padding-block: 4.5rem 5.5rem; }
.contact-section .section-label { color: #c6d1e1; }
.contact-section .section-label::after { background: #526078; }
.contact-section .section-number { color: #d8bdcb; }
.contact-layout h2 { font-size: clamp(3.3rem, 5.4vw, 5.1rem); }
.contact-layout h2 em { color: #d8bdcb; }
.contact-copy p { color: #d0d9e7; }
.contact-email { border-color: #7d8fa8; color: var(--paper); display: block; letter-spacing: -.015em; }
.contact-email:hover { color: #dcc4d2; }
.contact-email .email-address { font-size: 1.15rem; overflow-wrap: anywhere; }
.contact-email .email-note { display: block; font-family: var(--serif); font-size: 1.2rem; font-style: italic; color: #d8bdcb; margin-top: .5rem; }
.copy-email { color: #d0d9e7; }
.copy-email:hover { color: white; }
.copy-feedback { color: #d8bdcb; }
.footer-brand { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.site-footer { border-top: 0; }

@media (max-width: 1100px) {
  .hero-layout { min-height: 610px; gap: 2rem; }
  .hero h1 { font-size: clamp(4rem, 7.2vw, 6.5rem); }
}
@media (max-width: 800px) {
  .header-inner { min-height: 92px; }
  .brand { font-size: 1.5rem; }
  .brand-mark { width: 35px; height: 44px; font-size: 1.9rem; }
  .main-nav { gap: 1.2rem; }
  .hero-layout { gap: 1.5rem; min-height: 570px; }
  .hero h1 { font-size: clamp(3.3rem, 7.4vw, 5rem); }
  .hero-layout::after { left: 53%; }
  .hero-art { width: 100%; margin: 0; padding-left: .5rem; }
  .prologue-label { margin-bottom: 1rem; }
  .philosophy-heading h2 { font-size: 5.5rem; }
  .opening-quote { font-size: 7rem; }
  .infrastructure-item h3 { font-size: 1.6rem; }
}
@media (max-width: 600px) {
  .header-inner { min-height: 84px; }
  .brand { font-size: 1.45rem; }
  .brand-mark { width: 33px; height: 42px; font-size: 1.8rem; }
  .js-enabled .main-nav { top: 83px; }
  .hero-topline .eyebrow { font-size: 1.15rem; }
  .hero-topline { padding-bottom: 1.1rem; }
  .hero-layout { grid-template-columns: 1fr; min-height: auto; padding-block: 2.3rem 2rem; gap: 1.3rem; }
  .hero-layout::after { display: none; }
  .hero h1 { font-size: clamp(3.4rem, 12.5vw, 5.8rem); }
  .prologue-label { font-size: 1.2rem; margin-bottom: 1.2rem; }
  .hero-subtitle { margin-top: 1.5rem; }
  .hero-art { width: 90%; max-width: 360px; padding: 0; margin-top: .5rem; }
  .hero-baseline { gap: 1rem; }
  .hero-baseline > span { max-width: 11rem; }
  .scroll-link { font-size: .9rem; flex-shrink: 1; text-align: right; }
  .section-label { font-size: 1.05rem; gap: .7rem; }
  .section-label::after { display: none; }
  .creator-core { box-shadow: 0 0 0 5px var(--paper-deep); }
  .creator-core strong { font-size: 2.8rem; }
  .node-glyph { font-size: 1rem; }
  .diagram-caption { font-size: .95rem; }
  .step-marker { width: 13px; height: 19px; }
  .workflow-stage-label { font-size: 1.05rem; }
  .infrastructure-item h3 { font-size: 1.45rem; }
  .feature-icon { font-size: 1.7rem; }
  .philosophy-heading { gap: .8rem; }
  .philosophy-heading h2 { font-size: clamp(3.2rem, 11.9vw, 5rem); }
  .opening-quote { font-size: 4rem; }
  .contact-inner { padding-block: 3.5rem 4rem; }
  .contact-layout h2 { font-size: clamp(2.7rem, 10.2vw, 4rem); }
  .contact-email .email-address { font-size: 1.05rem; }
  .footer-brand { font-size: 1.45rem; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 12.2vw; }
  .contact-email .email-address { font-size: .95rem; }
}

/* Chapter I: the workshop ledger */
.ledger-copy { font-size: .95rem; max-width: 30rem; margin-top: 1.4rem; line-height: 1.8; }
.ledger-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--line); }
.ledger-grid > div { display: flex; flex-direction: column; justify-content: space-between; padding: 1.4rem 1rem 1.4rem 0; border-bottom: 1px solid var(--line); }
.ledger-grid > div:not(:nth-child(3n+1)) { border-left: 1px solid var(--line); padding-left: 1.2rem; }
.ledger-grid dt { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ledger-grid dd { margin: .35rem 0 0; font-family: var(--serif); font-size: clamp(2.4rem, 3.6vw, 3.4rem); line-height: 1; color: var(--ink); }
.ledger-chart { margin-top: 2.2rem; }
.ledger-chart ol { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .55rem; }
.ledger-chart li { display: grid; grid-template-columns: 2.6rem 1fr 6.5rem; align-items: center; gap: 1rem; font-size: .85rem; color: var(--muted); }
.ledger-chart li > span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }
.ledger-chart li i { color: var(--muted); font-size: .75rem; }
.ledger-bar { display: block; height: 10px; border-bottom: 1px solid var(--line); }
.ledger-fill { display: block; height: 100%; background: var(--accent); opacity: .85; }
.ledger-fill.v-443 { width: 84.2%; }
.ledger-fill.v-526 { width: 100%; }
.ledger-fill.v-385 { width: 73.2%; }
.ledger-fill.v-96 { width: 18.3%; }
.ledger .journey-footnote { margin-top: 3rem; }
@media (max-width: 600px) {
  .ledger-grid { grid-template-columns: repeat(2, 1fr); }
  .ledger-grid > div:not(:nth-child(3n+1)) { border-left: none; padding-left: 0; }
  .ledger-grid > div:nth-child(even) { border-left: 1px solid var(--line); padding-left: 1rem; }
  .ledger-chart li { grid-template-columns: 2.2rem 1fr 5.6rem; gap: .7rem; }
}
