:root {
  --bg-top: #0d171f;
  --bg-bottom: #ecdfc8;
  --surface: rgba(255, 248, 237, 0.86);
  --surface-strong: #fff9ef;
  --surface-soft: rgba(255, 248, 237, 0.58);
  --ink: #15202b;
  --ink-soft: #5f6f7f;
  --ink-inverse: #fdf6eb;
  --line: rgba(21, 32, 43, 0.12);
  --line-strong: rgba(21, 32, 43, 0.24);
  --accent: #0e8c7d;
  --accent-strong: #096357;
  --accent-soft: rgba(14, 140, 125, 0.12);
  --gold: #d8a24c;
  --gold-soft: rgba(216, 162, 76, 0.14);
  --danger: #ad4738;
  --warning: #a36b18;
  --success: #257a54;
  --shadow: 0 26px 60px rgba(8, 18, 26, 0.14);
  --shadow-soft: 0 16px 36px rgba(8, 18, 26, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(14, 140, 125, 0.22), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(216, 162, 76, 0.24), transparent 19%),
    linear-gradient(180deg, var(--bg-top) 0%, #172531 18%, #f0e4cf 62%, var(--bg-bottom) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 82%);
}

a,
button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.site-header,
.brand-strip,
.nav-cluster,
.site-nav,
.nav-actions,
.hero-actions,
.section-heading,
.meta-row,
.buffet-card-top,
.buffet-card-footer,
.weigh-in-row,
.score-row,
.checkbox-row,
.inline-form,
.card-actions,
.roster-row,
.roster-primary,
.roster-meta,
.score-meta {
  display: flex;
}

.flash-stack,
.single-column,
.overview-grid,
.dashboard-grid,
.side-stack,
.catalog-grid,
.members,
.visit-feed,
.scoreboard-list,
.weigh-in-table,
.form-grid,
.trend-chart,
.stat-grid,
.portal-grid,
.timeline-list,
.mini-stack,
.roster-list,
.roadmap-grid {
  display: grid;
  gap: 20px;
}

.site-header {
  margin-bottom: 30px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), transparent 42%),
    rgba(11, 22, 31, 0.84);
  box-shadow: 0 28px 68px rgba(6, 13, 20, 0.3);
  backdrop-filter: blur(18px);
  color: var(--ink-inverse);
}

.brand-strip {
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.brand-lockup,
.site-nav,
.nav-actions,
.hero-actions,
.inline-form,
.card-actions,
.roster-primary,
.roster-meta,
.score-meta {
  align-items: center;
}

.brand-lockup {
  display: inline-flex;
  gap: 16px;
  text-decoration: none;
}

.brand-lockup > span:last-child {
  display: grid;
  gap: 4px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--gold), #efc782);
  color: #332004;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand {
  display: block;
  font-family: "Fraunces", serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
}

.brand-copy {
  max-width: 34rem;
  margin: 0;
  color: rgba(253, 246, 235, 0.74);
  line-height: 1.6;
  text-align: right;
}

.eyebrow,
.member-title,
.scorecard-label,
.scorecard-subtext,
.rating-pill small,
.session-pill span,
.section-copy {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.site-header .eyebrow,
.site-header .brand-copy,
.splash-popout .eyebrow,
.splash-popout .hero-text,
.splash-popout .portal-card p,
.splash-popout .text-link {
  color: rgba(253, 246, 235, 0.8);
}

.nav-drawer {
  width: 100%;
}

.nav-toggle {
  display: none;
  list-style: none;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-inverse);
  font-weight: 700;
}

.nav-toggle::-webkit-details-marker {
  display: none;
}

.nav-drawer-panel {
  display: block;
}

.nav-cluster {
  justify-content: space-between;
  gap: 18px;
}

.site-nav {
  flex-wrap: wrap;
  gap: 10px;
}

.site-nav a,
.text-link,
.nav-auth-link,
.text-button {
  text-decoration: none;
}

