:root {
  --paper: #f1efea;
  --ink: #191a17;
  --muted: #626354;
  --rule: #ccc8bc;
  --olive: #606641;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  background-image: radial-gradient(#191a1709 0.6px, transparent 0.6px);
  background-size: 4px 4px;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  background: var(--paper);
  padding: 1rem;
}
.skip:focus {
  top: 1rem;
}
header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.2rem 0;
  margin: 0 clamp(1rem, 5vw, 5rem);
  border-bottom: 1px solid var(--ink);
}
.wordmark,
.eyebrow,
nav,
.primary,
.optional,
.status,
.card-meta,
footer,
.example-banner {
  font-family: 'IBM Plex Mono', monospace;
}
.wordmark {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}
nav {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
header nav {
  display: flex;
  gap: 1rem 1.8rem;
  flex-wrap: wrap;
  align-items: center;
}
header nav a {
  text-decoration: none;
}
header nav button,
.text-action {
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
main {
  max-width: 1400px;
  margin: auto;
  padding: 0 clamp(1rem, 5vw, 5rem);
}
.opening {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: 3rem;
  padding: 3.7rem 0 3rem;
}
.eyebrow {
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 0.8rem;
}
h1 {
  font-size: clamp(3.5rem, 6.5vw, 6rem);
  line-height: 0.95;
  font-weight: 500;
  margin: 0.7rem 0 1.3rem;
  letter-spacing: -0.03em;
}
h1 em {
  font-weight: 500;
}
.lede {
  font-size: 1.5rem;
  line-height: 1.4;
  margin: 0;
}
.orientation {
  border-left: 1px solid var(--rule);
  padding: 0 0 0.3rem 2rem;
  max-width: 32rem;
}
.orientation > p:not(.eyebrow):not(.fine) {
  font-size: 1.45rem;
  line-height: 1.35;
  margin: 0.5rem 0 1rem;
}
.fine {
  font-size: 1rem;
  line-height: 1.45;
  color: var(--muted);
}
.orientation .text-action {
  margin-top: 0.6rem;
}
h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.06;
  font-weight: 500;
  margin: 0.3rem 0 0.7rem;
}
p {
  line-height: 1.4;
}
.access,
.pending {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem;
  background: #e7e5db80;
  border: 1px solid var(--rule);
  margin: 0 0 1rem;
}
.access p,
.pending p {
  max-width: 48rem;
  margin-bottom: 0;
  font-size: 1.15rem;
}
.access h2,
.pending h2 {
  font-size: 1.7rem;
}
.access-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
}
.primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 0.9rem 1.1rem;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.5;
}
.primary:hover {
  background: var(--olive);
}
.status {
  min-height: 1.3rem;
  font-size: 0.68rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 1rem 0;
}
.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.section-nav a {
  text-decoration: none;
}
.section-nav span {
  margin-left: 0.6rem;
  color: var(--muted);
}
.practice-section {
  padding: 2.3rem 0;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 2rem;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.section-head p:not(.eyebrow) {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}
.section-head > a,
.section-head > button {
  flex-shrink: 0;
  margin-bottom: 0.2rem;
  font-size: 1.1rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.practice-card {
  min-width: 0;
  border: 1px solid var(--rule);
  background: #f8f6f04d;
}
.card-open {
  border: 0;
  border-top: 2px solid transparent;
  background: none;
  width: 100%;
  height: 100%;
  text-align: left;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: start;
  min-height: 15rem;
}
.card-open:hover {
  background: #e7e5db;
  border-top-color: var(--olive);
}
.card-open h3 {
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.05;
  margin: 0.7rem 0;
  overflow-wrap: anywhere;
}
.card-open p {
  font-size: 1.1rem;
  margin: 0.3rem 0 1rem;
  overflow-wrap: anywhere;
}
.card-meta {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.6rem;
  line-height: 1.7;
}
.card-foot {
  margin-top: auto;
  padding-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  align-items: center;
}
.card-foot .arrow {
  font-size: 1.6rem;
  line-height: 1;
}
.empty {
  grid-column: 1/-1;
  border: 1px dashed var(--rule);
  padding: 1.7rem;
  display: flex;
  align-items: center;
  gap: 1rem 3rem;
  justify-content: space-between;
}
.empty p {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 0;
  max-width: 45rem;
}
.empty a {
  flex-shrink: 0;
}
.finished {
  margin-top: 1.5rem;
}
.finished summary {
  cursor: pointer;
  margin-bottom: 1rem;
}
.editorial-note {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0 3rem;
}
.editorial-note p {
  color: var(--muted);
}
footer {
  border-bottom: 0;
  border-top: 1px solid var(--ink);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  padding: 1.3rem 0 2rem;
}
.example-banner {
  background: #e1e3d4;
  border-bottom: 1px solid var(--olive);
  padding: 1rem clamp(1rem, 5vw, 5rem);
  display: flex;
  gap: 0.8rem 1.5rem;
  flex-wrap: wrap;
  font-size: 0.65rem;
  line-height: 1.6;
}
dialog {
  width: min(40rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  padding: 2rem;
  overflow: auto;
}
dialog::backdrop {
  background: #191a1766;
}
dialog h2 {
  padding-right: 2rem;
  font-size: 2.4rem;
}
dialog p {
  font-size: 1.2rem;
  white-space: normal;
  overflow-wrap: anywhere;
}
dialog p.eyebrow {
  font-size: 0.64rem;
}
dialog p.fine {
  font-size: 1rem;
}
.close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  font-size: 1.7rem;
}
label {
  display: block;
  font-size: 1.2rem;
  margin: 1rem 0 0.5rem;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--rule);
  padding: 0.7rem;
  background: #faf8f350;
  border-radius: 0;
  font-size: 1.12rem;
}
textarea {
  resize: vertical;
}
select {
  white-space: normal;
}
.optional {
  font-size: 0.6rem;
  color: var(--muted);
  margin-left: 0.5rem;
}
.check {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--olive);
}
form > .primary {
  margin-top: 1.1rem;
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.8rem;
}
.detail-label {
  margin-top: 1.5rem !important;
  margin-bottom: 0.3rem;
}
.form-status {
  font-size: 1rem !important;
  color: var(--muted);
}
@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .opening {
    gap: 1.5rem;
  }
  .editorial-note {
    grid-template-columns: 1fr 2fr;
  }
  .editorial-note > a {
    grid-column: 2;
  }
  .access {
    align-items: start;
    flex-direction: column;
    gap: 1rem;
  }
  .access-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}
