/* Castro's Cloud — Members' Club design system */

@font-face {
  font-family: 'Caslon Display';
  src: url('fonts/libre-caslon-display.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Caslon Text';
  src: url('fonts/libre-caslon-text.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Caslon Text';
  src: url('fonts/libre-caslon-text-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}

:root {
  --paper: #ece3cd;
  --surface: #f3ecda;
  --sunken: #e4d9bf;
  --ink: #22382b;
  --muted: #5f6b53;
  --brass: #8c6f35;
  --brass-soft: rgba(140, 111, 53, .38);
  --line: rgba(34, 56, 43, .22);
  --seal: #7a3328;
  --seal-soft: rgba(122, 51, 40, .35);
  --good: #3d6b47;
  --good-soft: rgba(61, 107, 71, .35);
  --warn: #8a6a1f;
  --warn-soft: rgba(138, 106, 31, .35);
  --plaque: #22382b;
  --plaque-ink: #ecdfbd;
  --shadow: rgba(34, 56, 43, .18);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #142019;
    --surface: #1b2b21;
    --sunken: #101a14;
    --ink: #e9dfc6;
    --muted: #98a289;
    --brass: #c9a55c;
    --brass-soft: rgba(201, 165, 92, .38);
    --line: rgba(201, 165, 92, .22);
    --seal: #c16a53;
    --seal-soft: rgba(193, 106, 83, .4);
    --good: #8fbf98;
    --good-soft: rgba(143, 191, 152, .4);
    --warn: #d9b96a;
    --warn-soft: rgba(217, 185, 106, .4);
    --plaque: #c9a55c;
    --plaque-ink: #1c150a;
    --shadow: rgba(0, 0, 0, .45);
  }
}
:root[data-theme="dark"] {
  --paper: #142019;
  --surface: #1b2b21;
  --sunken: #101a14;
  --ink: #e9dfc6;
  --muted: #98a289;
  --brass: #c9a55c;
  --brass-soft: rgba(201, 165, 92, .38);
  --line: rgba(201, 165, 92, .22);
  --seal: #c16a53;
  --seal-soft: rgba(193, 106, 83, .4);
  --good: #8fbf98;
  --good-soft: rgba(143, 191, 152, .4);
  --warn: #d9b96a;
  --warn-soft: rgba(217, 185, 106, .4);
  --plaque: #c9a55c;
  --plaque-ink: #1c150a;
  --shadow: rgba(0, 0, 0, .45);
}
:root[data-theme="light"] {
  --paper: #ece3cd;
  --surface: #f3ecda;
  --sunken: #e4d9bf;
  --ink: #22382b;
  --muted: #5f6b53;
  --brass: #8c6f35;
  --brass-soft: rgba(140, 111, 53, .38);
  --line: rgba(34, 56, 43, .22);
  --seal: #7a3328;
  --seal-soft: rgba(122, 51, 40, .35);
  --good: #3d6b47;
  --good-soft: rgba(61, 107, 71, .35);
  --warn: #8a6a1f;
  --warn-soft: rgba(138, 106, 31, .35);
  --plaque: #22382b;
  --plaque-ink: #ecdfbd;
  --shadow: rgba(34, 56, 43, .18);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Caslon Text', 'Iowan Old Style', Georgia, serif;
  font-size: 16.5px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
::placeholder { color: var(--muted); opacity: .8; font-style: italic; }

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 24px; width: 100%; }
main > .wrap { padding-top: 36px; padding-bottom: 64px; }

.display { font-family: 'Caslon Display', Georgia, serif; font-weight: 400; }
.label {
  font-family: system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
.brass { color: var(--brass); }
.mono { font-family: ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace; }
.good { color: var(--good); }
.bad { color: var(--seal); }
.warn { color: var(--warn); }

/* ---------- nav ---------- */
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 13px; padding-bottom: 13px; gap: 14px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.crest {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--brass);
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--brass-soft);
  display: grid; place-items: center;
  font-family: 'Caslon Display', Georgia, serif;
  font-size: 13px; color: var(--brass);
  flex: none;
}
.brand .name { font-family: 'Caslon Display', Georgia, serif; font-size: 19px; letter-spacing: .02em; }
nav.links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
nav.links a { text-decoration: none; color: var(--muted); position: relative; }
nav.links a:hover { color: var(--ink); }
nav.links a.attn { color: var(--seal); }
.nav-count {
  display: inline-grid; place-items: center;
  min-width: 16px; height: 16px; padding: 0 3px;
  margin-left: 4px; border-radius: 999px;
  background: var(--seal); color: var(--paper);
  font-size: 10px; letter-spacing: 0; vertical-align: 2px;
}
nav.links .lang { color: var(--muted); letter-spacing: .18em; }
nav.links .lang a { letter-spacing: inherit; }
nav.links .lang a.on { color: var(--ink); font-weight: 600; }
.theme-toggle {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--brass-soft);
  background: none; color: var(--brass);
  display: grid; place-items: center;
  cursor: pointer; padding: 0; flex: none;
}
.theme-toggle:hover { border-color: var(--brass); }
.theme-toggle svg { display: block; }
:root:not([data-theme="dark"]) .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-moon { display: none; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .icon-sun { display: block; }
}

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 26px 0 32px;
  text-align: center;
  color: var(--muted); font-size: 14px;
}
footer.site .crest { margin: 0 auto 10px; width: 28px; height: 28px; font-size: 11px; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--ink); }
.dot { color: var(--brass); padding: 0 .55em; }