.text-button {
  padding: 0;
  background: none;
  border: 0;
}

.site-nav a,
.text-link,
.text-button {
  font-weight: 700;
}

.site-nav a {
  padding: 11px 15px;
  border-radius: 999px;
  color: rgba(253, 246, 235, 0.72);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink-inverse);
}

.site-nav a.is-active {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav-actions {
  gap: 12px;
}

.session-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  min-width: 150px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
}

.button {
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  border: 1px solid transparent;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.button:hover,
.portal-card:hover,
.text-link:hover,
.site-nav a:hover {
  transform: translateY(-1px);
}

.compact-button {
  padding: 11px 16px;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #169d8c);
  color: #f4fffd;
  box-shadow: 0 16px 30px rgba(14, 140, 125, 0.24);
}

.button-secondary {
  background: rgba(255, 249, 239, 0.92);
  color: var(--ink);
  border-color: var(--line);
}

.flash {
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 249, 239, 0.92);
  box-shadow: var(--shadow-soft);
}

.flash-success {
  color: var(--success);
}

.flash-error {
  color: var(--danger);
}

.flash-warning {
  color: var(--warning);
}

.single-column {
  max-width: 1160px;
  margin: 0 auto;
}

.dashboard-page,
.archive-page,
.admin-portal-page,
.club-page,
.map-page,
.leaderboard-page,
.founders-page,
.home-page {
  gap: 24px;
}

.hero,
.dashboard-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
  align-items: start;
}

.dashboard-grid-wide {
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
}

.hero-copy {
  padding: 14px 0 6px;
}

.hero-copy h1,
.section-heading h1,
.section-heading h2,
.overview-card h3,
.catalog-card h3,
.score-row h3,
.member-card h3,
.buffet-card h3,
.empty-state h3,
.auth-panel h2,
.form-panel h2,
.member-input-card h3,
.trend-row strong,
.portal-card h3,
.timeline-card h3,
.roster-row h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.splash-popout h1,
.section-heading h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 0.94;
  margin: 0;
}

.section-heading {
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.section-heading p,
.overview-card p,
.catalog-card p,
.score-row p,
.member-card p,
.buffet-card p,
.empty-state p,
.trend-row p,
.auth-helper,
.stat-grid p,
.hero-text,
.panel-note,
.section-copy,
.roster-row p,
.timeline-card p {
  color: var(--ink-soft);
}

.hero-text,
.section-heading > p {
  max-width: 58ch;
  font-size: 1.04rem;
  line-height: 1.75;
}

.hero-actions,
.card-actions,
.nav-actions,
.roster-meta {
  gap: 12px;
}

.meta-row {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-actions {
  margin-top: 24px;
  flex-wrap: wrap;
}

.panel,
.overview-card,
.catalog-card,
.score-row,
.member-card,
.member-input-card,
.weigh-in-row,
.buffet-card,
.empty-state,
.auth-panel,
.form-panel,
.trend-row,
.stat-grid li,
.portal-card,
.timeline-card,
.roster-row {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.panel,
.auth-panel,
.form-panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.panel::after,
.buffet-card::after,
.empty-state::after {
  content: "";
  position: absolute;
  inset: auto -36px -50px auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(14, 140, 125, 0.12), transparent 72%);
  pointer-events: none;
}

.spotlight-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
}

.feature-hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), transparent),
    var(--surface);
}

.splash-popout {
  background:
    radial-gradient(circle at 12% 18%, rgba(216, 162, 76, 0.2), transparent 22%),
    linear-gradient(145deg, #0e1d28 0%, #163447 58%, #1b5462 100%);
  color: var(--ink-inverse);
  border-color: rgba(255, 255, 255, 0.08);
}

.splash-popout::after {
  background: radial-gradient(circle, rgba(216, 162, 76, 0.22), transparent 72%);
}

.splash-popout .section-heading p,
.splash-popout .hero-text,
.splash-popout .portal-card p,
.splash-popout .text-link,
.splash-popout .eyebrow {
  color: rgba(253, 246, 235, 0.82);
}

.splash-sidecar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent),
    var(--surface);
}

