:root {
  --ink: #191a17;
  --paper: #f1efea;
  --muted: #56584e;
  --rule: #cbc8c0;
  --olive: #626944;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 2rem;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Cormorant Garamond', Georgia, serif;
  background-image: radial-gradient(rgba(0, 0, 0, 0.025) 0.7px, transparent 0.7px);
  background-size: 4px 4px;
}
a {
  color: inherit;
  text-underline-offset: 0.22em;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
h2[tabindex]:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 5px;
}
.mono,
.research-header nav {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem;
  line-height: 1.6;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.research-header,
.research-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 2.5rem;
  padding: 1.15rem 1.7rem;
  border-bottom: 1px solid var(--ink);
}
.wordmark {
  font-size: 0.82rem;
  letter-spacing: 0.23em;
  text-decoration: none;
}
.research-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
}
.research-header nav a {
  text-decoration: none;
}
.research-header nav a:hover {
  text-decoration: underline;
}
main {
  margin: 0 auto;
  max-width: 1600px;
  padding: 0 3rem;
}
.research-opening {
  padding: 1.7rem 1.2rem 2rem;
}
.eyebrow {
  margin: 0 0 0.6rem;
}
h1 {
  margin: 0;
  font-size: clamp(3.5rem, 5.2vw, 5.2rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.035em;
}
h1 em {
  font-weight: 500;
}
.research-opening > p:last-child {
  font-size: 1.65rem;
  margin: 0.8rem 0 0;
  line-height: 1.35;
}
.topic-nav {
  display: none;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  border-top: 1px solid var(--olive);
  padding-top: 1.7rem;
}
.domain {
  min-width: 0;
  scroll-margin-top: 1.5rem;
}
.domain > h2 {
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 1.6rem 0.7rem;
  letter-spacing: -0.02em;
}
.domain-cards {
  display: grid;
  gap: 1.1rem;
}
.workflow-card {
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 1.5rem 2rem 1.2rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 270px;
}
.workflow-card:hover {
  border-color: var(--olive);
  background: #eae8df;
}
.card-topic {
  display: block;
  font-size: 0.62rem;
  min-height: 2.2rem;
}
.workflow-card h3 {
  font-size: clamp(1.7rem, 2.2vw, 2.25rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 1.1rem;
}
.workflow-card > p {
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 0 0 1.8rem;
}
.card-footer {
  margin-top: auto;
  border-top: 1px solid var(--olive);
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.icon {
  height: 22px;
  width: 22px;
  flex-shrink: 0;
}
.editorial-method {
  margin: 1.5rem 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}
.editorial-method summary {
  cursor: pointer;
  width: fit-content;
}
.editorial-method p {
  max-width: 65ch;
}
.research-footer {
  border-top: 1px solid var(--ink);
  border-bottom: 0;
  margin-top: 2.5rem;
  padding-top: 1.3rem;
}
.research-footer p {
  margin: 0;
  font-size: 1.1rem;
  font-style: italic;
}
.workflow-brief {
  padding: 2.4rem 3rem 1.5rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  margin: 2rem auto;
  max-width: 1000px;
}
.brief-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-right: 1.5rem;
  font-size: 0.58rem;
}
.brief-meta span:first-child {
  max-width: 65%;
}
.brief-heading > h2 {
  font-size: clamp(2.3rem, 3.4vw, 3.4rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 1.2rem 0 0.5rem;
}
.brief-heading > p {
  font-size: 1.3rem;
  line-height: 1.4;
  margin: 0.5rem 0 1.6rem;
}
.brief-row {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}
.brief-row > h3 {
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  padding-right: 1rem;
  border-right: 1px solid var(--rule);
}
.brief-row p,
.brief-row ol {
  font-size: 1.12rem;
  line-height: 1.45;
  margin: 0;
}
.brief-row ol {
  padding-left: 1.25rem;
}
.brief-row li + li {
  margin-top: 0.25rem;
}
.brief-row .editorial-note,
.editorial-note {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.evidence-gap {
  color: var(--muted);
}
.brief-resources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border-top: 1px solid var(--ink);
  padding-top: 1.1rem;
}
.brief-resources h3 {
  margin: 0 0 0.8rem;
}
.resources {
  padding: 0;
  margin: 0;
  list-style: none;
}
.resources li {
  margin-bottom: 1rem;
}
.resource-kind {
  display: block;
  color: var(--muted);
  font-size: 0.57rem;
}
.resources a {
  font-size: 1.2rem;
  line-height: 1.3;
}
.resources p {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0.4rem 0;
}
.resources .resource-meta {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}
.supporting-notes {
  margin: 1rem 0;
  font-size: 1rem;
  line-height: 1.5;
}
.supporting-notes summary {
  cursor: pointer;
}
.brief-engagement {
  border-top: 1px solid var(--ink);
  padding-top: 1.2rem;
}
.brief-engagement a {
  display: grid;
  grid-template-columns: 1.5fr 1fr 22px;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
}
.brief-engagement a > span:first-child {
  font-size: 1.5rem;
  line-height: 1.2;
  font-style: italic;
}
.engagement-note {
  font-size: 0.95rem;
  line-height: 1.4;
  padding-left: 1rem;
  border-left: 1px solid var(--rule);
}
.brief-engagement a:hover > span:first-child {
  text-decoration: underline;
}
.brief-permalink {
  font-size: 0.55rem;
  margin: 1rem 0 0;
  color: var(--muted);
}
.brief-engagement a.keep-practice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  border-top: 1px solid var(--rule);
  margin-top: 1rem;
  padding-top: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 1.1rem;
}
.brief-engagement a.keep-practice .engagement-note {
  font-size: 0.9rem;
  font-style: normal;
  text-decoration: none;
}
.workflow-dialog {
  width: min(1000px, calc(100% - 4rem));
  max-height: calc(100dvh - 4rem);
  padding: 0;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--paper);
  font-family: inherit;
  overflow: auto;
  overscroll-behavior: contain;
}
.workflow-dialog::backdrop {
  background: rgba(241, 239, 234, 0.72);
}
.workflow-dialog .workflow-brief {
  border: 0;
  margin: 0;
}
#close-workflow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--paper);
  cursor: pointer;
  display: grid;
  place-items: center;
}
body:has(.workflow-dialog[open]) {
  overflow: hidden;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--paper);
  z-index: 10;
  padding: 1rem;
}
.skip-link:focus {
  top: 1rem;
}
.noscript-note {
  margin: 1rem 3rem;
}
@media (min-width: 1100px) {
  .domain-cards {
    grid-template-rows: repeat(2, minmax(270px, 1fr));
    height: calc(100% - 4.5rem);
  }
}
@media (max-width: 1099px) {
  main {
    padding: 0 2rem;
  }
  .research-header,
  .research-footer {
    margin: 0 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .workflow-card {
    padding: 1.3rem;
    min-height: 300px;
  }
  .workflow-card h3 {
    font-size: 1.85rem;
  }
  .card-grid {
    gap: 1rem;
  }
  .card-topic {
    min-height: 3rem;
  }
  .workflow-card > p {
    font-size: 1.1rem;
  }
  .domain > h2 {
    font-size: 2rem;
    margin-left: 0;
  }
}
@media (max-width: 760px) {
  main {
    padding: 0 1.25rem;
  }
  .research-opening {
    padding: 2rem 0 1.8rem;
  }
  h1 {
    font-size: clamp(3rem, 10vw, 4rem);
  }
  .research-opening > p:last-child {
    font-size: 1.3rem;
  }
  .topic-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.2rem;
    padding: 1rem 0;
    border-top: 1px solid var(--rule);
    font-size: 1.1rem;
  }
  .card-grid {
    grid-template-columns: 1fr;
    padding-top: 1.5rem;
    gap: 2rem;
  }
  .domain > h2 {
    margin-bottom: 1rem;
    font-size: 2.25rem;
  }
  .workflow-card {
    min-height: 235px;
    padding: 1.4rem;
  }
  .workflow-card h3 {
    font-size: 2rem;
  }
  .card-topic {
    min-height: 0;
    margin-bottom: 1rem;
  }
  .workflow-card > p {
    font-size: 1.2rem;
  }
  .research-footer {
    margin-top: 1.5rem;
  }
  .workflow-dialog {
    width: calc(100% - 1rem);
    max-height: calc(100dvh - 1rem);
  }
  .workflow-brief {
    padding: 3.5rem 1.25rem 1.5rem;
  }
  .brief-meta {
    display: block;
    padding: 0;
  }
  .brief-meta span {
    display: block;
    max-width: 100% !important;
  }
  .brief-meta span + span {
    margin-top: 0.5rem;
  }
  .brief-heading > h2 {
    font-size: 2.5rem;
  }
  .brief-heading > p {
    font-size: 1.2rem;
  }
  .brief-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .brief-row > h3 {
    border: 0;
    font-size: 1.4rem;
  }
  .brief-resources {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .brief-engagement a {
    grid-template-columns: 1fr 22px;
  }
  .engagement-note {
    grid-column: 1;
    grid-row: 2;
    border: 0;
    padding: 0;
  }
  .brief-engagement .icon {
    grid-column: 2;
    grid-row: 1;
  }
  #close-workflow {
    top: 0.4rem;
    right: 0.4rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}

/* Match the selected collection and opened-sheet proportions. */
@media (min-width: 1100px) {
  .research-header {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .research-opening {
    padding-top: 1.4rem;
    padding-bottom: 1rem;
  }
  .workflow-card h3 {
    font-size: 2.4vw;
  }
  .workflow-card > p {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
  }
  .editorial-method {
    margin: 0.8rem 0;
  }
  .research-footer {
    margin-top: 1rem;
  }
}
@media (min-width: 761px) {
  .workflow-dialog {
    width: min(900px, calc(100% - 4rem));
    margin: 12rem auto 2rem;
    max-height: calc(100dvh - 14rem);
  }
  body:has(.workflow-dialog[open]) .research-opening h1 {
    font-size: 3.6rem;
  }
  body:has(.workflow-dialog[open]) .topic-nav {
    display: flex;
    position: absolute;
    top: 6.2rem;
    right: 3rem;
    gap: 2rem;
    font-size: 1.3rem;
  }
  body:has(.workflow-dialog[open]) .research-header nav a[href='/coach.html?talk=1'] {
    display: none;
  }
}
@media (max-width: 760px) {
  .workflow-dialog {
    margin: 0.5rem auto;
  }
}
@media (min-width: 761px) and (max-height: 650px) {
  .workflow-dialog {
    margin: 2rem auto;
    max-height: calc(100dvh - 4rem);
  }
}
.workflow-dialog {
  overflow: hidden;
}
#workflow-dialog-content {
  overflow: auto;
  overscroll-behavior: contain;
  max-height: calc(100dvh - 14rem);
}
.workflow-dialog .brief-engagement {
  position: sticky;
  bottom: 0;
  background: var(--paper);
  padding-bottom: 1rem;
}
.workflow-dialog .brief-permalink {
  margin-bottom: 0.25rem;
}
@media (max-width: 760px) {
  #workflow-dialog-content {
    max-height: calc(100dvh - 1rem);
  }
}
@media (min-width: 761px) and (max-height: 650px) {
  #workflow-dialog-content {
    max-height: calc(100dvh - 4rem);
  }
}
.workflow-dialog::backdrop {
  background: rgba(241, 239, 234, 0.25);
}
.brief-heading h2:focus {
  outline: none;
}
@media (min-width: 1100px) {
  .domain-cards {
    grid-template-rows: 270px 310px;
    height: auto;
  }
  .workflow-card {
    min-height: 0;
    padding: 1.35rem 2rem 1.1rem;
  }
  .card-topic {
    min-height: 1.6rem;
  }
  .workflow-card h3 {
    font-size: 2.25vw;
    margin-bottom: 0.8rem;
  }
  .workflow-card > p {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }
}
.workflow-dialog {
  max-width: calc(100% - 1rem);
}
#workflow-dialog-content {
  scroll-padding-top: 4rem;
  scroll-padding-bottom: 10rem;
}
@media (min-width: 761px) {
  .brief-row {
    grid-template-columns: 11.5rem minmax(0, 1fr);
  }
}