/* ---------- notices / flash ---------- */
.notice {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 12px 16px;
  font-size: 15px;
  margin-bottom: 18px;
}
.notice--error { border-color: var(--seal-soft); color: var(--seal); }
.notice--success { border-color: var(--good-soft); color: var(--good); }

/* ---------- page header ---------- */
.page-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px; margin-bottom: 28px;
}
.page-title { font-family: 'Caslon Display', Georgia, serif; font-size: 30px; margin: 0; }
.page-sub { color: var(--muted); font-size: 15px; margin: 4px 0 0; }
.back { color: var(--muted); text-decoration: none; font-size: 14px; white-space: nowrap; }
.back:hover { color: var(--ink); }

.sect-label { color: var(--brass); margin: 34px 0 14px; }
.sect-label:first-child { margin-top: 0; }

/* ---------- buttons ---------- */
.plaque {
  display: inline-block;
  background: var(--plaque); color: var(--plaque-ink);
  text-decoration: none; text-align: center;
  border: 1px solid var(--brass);
  box-shadow: inset 0 0 0 2px var(--paper), 0 2px 8px var(--shadow);
  padding: 12px 26px;
  font-family: system-ui, sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  cursor: pointer;
}
.plaque:hover { filter: brightness(1.08); }
.plaque--full { display: block; width: 100%; }

.btn {
  display: inline-block;
  background: none; color: var(--ink);
  border: 1px solid var(--brass-soft);
  padding: 7px 14px;
  font-family: system-ui, sans-serif;
  font-size: 12.5px;
  text-decoration: none; text-align: center;
  cursor: pointer;
}
.btn:hover { border-color: var(--brass); }
.btn--good { border-color: var(--good-soft); color: var(--good); }
.btn--good:hover { border-color: var(--good); }
.btn--bad { border-color: var(--seal-soft); color: var(--seal); }
.btn--bad:hover { border-color: var(--seal); }
.btn--warn { border-color: var(--warn-soft); color: var(--warn); }
.btn--warn:hover { border-color: var(--warn); }
.btn--solid-good { background: var(--good); border-color: var(--good); color: var(--paper); }
.btn--solid-bad { background: var(--seal); border-color: var(--seal); color: var(--paper); }
.btn--solid-good:hover, .btn--solid-bad:hover { filter: brightness(1.1); }
.btn--full { display: block; width: 100%; }

