/* Rule&Wonder Studio: Nashville Homes monograph page and the Legal colophon.
   Loads after studio-base.css and consumes its tokens only. Prefixes: nh- (Nashville), lg- (Legal). */

/* ───────────── Nashville Homes ───────────── */

/* Hero: copy at left, the fictional monograph spread at right. */
.nh-hero { padding-block: clamp(40px, 5vw, 76px) clamp(48px, 6vw, 88px); }
.nh-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  gap: var(--gap-lg);
  align-items: center;
}
.nh-hero h1 { font-size: clamp(42px, 5vw, 72px); max-width: 12ch; }
.nh-hero .lede { max-width: 34ch; }
.nh-handover {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line-strong);
  max-width: 34rem;
}
.nh-handover > div { padding: 12px 14px 0 0; }
.nh-handover > div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.nh-handover dt { font: 650 var(--fs-label)/1.35 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.nh-handover dd { margin-top: 4px; font-size: var(--fs-small); color: var(--fg-muted); }

/* The spread: clothbound boards around two rag-paper pages. */
.nh-spread { margin: 0; container-type: inline-size; }
.nh-cloth {
  padding: clamp(8px, 1vw, 12px);
  background:
    repeating-linear-gradient(90deg, rgba(246, 241, 231, .025) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(17, 19, 24, .18) 0 1px, transparent 1px 3px),
    var(--forest);
  border-radius: 3px;
  box-shadow: var(--shadow-folio);
}
.nh-book {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  color: var(--ink);
}
.nh-page { display: flex; flex-direction: column; min-width: 0; padding: clamp(18px, 2.1vw, 30px) clamp(18px, 2.1vw, 30px) clamp(12px, 1.4vw, 18px); }
.nh-folio { margin-top: auto; padding-top: 16px; font: 400 13px/1 var(--newsprint); letter-spacing: .08em; color: var(--muted); font-variant-numeric: lining-nums; }
.nh-page-right .nh-folio { text-align: right; }
.nh-page-left { box-shadow: inset -22px 0 24px -22px rgba(17, 19, 24, .3); }
.nh-page-right { box-shadow: inset 22px 0 24px -22px rgba(17, 19, 24, .24); border-left: 1px solid var(--rule); }
.nh-running {
  padding-bottom: 9px; margin-bottom: 14px;
  border-bottom: 1px solid var(--brass);
  font: 650 11.5px/1.4 var(--sans); letter-spacing: .11em; text-transform: uppercase;
  color: var(--brass-text);
}
.nh-address { font: 560 clamp(21px, 1.9vw, 27px)/1.12 var(--serif); letter-spacing: -.02em; }
.nh-address span { display: block; margin-top: 4px; font: italic 400 15px/1.3 var(--newsprint); letter-spacing: 0; color: var(--muted); }
.nh-built { margin-top: 6px; font: 500 var(--fs-label)/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nh-elevation { width: 100%; max-width: 320px; height: auto; margin: 18px auto 0; color: var(--ink); }
.nh-elevation .nh-brass { color: var(--brass); }
.nh-svg-label { fill: var(--brass-text); font-family: var(--sans); font-weight: 600; }
.nh-plate { margin-top: 12px; padding-top: 9px; border-top: 1px solid var(--rule); font: italic 400 14px/1.45 var(--newsprint); color: var(--muted); }

.nh-chronology { list-style: none; margin: 0; padding: 0; }
.nh-chronology > li { padding-block: 12px 14px; border-bottom: 1px solid var(--rule); }
.nh-chronology > li:first-child { padding-top: 2px; }
.nh-chronology > li:last-child { border-bottom: 0; padding-bottom: 0; }
.nh-year { font: 560 clamp(22px, 1.9vw, 27px)/1.05 var(--serif); letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.nh-source { margin-top: 5px; font: italic 400 14.5px/1.4 var(--newsprint); color: var(--brass-text); }
.nh-entry { margin-top: 5px; font-size: var(--fs-small); line-height: 1.5; }
.nh-chronology > li.is-gap {
  margin-top: 12px; padding: 12px 14px 14px;
  border: 1px dashed var(--brass);
  background: rgba(158, 114, 41, .06);
}
.nh-chronology > li.is-gap .nh-year { color: var(--muted); }
.nh-gap-badge {
  display: inline-block; margin-top: 8px; padding: 3px 8px;
  border: 1px dashed var(--brass);
  font: 650 11.5px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: var(--brass-text);
}
.nh-spread figcaption { margin-top: 14px; padding-left: 12px; border-left: 2px solid var(--brass); }

/* A narrow spread closes into one page (container width, so it follows the hero column). */
@container (max-width: 560px) {
  .nh-book { grid-template-columns: minmax(0, 1fr); }
  .nh-page-left, .nh-page-right { box-shadow: none; }
  .nh-page-right { border-left: 0; border-top: 1px solid var(--rule-strong); }
}

/* Closing packages, on the obsidian band. */
.nh-packages .section-head { max-width: 52rem; }
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.tiers > article {
  display: flex; flex-direction: column;
  padding: clamp(22px, 2.6vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent-rule);
}
.nh-tier-kicker { font: 650 var(--fs-label)/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; }
.tiers > article .price { margin-top: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tiers > article .price + p { margin-top: 14px; color: var(--fg-muted); }

.nh-close {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap); align-items: stretch;
  margin-top: var(--gap);
}
.nh-notice { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 3vw, 40px); border-left-width: 3px; }
.nh-notice p { font: 400 clamp(18px, 1.55vw, 21px)/1.55 var(--serif); letter-spacing: -.005em; }
.nh-notice strong:first-child { margin-bottom: 12px; }
.nh-scope { padding: clamp(22px, 2.6vw, 34px); border: 1px solid var(--line-strong); }
.nh-scope h3 + p { margin-top: 10px; color: var(--fg-muted); }
.nh-scope .actions { margin-top: 20px; }
.nh-fineprint { margin-top: 12px; font-size: var(--fs-small); color: var(--fg-muted); }
.nh-fineprint + .nh-fineprint { margin-top: 2px; }
.nh-ssn { font-weight: 650; color: var(--fg); }

/* What we document: a ruled two-by-two grid of source cards. */
.nh-sources {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--line-strong);
}
.nh-sources > li { padding: clamp(20px, 2.4vw, 32px) clamp(18px, 2.4vw, 36px) clamp(22px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--line); }
.nh-sources > li:nth-child(even) { padding-left: clamp(18px, 2.4vw, 36px); padding-right: 0; border-left: 1px solid var(--line); }
.nh-num { display: block; margin-bottom: 10px; font: 600 var(--fs-label)/1 var(--sans); letter-spacing: .12em; color: var(--accent-text); }
.nh-sources h3 { font-size: clamp(21px, 1.8vw, 25px); }
.nh-sources p { color: var(--fg-muted); }

.nh-boundary {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--gap-lg);
  margin-top: clamp(40px, 5vw, 72px);
  border-top: 2px solid var(--brass);
}
.folio.nh-boundary > * + * { margin-top: 0; }
.nh-boundary h2 { font-size: clamp(28px, 2.8vw, 40px); }
.nh-boundary-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px var(--gap); }
.nh-boundary-body p { font-size: var(--fs-small); line-height: 1.6; }
.nh-boundary-body > p:nth-child(3) { grid-column: 1 / -1; }
.nh-methods-line { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); color: var(--fg-muted); max-width: none; }
.nh-boundary-body .nh-methods-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: -12px; font-size: var(--fs-small); }

