/* renaissance.network — built on the.salon design system (tokens from project/ds/salon/tokens.json). */

:root, [data-theme="paper"] {
  --ink: #14130f; --ink-soft: #2a2823; --ink-mute: #6b6960; --grey: #8c8a82; --grey-soft: #b2b0a6; --grey-mist: #d9d2c2;
  --paper-deep: #e9e1cf; --paper-ground: #f2ecdf; --paper: #f6f0e3; --paper-warm: #faf6eb; --red: #e5311c; --red-deep: #b72414;
  --ground: var(--paper-ground); --surface: var(--paper-warm); --surface-sunken: var(--paper-deep);
  --text: var(--ink); --text-soft: var(--ink-soft); --text-mute: var(--ink-mute); --rule: var(--ink); --rule-soft: var(--grey-mist);
  --signal: var(--red); --signal-press: var(--red-deep); --cta-fill: var(--paper-warm); --cta-text: var(--ink);
  --font-display: 'Syne', 'Inter Tight', system-ui, sans-serif; --font-body: 'Syne', 'Inter Tight', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px; --space-10: 128px;
  --gutter: 40px; --measure: 640px; --radius-none: 0px;
  --shadow-cta: 8px 8px 0 #e5311c; --shadow-cta-hover: 10px 10px 0 #e5311c; --stroke-rule: 1.5px; --stroke-thick: 2px;
  --t-fast: 120ms; --t-base: 200ms; --ease-snap: cubic-bezier(0.2, 0.85, 0.2, 1);
  --section-y: var(--space-8);
}
[data-theme="ink"] {
  --ground: var(--ink); --surface: #1e1c18; --surface-sunken: var(--ink-soft);
  --text: var(--paper-warm); --text-soft: #e4dfd4; --text-mute: var(--grey-soft);
  --rule: var(--paper-warm); --rule-soft: var(--ink-soft);
  background: var(--ground); color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font-body); font-feature-settings: "ss01", "ss02"; background: var(--ground); color: var(--text); }
a { color: var(--text); }
a:hover { color: var(--signal-press); }
::selection { background: var(--signal); color: var(--paper-warm); }
:focus-visible { outline: var(--stroke-thick) solid var(--signal); outline-offset: 3px; }
input, select, textarea, button { font-family: var(--font-body); }
h1, h2, h3, p { margin: 0; }
.signal { color: var(--signal); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--gutter); top: -60px; background: var(--ink); color: var(--paper-warm); padding: 10px 14px; z-index: 10; }
.skip-link:focus { top: 12px; color: var(--paper-warm); }

