/* ============================================================
   alonzo.page — Design System
   LoveFrom meets Rick Owens: theatrical, material, made.
   ============================================================ */

/* --- Custom Properties --- */
:root {
  /* Colors */
  --bg: #FAF8F5;
  --text: #2C2C2C;
  --accent: #6B2D2D;
  --accent-hover: #4A1F1F;
  --divider: #E8E4DF;

  /* Typography — fluid, no breakpoints */
  --font-display: 'EB Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* Spacing */
  --section-gap: clamp(100px, 15vw, 180px);
  --content-max: 560px;
  --content-pad: 24px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.8s;
}

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

/* --- Base --- */
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.1vw + 0.5rem, 1.125rem);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* --- Grain Texture Overlay --- */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.08;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* --- Links --- */
a {
  color: var(--accent);
  text-decoration: none;
  position: relative;
  transition: color 0.4s var(--ease-out);
}

a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out), background-color 0.4s var(--ease-out);
}

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

a:hover::after {
  transform: scaleX(1);
  background: var(--accent-hover);
}

a:focus-visible {
  outline: none;
}

a:focus-visible::after {
  transform: scaleX(1);
  height: 2px;
  background: var(--accent-hover);
}

/* --- Hero: Full-viewport event --- */
.hero {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 38dvh;
  text-align: left;
}

.hero__name {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--text);
  letter-spacing: -0.03em;
  text-transform: lowercase;
  opacity: 0;
  animation: heroNameIn 0.8s var(--ease-out) forwards;
}

.hero__rule {
  width: 48px;
  height: 1px;
  background: var(--text);
  opacity: 0;
  margin: 12px 0;
  animation: heroRuleIn 0.6s var(--ease-out) 0.4s forwards;
}

.hero__location {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1vw, 0.875rem);
  font-weight: 400;
  color: var(--text);
  opacity: 0;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  animation: heroLocationIn 0.8s var(--ease-out) 0.8s forwards;
}

/* Hero entrance animations */
@keyframes heroNameIn {
  from {
    opacity: 0;
    letter-spacing: 0.06em;
  }
  to {
    opacity: 1;
    letter-spacing: -0.03em;
  }
}

@keyframes heroRuleIn {
  from {
    opacity: 0;
    width: 0;
  }
  to {
    opacity: 0.2;
    width: 48px;
  }
}

@keyframes heroLocationIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.5;
  }
}

/* --- Sections --- */
.section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--section-gap) var(--content-pad) 0;
}

/* Rhythm variation — not every gap is the same */
.section--tight {
  padding-top: clamp(60px, 8vw, 100px);
}

.section--breathe {
  padding-top: clamp(140px, 20vw, 240px);
}

/* Display statement — the loudest moment on the page */
.section__body--statement {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-style: italic;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-align: center;
}

.section__label {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1vw, 0.875rem);
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  color: var(--text);
  opacity: 0;
  margin-bottom: 20px;
  transform: translateY(8px);
  transition: opacity var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
}

.section__body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.1vw + 0.5rem, 1.125rem);
  line-height: 1.6;
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--duration) var(--ease-out) 0.15s,
              transform var(--duration) var(--ease-out) 0.15s;
}

.section__body--spaced {
  margin-top: 16px;
}

.section__body--snug {
  margin-top: 4px;
}

.section__body--secondary {
  margin-top: 24px;
  transition: opacity var(--duration) var(--ease-out) 0.25s,
              transform var(--duration) var(--ease-out) 0.25s;
}

/* Staggered reveal when section is visible */
.section.is-visible .section__label {
  opacity: 0.4;
  transform: translateY(0);
}

.section.is-visible .section__body {
  opacity: 1;
  transform: translateY(0);
}

.section.is-visible .section__body--secondary {
  opacity: 0.75;
  transform: translateY(0);
}

/* --- Connect List --- */
.connect-list {
  list-style: none;
  padding-left: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--duration) var(--ease-out) 0.15s,
              transform var(--duration) var(--ease-out) 0.15s;
}

.section.is-visible .connect-list {
  opacity: 1;
  transform: translateY(0);
}

.connect-list li {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1vw + 0.3rem, 1rem);
  line-height: 1.6;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 44px;
  padding: 4px 0;
}

.connect-label {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1vw, 0.875rem);
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  color: var(--text);
  opacity: 0.4;
  min-width: 120px;
  flex-shrink: 0;
}

.connect-arrow {
  color: var(--accent);
  opacity: 0.6;
  flex-shrink: 0;
}

/* --- Footer --- */
.footer {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--section-gap) var(--content-pad) 80px;
}

.footer__text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  opacity: 0.25;
  text-align: center;
  letter-spacing: 0.02em;
}

/* --- Scroll Depth Sentinels --- */
.scroll-sentinel {
  position: absolute;
  left: 0;
  height: 1px;
  width: 1px;
  pointer-events: none;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .hero__name {
    opacity: 1;
    letter-spacing: -0.03em;
    animation: none;
  }

  .hero__rule {
    opacity: 0.2;
    width: 48px;
    animation: none;
  }

  .hero__location {
    opacity: 0.5;
    animation: none;
  }

  .section__label {
    opacity: 0.4;
    transform: none;
    transition: none;
  }

  .section__body {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .section__body--secondary {
    opacity: 0.75;
    transition: none;
  }

  .section__body--statement {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .connect-list {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* --- Press Page --- */
.press-header {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 40px var(--content-pad) 0;
}

.press-back {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.press-bio {
  margin-bottom: 32px;
}

.press-bio:last-child {
  margin-bottom: 0;
}

.press-bio__label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  opacity: 0.6;
  margin-bottom: 8px;
}

/* --- Mobile Refinements --- */
@media (max-width: 767px) {
  .connect-label {
    min-width: 100px;
  }
}
