/* SpiceHack web — matches iOS LabTheme */
:root {
  --reagent: #38f294;
  --reagent-dim: rgba(56, 242, 148, 0.14);
  --amber: #ffc22e;
  --cyan: #59e0fa;
  --bg: #12171f;
  --bg-elevated: #1a212e;
  --text: rgba(255, 255, 255, 0.94);
  --text-secondary: rgba(255, 255, 255, 0.58);
  --text-tertiary: rgba(255, 255, 255, 0.36);
  --hairline: rgba(255, 255, 255, 0.12);
  --radius: 16px;
  --max: 40rem;
  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(900px 480px at 50% -8%, rgba(56, 242, 148, 0.12), transparent 55%),
    var(--bg);
  background-size: 24px 24px, 24px 24px, auto, auto;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--hairline);
}

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

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: var(--reagent-dim);
  border: 1px solid rgba(56, 242, 148, 0.35);
  display: grid;
  place-items: center;
  color: var(--reagent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  font-weight: 700;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a {
  color: var(--text-secondary);
}

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

.hero {
  margin-bottom: 2rem;
}

.hero h1,
article h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lede {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 34rem;
}

.lede em {
  color: var(--text);
  font-style: italic;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
}

.pill {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--reagent);
  background: var(--reagent-dim);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: none;
}

.section-label {
  margin: 2.25rem 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin: 0 0 0.85rem;
}

.card h2 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}

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

.card a.action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  background: var(--reagent);
  color: #0b1210;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.card a.action:hover {
  filter: brightness(1.06);
  text-decoration: none;
}

.card a.secondary {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.feature {
  display: grid;
  gap: 0.35rem;
}

.feature h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.feature .aside {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-style: italic;
}

.note {
  margin: 1.5rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(56, 242, 148, 0.35);
  background: rgba(56, 242, 148, 0.06);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.note strong {
  color: var(--text);
  font-weight: 600;
}

.meta {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  margin: 0 0 1.5rem;
}

article h2 {
  margin: 2rem 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text);
}

article p,
article li {
  color: var(--text-secondary);
}

article ul {
  padding-left: 1.2rem;
  margin: 0.4rem 0 0;
}

article li {
  margin: 0.35rem 0;
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.site-footer p {
  margin: 0.35rem 0;
}
