/* Rodney Freeman — rodneyfreeman.net
   Cool, minimal/tech theme with light + dark mode */

:root {
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --card-bg: #ffffff;
  --border: #e2e6ee;
  --text: #12161f;
  --text-muted: #5b6472;
  --text-faint: #8892a0;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
  --radius: 12px;
  --max-width: 960px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

html[data-theme="dark"] {
  --accent: #60a5fa;
  --accent-soft: #1e3a5f;
  --bg: #0b0f17;
  --bg-alt: #10151f;
  --card-bg: #131926;
  --border: #232b3a;
  --text: #e8ecf3;
  --text-muted: #a3aebd;
  --text-faint: #6b7585;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}

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

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

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

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.main-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--text);
  text-decoration: none;
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 56px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.hero .role {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 18px;
  font-weight: 500;
}

.hero p.lede {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 28px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.avatar-wrap {
  display: flex;
  justify-content: center;
}

.avatar {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ---------- Sections ---------- */

section.block {
  padding: 48px 0;
}

section.block.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
  max-width: 60ch;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card .card-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.card .card-icon svg {
  width: 19px;
  height: 19px;
}

.card h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

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

/* Community callout */

.callout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.callout .callout-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.callout .callout-icon svg {
  width: 22px;
  height: 22px;
}

.callout h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

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

/* ---------- Page header (About / Contact) ---------- */

.page-head {
  padding: 56px 0 8px;
}

.page-head h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.page-head p.lede {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0;
}

/* ---------- About page ---------- */

.about-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.prose p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.prose h2 {
  font-size: 1.2rem;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}

.sidebar-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.sidebar-card h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin: 0 0 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tag-list li {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.info-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-list .label {
  color: var(--text-faint);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-list .value {
  color: var(--text);
  font-weight: 500;
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-card .card-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card .card-icon svg {
  width: 18px;
  height: 18px;
}

.contact-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

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

.contact-card a.contact-link {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: 40px;
}

footer.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer.site-footer p {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--text-faint);
  font-size: 0.88rem;
}

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

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  nav.main-nav {
    gap: 16px;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .avatar-wrap {
    order: -1;
  }

  .avatar {
    width: 140px;
    height: 140px;
  }

  .card-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .callout {
    grid-template-columns: 1fr;
    text-align: left;
  }

  footer.site-footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  nav.main-nav {
    gap: 12px;
  }

  nav.main-nav a {
    font-size: 0.86rem;
  }

  .site-header .wrap {
    flex-wrap: wrap;
    row-gap: 10px;
  }
}