@media (max-width: 1180px) {
  .nh-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .nh-hero h1 { max-width: 14ch; }
  .nh-hero .lede { max-width: 44ch; }
  .nh-spread { max-width: 880px; }
}
@media (max-width: 1023px) {
  .nh-boundary { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 820px) {
  .tiers, .nh-close, .nh-sources { grid-template-columns: minmax(0, 1fr); }
  .nh-sources > li, .nh-sources > li:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; }
}
@media (max-width: 599px) {
  .nh-boundary-body { grid-template-columns: minmax(0, 1fr); }
  .nh-handover { grid-template-columns: minmax(0, 1fr); }
  .nh-handover > div, .nh-handover > div + div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .nh-handover dd { margin-top: 0; text-align: right; }
}

/* ───────────── Legal colophon ───────────── */

.lg-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: var(--gap-lg);
  justify-content: start;
  align-items: start;
}
.lg-head { padding-block: clamp(44px, 5.5vw, 84px) clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--rule-strong); }
.lg-head-label { margin: 0; padding-top: 10px; border-top: 2px solid var(--brass); }
.lg-head h1 { font-size: clamp(36px, 4.3vw, 60px); line-height: 1.06; max-width: 21ch; }
.lg-head .lede { max-width: 52ch; }

.lg-body { padding-block: clamp(36px, 4.5vw, 64px) var(--band-y); }