@media (max-width: 600px) {
  header {
    padding: 1rem 0;
  }
  header nav {
    gap: 0.8rem 1rem;
    font-size: 0.58rem;
  }
  .opening {
    grid-template-columns: 1fr;
    padding: 2.4rem 0 1.8rem;
    gap: 1.8rem;
  }
  .orientation {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding: 1.3rem 0 0;
  }
  .orientation > p:not(.eyebrow):not(.fine) {
    font-size: 1.3rem;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .card-open {
    min-height: 12.5rem;
  }
  .section-nav {
    gap: 1rem;
    font-size: 0.58rem;
  }
  .section-nav span {
    margin-left: 0.1rem;
  }
  .section-head,
  .pending {
    align-items: start;
    flex-direction: column;
    gap: 1rem;
  }
  .empty {
    align-items: start;
    flex-direction: column;
    gap: 0.8rem;
  }
  .editorial-note {
    display: block;
  }
  .editorial-note > a {
    display: inline-block;
    margin-top: 1rem;
  }
  dialog {
    padding: 1.3rem;
  }
  dialog h2 {
    font-size: 2rem;
  }
  .access,
  .pending {
    padding: 1.2rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

#detail-body p {
  white-space: pre-wrap;
}

/* A working notebook: put the person's work near the entrance. */
.opening {
  padding: 2rem 0 1.6rem;
  gap: 2rem;
}
h1 {
  font-size: clamp(3rem, 4.5vw, 4.5rem);
  margin: 0.5rem 0 0.8rem;
}
.lede {
  font-size: 1.3rem;
}
.orientation > p:not(.eyebrow):not(.fine) {
  font-size: 1.2rem;
}
nav,
.primary,
.eyebrow,
.card-meta,
.optional {
  font-size: 0.75rem;
}
header nav a,
header nav button,
.text-action {
  min-height: 32px;
}
dialog {
  background: #f1efea;
}
@media (max-width: 600px) {
  .opening {
    gap: 1rem;
  }
  .orientation {
    padding-top: 0.7rem;
  }
  .section-nav {
    font-size: 0.7rem;
  }
}
