/**
 * Monomyth Development - Main Stylesheet
 * Mobile-first, minimal, performance-focused
 */

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
  /* Colors */
  --color-bg: #0a0a0a;
  --color-text: #e8eaed;
  --color-text-mid: #a8b0ba;
  --color-text-dim: #7a838f;
  --color-accent: rgba(192, 140, 0, 0.34);
  --color-accent-solid: #c08c00;
  --color-border: rgba(192, 140, 0, 0.12);
  --color-border-subtle: rgba(192, 140, 0, 0.06);

  /* Typography */
  --font-primary: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;
  --space-5xl: 10rem;
  --space-6xl: 12rem;
  --space-7xl: 14rem;
  --space-8xl: 16rem;

  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-primary);
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
  letter-spacing: 0.02em;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ============================================
   Header
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  background-color: transparent;
  transition: background-color var(--transition-fast);
}

.site-header--scrolled {
  background-color: var(--color-bg);
}

.wordmark {
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: var(--space-lg);
}

.hero__logo {
  width: 80vw;
  max-width: 700px;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-mid);
  font-size: 1.8rem;
  opacity: 0;
  animation:
    fade-in 0.25s ease 0.5s forwards,
    float 2s ease-in-out 0.5s infinite;
  transition: color var(--transition-fast);
}

.hero__scroll:hover,
.hero__scroll:focus {
  color: var(--color-accent-solid);
  outline: none;
}

/* ============================================
   About Section
   ============================================ */
.about {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-3xl) var(--space-md);
  text-align: center;
}

.about__content {
  max-width: 650px;
  width: 100%;
}

.about__title-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-8xl);
}

.about__title {
  font-weight: 300;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-text);
  margin-top: var(--space-lg);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.about__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  width: 150px;
  height: 150px;
  opacity: 0.4;
  z-index: 0;
}

/* Subpage variants (privacy, terms) */
.about__title-wrapper--subpage {
  margin-bottom: var(--space-4xl);
}

.about__title-wrapper--subpage .about__icon {
  transform: translate(-50%, -35%);
}

.about__lead {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--color-text);
  margin-bottom: var(--space-2xl);
}

/* Values Grid */
.values-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4xl);
}

/* Values */
.values {
  text-align: center;
}

.values__label {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.values__label::before,
.values__label::after {
  content: '';
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.values__list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  list-style: none;
}

.values__item {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--color-text-mid);
  letter-spacing: 0.03em;
}

.values__separator {
  color: var(--color-text-dim);
  margin: 0 0.5rem;
}

/* Closing */
.about__closing {
  font-size: 0.9rem;
  line-height: 2;
  color: var(--color-text-dim);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border-subtle);
}

.about__closing small {
  font-size: 0.4rem;
  letter-spacing: 0.1em;
}

/* Status */
.status {
  margin-top: var(--space-2xl);
}

.status__badge {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--color-border);
  display: inline-block;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
  border-top: 1px solid var(--color-border-subtle);
}

.footer__contact {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--color-text-dim);
}

.footer__email {
  height: auto;
  opacity: 0.5;
}

.footer__links {
  display: flex;
  gap: var(--space-lg);
}

.footer__link {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-mid);
  opacity: 0.7;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.footer__link:hover,
.footer__link:focus {
  opacity: 1;
  color: var(--color-accent-solid);
  outline: none;
}

.footer__copyright {
  width: 100%;
  padding-top: var(--space-lg);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--color-text-mid);
  opacity: 0.5;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fade-in {
  to {
    opacity: 0.8;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .hero__scroll {
    opacity: 0.8;
  }
}

/* ============================================
   Tablet & Desktop (min-width: 768px)
   ============================================ */
@media (min-width: 768px) {
  .site-header {
    padding: var(--space-lg) var(--space-xl);
  }

  .site-nav {
    gap: var(--space-xl);
  }

  .hero__logo {
    width: min(70vw, 500px);
  }

  .about {
    padding: var(--space-4xl) var(--space-lg);
  }

  .about__title {
    margin-top: var(--space-xl);
  }

  .values-grid {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-6xl);
  }

  .values {
    flex: 1;
    max-width: none;
  }

  .values__item,
  .values__label {
    white-space: nowrap;
  }

  .values__label::before,
  .values__label::after {
    width: 30px;
  }

  .site-footer {
    padding: var(--space-xl);
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
  }

  .footer__copyright {
    text-align: center;
  }
}