/* Systems remain a quiet introduction; their detail opens on demand. */
.system-intro {
  margin: 0 0 1.4rem;
}
.system-intro h3 {
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.1;
  margin: 0.4rem 0;
}
.system-intro > p {
  font-size: 1.15rem;
  line-height: 1.4;
  margin: 0.6rem 0;
}
.system-view summary,
.source-details summary {
  cursor: pointer;
  color: var(--olive);
  padding: 0.65rem 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
}
.system-view > p {
  font-size: 1.1rem;
  line-height: 1.4;
}
.system-diagram {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--rule);
}
.system-diagram figcaption {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.system-stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.3rem;
}
.system-stages li {
  position: relative;
  border-left: 2px solid var(--olive);
  padding-left: 0.7rem;
}
.system-stages li:not(:last-child)::after {
  content: '↓';
  position: absolute;
  bottom: -1.2rem;
  left: 0.7rem;
  color: var(--olive);
}
.system-stages strong {
  display: block;
  font-weight: 600;
  font-size: 1.2rem;
}
.system-stages span {
  font-size: 1rem;
}
.feedback-path {
  border-bottom: 1px solid var(--olive);
  color: var(--olive);
  padding-bottom: 0.6rem;
  font-size: 1.1rem;
}
.context-path {
  font-size: 1.05rem;
  line-height: 1.35;
}
.system-facts {
  margin: 0;
}
.system-facts > div + div {
  margin-top: 0.9rem;
}
.system-facts dt {
  font-weight: 600;
}
.system-facts dd {
  margin: 0.2rem 0 0;
}
.source-details {
  border-top: 1px solid var(--rule);
  margin-top: 1rem;
}
.source-details .brief-resources {
  padding-top: 0.75rem;
}
@media (min-width: 1100px) {
  .domain-cards {
    grid-template-rows: repeat(2, minmax(290px, auto));
  }
}

