/* ============================================================
   The Register — public page styling.
   Modeled on the Echo Harbor Register reference layout: narrow
   serif column, calm masthead, muted inline citations, no
   prominent breakout boxes. Uses the app's existing CSS tokens
   (--ink, --muted, --line, --bg, --paper, --brand) so it inherits
   the site's light/dark theming.
   ============================================================ */

.register-shell {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
}

@media (min-width: 880px) {
  .register-shell { padding: 4rem 2rem 5rem; }
}

/* ── Masthead ──────────────────────────────────────────────── */

.register-masthead {
  text-align: center;
  margin-bottom: 2.25rem;
}

.register-masthead-title {
  font-family: inherit;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

/* Decorative side bars flanking the title, like the reference. */
.register-masthead-title::before,
.register-masthead-title::after {
  content: "";
  display: inline-block;
  width: 48px;
  height: 2px;
  background: var(--brand);
  opacity: 0.55;
}

.register-masthead-meta {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* Date — serif, light weight, normal case. */
.register-masthead-meta > span:first-child {
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-light, var(--ink));
}

/* Brand label — tiny uppercase sans, muted. */
.register-masthead-meta strong,
.register-masthead-meta > span:not(:first-child) {
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.register-masthead-meta strong { color: var(--muted); }

.register-masthead-divider {
  color: var(--line);
  font-size: 0.7rem;
}

/* ── Hero block (de-emphasized — flows into prose) ─────────── */

.register-hero { margin-bottom: 1.75rem; }

.register-hero-pull-quote {
  font-family: inherit;
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-light, var(--ink));
  margin: 0 0 1.25rem;
  text-align: left;
  padding: 0;
}

.register-hero-pull-quote::before { content: none; }  /* drop the giant curly quote */

.register-hero-headline {
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 0.75rem;
  text-align: left;
}

.register-hero-deck {
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-light, var(--ink));
  margin: 0 0 1rem;
}

.register-hero-attribution {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  font-style: normal;
  letter-spacing: 0.04em;
}

.register-hero-attribution a {
  color: var(--muted);
  text-decoration: none;
}
.register-hero-attribution a:hover { color: var(--brand); }

/* ── Body prose ─────────────────────────────────────────────── */

.register-body { font-family: inherit; }

.register-paragraph {
  font-family: inherit;
  font-size: 1.075rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 1.35rem;
  text-align: left;
}

/* No drop cap — the reference keeps the opening word flat with the rest. */
.register-paragraph:first-of-type::first-letter {
  font-size: inherit;
  font-weight: inherit;
  float: none;
  line-height: inherit;
  padding: 0;
  color: inherit;
}

/* ── Inline citations ──────────────────────────────────────── */

.register-citation {
  background: transparent;
  padding: 0;
  border-radius: 0;
  cursor: help;
}

.register-citation-source {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  font-style: normal;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.register-citation-source:hover {
  color: var(--brand);
  text-decoration: none;
}

/* ── Section marker (quiet inline divider) ──────────────────── */

.register-section-marker {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.75rem 0 1.5rem;
  text-align: center;
}

.register-section-marker-line {
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 40px;
}

.register-section-marker-label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Framing block — quieter, no left bar, no card chrome ──── */

.register-framing-block {
  margin: 1.5rem 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  display: block;
}

.register-framing-label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.5rem;
}

.register-framing-block strong {
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 600;
}

.register-framing-outlets {
  display: block;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ── Device block (inline-SVG visualization) ────────────────── */

.register-device-block {
  margin: 1.75rem auto;
  padding: 1.1rem 1.25rem 1.25rem;
  background: var(--paper, #ffffff);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  max-width: 520px;
  box-sizing: border-box;
}

.register-device-caption {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.register-device-chart {
  display: flex;
  justify-content: center;
}

.register-device-svg {
  width: 100%;
  height: auto;
  max-width: 460px;
  display: block;
}

/* Legacy placeholder kept for any cached HTML still in the DB */
.register-device-placeholder {
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.5rem 0;
}

/* ── Closing thread line ────────────────────────────────────── */

.register-thread-line {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: inherit;
  font-style: italic;
  font-weight: 300;
  color: var(--ink-light, var(--muted));
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
}

/* ── Footer (copyright + machine-computed tagline) ──────────── */

.register-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.register-footer-copyright {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-light, var(--ink));
  letter-spacing: 0.02em;
  margin: 0 0 0.3rem;
}

.register-footer-tagline {
  font-size: 0.68rem;
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: 0;
}

/* ── Archive list (kept; just typography polish) ────────────── */

.register-archive {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.register-archive h1 {
  font-family: inherit;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 0.5rem;
}

.register-archive .lede {
  margin-bottom: 2rem;
  color: var(--muted);
  font-family: inherit;
}

.register-archive-list { display: grid; gap: 1rem; }

.register-archive-item {
  display: block;
  padding: 1.1rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink);
  transition: all var(--transition);
}

.register-archive-item:hover {
  background: var(--bg);
  border-color: var(--brand);
  text-decoration: none;
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.register-archive-item .meta {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.register-archive-item h3 {
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.register-archive-item p {
  font-family: inherit;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink-light);
  line-height: 1.55;
}

/* ── Print ─────────────────────────────────────────────────── */

@media print {
  body { background: white; }
  .site-header, .site-footer, .nav-actions, .no-print { display: none !important; }

  .register-shell {
    max-width: 680px;
    padding: 0;
  }

  .register-paragraph,
  .register-framing-block,
  .register-device-block {
    break-inside: avoid;
  }

  .register-paragraph { widows: 3; orphans: 3; }
}

@page {
  size: Letter;
  margin: 0.65in 0.7in;
}
