/* ============================================================
   ETHAN MCAFFEE — PERSONAL SITE
   Palette: #F8F7F4 · #0A0A0A · #8B0000
   Fonts:   Alfa Slab One · DM Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,400&display=swap');

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

:root {
  --bg:     #F8F7F4;
  --text:   #0A0A0A;
  --accent: #8B0000;
  --muted:  #666;
  --border: #DEDAD4;
  --display: 'Alfa Slab One', serif;
  --body:    'DM Sans', sans-serif;
}

html {
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── NAVIGATION ─── */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 56px;
  height: 64px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
  text-decoration: none;
  user-select: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: var(--body);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.12s;
}

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

.nav-links a.active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--body);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0;
}

/* ─── MAIN CONTENT ─── */

main {
  flex: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 88px 56px 128px;
  width: 100%;
}

/* ─── HOME: HERO ─── */

.hero {
  padding-bottom: 64px;
}

.hero-name {
  font-family: var(--display);
  font-size: clamp(58px, 9.5vw, 96px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.hero-tagline {
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.8;
}

.rule-accent {
  border: none;
  border-top: 1px solid var(--accent);
}

/* ─── CONTENT BLOCKS ─── */

.block {
  padding: 68px 0;
  border-bottom: 1px solid var(--border);
}

.block:last-child {
  border-bottom: none;
}

.block-label {
  font-family: var(--body);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.block h2 {
  font-family: var(--display);
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 400;
  line-height: 1.08;
  margin-bottom: 22px;
}

.block p {
  font-size: 16px;
  line-height: 1.75;
  color: #3a3a3a;
  max-width: 600px;
}

.block p + p {
  margin-top: 16px;
}

.text-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 3px;
  transition: color 0.12s, border-color 0.12s;
}

.text-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ─── PAGE HEADERS ─── */

.page-header {
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.page-header h1 {
  font-family: var(--display);
  font-size: clamp(40px, 6.5vw, 68px);
  font-weight: 400;
  line-height: 1.03;
  margin-bottom: 16px;
}

.page-header .tagline {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── THE PRINCIPAL: HEADER ─── */

.principal-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.principal-heading .logo-mark {
  width: 38px;
  height: 38px;
  font-size: 21px;
}

.principal-heading h1 {
  margin-bottom: 0;
}

/* ─── COVERAGE LIST ─── */

.coverage-list {
  list-style: none;
  margin-top: 32px;
}

.coverage-list li {
  padding: 20px 0;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.coverage-list li:first-child {
  border-top: 1px solid var(--border);
}

/* ─── CTA BLOCK ─── */

.cta-block {
  margin-top: 80px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}

.cta-block .cta-line {
  font-family: var(--display);
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 28px;
}

.cta-email {
  display: inline-block;
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
  transition: opacity 0.12s;
}

.cta-email:hover {
  opacity: 0.65;
}

/* ─── COMING SOON ─── */

.coming-soon {
  padding: 52px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 0;
}

.coming-soon-label {
  font-family: var(--body);
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.coming-soon p {
  font-size: 15px;
  color: var(--muted);
  font-style: italic;
}

.coming-soon .ext-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  transition: color 0.12s, border-color 0.12s;
}

.coming-soon .ext-link:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* ─── WORK WITH ME: SECTIONS ─── */

.work-section {
  padding: 68px 0;
  border-bottom: 1px solid var(--border);
}

.work-section:last-child {
  border-bottom: none;
}

.work-section h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3.8vw, 38px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 22px;
}

.work-section p {
  font-size: 16px;
  line-height: 1.75;
  color: #3a3a3a;
  max-width: 580px;
}

.work-section p + p {
  margin-top: 14px;
}

.work-section .cta-email {
  display: inline-block;
  margin-top: 28px;
}

/* ─── FOOTER ─── */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
}

.footer-name {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-links a {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.12s;
}

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

.footer-linkedin {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  transition: color 0.12s;
}

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

/* ─── RESPONSIVE ─── */

@media (max-width: 768px) {
  nav {
    padding: 0 24px;
    height: 56px;
    position: relative;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding: 4px 0 12px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 13px 24px;
  }

  .nav-toggle {
    display: block;
  }

  main {
    padding: 52px 24px 88px;
  }

  footer {
    padding: 28px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .cta-block {
    margin-top: 56px;
    padding-top: 40px;
  }
}