.overview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-grid,
.members {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.roadmap-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.portal-card,
.timeline-card,
.roster-row,
.overview-card,
.catalog-card,
.score-row,
.member-card,
.member-input-card,
.weigh-in-row,
.trend-row,
.buffet-card,
.empty-state,
.stat-grid li {
  padding: 20px;
}

.portal-card {
  text-decoration: none;
  min-height: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--ink-inverse);
}

.portal-card-primary {
  background: linear-gradient(145deg, rgba(216, 162, 76, 0.22), rgba(14, 140, 125, 0.26));
  border-color: rgba(255, 255, 255, 0.16);
}

.portal-card:hover,
.button:hover {
  box-shadow: 0 18px 34px rgba(8, 18, 26, 0.16);
}

.stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat-grid li {
  background: rgba(255, 249, 239, 0.88);
}

.stat-grid span,
.score-value,
.rating-pill span,
.member-badge {
  display: block;
  font-weight: 700;
  font-size: 1.7rem;
}

.splash-note {
  margin-top: 20px;
}

.side-stack {
  gap: 18px;
}

.mini-stack,
.timeline-list,
.roster-list {
  gap: 16px;
}

.scorecard-frame {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(155deg, #0f1e29 0%, #164455 100%);
  color: var(--ink-inverse);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.scorecard-value {
  margin: 10px 0 8px;
  font-size: clamp(3.4rem, 7vw, 4.8rem);
  font-weight: 700;
  line-height: 1;
}

.weigh-in-row,
.score-row,
.buffet-card-top,
.buffet-card-footer,
.checkbox-row,
.trend-row,
.roster-row {
  justify-content: space-between;
  gap: 16px;
}

.weigh-in-row,
.score-row,
.trend-row,
.roster-row,
.roster-primary,
.roster-meta,
.score-meta {
  align-items: center;
}

.score-rank,
.member-badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
}

.score-rank {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
}

.member-badge {
  background: linear-gradient(135deg, var(--gold), #efcc8e);
  color: #5b3907;
}

.score-meta {
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: end;
}

.compact-panel {
  padding-bottom: 24px;
}

.visit-feed {
  gap: 16px;
}

.compact-feed {
  gap: 12px;
}

.buffet-card,
.empty-state {
  position: relative;
  overflow: hidden;
}

.buffet-card-top,
.buffet-card-footer {
  align-items: start;
}

.buffet-card-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.location-line {
  margin: 8px 0 0;
}

.rating-pill {
  min-width: 98px;
  padding: 12px;
  border-radius: 18px;
  text-align: center;
  background: #10202a;
  color: #f8f3ea;
}

.status-pill,
.metric-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill {
  background: rgba(21, 32, 43, 0.08);
  color: var(--ink-soft);
}

.status-pill-admin {
  background: var(--gold-soft);
  color: #82550e;
}

.metric-pill {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.gain-pill,
.text-button {
  color: var(--danger);
}

.trend-chart {
  gap: 14px;
}

.trend-row {
  grid-template-columns: minmax(170px, 0.78fr) minmax(0, 1fr);
}

.trend-bar-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(14, 140, 125, 0.1);
  overflow: hidden;
}

.trend-bar {
  display: block;
  height: 100%;
  min-width: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.archive-stats {
  margin-bottom: 4px;
}

.roster-primary {
  flex: 1;
  gap: 16px;
}

.roster-meta {
  flex-wrap: wrap;
  justify-content: end;
}

.section-copy {
  margin: -4px 0 18px;
}

.feature-score {
  background: linear-gradient(145deg, rgba(14, 140, 125, 0.08), rgba(216, 162, 76, 0.1));
}

.timeline-card {
  background: rgba(255, 249, 239, 0.96);
}

.atlas-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), transparent),
    var(--surface);
}