/* ── Salon components (from components/bundle.css) ── */
.sl-mono { font-family: var(--font-mono); font-size: 13px; line-height: 1.4; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.sl-mono--s { font-size: 11px; }
.sl-meta { color: var(--text-mute); }
.sl-meta--text { color: var(--text); }
.sl-meta--signal { color: var(--signal); }

.sl-btn { display: inline-flex; flex-direction: column; gap: 10px; padding: var(--space-5) 28px; min-width: 280px; text-decoration: none; text-align: left; cursor: pointer; border: var(--stroke-rule) solid transparent; border-radius: var(--radius-none); font-family: var(--font-body); transition: transform var(--t-fast) var(--ease-snap), box-shadow var(--t-fast) var(--ease-snap); }
.sl-btn__label { font-size: 28px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.sl-btn--primary { background: var(--cta-fill); color: var(--cta-text); box-shadow: var(--shadow-cta); }
.sl-btn--primary:hover { color: var(--cta-text); transform: translate(-2px, -2px); box-shadow: var(--shadow-cta-hover); }
.sl-btn--primary:active { transform: translate(4px, 4px); box-shadow: 4px 4px 0 var(--signal); }
.sl-btn--secondary { background: transparent; color: var(--text); border-color: var(--rule); }
.sl-btn--secondary:hover { color: var(--signal-press); border-color: var(--signal-press); }
.sl-btn--secondary:hover .sl-meta { color: inherit; }
.sl-btn[disabled] { opacity: 0.4; cursor: default; transform: none; }
.sl-btn--compact { min-width: 0; padding: 14px 20px; }
.sl-btn--compact .sl-btn__label { font-size: 20px; }
@media (prefers-reduced-motion: reduce) { .sl-btn { transition: none; } .sl-btn--primary:hover { transform: none; } }

.sl-pill { display: inline-block; padding: 6px 10px; font-family: var(--font-mono); font-size: 12px; line-height: 1.2; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; border: var(--stroke-rule) solid transparent; white-space: nowrap; }
.sl-pill--open { background: var(--ink); color: var(--paper-warm); border-color: var(--ink); }
.sl-pill--limited { background: var(--surface-sunken); color: var(--text); border-color: var(--surface-sunken); }
.sl-pill--members { background: transparent; color: var(--text); border-color: var(--rule); }

.sl-vote { display: flex; align-items: center; gap: var(--space-3); }
.sl-vote__label { width: 72px; flex-shrink: 0; }
.sl-vote__row { display: flex; gap: 6px; }
.sl-vote__sq { width: 52px; height: 28px; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; background: var(--surface-sunken); color: var(--text); }
.sl-vote__sq--post { background: var(--ink); color: var(--paper-warm); }

.sl-room { display: grid; grid-template-columns: 48px 260px 220px minmax(0, 1fr) 200px 140px 110px; gap: var(--space-5); align-items: center; padding: 28px 0; border-bottom: var(--stroke-rule) solid var(--rule); }
.sl-room__mark { width: 24px; height: 24px; display: block; }
.sl-room__name { font-family: var(--font-display); font-size: 40px; line-height: 1; font-weight: 500; letter-spacing: -0.03em; }
.sl-room__brief { font-size: 17px; line-height: 1.4; color: var(--text-soft); }

.sl-letter { display: flex; flex-direction: column; background: var(--surface); color: var(--text); border: var(--stroke-rule) solid var(--rule); }
.sl-letter__strip { min-height: 44px; padding: 10px 20px; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; justify-content: space-between; border-bottom: var(--stroke-rule) solid var(--rule); }
.sl-letter__body { display: flex; flex-direction: column; gap: 18px; padding: 24px 20px; }
.sl-letter__question { font-family: var(--font-display); font-size: 26px; line-height: 1.1; font-weight: 500; letter-spacing: -0.02em; }
.sl-letter__text { font-size: 15px; line-height: 1.5; color: var(--text-soft); }
.sl-letter__foot { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; border-top: var(--stroke-rule) solid var(--rule); padding-top: 14px; }

/* ── Type ── */
.display-xl { font-size: clamp(56px, 8.4vw, 120px); font-weight: 500; line-height: 0.88; letter-spacing: -0.05em; }
.display-l { font-size: clamp(52px, 7.5vw, 108px); font-weight: 500; line-height: 0.88; letter-spacing: -0.05em; }
.display-m { font-size: clamp(48px, 6.1vw, 88px); font-weight: 500; line-height: 0.9; letter-spacing: -0.04em; }
.display-s { font-size: clamp(40px, 4.45vw, 64px); font-weight: 500; line-height: 0.95; letter-spacing: -0.04em; }
.headline { font-size: clamp(32px, 2.8vw, 40px); font-weight: 500; line-height: 1.05; letter-spacing: -0.03em; }
.headline-m { font-size: clamp(26px, 2.2vw, 32px); font-weight: 500; line-height: 1.05; letter-spacing: -0.03em; }
.title { font-size: clamp(24px, 1.95vw, 28px); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.body-l { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.45; color: var(--text-soft); }
.body { font-size: 17px; line-height: 1.55; color: var(--text-soft); }

/* ── Layout ── */
.section { padding: var(--section-y) var(--gutter); }
.section--ruled { border-top: var(--stroke-rule) solid var(--rule); }
.section--ink { padding-top: var(--space-9); padding-bottom: var(--space-9); }
.stack { display: flex; flex-direction: column; }
.gap-3 { gap: var(--space-3); } .gap-4 { gap: var(--space-4); } .gap-5 { gap: var(--space-5); } .gap-6 { gap: var(--space-6); } .gap-gutter { gap: var(--gutter); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--gutter); margin-bottom: var(--gutter); }
.section-head--meta { margin-bottom: var(--space-6); }
.aside-meta { text-align: right; line-height: 1.8; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.split-5-7 { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); }
.col { display: flex; flex-direction: column; gap: var(--space-4); border-top: var(--stroke-rule) solid var(--rule); padding-top: 20px; }
.col--tight { gap: var(--space-3); }
.measure { max-width: var(--measure); }
.measure-s { max-width: 520px; }

/* Top rail */
.rail { height: 72px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); border-bottom: var(--stroke-rule) solid var(--rule-soft); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.brand__mark { width: 14px; height: 14px; background: var(--signal); flex-shrink: 0; }
.nav { display: flex; gap: var(--space-6); }
.nav a { text-decoration: none; }
.nav a.nav__cta { color: var(--signal); }
.nav a.nav__cta:hover { color: var(--signal-press); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: var(--gutter); padding: var(--space-8) var(--gutter); min-height: 920px; }
.hero__main { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-7); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-5); align-items: flex-start; }
.specimen { background: var(--surface); border: var(--stroke-rule) solid var(--rule); display: flex; flex-direction: column; }
.specimen .sl-letter__body { flex-grow: 1; }
.specimen--ink { background: var(--ink); border-color: var(--ink); }
.specimen--ink .sl-letter__strip, .specimen--ink .sl-letter__foot { border-color: var(--ink-soft); }
.next { border: var(--stroke-rule) solid var(--ink-soft); }
.next__head { display: flex; justify-content: space-between; gap: var(--space-4); padding: 10px 14px; border-bottom: var(--stroke-rule) solid var(--ink-soft); }
.next__list { list-style: none; margin: 0; padding: 0; }
.next__row { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 14px; }
.next__row + .next__row { border-top: var(--stroke-rule) solid var(--ink-soft); }
.next__row > :last-child { text-align: right; white-space: nowrap; min-width: 72px; }
.next__mark { width: 12px; height: 12px; }
.next__room { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next__ev { color: var(--text-mute); font-weight: 400; }
.specimen__title { font-size: 26px; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.specimen__spacer { flex-grow: 1; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); align-items: center; min-height: 140px; padding: var(--space-6) var(--gutter); border-top: var(--stroke-rule) solid var(--rule); border-bottom: var(--stroke-rule) solid var(--rule); }
.stat { display: flex; align-items: baseline; gap: var(--space-4); }
.stat__n { font-size: 64px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }

.roles { font-size: 17px; line-height: 1.55; color: var(--text-soft); list-style: none; padding: 0; margin: 0; }

/* Standing (ink) */
.standing { display: grid; grid-template-columns: 8fr 4fr; gap: var(--gutter); }
.standing__side { display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-6); }
.standing__text { font-size: 22px; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; }
.standing__text--absent { color: var(--grey-soft); }
.lede-ink { font-size: 20px; line-height: 1.5; color: var(--text-soft); }