.quiet { color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.quiet:hover { color: var(--ink); }

/* ---------- panels ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px;
}
.panel--center { text-align: center; padding: 40px 24px; }
.panel-list { background: var(--surface); border: 1px solid var(--line); }
.panel-list > div {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.panel-list > div:last-child { border-bottom: 0; }

/* ---------- pills / badges ---------- */
.pill {
  display: inline-block;
  font-family: system-ui, sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted);
  padding: 2px 9px;
  white-space: nowrap;
  vertical-align: 2px;
}
.pill--seal { color: var(--seal); border-color: var(--seal-soft); }
.pill--good { color: var(--good); border-color: var(--good-soft); }
.pill--warn { color: var(--warn); border-color: var(--warn-soft); }
.pill--brass { color: var(--brass); border-color: var(--brass-soft); }

.status-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  flex: none;
}
.status-dot--up { background: var(--good); }
.status-dot--down { background: var(--seal); }

/* ---------- tables ---------- */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  overflow-x: auto;
}
table.club { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.club th {
  font-family: system-ui, sans-serif;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.club td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.club tbody tr:last-child td { border-bottom: 0; }
table.club tbody tr:hover td { background: var(--sunken); }
table.club .subhead td {
  background: var(--sunken);
  font-family: system-ui, sans-serif;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
  padding: 8px 16px;
}
table.club .num { font-variant-numeric: tabular-nums; }

/* ---------- forms ---------- */
.field { margin-bottom: 20px; }
.field-label { display: block; color: var(--brass); margin-bottom: 7px; }
.input, textarea.input, select.input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: inherit; font-size: 15.5px;
  padding: 10px 12px;
}
.input:focus { outline: none; border-color: var(--brass); }
textarea.input { resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--brass) 50%), linear-gradient(135deg, var(--brass) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.input--sm { width: auto; font-size: 13px; padding: 6px 9px; }
select.input--sm { padding-right: 30px; }

.choice { display: flex; gap: 10px; }
.choice label { flex: 1; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice span {
  display: block; text-align: center;
  border: 1px solid var(--line);
  padding: 9px 12px; font-size: 15px;
  color: var(--muted);
}
.choice input:checked + span { border-color: var(--brass); color: var(--brass); }
.choice input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.choice span:hover { border-color: var(--brass-soft); color: var(--ink); }

.lang-pair { display: flex; gap: 8px; }
.lang-pair a {
  text-decoration: none; font-size: 13.5px;
  border: 1px solid var(--line); color: var(--muted);
  padding: 4px 12px;
}
.lang-pair a.on { border-color: var(--brass); color: var(--brass); }
.lang-pair a:hover { color: var(--ink); }

/* ---------- details (confirm flows) ---------- */
details.confirm summary { list-style: none; cursor: pointer; }
details.confirm summary::-webkit-details-marker { display: none; }
details.confirm > div, details.confirm > form {
  margin-top: 10px;
  background: var(--sunken);
  border: 1px solid var(--line);
  padding: 12px;
  font-size: 13.5px;
  text-align: left;
}

/* ---------- hero (landing) ---------- */
.hero { text-align: center; padding: 72px 0 64px; }
.hero .eyebrow { color: var(--brass); }
.hero h1 {
  font-family: 'Caslon Display', Georgia, serif;
  font-size: clamp(44px, 8vw, 80px);
  line-height: 1.05;
  margin: 18px 0 0;
  letter-spacing: .01em;
}
.ornament {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 24px auto 22px; color: var(--brass);
}
.ornament::before, .ornament::after { content: ""; height: 1px; width: 110px; background: var(--brass-soft); }
.ornament svg { display: block; }
.hero .invite {
  font-style: italic;
  font-size: clamp(18px, 2.6vw, 22px);
  max-width: 34em;
  margin: 0 auto;
  text-wrap: balance;
}
.hero .actions, .cta-row { margin-top: 34px; display: flex; justify-content: center; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero .fine { margin-top: 28px; color: var(--muted); font-size: 14.5px; }

section.block { padding: 64px 0; border-top: 1px solid var(--line); }
.block-head { text-align: center; margin-bottom: 44px; }
.block-head .eyebrow { color: var(--brass); }
.block-head h2 {
  font-family: 'Caslon Display', Georgia, serif;
  font-size: clamp(28px, 4.6vw, 40px);
  margin: 10px 0 8px;
}
.block-head p { color: var(--muted); max-width: 36em; margin: 0 auto; }

/* ---------- rooms ---------- */
.rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 56px; }
@media (max-width: 760px) { .rooms { grid-template-columns: 1fr; } }
.room { padding: 15px 0 13px; border-bottom: 1px dotted var(--brass-soft); }
.room-line { display: flex; align-items: baseline; gap: 10px; }
.room-name { font-family: 'Caslon Display', Georgia, serif; font-size: 20px; }
.room-name a { text-decoration: none; }
.room-name a:hover { color: var(--brass); }
.room-svc {
  margin-left: auto;
  font-family: system-ui, sans-serif;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass);
  white-space: nowrap;
}
.room-desc { margin: 3px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- membership cards ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; align-items: start; }
@media (max-width: 880px) { .tiers { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

.mcard {
  position: relative;
  aspect-ratio: 1.586;
  border-radius: 14px;
  padding: 8%;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 10px 24px var(--shadow), inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.25);
  overflow: hidden;
}
.mcard, .mcard::after { transition: transform .25s ease, box-shadow .25s ease; }
.tier-col:hover .mcard { transform: translateY(-6px); }
.mcard::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 1px, transparent 1px 5px);
  pointer-events: none;
}
.mcard::after {
  content: ""; position: absolute; inset: -60% -20%;
  background: linear-gradient(100deg, transparent 42%, rgba(255,255,255,.28) 50%, transparent 58%);
  transform: translateX(-55%);
  transition: transform .6s ease;
  pointer-events: none;
}
.tier-col:hover .mcard::after { transform: translateX(45%); }

