/* Resources: the reading room of the practice. Paper, hairlines, one bronze mark, no card shells. */
.rs-page {
  --rs-paper: #f2efe7;
  --rs-sheet: #faf8f2;
  --rs-ink: #1b1915;
  --rs-ink-soft: #3a362f;
  --rs-muted: #5c564c;
  --rs-line: #857a66;
  --rs-rule: #d9d1c1;
  --rs-rule-soft: #e4ddd0;
  --rs-bronze: #86611f;
  --rs-bronze-wash: #ecdcb4;
  --rs-gutter: clamp(22px, 4.4vw, 64px);
  --rs-section: clamp(68px, 7.6vw, 122px);
  --rs-serif: "Cormorant Garamond Variable", "Cormorant Garamond", Georgia, serif;
  --rs-sans: "DM Sans Variable", "DM Sans", system-ui, sans-serif;
  background: var(--rs-paper) !important;
  color: var(--rs-ink);
  font-family: var(--rs-sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
  position: relative;
  isolation: isolate;
  font-variant-numeric: tabular-nums;
}
.rs-page * { box-sizing: border-box; }
.rs-page ::selection { background: var(--rs-bronze-wash); color: var(--rs-ink); }
.rs-page :where(h1, h2, h3, h4, p, figure, dl, dd, ol, ul, blockquote) { margin: 0; }
.rs-page :where(ol, ul) { padding: 0; list-style: none; }
.rs-page a { color: inherit; text-underline-offset: 4px; }
.rs-page :is(a, summary, button, [tabindex="0"]):focus-visible { outline: 2px solid var(--rs-ink); outline-offset: 3px; }
.rs-page section[id], .rs-page article[id] { scroll-margin-top: 152px; }
.rs-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rs-wrap { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--rs-gutter); }

/* Type */
.rs-page :is(h1, h2, h3) { font-family: var(--rs-serif); font-weight: 500; color: var(--rs-ink); text-wrap: balance; }
.rs-page h1 { font-size: clamp(2.7rem, 4.5vw, 4.6rem); line-height: 1; letter-spacing: -0.028em; max-width: 19ch; }
.rs-page h2 { font-size: clamp(2.05rem, 3.4vw, 3.4rem); line-height: 1.04; letter-spacing: -0.018em; max-width: 24ch; }
.rs-page h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.12; letter-spacing: -0.008em; }
.rs-page h4 { font-family: var(--rs-sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rs-muted); margin: 0; }
.rs-page p { max-width: 70ch; }
.rs-lead { margin-top: 26px; font-size: clamp(1.06rem, 1.35vw, 1.2rem); line-height: 1.62; color: var(--rs-ink-soft); max-width: 58ch; }
.rs-note { margin-top: 16px; font-size: 0.95rem; line-height: 1.68; color: var(--rs-muted); }
.rs-page :is(p, dd, li) a:not([class]) {
  text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--rs-line);
}
.rs-page :is(p, dd, li) a:not([class]):hover { color: var(--rs-bronze); text-decoration-color: currentColor; }

/* Actions */
.rs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px; margin-top: 32px; }
.rs-page .rs-button {
  display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 26px;
  background: var(--rs-ink); color: #fbf8f1; font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: background-color 180ms ease-out;
}
.rs-page .rs-button:hover { background: #3a362f; }
.rs-page .rs-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 600; font-size: 0.94rem; text-decoration: none; position: relative;
}
.rs-page .rs-link::after {
  content: ""; position: absolute; left: 0; bottom: 10px; height: 1px; width: 100%;
  background: var(--rs-line); transform: scaleX(0); transform-origin: left; transition: transform 200ms ease-out;
}
.rs-page .rs-link:hover { color: var(--rs-bronze); }
.rs-page .rs-link:hover::after { transform: scaleX(1); background: var(--rs-bronze); }
.rs-arrow { flex: none; transition: transform 180ms ease-out; }
.rs-page .rs-button:hover .rs-arrow { transform: translateX(3px); }

/* Sections */
.rs-section { padding-block: var(--rs-section); }
.rs-sheet { background: var(--rs-sheet); border-block: 1px solid var(--rs-rule); }
.rs-head { max-width: 66rem; }
.rs-head p { margin-top: 18px; color: var(--rs-muted); font-size: 1.02rem; line-height: 1.7; }
.rs-head .rs-link { margin-top: 14px; }
.rs-head-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 96px); align-items: end; max-width: none; }
.rs-head-split > p { margin-top: 0; padding-bottom: 6px; }

