/* ========================================
   HELLONEWMAN.ME — Styles
   ======================================== */

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

:root {
  --bg:             #0A0B0F;
  --surface:        #12141A;
  --border:         #2A2D38;
  --text-primary:   #E8EAF0;
  --text-secondary: #8B8FA3;
  --text-muted:     #5C6070;
  --accent:         #5C7CFA;
  --accent-bright:  #748FFC;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-bright);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Layout --- */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

/* --- Section Label --- */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav .nav-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

nav .nav-brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

nav .nav-brand:hover {
  color: #fff;
}

nav .nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

nav .nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile nav */
@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }

  nav .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 11, 15, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
  }

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

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* --- Hero --- */
.hero {
  padding-top: 140px;
  padding-bottom: 100px;
}

.hero-grid {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 8px;
}

.hero-text .title-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-text .one-liner {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hero-links a:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.hero-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.hero-meta a {
  color: var(--text-muted);
}

.hero-meta a:hover {
  color: var(--accent-bright);
}

.hero-headshot {
  flex-shrink: 0;
}

.hero-headshot img {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
}

@media (max-width: 640px) {
  .hero {
    padding-top: 100px;
  }

  .hero-grid {
    flex-direction: column-reverse;
    gap: 32px;
  }

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

  .hero-headshot img {
    width: 140px;
    height: 140px;
  }
}

/* --- Building Section --- */
.building h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.building .subtitle {
  font-size: 1.1rem;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 28px;
}

.building .body-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.75;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.card h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}

.section-links a {
  font-size: 0.9rem;
  color: var(--accent-bright);
}

.section-links a:hover {
  color: #fff;
}

/* --- Background Section --- */
.background h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.background .body-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.75;
}

.quick-facts {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* --- Contact Section --- */
.contact h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact .body-text {
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.75;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 0.95rem;
}

.contact-info a {
  color: var(--accent-bright);
}

.contact-info a:hover {
  color: #fff;
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

footer a {
  color: var(--text-muted);
}

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