.mcard-top { display: flex; align-items: center; justify-content: space-between; }
.mcard-crest {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid currentColor;
  display: grid; place-items: center;
  font-family: 'Caslon Display', Georgia, serif; font-size: 12px;
  opacity: .85;
}
.mcard-brand { font-family: system-ui, sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; opacity: .85; }
.mcard-name {
  font-family: 'Caslon Display', Georgia, serif;
  font-size: clamp(30px, 4vw, 38px);
  letter-spacing: .06em;
  text-align: center;
}
.mcard-bottom {
  display: flex; justify-content: space-between;
  font-family: ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;
  font-size: 11px; letter-spacing: .14em;
  opacity: .85;
}
.mcard--bronze {
  color: #f3e4cf;
  background: linear-gradient(135deg, #503420 0%, #8a5a34 42%, #64432a 68%, #a06c40 100%);
  text-shadow: 0 1px 1px rgba(0,0,0,.4);
}
.mcard--silver {
  color: #2c3138;
  background: linear-gradient(135deg, #878d94 0%, #ccd1d7 42%, #8f959c 68%, #e2e6ea 100%);
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}
.mcard--gold {
  color: #2a2008;
  background: linear-gradient(135deg, #83632a 0%, #cba75e 42%, #94742f 68%, #e6cb87 100%);
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}
.mcard--plain {
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  text-shadow: none;
  box-shadow: 0 10px 24px var(--shadow);
}

.perks { list-style: none; margin: 24px 0 0; padding: 0 6px; font-size: 15px; }
.perks li { padding: 7px 0 7px 22px; position: relative; border-bottom: 1px dotted var(--brass-soft); }
.perks li:last-child { border-bottom: 0; }
.perks li::before {
  content: ""; position: absolute; left: 4px; top: 15px;
  width: 6px; height: 6px; transform: rotate(45deg);
  background: var(--brass);
}
.perks .plus { color: var(--muted); font-style: italic; }
.perks .plus::before { background: transparent; border: 1px solid var(--brass); }
.perks .note { color: var(--muted); font-size: 13px; white-space: nowrap; float: right; font-family: system-ui, sans-serif; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; text-align: center; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 30px; } }
.step .n {
  font-family: 'Caslon Display', Georgia, serif;
  font-size: 19px; color: var(--brass);
  width: 44px; height: 44px; margin: 0 auto 14px;
  border: 1px solid var(--brass-soft); border-radius: 50%;
  display: grid; place-items: center;
}
.step h3 { font-family: 'Caslon Display', Georgia, serif; font-size: 21px; margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- service cards (apps / dashboard) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } }
.svc {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
a.svc-cover { position: absolute; inset: 0; }
.svc:hover { border-color: var(--brass); }
.svc--off { opacity: .6; }
.svc--off:hover { border-color: var(--line); }
.svc-head { display: flex; align-items: center; gap: 12px; }
.svc-logo {
  width: 52px; height: 52px; flex: none;
  object-fit: contain;
  background: var(--sunken);
  border: 1px solid var(--line);
  padding: 5px;
}
.svc-logo--fallback {
  display: grid; place-items: center;
  font-family: 'Caslon Display', Georgia, serif;
  font-size: 22px; color: var(--brass);
}
.svc-room { color: var(--brass); }
.svc-name { font-family: 'Caslon Display', Georgia, serif; font-size: 19px; display: flex; align-items: center; gap: 8px; }
.svc-desc { color: var(--muted); font-size: 14.5px; flex: 1; margin: 0; }
.svc-note { color: var(--brass); font-size: 13px; font-family: system-ui, sans-serif; }
.svc-foot { position: relative; z-index: 1; align-self: flex-start; }

/* ---------- stat tiles (admin) ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  display: block; text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 16px 18px;
}
.stat:hover { border-color: var(--brass); }
.stat .stat-label { color: var(--muted); display: block; margin-bottom: 8px; }
.stat .stat-n {
  font-family: 'Caslon Display', Georgia, serif;
  font-size: 38px; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat--attn .stat-n { color: var(--seal); }
.stat--attn { border-color: var(--seal-soft); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.tabs a {
  text-decoration: none;
  font-family: system-ui, sans-serif; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--muted);
  padding: 6px 14px;
}
.tabs a.on { border-color: var(--brass); color: var(--brass); }
.tabs a:hover { color: var(--ink); }

/* ---------- threads (support) ---------- */
.msg { background: var(--surface); border: 1px solid var(--line); padding: 16px 18px; margin-bottom: 14px; }
.msg--staff { border-left: 3px solid var(--brass); }
.msg-meta { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.msg-meta .who { color: var(--brass); }
.msg-body { white-space: pre-wrap; font-size: 15.5px; }

/* ---------- pagination ---------- */
.pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 18px;
  color: var(--muted); font-size: 14px;
}
.pager a { color: var(--muted); text-decoration: none; }
.pager a:hover { color: var(--ink); }

/* ---------- prose (docs) ---------- */
.prose { max-width: 46em; }
.prose h1, .prose h2, .prose h3 { font-family: 'Caslon Display', Georgia, serif; font-weight: 400; }
.prose h2 { font-size: 26px; margin: 38px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.prose h3 { font-size: 20px; margin: 28px 0 8px; }
.prose a { color: var(--brass); text-underline-offset: 3px; }
.prose code {
  font-family: ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--sunken);
  border: 1px solid var(--line);
  padding: 1px 5px;
}
.prose pre { background: var(--sunken); border: 1px solid var(--line); padding: 14px 16px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose blockquote { border-left: 3px solid var(--brass-soft); margin: 0; padding: 2px 0 2px 18px; color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 4px 0; }
.prose img { max-width: 100%; }
.prose table { border-collapse: collapse; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { font-family: system-ui, sans-serif; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }

/* ---------- misc ---------- */
.center-narrow { max-width: 560px; margin: 0 auto; }
.center-card { max-width: 480px; margin: 60px auto 0; text-align: center; }
.center-card h1 { font-family: 'Caslon Display', Georgia, serif; font-size: 30px; margin: 14px 0 10px; }
.center-card .crest { margin: 0 auto; }
.tick { color: var(--good); font-size: 17px; line-height: 1; }
.sr-note { position: absolute; left: -9999px; height: 0; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mcard, .mcard::after { transition: none; }
  .tier-col:hover .mcard { transform: none; }
  .tier-col:hover .mcard::after { transform: translateX(-55%); }
}