/* Contents rail: sticky on desktop, a pill jump list on phones. */
.lg-rail { gap: 0; }
.lg-rail-title { padding: 10px 0 8px; border-bottom: 1px solid var(--line); font: 650 var(--fs-label)/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.lg-rail a { padding-block: 6px; line-height: 1.3; }
.lg-rail a:focus-visible { outline-offset: 0; }
.lg-print { margin-top: 18px; font-size: 14px; line-height: 1.5; color: var(--fg-muted); }
.lg-print strong { display: block; margin-bottom: 2px; font-weight: 650; color: var(--fg); }

.lg-column { min-width: 0; }
.lg-section + .lg-section { margin-top: clamp(44px, 5.5vw, 76px); padding-top: clamp(30px, 3.8vw, 48px); border-top: 1px solid var(--rule-strong); }
.lg-num { font: 600 var(--fs-label)/1 var(--sans); letter-spacing: .14em; color: var(--accent-text); margin-bottom: 12px; }
.lg-section h2 { font-size: clamp(28px, 3vw, 42px); max-width: 26ch; }
.lg-section > p, .lg-section > ul, .lg-section > ol, .lg-section > div { margin-top: 18px; }
.lg-section > h2 + * { margin-top: 22px; }
.lg-section p, .lg-section li { font-size: 18px; line-height: 1.65; }
.lg-section p { max-width: none; }

/* Intake steps, numbered in the margin. */
.lg-steps { list-style: none; padding: 0; counter-reset: step; border-top: 1px solid var(--line-strong); }
.lg-steps > li {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 12px;
  padding-block: 14px; border-bottom: 1px solid var(--line);
  counter-increment: step;
}
.lg-steps > li::before { content: counter(step); font: 560 26px/1.1 var(--serif); color: var(--brass-text); font-variant-numeric: lining-nums; }

/* Custody & Retention Sheet: a blank archival ledger card. */
.lg-section > .lg-sheet { margin-top: 30px; }
.lg-sheet {
  padding: clamp(20px, 2.6vw, 34px);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  box-shadow: var(--shadow-folio);
}
.lg-sheet h3 {
  padding-bottom: 12px;
  border-bottom: 3px double var(--brass);
  font: 650 var(--fs-label)/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--brass-text);
}
.lg-sheet dl { margin-top: 4px; }
.lg-sheet dl > div {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 4px 20px;
  align-items: end;
  padding-block: 14px 8px;
  border-bottom: 1px solid var(--rule);
}
.lg-sheet dt { font: 600 15px/1.4 var(--sans); }
.lg-sheet dd { padding-bottom: 3px; border-bottom: 1px dotted var(--rule-strong); font: italic 400 15px/1.4 var(--newsprint); color: var(--muted); }
.lg-after { color: var(--fg-muted); }

/* Permissions. */
.lg-promise {
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--brass);
  font: 500 clamp(21px, 2vw, 26px)/1.4 var(--serif) !important;
  letter-spacing: -.01em;
}
.lg-promise strong { display: block; margin-bottom: 6px; font: 650 var(--fs-label)/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brass-text); }
.lg-rules { list-style: none; padding: 0; border-top: 1px solid var(--line-strong); }
.lg-rules > li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); position: relative; }
.lg-rules > li::before { content: ""; position: absolute; left: 2px; top: 1.35em; width: 9px; height: 1px; background: var(--brass); }

/* Tennessee boundaries. */
.lg-law { font-size: var(--fs-body) !important; font-weight: 600; }
.lg-statutes { list-style: none; padding: 0; border-top: 1px solid var(--line-strong); }
.lg-statutes > li { padding: 13px 0 13px 22px; border-bottom: 1px solid var(--line); position: relative; }
.lg-statutes > li::before { content: "§"; content: "§" / ""; position: absolute; left: 0; top: 13px; font: 500 17px/1.65 var(--serif); color: var(--brass-text); }
.lg-cite { display: block; font: 500 14px/1.5 var(--sans); letter-spacing: .02em; color: var(--brass-text); }

/* Contact. */
.lg-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); padding-top: 16px; border-top: 1px solid var(--line-strong); }
.lg-contact address { font-size: 18px; line-height: 1.65; }
.lg-contact address a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .lg-grid { grid-template-columns: 200px minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .lg-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .lg-head-label { padding-top: 0; border-top: 0; margin-bottom: 0; }
  .lg-rail {
    position: static;
    display: flex; flex-wrap: wrap; gap: 8px;
    border-top: 0;
  }
  .lg-rail-title { flex-basis: 100%; padding: 0 0 2px; border-bottom: 0; }
  .lg-rail a {
    padding: 0 14px; min-height: 44px;
    border: 1px solid var(--line-strong);
    font-size: 14.5px; white-space: nowrap;
  }
  .lg-rail a:hover { border-color: var(--fg); background: var(--fg); color: var(--bg); text-decoration: none; }
  .lg-print { display: none; }
  .lg-section p, .lg-section li { font-size: var(--fs-body); }
  .lg-contact { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 559px) {
  .lg-sheet dl > div { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .lg-steps > li { grid-template-columns: 34px minmax(0, 1fr); }
}

/* Print: the full terms on paper, without the rail; the Nashville spread keeps its pages. */
@media print {
  .lg-rail { display: none !important; }
  .lg-grid { grid-template-columns: minmax(0, 1fr); gap: 8pt; }
  .lg-head { padding-block: 10pt; }
  .lg-section + .lg-section { margin-top: 16pt; padding-top: 12pt; }
  .lg-sheet, .nh-cloth { box-shadow: none; break-inside: avoid; }
  .nh-cloth { background: none; padding: 0; }
  .nh-page-left, .nh-page-right { box-shadow: none; }
  .nh-hero-grid, .tiers, .nh-close { grid-template-columns: minmax(0, 1fr); }
}