.atlas-stage {
  position: relative;
  min-height: 300px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  overflow: hidden;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 24px;
  background:
    radial-gradient(circle at center, rgba(216, 162, 76, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(14, 140, 125, 0.08), rgba(255, 255, 255, 0.5));
}

.atlas-orbit {
  position: absolute;
  border: 1px solid rgba(21, 32, 43, 0.08);
  border-radius: 999px;
}

.orbit-a {
  width: 220px;
  height: 220px;
}

.orbit-b {
  width: 320px;
  height: 320px;
}

.atlas-core {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 249, 239, 0.9);
  box-shadow: var(--shadow-soft);
}

.atlas-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.atlas-dot-visited {
  background: var(--gold);
}

.atlas-dot-candidate {
  background: var(--accent);
}

.atlas-dot-neutral {
  background: rgba(21, 32, 43, 0.34);
}

.panel-note {
  margin: 18px 0 0;
}

.form-grid label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 248, 237, 0.94);
  color: var(--ink);
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
  outline: 2px solid rgba(14, 140, 125, 0.16);
  border-color: rgba(14, 140, 125, 0.34);
}

.form-supporting-copy {
  margin: -6px 0 0;
  color: var(--ink-soft);
}

.buffet-map {
  min-height: 480px;
  border-radius: 28px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.map-legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-pin-shell {
  background: transparent;
  border: 0;
}

.map-pin {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 250, 240, 0.95);
  box-shadow: 0 10px 22px rgba(18, 30, 28, 0.28);
}

.map-pin-visited {
  background: #d7a93f;
}

.map-pin-target {
  background: #0e8c7d;
}

.map-pin-neutral {
  background: #67757b;
}

.status-pill-visited {
  background: rgba(215, 169, 63, 0.16);
  color: #8a6212;
}

.status-pill-target {
  background: rgba(14, 140, 125, 0.15);
  color: #0f665c;
}

.status-pill-closed {
  background: rgba(103, 117, 123, 0.14);
  color: #465258;
}

.auth-helper {
  margin: 18px 0 0;
}

.compact-form {
  margin-bottom: 16px;
}

.grid-two {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkbox-row {
  align-items: center;
}

.checkbox-row input {
  width: auto;
}

.inset-panel {
  padding: 22px;
  margin-top: 6px;
  background: rgba(255, 248, 237, 0.76);
}

.weigh-in-editor-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-input-card h3 {
  margin-bottom: 14px;
}

.slim-grid,
.leaderboard-list {
  grid-template-columns: 1fr;
}

@media (max-width: 1120px) {
  .hero,
  .dashboard-grid,
  .overview-grid,
  .catalog-grid,
  .members,
  .grid-two,
  .weigh-in-editor-grid,
  .trend-row,
  .portal-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .brand-strip,
  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .brand-copy {
    text-align: left;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-drawer-panel {
    display: none;
    width: 100%;
    margin-top: 14px;
  }

  .nav-drawer[open] .nav-drawer-panel {
    display: block;
  }

  .nav-cluster {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    border-radius: 20px;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 18px, 1240px);
  }

  .site-header,
  .panel,
  .auth-panel,
  .form-panel {
    padding: 20px;
  }

  .splash-popout h1,
  .section-heading h1 {
    font-size: 2.8rem;
  }

  .nav-actions,
  .hero-actions,
  .meta-row,
  .weigh-in-row,
  .score-row,
  .buffet-card-top,
  .buffet-card-footer,
  .checkbox-row,
  .trend-row,
  .card-actions,
  .roster-row,
  .roster-primary,
  .roster-meta,
  .score-meta {
    flex-direction: column;
    align-items: start;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .session-pill {
    min-width: 0;
  }
}