/* Rooms */
.rooms { border-top: var(--stroke-rule) solid var(--rule); margin-bottom: var(--gutter); }
.hosts { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); align-items: start; scroll-margin-top: var(--space-5); }

/* Letter */
.letter-link { font-size: 24px; font-weight: 600; color: var(--signal); text-decoration: none; letter-spacing: -0.02em; }
.letter-link:hover { color: var(--signal-press); }
.letter-intro { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-7); }
.votes { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }
.votes__legend { display: flex; justify-content: space-between; padding-top: 4px; }

/* Directory specimen */
.directory-block { display: grid; grid-template-columns: 4fr 8fr; gap: var(--gutter); margin-top: var(--space-9); align-items: start; }
.dir { margin: 0; background: var(--surface); border: var(--stroke-rule) solid var(--rule); min-width: 0; }
.dir__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-5); padding: var(--space-4) 20px; border-bottom: var(--stroke-rule) solid var(--rule); }
.dir__search { flex: 1 1 260px; height: 40px; display: flex; align-items: center; padding: 0 14px; border: var(--stroke-rule) solid var(--rule); background: var(--ground); font-size: 11px; }
.dir__filters { display: flex; flex-wrap: wrap; gap: 6px; }
.dir__filter { padding: 6px 10px; border: var(--stroke-rule) solid var(--rule); letter-spacing: 0.14em; }
.dir__filter--on { background: var(--ink); color: var(--paper-warm); border-color: var(--ink); }
.dir__table { width: 100%; border-collapse: collapse; }
.dir__table th, .dir__table td { text-align: left; vertical-align: middle; padding: 14px 20px 14px 0; border-bottom: var(--stroke-rule) solid var(--rule-soft); font-weight: 400; }
.dir__table th:first-child, .dir__table td:first-child { padding-left: 20px; }
.dir__table thead th { padding-top: 12px; padding-bottom: 12px; border-bottom: var(--stroke-rule) solid var(--rule); font-weight: 500; }
.dir__table tbody tr:last-child > * { border-bottom: 0; }
.dir__name { display: block; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.dir__set { display: block; margin-top: 2px; }
.dir__title { font-size: 15px; line-height: 1.4; color: var(--text-soft); }
.dir__by { font-size: 15px; line-height: 1.4; }
.dir__rooms { white-space: nowrap; }
.dir__rooms svg { width: 14px; height: 14px; margin-right: 8px; vertical-align: middle; }
.dir__foot { padding: 14px 20px; }

/* Manifesto */
.manifesto { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-9); min-height: 720px; }
.manifesto__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--gutter); }
.manifesto__text { max-width: 1080px; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.4; color: var(--signal); }
.underline-link { color: var(--text); text-decoration: none; white-space: nowrap; border-bottom: var(--stroke-rule) solid var(--text); padding-bottom: 4px; }
.underline-link:hover { color: var(--grey-soft); border-color: var(--grey-soft); }