/* Hero */
.rs-hero { padding-top: clamp(132px, 12vw, 172px); padding-bottom: clamp(44px, 5vw, 68px); }
.rs-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 96px); align-items: end; }
.rs-hero-side { padding-bottom: 8px; }
.rs-hero-side p { font-size: 0.98rem; line-height: 1.72; color: var(--rs-muted); }
.rs-hero-side p + p { margin-top: 14px; }

/* Inventory strip: the specimen */
.rs-inventory { border-top: 2px solid var(--rs-ink); margin-top: clamp(40px, 5vw, 64px); }
.rs-inventory-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rs-inventory-list > li { border-right: 1px solid var(--rs-rule); }
.rs-inventory-list > li:last-child { border-right: 0; }
.rs-inventory-item { display: flex; flex-direction: column; height: 100%; padding: 22px 22px 24px 0; text-decoration: none; }
.rs-inventory-list > li + li .rs-inventory-item { padding-left: 22px; }
.rs-inventory-count { font-family: var(--rs-serif); font-size: clamp(2.6rem, 3.6vw, 3.5rem); line-height: 0.92; letter-spacing: -0.02em; color: var(--rs-ink); }
.rs-inventory-count span { font-family: var(--rs-sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--rs-muted); margin-left: 6px; vertical-align: 5px; }
.rs-inventory-name { margin-top: 12px; font-size: 0.95rem; font-weight: 600; line-height: 1.3; }
.rs-inventory-what { margin-top: 8px; flex: 1; font-size: 0.88rem; line-height: 1.55; color: var(--rs-muted); }
.rs-inventory-go { margin-top: 16px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--rs-muted); transition: color 160ms ease-out; }
.rs-inventory-item:hover .rs-inventory-go { color: var(--rs-bronze); }
.rs-inventory-item:hover .rs-inventory-name { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--rs-line); }
.rs-inventory-foot { border-top: 1px solid var(--rs-rule); padding-top: 14px; font-size: 0.88rem; color: var(--rs-muted); }

/* On this page */
.rs-page-nav { position: sticky; top: 72px; z-index: 20; border-block: 1px solid var(--rs-rule); background: var(--rs-sheet); }
@media (min-width: 960px) { .rs-page-nav { top: 82px; } }
.rs-page-nav ul { display: flex; gap: 0 30px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--rs-line) transparent; }
.rs-page-nav a { display: inline-flex; align-items: center; min-height: 54px; white-space: nowrap; font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.rs-page-nav a:hover { color: var(--rs-bronze); }

/* Intents */
.rs-intents { border-top: 2px solid var(--rs-ink); margin-top: clamp(34px, 4vw, 52px); }
.rs-intent {
  display: grid; grid-template-columns: 11rem minmax(0, 1fr) minmax(0, 1.05fr) 12rem;
  gap: 8px 30px; align-items: baseline;
  padding: 26px 0 28px; border-bottom: 1px solid var(--rs-rule);
}
.rs-intent-name { font-family: var(--rs-serif); font-size: clamp(1.55rem, 2.1vw, 2.1rem); line-height: 1.04; letter-spacing: -0.01em; }
.rs-intent-question { font-family: var(--rs-serif); font-style: italic; font-size: 1.16rem; line-height: 1.34; color: var(--rs-ink-soft); }
.rs-intent-what { font-size: 0.95rem; line-height: 1.62; color: var(--rs-muted); }
.rs-intent-go { justify-self: start; }

/* Current work */
.rs-current { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(30px, 4.5vw, 72px); border-top: 2px solid var(--rs-ink); padding-top: 34px; margin-top: clamp(34px, 4vw, 52px); }
.rs-lead-piece { display: block; text-decoration: none; }
.rs-kindmark { display: inline-flex; align-items: center; gap: 10px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rs-muted); }
.rs-kindmark::before { content: ""; width: 26px; height: 0; border-top: 3px solid var(--rs-bronze); }
.rs-kindmark[data-kind="reference"]::before { border-top: 1px dashed var(--rs-line); }
.rs-lead-piece h3 { margin-top: 16px; font-size: clamp(2rem, 3vw, 3rem); line-height: 1.05; }
.rs-lead-piece:hover h3 { color: var(--rs-bronze); }
.rs-lead-piece p { margin-top: 18px; font-size: 1.02rem; line-height: 1.7; color: var(--rs-muted); max-width: 60ch; }
.rs-lead-meta { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--rs-rule); display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 0.86rem; color: var(--rs-muted); }
.rs-lead-meta b { font-weight: 600; color: var(--rs-ink); }
.rs-current-side { display: grid; align-content: start; }
.rs-current-side > * { padding-block: 22px; border-top: 1px solid var(--rs-rule); }
.rs-current-side > *:first-child { border-top: 0; padding-top: 0; }
.rs-side-piece { display: block; text-decoration: none; }
.rs-side-piece h3 { font-size: 1.32rem; line-height: 1.18; }
.rs-side-piece:hover h3 { color: var(--rs-bronze); }
.rs-side-piece p { margin-top: 10px; font-size: 0.92rem; line-height: 1.6; color: var(--rs-muted); }

