/* Bee Hive visual system. System fonts only. No remote assets. */

:root {
  --bg: #f7f1e6;
  --card: #fffdf8;
  --fg: #1c1916;
  --muted: #5a5148;
  --gold: #f5b82e;
  --gold-deep: #d99b00;
  --gold-text: #7a5200;
  --border: #e3d5c0;
  --focus: #d99b00;
  --shadow: 0 8px 22px rgba(28, 25, 22, 0.12);
  --green-bg: #e7f6ec;
  --green-fg: #0d5a30;
  --amber-bg: #f5b82e;
  --amber-fg: #1c1916;
  --planned-bg: #efe8dc;
  --planned-fg: #5a5148;
  --container: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0d0b;
    --card: #181613;
    --fg: #f6f1e6;
    --muted: #c9bfb3;
    --gold: #f5b82e;
    --gold-deep: #d99b00;
    --gold-text: #f5b82e;
    --border: #322d28;
    --focus: #f5b82e;
    --shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
    --green-bg: #143d28;
    --green-fg: #b6ebc8;
    --amber-bg: #d99b00;
    --amber-fg: #1c1916;
    --planned-bg: #2a2622;
    --planned-fg: #c9bfb3;
    color-scheme: dark;
  }
}

:root[data-theme="light"] {
  --bg: #f7f1e6;
  --card: #fffdf8;
  --fg: #1c1916;
  --muted: #5a5148;
  --gold: #f5b82e;
  --gold-deep: #d99b00;
  --gold-text: #7a5200;
  --border: #e3d5c0;
  --focus: #d99b00;
  --shadow: 0 8px 22px rgba(28, 25, 22, 0.12);
  --green-bg: #e7f6ec;
  --green-fg: #0d5a30;
  --amber-bg: #f5b82e;
  --amber-fg: #1c1916;
  --planned-bg: #efe8dc;
  --planned-fg: #5a5148;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0e0d0b;
  --card: #181613;
  --fg: #f6f1e6;
  --muted: #c9bfb3;
  --gold: #f5b82e;
  --gold-deep: #d99b00;
  --gold-text: #f5b82e;
  --border: #322d28;
  --focus: #f5b82e;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  --green-bg: #143d28;
  --green-fg: #b6ebc8;
  --amber-bg: #d99b00;
  --amber-fg: #1c1916;
  --planned-bg: #2a2622;
  --planned-fg: #c9bfb3;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

.wrap,
.site-header-inner,
.hero-inner,
.site-footer-inner,
main {
  width: min(var(--container), 100%);
  margin-inline: auto;
  padding-inline: 1rem;
}

main {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 40;
  padding: 0.4rem 0.7rem;
  background: var(--card);
  color: var(--fg);
  transform: translateY(-160%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
}

header,
header.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  min-height: 4.25rem;
  padding-block: 0.75rem;
}

.brand-block {
  min-width: 0;
}

.brand {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--gold-text);
  letter-spacing: -0.02em;
}

.tagline,
.kicker,
.kicker-pill {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.kicker-pill {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
  color: var(--gold-text);
  background: color-mix(in srgb, var(--gold) 22%, transparent);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  min-width: 0;
}

.site-nav ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
nav a {
  color: var(--fg);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover,
nav a:hover {
  color: var(--gold-text);
}

#theme-toggle,
.theme-toggle-pill {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--fg);
  padding: 0.35rem 0.8rem;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.2;
  cursor: pointer;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3.35rem);
  max-width: 18ch;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  max-width: 65ch;
}

section {
  margin: 0 0 3rem;
}

a {
  color: var(--gold-text);
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
}

.btn,
.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  border: 1px solid var(--gold-deep);
  text-decoration: none;
  font-weight: 650;
  line-height: 1.2;
}

.btn-primary {
  background: var(--gold);
  color: #1c1916;
  border-color: var(--gold-deep);
}

.btn-primary:hover {
  background: var(--gold-deep);
  color: #1c1916;
}

.btn-secondary,
.card-link {
  background: transparent;
  color: var(--fg);
}

.btn-secondary:hover,
.card-link:hover {
  border-color: var(--gold);
  color: var(--gold-text);
}

.stat-strip,
.feature-grid,
#projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  min-width: 0;
}

.stat-card,
.feature-card,
.project-card,
#projects-grid article {
  min-width: 0;
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 1rem 1.1rem;
}

.stat-card .stat-value,
.stat-card strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.1;
  color: var(--fg);
}

.stat-card .stat-label,
.stat-card span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-card h3,
.project-card h3,
.repo-title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.repo-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0;
}

.feature-card p,
.card-summary {
  margin: 0.4rem 0 0;
  color: var(--fg);
}

.project-card {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.project-card:hover,
#projects-grid article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.status-pill {
  display: inline-block;
  margin: 0 0 0.7rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.status-complete {
  background: var(--green-bg);
  color: var(--green-fg);
}

.status-in-progress {
  background: var(--amber-bg);
  color: var(--amber-fg);
}

.status-planned {
  background: var(--planned-bg);
  color: var(--planned-fg);
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.7rem 0;
}

.meta-chip {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 0.78rem;
}

.filter-bar,
#project-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0 0 1.25rem;
  max-width: 100%;
}

.filter-pills {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  padding: 0.15rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
}

.filter-pill {
  position: relative;
  display: inline-flex;
}

.filter-pill input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.filter-pill span {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: var(--fg);
  font-size: 0.88rem;
}

.filter-pill input:checked + span {
  background: var(--gold);
  color: #1c1916;
}

.filter-pill input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.filter-search,
input[type="search"],
select {
  font: inherit;
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  max-width: 100%;
  min-width: 0;
}

button {
  font: inherit;
  cursor: pointer;
}

#projects-grid:empty {
  min-height: 0.5rem;
}

#projects-empty {
  color: var(--muted);
}

footer,
footer.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.site-footer-inner {
  padding-block: 1.5rem 2rem;
}

.footer-grid {
  display: grid;
  gap: 1rem 1.5rem;
}

.footer-credits,
.footer-legal {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.footer-links a {
  color: var(--gold-text);
  text-decoration: none;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
.skip-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (max-width: 22.5rem) {
  .wrap,
  .site-header-inner,
  .hero-inner,
  .site-footer-inner,
  main {
    padding-inline: 0.75rem;
  }

  .site-nav a {
    font-size: 0.88rem;
  }

  .site-nav ul {
    gap: 0.55rem;
  }
}

@media (max-width: 47.99rem) {
  .filter-bar,
  #project-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-search,
  input[type="search"] {
    width: 100%;
  }
}

@media (min-width: 48rem) {
  .stat-strip,
  .feature-grid,
  #projects-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr auto;
    align-items: center;
  }
}

@media (min-width: 64rem) {
  .stat-strip,
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 80rem) {
  #projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