@media (min-width: 1100px) {
  .system-intro {
    min-height: 210px;
  }
}
@media (max-width: 760px) {
  .brief-engagement {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    padding-top: 0.7rem;
  }
  .brief-engagement a {
    display: block;
    font-size: 1.1rem;
    padding: 0.4rem 0;
  }
  .brief-engagement .engagement-note,
  .brief-engagement .icon {
    display: none;
  }
}

/* Editorial reading sheets and system plates. */
.mono,
.research-header nav {
  font-size: 0.75rem;
  letter-spacing: 0.07em;
}
.research-header nav a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.domain > h2 {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.75rem;
  margin: 0 0 1rem;
}
.system-intro h3 {
  font-size: 1.45rem;
  font-style: italic;
}
.card-topic {
  font-size: 0.7rem;
}
.workflow-card {
  border-radius: 0;
}
.workflow-dialog {
  width: min(1000px, calc(100% - 2rem));
  margin: 1rem auto;
  max-height: calc(100dvh - 2rem);
}
#workflow-dialog-content {
  max-height: calc(100dvh - 2rem);
  scroll-padding-bottom: 2rem;
}
.workflow-dialog::backdrop,
.system-sheet::backdrop {
  background: #191a1780;
}
.workflow-dialog .brief-engagement {
  position: static;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  padding: 1rem 0;
}
.workflow-dialog .brief-engagement a {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.2rem;
}
.workflow-dialog .brief-engagement .engagement-note {
  display: none;
}
.workflow-dialog .brief-engagement a.keep-practice {
  border: 0;
  margin: 0;
  padding: 0;
}
.workflow-dialog .workflow-brief {
  padding: 2.5rem clamp(1.25rem, 5vw, 4rem);
}
.brief-row p,
.brief-row ol {
  font-size: 1.2rem;
  line-height: 1.55;
}
.brief-meta {
  padding-right: 2.5rem;
  font-size: 0.7rem;
}
#close-workflow {
  z-index: 2;
  border: 1px solid var(--rule);
}
.system-sheet {
  width: min(1120px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: clamp(1.25rem, 4vw, 3rem);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
}
.close-system {
  display: block;
  margin-left: auto;
  padding: 0.7rem;
  background: none;
  border: 1px solid var(--ink);
  font:
    0.75rem 'IBM Plex Mono',
    monospace;
  cursor: pointer;
}
.system-content > p {
  max-width: 65ch;
  font-size: 1.2rem;
  line-height: 1.5;
}
.system-diagram {
  border: 0;
  border-top: 3px double var(--ink);
  border-bottom: 3px double var(--ink);
  padding: 1.5rem 0;
}
.system-diagram figcaption {
  margin-bottom: 2rem;
}
.system-diagram figcaption span,
.system-diagram figcaption strong {
  display: block;
}
.system-diagram figcaption strong {
  margin-top: 0.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
}
.system-stages {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}
.system-stages li {
  border: 0;
  border-top: 1px solid var(--ink);
  padding: 0.8rem 0;
}
.system-stages .stage-number {
  display: block;
  font:
    0.7rem 'IBM Plex Mono',
    monospace;
  margin-bottom: 1rem;
}
.system-stages strong {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}
.system-stages span {
  font-size: 1.05rem;
  line-height: 1.4;
}
.system-stages li:not(:last-child)::after {
  content: '→';
  top: -0.8rem;
  right: -0.65rem;
  left: auto;
  bottom: auto;
  color: var(--ink);
  background: var(--paper);
}
.feedback-path {
  position: relative;
  border: 1px solid var(--ink);
  border-top: 0;
  margin: 0.4rem 0.3rem 1.5rem;
  padding: 1rem;
  text-align: center;
  color: var(--ink);
}
.feedback-path::before,
.feedback-path::after {
  content: '↑';
  position: absolute;
  top: -0.8rem;
  background: var(--paper);
}
.feedback-path::before {
  left: -0.35rem;
}
.feedback-path::after {
  right: -0.35rem;
}
.context-path {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border-top: 1px solid var(--rule);
  font-size: 1.15rem;
  line-height: 1.5;
}
.context-path strong {
  display: block;
}
body:has(.system-sheet[open]) {
  overflow: hidden;
}
@media (max-width: 760px) {
  .system-stages {
    grid-template-columns: 1fr;
    margin-left: 1rem;
    border-left: 1px solid var(--ink);
    padding-left: 1.5rem;
  }
  .system-stages li {
    padding: 0.6rem 0;
  }
  .system-stages .stage-number {
    margin-bottom: 0.3rem;
  }
  .system-stages li:not(:last-child)::after {
    content: '↓';
    left: -1.9rem;
    right: auto;
    top: auto;
    bottom: -0.8rem;
  }
  .feedback-path {
    margin-left: 1rem;
  }
  .context-path {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .workflow-dialog {
    margin: 0.5rem auto;
    max-height: calc(100dvh - 1rem);
  }
  #workflow-dialog-content {
    max-height: calc(100dvh - 1rem);
  }
}
.system-facts {
  font-size: 1.2rem;
  line-height: 1.5;
}
.feedback-path::after {
  content: '↓';
}
@media (min-width: 761px) and (max-width: 1050px) {
  .system-stages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }
  .system-stages li:nth-child(3)::after {
    content: '↙ Continue at 04';
    font:
      0.65rem 'IBM Plex Mono',
      monospace;
    top: auto;
    bottom: -1.6rem;
    right: 0.5rem;
  }
}
