:root {
  --pico-primary:          #6c63ff;
  --pico-primary-hover:    #5a52e0;
  --pico-primary-focus:    rgba(108, 99, 255, 0.25);
  --pico-background-color: #0a0a12;
  --pico-card-background-color: #13131e;
  --pico-card-border-color: rgba(255,255,255,0.06);
  --pico-font-family: 'Inter', -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
.site-header {
  padding: 2.5rem 0 1.5rem;
}

.header-inner {
  position: relative;
  text-align: center;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 0.25rem;
}

.logo-mark { flex-shrink: 0; display: block; }

.tagline {
  color: var(--pico-muted-color);
  font-size: 1rem;
  margin: 0;
}

.admin-slot {
  position: absolute;
  top: 0;
  right: 0;
}

/* ── About the Author card (below the title) ────────────────────────────── */
.author-card {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1.4rem auto 0;
  padding: 0.7rem 1.1rem 0.7rem 0.8rem;
  border-radius: 16px;
  text-decoration: none;
  color: #eaeaf0;
  background:
    linear-gradient(135deg, rgba(108,99,255,0.14), rgba(45,212,191,0.10) 55%, rgba(251,113,133,0.12));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,0.7);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.author-card:hover {
  transform: translateY(-2px);
  border-color: rgba(167,139,250,0.6);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,0.75);
}

