/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Georgia", "Times New Roman", Times, serif;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.nav {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.site-title:hover {
  color: rgba(0, 0, 0, 0.8);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: rgba(0, 0, 0, 0.8);
}

.nav-link.active {
  color: #000;
}

/* Page Container */
.page-container {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.about-container {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

/* Hero Section - Home */
.hero-section {
  margin-bottom: 4rem;
}

/* Mobile Hero */
.hero-mobile {
  display: block;
}

.hero-lead {
  font-size: 1rem;
  line-height: 1.5;
  color: #000;
}

.hero-supporting {
  font-size: 1rem;
  line-height: 1.5;
  color: #000;
  margin-top: 1.5rem;
}

/* Desktop Hero */
.hero-desktop {
  display: none;
}

.hero-text {
  font-size: 1rem;
  line-height: 1.5;
  color: #000;
}

.grounding-text {
  font-size: 0.875rem;
  line-height: 1.625;
  color: rgba(0, 0, 0, 0.5);
  margin-top: 1.5rem;
}

.focus-text {
  font-size: 0.875rem;
  line-height: 1.625;
  color: rgba(0, 0, 0, 0.4);
  margin-top: 1.5rem;
}

/* Links Section */
.links-section {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: rgba(0, 0, 0, 0.5);
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.2);
  text-underline-offset: 2px;
  transition: all 0.2s;
}

.external-link:hover {
  color: rgba(0, 0, 0, 0.8);
  text-decoration-color: rgba(0, 0, 0, 0.5);
}

.external-icon {
  width: 0.75rem;
  height: 0.75rem;
  opacity: 0.5;
}

.email-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: rgba(0, 0, 0, 0.5);
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.2);
  text-underline-offset: 2px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.email-toggle:hover {
  color: rgba(0, 0, 0, 0.8);
  text-decoration-color: rgba(0, 0, 0, 0.5);
}

.email-revealed {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: rgba(0, 0, 0, 0.5);
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.2);
  text-underline-offset: 2px;
}

/* About Page Styles */
.page-title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 3rem;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.bio-section,
.section-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1rem;
  line-height: 1.625;
  color: rgba(0, 0, 0, 0.7);
}

.bio-section p,
.section-content p {
  margin: 0;
}

.divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.section {
  display: flex;
  flex-direction: column;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.email-toggle-inline {
  display: inline;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.2);
  text-underline-offset: 2px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.email-toggle-inline:hover {
  text-decoration-color: rgba(0, 0, 0, 0.5);
}

.email-revealed-inline {
  display: inline;
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.2);
  text-underline-offset: 2px;
}

.contact-note {
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.5);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 6rem;
}

.footer-container {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.5);
}

/* Tablet and Desktop Styles */
@media (min-width: 768px) {
  .nav-container {
    padding: 2rem 2rem;
  }

  .site-title {
    font-size: 1rem;
  }

  .nav-links {
    gap: 2rem;
  }

  .nav-link {
    font-size: 1rem;
  }

  .page-container,
  .about-container {
    padding: 5rem 2rem;
  }

  .hero-section {
    margin-bottom: 6rem;
  }

  /* Hide mobile hero on desktop */
  .hero-mobile {
    display: none;
  }

  /* Show desktop hero */
  .hero-desktop {
    display: block;
  }

  .hero-text {
    font-size: 1.5rem;
  }

  .grounding-text,
  .focus-text {
    font-size: 1rem;
    margin-top: 2rem;
  }

  .links-section {
    gap: 1.5rem;
    font-size: 1rem;
  }

  .page-title {
    font-size: 3rem;
    margin-bottom: 4rem;
  }

  .about-content {
    gap: 4rem;
  }

  .bio-section,
  .section-content {
    font-size: 1.125rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .contact-note {
    font-size: 1rem;
  }

  .footer {
    margin-top: 8rem;
  }

  .footer-container {
    padding: 3rem 2rem;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
