:root {
  color-scheme: dark;
  --bg: #121218;
  --surface: #1c1c24;
  --surface-alt: #24242e;
  --border: #2e2e38;
  --dark: #e0e0e0;

  --accent: #1A8A8A;
  --accent-hover: #147272;
  --accent-orange: #E8871E;
  --accent-orange-rgb: 232, 135, 30;
  --accent-orange-hover: #D07518;

  /* Brand / mascot reds (extracted from the BOMHort dragon) */
  --brand-red: #B21B34;
  --brand-red-rgb: 178, 27, 52;
  --brand-red-dark: #6E0604;
  --brand-red-dark-rgb: 110, 6, 4;

  --nav-bg: #16161e;
  --nav-link: #8b8b9a;
  --nav-link-hover: #f0f0f0;
  --nav-link-active-bg: rgba(26, 138, 138, 0.35);

  --text: #e0e0e6;
  --text-secondary: #a9a9bd;
  --text-muted: #8b8b9e;
  --heading: #f5f5fa;

  --status-success-bg: #0e2a22;
  --status-error-bg: #2a1616;
  --status-warning-bg: #2a2010;
  --status-info-bg: #102a2a;

  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(circle at top, #1b1b27 0%, var(--bg) 45%);
  color: var(--text);
  line-height: 1.6;
}

/* Brand-red text selection (ties the mascot color across the site) */
::selection {
  background: var(--brand-red);
  color: #ffffff;
}

::-moz-selection {
  background: var(--brand-red);
  color: #ffffff;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

.page-wrap {
  min-height: calc(100vh - 128px);
}

.content-shell {
  width: min(1080px, calc(100% - 3rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--nav-bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  min-height: 88px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand span {
  font-size: 1.2rem;
  font-weight: 800;
}

.brand img {
  height: 34px;
  width: auto;
}

.brand-mascot {
  height: 92px !important;
  width: auto;
  margin: -14px 0;
}

.brand span {
  font-size: 1.35rem;
  font-weight: 800;
}

.menu {
  list-style: none;
  display: flex;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
}

.menu a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--nav-link);
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  font-weight: 500;
  border: 1px solid transparent;
}

.menu a:hover {
  color: var(--nav-link-hover);
  background: rgba(var(--accent-orange-rgb), 0.14);
  border-color: rgba(var(--accent-orange-rgb), 0.4);
}

.hero {
  padding: 5.5rem 0 3.5rem;
}

.eyebrow {
  color: var(--accent-orange);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

h1 {
  margin: 0.2rem 0 1rem;
  line-height: 1.15;
  font-size: clamp(2rem, 4vw, 3.4rem);
  color: var(--heading);
}

h2, h3 {
  color: var(--heading);
}

.lead {
  max-width: 760px;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.lead-note {
  margin-top: 0.8rem;
  max-width: 760px;
  color: var(--text-muted, var(--text-secondary));
  font-size: 0.95rem;
  opacity: 0.85;
}

.badge-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.14));
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.pill:hover {
  border-color: var(--accent, #1A8A8A);
  color: var(--text-primary, #fff);
}

.icon-pill {
  width: 1rem;
  height: 1rem;
}

.pill-logo {
  width: 0.95rem;
  height: 0.95rem;
  object-fit: contain;
  display: block;
}

.cta-row {
  margin-top: 1.8rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.rss-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.14));
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.rss-link:hover {
  border-color: var(--accent, #E8871E);
  color: var(--text-primary, #fff);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--accent) 0%, rgb(var(--accent-orange-rgb)) 100%);
  box-shadow: 0 0 0 1px rgba(var(--accent-orange-rgb), 0.22);
}

.btn-primary:hover {
  color: #fff;
  background: var(--accent-hover);
}

.btn-muted {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface);
}

.btn-muted:hover {
  color: var(--text);
  border-color: rgb(var(--accent-orange-rgb));
  box-shadow: inset 0 0 0 1px rgba(var(--accent-orange-rgb), 0.3);
}

.feature-block {
  padding-bottom: 4.5rem;
}

/* Full-width section bands for visual rhythm */
.band {
  width: 100%;
}

.band-surface {
  background: linear-gradient(180deg, #16161e 0%, #1a1a23 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.band-accent {
  position: relative;
  background:
    radial-gradient(circle at 15% 0%, rgba(26, 138, 138, 0.28) 0%, transparent 55%),
    radial-gradient(circle at 85% 100%, rgba(232, 135, 30, 0.14) 0%, transparent 55%),
    linear-gradient(180deg, #15201f 0%, #131820 100%);
  border-top: 1px solid rgba(26, 138, 138, 0.35);
  border-bottom: 1px solid var(--border);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.list-cards {
  margin-top: 2rem;
}

.card {
  padding: 1.2rem;
  border-radius: 10px;
  border: 1px solid rgba(var(--accent-orange-rgb), 0.22);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
}

.card h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  color: rgb(var(--accent-orange-rgb));
}

.icon {
  width: 1rem;
  height: 1rem;
  display: inline-block;
  object-fit: contain;
  vertical-align: middle;
}

.icon-mask {
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  flex: 0 0 auto;
}

.icon-nav {
  opacity: 0.9;
}

.icon-btn {
  width: 1.05rem;
  height: 1.05rem;
}

.icon-heading {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--accent, #E8871E);
}

.card p,
.content-body,
.content-shell p {
  margin: 0;
  color: var(--text-secondary);
}

.content-shell {
  padding: 2.5rem 0;
}

.prose {
  max-width: 820px;
}

.prose h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.prose p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.prose ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.prose li {
  margin-bottom: 0.4rem;
}

.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 3fr;
  gap: 2.5rem;
  padding: 3rem 0 2rem;
}

.footer-brand {
  max-width: 360px;
}

.footer-sandbox {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.9rem 1.3rem;
  background: #ffffff;
  border-radius: 12px;
  line-height: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.footer-sandbox-logo {
  height: 80px;
  width: auto;
}

.footer-brand p a {
  color: var(--accent, #E8871E);
  text-decoration: none;
}

.footer-brand p a:hover {
  text-decoration: underline;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 0.9rem;
}

.footer-badge a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-social {
  margin-top: 1.2rem;
}

.footer-social-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.footer-social-links {
  display: flex;
  gap: 0.6rem;
}

.footer-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.footer-social-links a:hover {
  border-color: var(--accent, #E8871E);
  color: var(--accent, #E8871E);
}

.icon-social {
  width: 1.15rem;
  height: 1.15rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.footer-col h3 {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--accent, #E8871E);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 1.4rem 0 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
  max-width: 100%;
}

.footer-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.9;
  line-height: 1.5;
}

.community-cta {
  text-align: center;
}

.community-inner {
  max-width: 720px;
  margin: 0 auto;
}

.community-inner .cta-row {
  justify-content: center;
}

.contributors {
  margin-top: 2.2rem;
}

.contributors-label {
  margin: 0 0 0.8rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.contributors img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.post-meta {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.card-date {
  margin: 0 0 0.4rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .topbar-inner {
    flex-wrap: wrap;
    padding: 0.8rem 0;
  }

  .menu {
    flex-wrap: wrap;
  }
}

/* Tablets & large phones */
@media (max-width: 640px) {
  .content-shell {
    width: min(1080px, calc(100% - 2rem));
  }

  .topbar-inner {
    min-height: auto;
    gap: 0.5rem;
    padding: 0.6rem 0;
  }

  .brand-mascot {
    height: 64px !important;
    margin: -8px 0;
  }

  .brand span {
    font-size: 1.15rem;
  }

  .menu {
    gap: 0.3rem;
    width: 100%;
    justify-content: flex-start;
  }

  .menu a {
    padding: 0.4rem 0.55rem;
    font-size: 0.9rem;
  }

  .feature-block {
    padding-bottom: 3rem;
  }

  .content-shell {
    padding: 2rem 0;
  }

  .cta-row {
    width: 100%;
  }

  .cta-row .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .sg-swatches {
    grid-template-columns: 1fr;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  h1 {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }

  .lead {
    font-size: 1rem;
  }

  .brand-mascot {
    height: 56px !important;
  }

  .footer-sandbox-logo {
    height: 64px;
  }

  .cta-row {
    flex-direction: column;
  }

  .cta-row .btn {
    width: 100%;
  }
}

/* ---------------------------------------------------------------- */
/* Styleguide page                                                  */
/* ---------------------------------------------------------------- */
.sg-intro {
  padding-top: 3rem;
}

.sg-section {
  padding: 2.5rem 0;
}

.sg-section > h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0 0 0.5rem;
}

.sg-note {
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 0 1.5rem;
}

.sg-subhead {
  margin: 1.8rem 0 0.9rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* Logo */
.sg-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sg-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 150px;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.sg-on-dark {
  background: var(--surface);
}

.sg-on-light {
  background: #ffffff;
}

.sg-logo {
  height: 90px;
  width: auto;
}

.sg-logo-sm {
  height: 48px;
}

.sg-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.sg-wordmark {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--heading);
}

.sg-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sg-caption-dark {
  color: #55555f;
}

.sg-do-dont {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  max-width: 720px;
}

.sg-do-dont li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--text-secondary);
}

.sg-do::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.sg-dont::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--accent-orange);
  font-weight: 700;
}

/* Color swatches */
.sg-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.9rem;
}

.sg-swatch {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.sg-swatch-color {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex: 0 0 auto;
}

.sg-swatch-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.sg-swatch-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.sg-swatch-hex {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.sg-swatch-var {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Typography samples */
.sg-type-sample {
  margin: 0.4rem 0;
}

.sg-muted-sample {
  color: var(--text-muted);
}

/* Icon grid */
.sg-icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.8rem;
}

.sg-icon-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  text-align: center;
}

.sg-icon-cell .icon {
  color: var(--accent-orange);
}
































