/* ============================================================
   style.css — Shared styles for Jeffrey's site
   Used by: index.html · spherezones/index.html · ambienceart/index.html
   ============================================================ */

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg:          #111111;
  --text:        #f0f0f0;
  --text-muted:  #a0a0a0;
  --btn-bg:      #f0f0f0;
  --btn-text:    #111111;
  --toggle-bg:   #f0f0f0;
  --toggle-knob: #111111;
}

[data-theme="light"] {
  --bg:          #ffffff;
  --text:        #111111;
  --text-muted:  #555555;
  --btn-bg:      #111111;
  --btn-text:    #ffffff;
  --toggle-bg:   #111111;
  --toggle-knob: #ffffff;
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* ─── Dark Mode Toggle ──────────────────────────────────────── */
.toggle-bar {
  position: fixed;
  top: 28px;
  right: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 100;
}

.toggle-label {
  font-size: 0.85rem;
  color: var(--text);
  user-select: none;
  transition: color 0.25s ease;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background-color: var(--toggle-bg);
  transition: background-color 0.25s ease;
}

.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--toggle-knob);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.toggle-switch input:checked ~ .toggle-track .toggle-knob {
  transform: translateX(20px);
}

/* ─── Shared Page Layout ────────────────────────────────────── */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 100px 32px 80px;
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 56px;
}

.avatar {
  flex-shrink: 0;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
}

.hero-text h1 {
  font-size: 2.8rem;
  line-height: 1.1;
  margin-bottom: 16px;
  font-weight: 400;
}

.hero-text h1 strong {
  font-weight: 700;
  font-style: italic;
}

.hero-text p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 420px;
  transition: color 0.25s ease;
}

/* ─── Sections ──────────────────────────────────────────────── */
.section {
  margin-bottom: 40px;
}

.section-heading {
  font-size: 1rem;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 20px;
}

/* ─── Button Rows ───────────────────────────────────────────── */
.btn-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pill-btn {
  flex-shrink: 0;
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: background-color 0.25s ease, color 0.25s ease, opacity 0.15s ease;
}

.pill-btn:hover {
  opacity: 0.8;
}

.btn-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  transition: color 0.25s ease;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 520px) {
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-text p {
    max-width: 100%;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .btn-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