/* Ruled entry list, used by field notes, decisions and documents */
.rs-entries { border-top: 2px solid var(--rs-ink); margin-top: clamp(30px, 3.6vw, 48px); }
.rs-entry { border-bottom: 1px solid var(--rs-rule); }
.rs-entry-link { display: grid; grid-template-columns: 4.6rem minmax(0, 1.05fr) minmax(0, 1fr); gap: 6px 30px; align-items: baseline; padding: 22px 0 24px; text-decoration: none; }
.rs-entry-index { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--rs-muted); padding-top: 6px; }
.rs-entry-title { font-family: var(--rs-serif); font-size: clamp(1.3rem, 1.75vw, 1.72rem); line-height: 1.14; letter-spacing: -0.006em; }
.rs-entry-link:hover .rs-entry-title { color: var(--rs-bronze); text-decoration: underline; text-decoration-thickness: 1px; }
.rs-entry-what { font-size: 0.93rem; line-height: 1.62; color: var(--rs-muted); }
.rs-entries-foot { padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 34px; align-items: baseline; }
.rs-entries-foot p { font-size: 0.92rem; color: var(--rs-muted); }

/* Bench + evidence pointers */
.rs-pointer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.rs-pointer-body > * + * { margin-top: 20px; }
.rs-picks { border-top: 2px solid var(--rs-ink); }
.rs-pick { border-bottom: 1px solid var(--rs-rule); }
.rs-pick-link { display: grid; grid-template-columns: minmax(0, 1fr) 9.5rem; gap: 6px 26px; align-items: baseline; padding: 20px 0 22px; text-decoration: none; }
.rs-pick-name { font-family: var(--rs-serif); font-size: clamp(1.26rem, 1.6vw, 1.58rem); line-height: 1.15; }
.rs-pick-link:hover .rs-pick-name { color: var(--rs-bronze); text-decoration: underline; text-decoration-thickness: 1px; }
.rs-pick-what { grid-column: 1; font-size: 0.92rem; line-height: 1.6; color: var(--rs-muted); }
.rs-pick-kind { grid-row: 1 / span 2; grid-column: 2; align-self: start; padding-top: 6px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rs-muted); }

/* Working documents */
.rs-docs { border-top: 2px solid var(--rs-ink); margin-top: clamp(30px, 3.6vw, 48px); }
.rs-doc-group { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 14px 40px; padding: 28px 0 30px; border-bottom: 1px solid var(--rs-rule); }
.rs-doc-group h3 { font-size: clamp(1.4rem, 1.8vw, 1.8rem); line-height: 1.1; }
.rs-doc-group h3 + p { margin-top: 10px; font-size: 0.9rem; line-height: 1.6; color: var(--rs-muted); }
.rs-doc-list > li + li { border-top: 1px solid var(--rs-rule-soft); }
.rs-doc-link { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; gap: 4px 24px; align-items: baseline; padding: 13px 0; text-decoration: none; }
.rs-doc-name { font-size: 1rem; font-weight: 600; line-height: 1.34; }
.rs-doc-link:hover .rs-doc-name { color: var(--rs-bronze); text-decoration: underline; text-decoration-thickness: 1px; }
.rs-doc-what { grid-column: 1; font-size: 0.88rem; line-height: 1.55; color: var(--rs-muted); }
.rs-doc-kind { grid-row: 1 / span 2; grid-column: 2; align-self: start; padding-top: 3px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rs-muted); }

