/* rcentry.pro — entry hub. Ink + amber, exaggerated mono type, one warm accent. */
:root {
  --bg: #0d0d0d;
  --surface: #161616;
  --surface-2: #1d1d1d;
  --ink: #f4f0e6;
  --muted: #a7a29a;
  --faint: #6d6962;
  --line: rgba(244, 240, 230, 0.16);
  --accent: #e6b04a;
  --accent-2: #b47b1a;
  --accent-ink: #111110;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --radius-1: 3px; --radius-2: 6px;
  --font-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --shadow-2: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
  --wrap: 1240px;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f4f0e6;
  --surface: #ffffff;
  --surface-2: #e9e4d9;
  --ink: #151412;
  --muted: #55504a;
  --faint: #7d776f;
  --line: rgba(21, 20, 18, 0.18);
  --accent: #8a5a00;
  --accent-2: #b47b1a;
  --accent-ink: #ffffff;
  --shadow-2: 0 24px 60px -30px rgba(0, 0, 0, 0.25);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: 120px 100%;
  opacity: 0.45;
}
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, ol, figure { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-1); }
.mono { font-family: var(--font-mono); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; font-family: var(--font-mono); font-size: 13px; }
.skip:focus { left: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.mag { display: inline-flex; }
.mag-in { display: inline-flex; }
.spot { position: fixed; left: -600px; top: -600px; width: 480px; height: 480px; margin: -240px 0 0 -240px; border-radius: 50%; background: radial-gradient(circle, rgba(230,176,74,0.10), transparent 65%); pointer-events: none; z-index: 2; }
.line { display: block; }
.mask { display: inline-block; overflow: hidden; vertical-align: bottom; }
.w { display: inline-block; }

.rc-frame { min-height: 100dvh; overflow: clip; }
.rc-wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.rc-rule { border-top: 1px solid var(--line); }

.rc-nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.rc-nav-inner { min-height: var(--nav-h); display: flex; align-items: center; gap: var(--space-6); }
.rc-brand { display: inline-flex; align-items: center; gap: var(--space-3); flex: none; }
.rc-brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--accent); color: var(--accent); font: 700 12px/1 var(--font-mono); transition: transform 0.35s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease); }
.rc-brand:hover .rc-brand-mark { transform: rotate(-8deg); background: var(--accent); color: var(--accent-ink); }
.rc-brand-text { display: grid; font-family: var(--font-mono); line-height: 1.1; }
.rc-brand-text strong { font-size: 14px; letter-spacing: 0.08em; }
.rc-brand-text small { font-size: 9px; color: var(--faint); letter-spacing: 0.14em; }
.rc-nav-links { display: flex; gap: var(--space-5); margin-left: auto; font: 400 12px/1 var(--font-mono); color: var(--muted); }
.rc-nav-links a { transition: color 0.2s var(--ease); }
.rc-nav-links a:hover { color: var(--accent); }
.rc-nav-actions { display: flex; align-items: center; gap: var(--space-3); }
.rc-mini { min-width: 44px; height: 44px; background: transparent; border: 1px solid var(--line); cursor: pointer; font: 400 12px/1 var(--font-mono); color: var(--muted); transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.rc-mini:hover { color: var(--accent); border-color: var(--accent); }
.rc-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-6); font: 700 12px/1 var(--font-mono); letter-spacing: 0.1em; border: 1px solid var(--accent); transition: background 0.22s var(--ease), color 0.22s var(--ease), transform 0.22s var(--ease); cursor: pointer; white-space: nowrap; }
.rc-btn-solid { background: var(--accent); color: var(--accent-ink); }
.rc-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-2px); }
.rc-menu { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; cursor: pointer; padding: 12px; }
.rc-menu span { display: block; height: 1px; background: currentColor; margin: 5px 0; }

.rc-hero { min-height: calc(100svh - var(--nav-h)); display: flex; align-items: center; padding: var(--space-8) 0; }
.rc-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-7); align-items: center; }
.rc-eyebrow { font-size: 11px; letter-spacing: 0.16em; color: var(--accent); text-transform: uppercase; }
.rc-hero-title { margin-top: var(--space-5); font: 700 clamp(2.4rem, 5.4vw, 5.8rem)/0.96 var(--font-mono); letter-spacing: -0.07em; }
.rc-hero-sub { max-width: 56ch; margin-top: var(--space-6); font-size: clamp(16px, 1.45vw, 19px); color: var(--muted); }
.rc-hero-actions { margin-top: var(--space-6); }

.rc-hubmap { width: 100%; }
.rc-hubmap svg { display: block; width: 100%; height: auto; overflow: visible; }
.rc-orbit { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 6; }
.rc-spoke { stroke: var(--line); stroke-width: 1; transition: stroke 0.25s var(--ease), stroke-width 0.25s var(--ease); }
.rc-node { fill: var(--bg); stroke: var(--muted); stroke-width: 1.5; transition: fill 0.25s var(--ease), stroke 0.25s var(--ease), r 0.25s var(--ease); }
.rc-node-label { fill: var(--muted); font: 700 10px/1 var(--font-mono); letter-spacing: 0.06em; transition: fill 0.25s var(--ease); }
.rc-hub-entry { cursor: crosshair; }
.rc-hub-entry:hover .rc-spoke, .rc-hub-entry.is-active .rc-spoke { stroke: var(--accent); stroke-width: 2.5; }
.rc-hub-entry:hover .rc-node, .rc-hub-entry.is-active .rc-node { fill: var(--accent); stroke: var(--accent); r: 9; }
.rc-hub-entry:hover .rc-node-label, .rc-hub-entry.is-active .rc-node-label { fill: var(--ink); }
.rc-core-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.rc-core { fill: var(--accent); }
.rc-core-text { fill: var(--accent-ink); font: 700 20px/1 var(--font-mono); letter-spacing: 0.04em; }
.rc-core-sub { fill: var(--accent-ink); font: 400 9px/1 var(--font-mono); letter-spacing: 0.2em; }

