/* HandleJam — Warm Court Design System (#313) · Zero External Dependencies · Zero Cookies */
:root {
  color-scheme: dark;
  --bg: #0f1419;
  --bg-elevated: #161e26;
  --card: #1a222a;
  --border: #2b3540;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --emerald: #10b981;
  --emerald-dark: #052e1f;
  --gold: #ffb800;
  --cyan: #38b6ff;
  --orange: #ff7a2f;
  --radius: 16px;
  --max-w: 960px;
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at 50% -10%, rgba(255, 184, 0, 0.08), transparent 45%), var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--emerald);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

/* Header */
header {
  border-bottom: 1px solid var(--border);
  background: rgba(15, 20, 25, 0.88);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand img {
  border-radius: 10px;
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--text);
}

main {
  flex: 1;
  padding-block: clamp(2rem, 5vw, 4rem);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-icon {
    order: -1;
    margin-inline: auto;
  }
  .cta-row,
  .pill-row {
    justify-content: center;
  }
}

.pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 184, 0, 0.14);
  color: var(--gold);
  border: 1px solid rgba(255, 184, 0, 0.35);
}

.pill-emerald {
  background: rgba(16, 185, 129, 0.14);
  color: var(--emerald);
  border-color: rgba(16, 185, 129, 0.35);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 0.85rem;
}

h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.65rem);
  line-height: 1.25;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  color: var(--text);
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 56ch;
}

.hero-icon {
  width: clamp(160px, 24vw, 230px);
  height: auto;
  border-radius: 36px;
  border: 2px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  display: block;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.35rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--emerald);
  color: var(--emerald-dark);
}

.btn-primary:hover {
  color: var(--emerald-dark);
  opacity: 0.94;
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* Feature Grid & Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.callout {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(26, 34, 42, 0.95));
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  margin-block: 1.5rem;
}

.callout strong {
  color: var(--emerald);
}

.prose {
  max-width: 72ch;
}

.prose p,
.prose li {
  color: #cbd5e1;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.45rem;
}

.meta-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: -0.35rem;
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding-block: 1.75rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

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

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

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

.footer-links a:hover {
  color: var(--text);
}