/* Reading honestly */
.rs-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(26px, 3.5vw, 56px); border-top: 2px solid var(--rs-ink); margin-top: clamp(30px, 3.6vw, 48px); }
.rs-rules > li { padding-top: 24px; padding-bottom: 8px; }
.rs-rules h3 { font-size: clamp(1.3rem, 1.6vw, 1.6rem); line-height: 1.14; }
.rs-rules p { margin-top: 12px; font-size: 0.95rem; line-height: 1.66; color: var(--rs-muted); }

/* Continue rail: hands off to the next destination and lets the global footer own the decision. */
.rs-next { border-top: 1px solid var(--rs-rule); padding-block: clamp(42px, 4.6vw, 64px); }
.rs-next-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px 40px; align-items: baseline; }
.rs-next-head h2 { font-size: clamp(1.5rem, 2vw, 2rem); max-width: 20ch; }
.rs-next-head p { font-size: 0.95rem; line-height: 1.68; color: var(--rs-muted); }
.rs-next-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3.4vw, 56px); border-top: 2px solid var(--rs-ink); margin-top: 22px; }
.rs-next-item { display: flex; flex-direction: column; padding: 20px 0 22px; text-decoration: none; }
.rs-next-name { font-family: var(--rs-serif); font-size: clamp(1.28rem, 1.6vw, 1.6rem); line-height: 1.12; }
.rs-next-item:hover .rs-next-name { color: var(--rs-bronze); text-decoration: underline; text-decoration-thickness: 1px; }
.rs-next-what { margin-top: 10px; font-size: 0.91rem; line-height: 1.6; color: var(--rs-muted); }

/* Responsive */
@media (max-width: 1180px) {
  .rs-intent { grid-template-columns: 9.5rem minmax(0, 1fr) minmax(0, 1fr); }
  .rs-intent-go { grid-column: 2 / -1; margin-top: 6px; }
  .rs-inventory-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rs-inventory-list > li:nth-child(3n) { border-right: 0; }
  .rs-inventory-list > li:nth-child(n + 4) { border-top: 1px solid var(--rs-rule); }
  .rs-inventory-list > li:nth-child(4) .rs-inventory-item { padding-left: 0; }
}
@media (max-width: 900px) {
  .rs-hero-grid, .rs-head-split, .rs-current, .rs-pointer, .rs-next-head { grid-template-columns: minmax(0, 1fr); }
  .rs-next-list { grid-template-columns: minmax(0, 1fr); }
  .rs-next-item { border-bottom: 1px solid var(--rs-rule); }
  .rs-next-item:last-child { border-bottom: 0; }
  .rs-hero-side { padding-bottom: 0; }
  .rs-head-split > p { padding-bottom: 0; }
  .rs-current-side > *:first-child { border-top: 1px solid var(--rs-rule); padding-top: 22px; }
  .rs-rules { grid-template-columns: minmax(0, 1fr); }
  .rs-rules > li + li { border-top: 1px solid var(--rs-rule); }
  .rs-doc-group { grid-template-columns: minmax(0, 1fr); }
  .rs-entry-link { grid-template-columns: 3.4rem minmax(0, 1fr); }
  .rs-entry-what { grid-column: 2; }
}
@media (max-width: 620px) {
  .rs-page { font-size: 15px; }
  .rs-inventory-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-inventory-list > li { border-right: 1px solid var(--rs-rule); }
  .rs-inventory-list > li:nth-child(2n) { border-right: 0; }
  .rs-inventory-list > li:nth-child(3n) { border-right: 1px solid var(--rs-rule); }
  .rs-inventory-list > li:nth-child(n + 3) { border-top: 1px solid var(--rs-rule); }
  .rs-inventory-list > li:last-child { border-right: 0; }
  .rs-inventory-list > li:nth-child(odd) .rs-inventory-item { padding-left: 0; }
  .rs-inventory-list > li:nth-child(even) .rs-inventory-item { padding-left: 18px; }
  .rs-inventory-item { padding-right: 16px; }
  .rs-intent { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .rs-intent-go { grid-column: 1; }
  .rs-pick-link, .rs-doc-link { grid-template-columns: minmax(0, 1fr); }
  .rs-pick-kind, .rs-doc-kind { grid-row: auto; grid-column: 1; padding-top: 8px; order: -1; }
  .rs-page .rs-button { width: 100%; justify-content: center; }
  .rs-actions { gap: 10px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .rs-page *, .rs-page *::after, .rs-page *::before { transition: none !important; animation: none !important; }
}
