:root {
  --nest-bg: #0a0806;
  --nest-line: rgba(212, 175, 55, 0.38);
  --nest-gold: #d4af37;
  --nest-text: #f5f0e8;
  --nest-muted: #a8a29e;
  --nest-foam: #5eead4;
  --nest-prose: 40rem;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(120% 80% at 50% 0%, rgba(212, 175, 55, 0.07) 0%, var(--nest-bg) 42%, #030508 100%);
  color: var(--nest-text);
  line-height: 1.65;
  font-size: 1.0625rem;
}
.nest-wrap {
  max-width: calc(var(--nest-prose) + 2.5rem);
  margin: 0 auto;
  padding: max(1rem, env(safe-area-inset-top)) 1.25rem max(2.5rem, env(safe-area-inset-bottom));
}
.skin-nav {
  font-size: 0.8125rem;
  color: var(--nest-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--nest-line);
}
.skin-nav a { color: var(--nest-foam); text-decoration: none; font-weight: 600; }
.skin-nav a:hover { text-decoration: underline; color: var(--nest-gold); }
.skin-nav span.dot { margin: 0 0.4rem; opacity: 0.5; }
.crumb { margin: 0 0 1.25rem; font-size: 0.875rem; }
.crumb a { color: var(--nest-foam); text-decoration: none; }
.crumb a:hover { text-decoration: underline; color: var(--nest-gold); }
.nest-wrap h1 {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--nest-gold);
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.nest-body h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--nest-gold);
  margin: 1.75rem 0 0.55rem;
  line-height: 1.3;
}
.nest-body h2:first-child { margin-top: 0; }
.nest-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--nest-foam);
  margin: 1.25rem 0 0.4rem;
  line-height: 1.3;
}
.nest-body p { margin: 0 0 0.85rem; color: #cbd5e1; }
.nest-body code {
  font-size: 0.85em;
  color: var(--nest-gold);
  background: rgba(212, 175, 55, 0.08);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
.nest-body ul { margin: 0.35rem 0 0.85rem; padding-left: 1.25rem; color: #cbd5e1; }
.nest-body li { margin-bottom: 0.35rem; }
.nest-body a { color: var(--nest-foam); }
.nest-body a:hover { color: var(--nest-gold); }
.note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--nest-line);
  font-size: 0.9rem;
  color: var(--nest-muted);
}
.note a { color: var(--nest-foam); font-weight: 600; text-decoration: none; }
.note a:hover { text-decoration: underline; color: var(--nest-gold); }

.nest-deck {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0a0f14;
  background: linear-gradient(90deg, #2dd4bf, #22d3ee);
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}
.nest-plain-tag {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--nest-muted);
  margin: 0 0 0.65rem;
  letter-spacing: 0.02em;
}
.nest-hero {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--nest-line);
  margin: 0 0 1.15rem;
  display: block;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
.nest-lede {
  font-size: 1.05rem;
  line-height: 1.55;
  color: #e2e8f0;
  margin: 0 0 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--nest-line);
}
.nest-lede strong { color: var(--nest-gold); }
.nest-step {
  margin: 0 0 1rem;
  padding-left: 0.85rem;
  border-left: 3px solid rgba(45, 212, 191, 0.45);
  color: #cbd5e1;
}
.nest-step strong { color: #f1f5f9; }
.nest-caveat {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.05rem;
  border-radius: 10px;
  border: 2px solid rgba(201, 123, 74, 0.5);
  background: rgba(42, 28, 20, 0.45);
}
.nest-caveat h2 {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nest-honey, #c97b4a);
  margin: 0 0 0.55rem;
}
.nest-caveat p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cbd5e1;
}
.nest-pull {
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.28);
  font-size: 0.95rem;
  color: #e8edf5;
  font-style: italic;
}
.nest-actions {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(12, 16, 24, 0.9);
  border: 1px solid var(--nest-line);
}
.nest-actions p { margin: 0 0 0.5rem; font-size: 0.9rem; }
.nest-actions p:last-child { margin-bottom: 0; }

.nest-member-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--nest-line);
  background: rgba(12, 16, 24, 0.75);
}
.nest-member-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid var(--nest-line);
  color: var(--nest-foam);
}
.nest-member-bar__btn:hover {
  border-color: var(--nest-gold);
  color: var(--nest-gold);
}
.nest-member-bar__btn--gold {
  background: linear-gradient(180deg, #f0d4a0, #c9a227);
  color: #1a120c;
  border-color: transparent;
}
.nest-member-bar__btn--gold:hover {
  color: #1a120c;
  filter: brightness(1.05);
}