/* Form */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); align-content: start; }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field--wide, .form__foot, .form__status { grid-column: span 2; }
.field label { color: var(--text-soft); }
.field input, .field select { height: 52px; padding: 0 16px; font-size: 17px; background: var(--surface); border: var(--stroke-rule) solid var(--rule); border-radius: 0; color: var(--text); width: 100%; appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2314130F' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:focus-visible, .field select:focus-visible { outline-offset: 0; }
.field__hint { color: var(--text-mute); }
.form__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-5); padding-top: var(--space-2); }
.form__status { font-size: 17px; line-height: 1.5; min-height: 1.5em; }
.form__status--error { color: var(--signal-press); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.footer { border-top: var(--stroke-rule) solid var(--rule); }
.footer__strip { height: 44px; padding: 0 var(--gutter); display: flex; align-items: center; overflow: hidden; white-space: nowrap; border-bottom: var(--stroke-rule) solid var(--rule-soft); color: var(--text-soft); }
.footer__main { min-height: 104px; padding: var(--space-5) var(--gutter); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-5); }
.footer__sign { display: flex; align-items: center; gap: var(--space-5); color: var(--text-soft); }
.footer__year { border: var(--stroke-rule) solid var(--rule); padding: 6px 10px; color: var(--text); }

/* Sent page */
.sent { min-height: calc(100vh - 72px); display: flex; flex-direction: column; justify-content: center; gap: var(--space-6); padding: var(--space-8) var(--gutter); }

/* ── Responsive ── */
@media (max-width: 1280px) {
  .sl-room { grid-template-columns: 32px 180px minmax(0, 1fr) 160px 110px; }
  .sl-room__day { grid-column: 3; grid-row: 1; }
  .sl-room__brief { grid-column: 3; grid-row: 2; }
  .sl-room__name, .sl-room__mark { grid-row: 1 / span 2; }
  .sl-room__host { grid-column: 4; grid-row: 1; }
  .sl-room__seats { grid-column: 4; grid-row: 2; }
  .sl-room__state { grid-column: 5; grid-row: 1 / span 2; justify-self: end; }
}

@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .rail__tagline { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .specimen { max-width: 520px; }
  .grid-4, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { row-gap: var(--space-6); }
  .standing { grid-template-columns: minmax(0, 1fr); }
  .split-5-7, .hosts { grid-template-columns: minmax(0, 1fr); }
  .manifesto { min-height: 0; }
  .directory-block { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .nav a:not(.nav__cta) { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .aside-meta { text-align: left; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .sl-room { grid-template-columns: 24px minmax(0, 1fr) auto; column-gap: var(--space-4); row-gap: var(--space-2); }
  .sl-room__mark { grid-row: 1; grid-column: 1; }
  .sl-room__name { grid-row: 1; grid-column: 2; }
  .sl-room__state { grid-row: 1; grid-column: 3; }
  .sl-room__day, .sl-room__brief, .sl-room__host, .sl-room__seats { grid-column: 2 / span 2; grid-row: auto; }
  .manifesto__foot { flex-direction: column; align-items: flex-start; }
  .footer__main .nav { flex-wrap: wrap; row-gap: var(--space-3); }
  .footer__main .nav a { display: inline; }
  .dir__table thead { display: none; }
  .dir__table, .dir__table tbody, .dir__table tr { display: block; }
  .dir__table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px var(--space-4); padding: 14px 20px; border-bottom: var(--stroke-rule) solid var(--rule-soft); }
  .dir__table tbody tr:last-child { border-bottom: 0; }
  .dir__table th, .dir__table td, .dir__table th:first-child, .dir__table td:first-child { padding: 0; border: 0; }
  .dir__table tr > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .dir__table tr > :nth-child(3) { grid-column: 2; grid-row: 1; justify-self: end; }
  .dir__table tr > :nth-child(4) { grid-column: 1; grid-row: 3; }
  .dir__table tr > :nth-child(4)::before { content: "Vouched by "; color: var(--text-mute); }
  .dir__table tr > :nth-child(5) { grid-column: 2; grid-row: 3; justify-self: end; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --section-y: var(--space-7); }
  .rail { height: 60px; }
  .brand { font-size: 18px; }
  .nav a.nav__cta { font-size: 11px; }
  .grid-4, .stats, .form { grid-template-columns: minmax(0, 1fr); }
  .field--wide, .form__foot, .form__status { grid-column: auto; }
  .stat__n { font-size: 48px; }
  .sl-btn { min-width: 0; width: 100%; }
  .sl-btn__label { font-size: 24px; }
  .section--ink { padding-top: var(--space-8); padding-bottom: var(--space-8); }
  .sl-vote { gap: var(--space-2); }
  .sl-vote__label { width: 36px; }
  .sl-vote__row { gap: 4px; }
  .sl-vote__sq { width: 40px; }
  .footer__sign { flex-wrap: wrap; }
}