.rc-section { padding: var(--space-8) 0; }
.rc-section-title { margin-top: var(--space-4); font: 700 clamp(2rem, 5vw, 4.4rem)/0.95 var(--font-mono); letter-spacing: -0.06em; }
.rc-entries { margin-top: var(--space-7); border-top: 1px solid var(--line); }
.rc-entry { display: block; border-bottom: 1px solid var(--line); transition: background 0.25s var(--ease); cursor: pointer; }
.rc-entry-static { cursor: default; }
.rc-entry:hover:not(.rc-entry-static) { background: var(--surface); }
.rc-entry-line { display: grid; grid-template-columns: 48px 1.1fr 1.2fr 150px 24px; align-items: center; gap: var(--space-4); min-height: 84px; padding: var(--space-3) var(--space-3) var(--space-3) 0; transition: padding 0.25s var(--ease); }
.rc-entry:hover:not(.rc-entry-static) .rc-entry-line { padding-left: var(--space-4); }
.rc-entry-num { color: var(--accent); font-size: 12px; }
.rc-entry-name { font: 700 clamp(1.1rem, 2.2vw, 1.8rem)/1 var(--font-mono); letter-spacing: -0.04em; }
.rc-entry-host { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.rc-scramble { display: inline-block; min-width: 8ch; }
.rc-badge { justify-self: start; padding: 5px 8px; border: 1px solid var(--line); font-size: 9px; letter-spacing: 0.1em; color: var(--muted); }
.rc-badge.is-live { color: var(--accent); border-color: var(--accent); }
.rc-badge.is-staged { color: var(--muted); border-style: dashed; }
.rc-badge.is-authorized { color: var(--faint); }
.rc-entry-arrow { color: var(--accent); font-size: 16px; transition: transform 0.25s var(--ease); }
.rc-entry:hover:not(.rc-entry-static) .rc-entry-arrow { transform: translate(3px, -3px); }
.rc-entry-static .rc-entry-arrow { color: var(--faint); }

.rc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--space-7); border-top: 1px solid var(--line); }
.rc-tile { position: relative; display: flex; flex-direction: column; gap: var(--space-4); min-height: 300px; padding: var(--space-6) var(--space-5) var(--space-5) 0; border-right: 1px solid var(--line); }
.rc-tile:last-child { border-right: 0; }
.rc-tile:not(:first-child) { padding-left: var(--space-5); }
.rc-tile-rule { position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.45s var(--ease); }
.rc-tile:hover .rc-tile-rule { width: 100%; }
.rc-tile-num { color: var(--accent); font-size: 12px; }
.rc-tile-title { font: 700 clamp(1.2rem, 1.8vw, 1.6rem)/1.15 var(--font-mono); letter-spacing: -0.03em; }
.rc-tile-text { color: var(--muted); font-size: 14px; line-height: 1.7; }
.rc-tile-action { margin-top: auto; padding-top: var(--space-5); border-top: 1px solid var(--line); font-size: 11px; letter-spacing: 0.08em; color: var(--accent); }
.rc-tile-action small { display: block; margin-top: 6px; font-size: 9px; color: var(--faint); letter-spacing: 0.12em; }

.rc-status-strip { padding: var(--space-6) 0; }
.rc-status-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }
.rc-status-title { margin-top: var(--space-3); font: 700 clamp(1.5rem, 3vw, 2.5rem)/1 var(--font-mono); letter-spacing: -0.04em; }
.rc-status-right { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.rc-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: rc-pulse 2.4s ease-in-out infinite; }
@keyframes rc-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
.rc-status-desc { font-size: 13px; color: var(--muted); }
.rc-status-link { padding-bottom: 3px; border-bottom: 1px solid var(--accent); color: var(--accent); font-size: 11px; letter-spacing: 0.1em; }
.rc-status-link:hover { color: var(--ink); border-color: var(--ink); }

.rc-footer { padding: var(--space-6) 0; }
.rc-footer-inner { display: flex; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; align-items: baseline; }
.rc-footer-partners { max-width: 70ch; font-size: 13px; color: var(--muted); }
.rc-footer-links { display: flex; flex-wrap: wrap; gap: var(--space-5); font-size: 11px; }
.rc-footer-links a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.rc-footer-links a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .rc-hero-grid { grid-template-columns: 1fr; }
  .rc-hubmap { max-width: 620px; }
  .rc-entry-line { grid-template-columns: 36px 1fr 130px 20px; }
  .rc-entry-host { grid-column: 2 / -1; }
  .rc-tiles { grid-template-columns: 1fr; }
  .rc-tile { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0 !important; min-height: 0; }
  .rc-nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: var(--space-4); padding: var(--space-5) 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .rc-nav-links.is-open { display: flex; }
  .rc-menu { display: block; }
}

@media (max-width: 560px) {
  .rc-wrap { width: min(100% - 32px, var(--wrap)); }
  .rc-hero-title { font-size: clamp(2.1rem, 8.5vw, 3.4rem); }
  .rc-section-title { font-size: clamp(1.8rem, 8vw, 3rem); }
  .rc-entry-line { grid-template-columns: 30px 1fr auto; gap: var(--space-2); min-height: 0; padding-block: var(--space-4); }
  .rc-entry-host { grid-column: 2 / -1; }
  .rc-badge { grid-column: 2; justify-self: start; }
  .rc-nav-inner { gap: var(--space-3); }
  .rc-nav-actions { gap: var(--space-2); }
  .rc-mini { min-width: 40px; width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .spot { display: none !important; }
}