.author-card__icons { display: inline-flex; align-items: center; gap: 0.4rem; }
.author-ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #10151c;                 /* dark glyph on the bright badge */
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
  transition: transform 0.18s ease;
}
.author-ico--mtn    { background: #38bdf8; }  /* mountains — sky */
.author-ico--soccer { background: #fff; }  /* soccer — white ball, black seams */
.author-ico--chess  { background: #f59e0b; }  /* chess — amber */
.author-ico--tri    { background: #fb7185; }  /* triathlon — coral */

/* Playful stagger: badges lift in sequence on hover. */
.author-card:hover .author-ico { transform: translateY(-3px); }
.author-card:hover .author-ico--soccer { transition-delay: 0.04s; }
.author-card:hover .author-ico--chess  { transition-delay: 0.08s; }
.author-card:hover .author-ico--tri    { transition-delay: 0.12s; }

.author-card__text { display: flex; flex-direction: column; gap: 0.1rem; text-align: left; }
.author-card__eyebrow {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a78bfa;
}
.author-card__cta {
  font-size: 1.2rem;
  font-weight: 700;
  color: #a78bfa;
  transition: transform 0.15s ease;
}
.author-card:hover .author-card__cta { transform: translateX(3px); }

@media (max-width: 520px) {
  .author-card { flex-wrap: wrap; justify-content: center; text-align: center; }
  .author-card__text { text-align: center; align-items: center; }
  .author-card__cta { display: none; }
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--pico-card-border-color);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: #cfd0d6;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.admin-btn:hover {
  border-color: var(--pico-primary);
  background: rgba(108,99,255,0.10);
  color: #fff;
}
.admin-btn-icon { font-size: 1rem; line-height: 1; }
.admin-btn-label { letter-spacing: 0.02em; }

@media (max-width: 600px) {
  .admin-btn-label { display: none; }
  .admin-btn { padding: 0.4rem 0.55rem; }
  .wordmark .logo-mark { width: 48px; height: 48px; }
}

/* ── Section heading ─────────────────────────────────────────────────────── */
.section-heading {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pico-muted-color);
  margin: 2.25rem 0 0.75rem;
}

/* ── Featured (hero) tier ─────────────────────────────────────────────────── */
.featured-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.featured-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid var(--pico-card-border-color);
  color: #fff;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}
.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.featured-top {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: stretch;
  min-height: 180px;
}

.featured-art {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.hero-art { width: 100%; height: 100%; max-width: 160px; max-height: 160px; object-fit: contain; }
.hero-art--emoji {
  font-size: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-body {
  padding: 1.25rem 1.5rem 1.25rem 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  /* Grid items default to min-width: auto, which prevents this column from
     shrinking smaller than its longest line on narrow viewports. */
  min-width: 0;
}

.featured-headline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.featured-name {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.featured-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  opacity: 0.9;
  overflow-wrap: anywhere;
}

/* ── Three-pill action row (Google / Apple / Web) ────────────────────────── */
.featured-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0 1.25rem 1.25rem;
}
.featured-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.24);
  color: inherit;
  min-width: 0;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.featured-pill:hover:not(.featured-pill--disabled) {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.45);
}
.featured-pill:active:not(.featured-pill--disabled) { transform: translateY(1px); }
.featured-pill--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.featured-pill__icon { width: 16px; height: 16px; flex-shrink: 0; }
.featured-pill__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {
  .featured-pills { padding: 0 0.75rem 0.75rem; gap: 0.35rem; }
  .featured-pill { padding: 0.5rem 0.5rem; font-size: 0.78rem; gap: 0.3rem; }
}

@media (max-width: 600px) {
  .featured-top { grid-template-columns: 110px 1fr; min-height: 0; }
  .featured-art { padding: 0.5rem; }
  .hero-art { max-width: 100px; max-height: 100px; }
  .featured-body { padding: 1rem 1rem 1rem 0.25rem; }
  .featured-name { font-size: 1.2rem; }
  .featured-desc { font-size: 0.875rem; }
}

/* ── SauceBoss brand (warm orange, off-white wordmark) ────────────────────── */
.brand-sauceboss {
  background: linear-gradient(135deg, #E85D04 0%, #C94E02 60%, #8C3700 100%);
  border-color: rgba(255, 215, 170, 0.22);
}
.brand-sauceboss .featured-name { color: #FFF8EE; text-shadow: 0 1px 0 rgba(0,0,0,0.18); }
.brand-sauceboss .featured-desc { color: rgba(255, 248, 238, 0.92); }
.brand-sauceboss .featured-pill {
  background: rgba(0,0,0,0.18);
  border-color: rgba(255,255,255,0.32);
  color: #FFF8EE;
}
.brand-sauceboss .featured-pill:hover:not(.featured-pill--disabled) {
  background: rgba(0,0,0,0.32);
  border-color: rgba(255,255,255,0.5);
}
.brand-sauceboss .platform-badge--beta {
  background: #1A1A2E;
  color: #3DDC84;
  border: 1px solid rgba(61, 220, 132, 0.6);
}
.brand-sauceboss .platform-badge--not-started {
  background: rgba(26, 26, 46, 0.55);
  color: rgba(255, 248, 238, 0.6);
  border: 1px dashed rgba(255, 248, 238, 0.3);
}

/* ── BoardgameBuddy brand (dark warm-brown w/ brass accent) ──────────────── */
.brand-bgb {
  background: linear-gradient(135deg, #2a1812 0%, #1a0f0b 100%);
  border-color: rgba(201, 146, 42, 0.35);
  font-family: 'Poppins', var(--pico-font-family);
}
.brand-bgb .featured-name {
  font-family: 'Crimson Text', Georgia, serif;
  color: #F5E1B8;
  letter-spacing: 0;
}
.brand-bgb .featured-desc { color: rgba(245, 225, 184, 0.78); }
.brand-bgb .status-live {
  background: rgba(245, 158, 11, 0.18);
  color: #F59E0B;
}
.brand-bgb .featured-pill {
  background: rgba(245, 225, 184, 0.10);
  border-color: rgba(245, 225, 184, 0.32);
  color: #F5E1B8;
}
.brand-bgb .featured-pill:hover:not(.featured-pill--disabled) {
  background: rgba(245, 225, 184, 0.20);
  border-color: rgba(245, 225, 184, 0.55);
}
.brand-bgb .featured-pill--web {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border-color: transparent;
  color: #1a0f0b;
}
.brand-bgb .featured-pill--web:hover:not(.featured-pill--disabled) {
  filter: brightness(1.1);
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border-color: transparent;
}

/* ── Day Word Play brand (cream paper + muted teal) ──────────────────────── */
.brand-dwp {
  background: linear-gradient(135deg, #F0EDE8 0%, #E8E5DF 60%, #DAD6CD 100%);
  border-color: rgba(74, 124, 124, 0.35);
  color: #1C1C1E;
}
.brand-dwp .featured-name {
  color: #1C1C1E;
  font-weight: 800;
}
.brand-dwp .featured-desc { color: #4A4A4A; }
.brand-dwp .status-live {
  background: rgba(74, 124, 124, 0.18);
  color: #3A6A6A;
}
.brand-dwp .featured-pill {
  background: rgba(28, 28, 30, 0.05);
  border-color: rgba(74, 124, 124, 0.35);
  color: #1C1C1E;
}
.brand-dwp .featured-pill:hover:not(.featured-pill--disabled) {
  background: rgba(28, 28, 30, 0.10);
  border-color: rgba(74, 124, 124, 0.55);
}
.brand-dwp .featured-pill--web {
  background: #4A7C7C;
  color: #F0EDE8;
  border-color: transparent;
}
.brand-dwp .featured-pill--web:hover:not(.featured-pill--disabled) {
  background: #3A6A6A;
  border-color: transparent;
}

/* ── PlantPlanner brand (cream paper + sage / coral / lavender) ──────────── */
.brand-pp {
  background: linear-gradient(135deg, #FBF8F3 0%, #F1ECDD 55%, #E5DCC4 100%);
  border-color: rgba(123, 174, 127, 0.42);
  color: #2A3F2C;
  font-family: 'Quicksand', var(--pico-font-family);
}
.brand-pp .featured-name {
  font-family: 'Quicksand', sans-serif;
  color: #2A3F2C;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-pp .featured-desc { color: #4F5E51; }
.brand-pp .status-wip {
  background: rgba(232, 133, 108, 0.18);
  color: #C76854;
}
.brand-pp .featured-pill {
  background: rgba(42, 63, 44, 0.06);
  border-color: rgba(123, 174, 127, 0.42);
  color: #2A3F2C;
}
.brand-pp .featured-pill:hover:not(.featured-pill--disabled) {
  background: rgba(42, 63, 44, 0.12);
  border-color: rgba(123, 174, 127, 0.65);
}
.brand-pp .featured-pill--web {
  background: #E8856C;
  color: #FBF8F3;
  border-color: transparent;
}
.brand-pp .featured-pill--web:hover:not(.featured-pill--disabled) {
  background: #C76854;
  border-color: transparent;
}

/* ── Travel Scrapbook brand (cream paper + blush / coral / mint) ─────────── */
.brand-travel-scrapbook {
  background: linear-gradient(135deg, #FFF6F2 0%, #FCE4EA 55%, #F9C5D1 100%);
  border-color: rgba(91, 84, 104, 0.28);
  color: #5B5468;
}
.brand-travel-scrapbook .featured-name {
  color: #4A4455;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.brand-travel-scrapbook .featured-desc { color: #6B6478; }
.brand-travel-scrapbook .status-wip {
  background: rgba(244, 169, 136, 0.22);
  color: #C4704F;
}
.brand-travel-scrapbook .featured-pill {
  background: rgba(91, 84, 104, 0.06);
  border-color: rgba(91, 84, 104, 0.28);
  color: #5B5468;
}
.brand-travel-scrapbook .featured-pill:hover:not(.featured-pill--disabled) {
  background: rgba(91, 84, 104, 0.12);
  border-color: rgba(91, 84, 104, 0.5);
}
.brand-travel-scrapbook .featured-pill--web {
  background: #F4A988;
  color: #FFF6F2;
  border-color: transparent;
}
.brand-travel-scrapbook .featured-pill--web:hover:not(.featured-pill--disabled) {
  background: #E8926E;
  border-color: transparent;
}

/* ── Project grid (compact / WIP cards) ──────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.project-card {
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-card-border-color);
  border-radius: 12px;
  padding: 1.25rem;
  transition: border-color 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.project-card:hover {
  border-color: var(--pico-primary);
  transform: translateY(-2px);
}

.card-icon { font-size: 2rem; line-height: 1; }

.card-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  margin: 0;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--pico-muted-color);
  line-height: 1.5;
  flex: 1;
  margin: 0;
}

.card-footer {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.status-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
}
.status-live    { background: rgba(40,167,69,0.15); color: #4caf71; }
.status-wip     { background: rgba(255,193,7,0.12); color: #ffc107; }
.status-prototype { background: rgba(23,162,184,0.12); color: #17b8c8; }
.status-deferred { background: rgba(108,117,125,0.18); color: #adb5bd; }
.status-archived { background: rgba(108,117,125,0.12); color: #6c757d; }

.card-link {
  font-size: 0.8rem;
  color: var(--pico-primary);
  text-decoration: none;
  margin-left: auto;
}
.card-link:hover { text-decoration: underline; }

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--pico-muted-color);
  white-space: nowrap;
  margin-right: 0.4rem;
}
.platform-badge:last-child { margin-right: 0; }
.platform-badge__icon { width: 14px; height: 14px; flex-shrink: 0; }

.platform-badge--beta {
  background: rgba(61, 220, 132, 0.16);
  color: #3DDC84;
  border: 1px solid rgba(61, 220, 132, 0.35);
  font-weight: 600;
}
.platform-badge--live {
  background: rgba(56, 161, 105, 0.18);
  color: #38A169;
  border: 1px solid rgba(56, 161, 105, 0.4);
  font-weight: 600;
}
.platform-badge--not-started {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.4);
  border: 1px dashed rgba(255,255,255,0.18);
}
.platform-badge--wip {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.2);
}

/* ── Loading / empty ────────────────────────────────────────────────────────── */
.loading, .empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--pico-muted-color);
}

/* ── Footer ──────────────────────────────────────────────────────────────────── */
footer {
  text-align: center;
  margin-top: 4rem;
  color: var(--pico-muted-color);
}
