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

/* Design Tokens */
:root {
  --bg-primary: #0a0a0a;
  --bg-header: #111;
  --bg-age-gate-box: #1a1a1a;
  --text-primary: #e0e0e0;
  --text-accent: #ffffff;
  --text-muted: #666666;
  --link-color: #cccccc;
  --link-hover: #ffffff;
  --button-bg: #333;
  --button-bg-hover: #444;
  --button-bg-enter: #444;
  --max-width: 1200px;
}

/* Body */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* FOUC Prevention - hide content when age gate is active */
body.age-gate-active,
html.age-gate-active body {
  visibility: hidden;
}

/* But keep age gate overlay visible */
body.age-gate-active #age-gate-overlay,
html.age-gate-active #age-gate-overlay {
  visibility: visible;
}

/* Header */
header {
  background-color: var(--bg-header);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #222;
}

header nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wordmark {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}

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

.nav-links a {
  color: var(--link-color);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.nav-links a.active {
  color: var(--text-accent);
  border-bottom: 1px solid var(--text-accent);
  padding-bottom: 2px;
}

/* Main Content */
main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
  width: 100%;
}

h1 {
  color: var(--text-accent);
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

h2 {
  color: var(--text-accent);
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

p {
  max-width: 65ch;
  margin-bottom: 1rem;
}

a {
  color: var(--link-color);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--link-hover);
}

/* Footer */
footer {
  background-color: var(--bg-header);
  padding: 2rem;
  text-align: center;
  border-top: 1px solid #222;
}

footer p {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin: 0 auto;
}

/* Age Gate Overlay */
#age-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.age-gate-content {
  background-color: var(--bg-age-gate-box);
  padding: 3rem 2.5rem;
  border-radius: 8px;
  text-align: center;
  max-width: 500px;
  margin: 1rem;
}

.age-gate-content p {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.age-gate-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.age-gate-button {
  background-color: var(--button-bg);
  color: var(--text-primary);
  border: 1px solid #555;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-family: inherit;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.age-gate-button:hover {
  background-color: var(--button-bg-hover);
  border-color: #666;
}

.age-gate-button.enter {
  background-color: var(--button-bg-enter);
  border-color: #666;
}

.age-gate-button.enter:hover {
  background-color: #555;
  border-color: #777;
}

/* Portfolio Grid (placeholder for Phase 2) */
.portfolio-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.portfolio-grid picture,
.portfolio-grid img {
  width: 100%;
  height: auto;
  display: block;
}

/* Landing Page */
.landing-hero {
  text-align: center;
  padding: 4rem 0;
}

.landing-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.landing-hero .tagline {
  color: var(--link-color);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.cta-link {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--button-bg);
  color: var(--text-accent);
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid #555;
  transition: all 0.2s ease;
}

.cta-link:hover {
  background-color: var(--button-bg-hover);
  border-color: #666;
  color: var(--text-accent);
}

/* Responsive */
@media (max-width: 768px) {
  header nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .landing-hero h1 {
    font-size: 2.5rem;
  }

  .landing-hero .tagline {
    font-size: 1rem;
  }

  main {
    padding: 2rem 1rem;
  }

  h1 {
    font-size: 2rem;
  }
}
