/* ============================================
   RYAN THE SON — Site Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Fraunces:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

:root {
  /* Recovering Athlete palette */
  --ink: #0E2C30;            /* page background */
  --ink-soft: #0E2C2F;       /* card background / primary accent */
  --teal-shadow: #0a2225;    /* deeper recess for footer/cards */
  --teal-deep: #0E2C2F;      /* legacy alias for compatibility */
  --teal-mid: #306473;       /* card border / blue-green outline */
  --gold: #ffc901;           /* yellow heading / primary accent */
  --gold-soft: #ffe58a;
  --mint: #a1fdf7;           /* spirit blue secondary accent */
  --cream: #f4f7f6;
  --bone: #f4f7f6;

  --font-display: 'Bebas Neue', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-serif: 'Fraunces', serif;

  --max-width: 1400px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

/* ============================================
   GRAIN + ATMOSPHERE
   ============================================ */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.06;
  mix-blend-mode: overlay;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(14,44,48,0.95) 0%, rgba(14,44,48,0.6) 70%, transparent 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  color: var(--bone);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-brand .dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}

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

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(80vw, 320px);
    background: var(--teal-shadow);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(.7,0,.2,1);
    border-left: 1px solid rgba(255,201,1,0.2);
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links a {
    font-size: 0.95rem;
  }
  .nav-toggle {
    display: block;
    z-index: 101;
  }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--teal-shadow);
  padding: 4rem var(--gutter) 2rem;
  border-top: 1px solid rgba(255,201,1,0.15);
  position: relative;
  z-index: 2;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-mark {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 0.05em;
  color: var(--bone);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.footer-tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--mint);
  max-width: 30ch;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: rgba(244,247,246,0.7);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,201,1,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.footer-social a:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,201,1,0.1);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(244,247,246,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ============================================
   PAGE HEADERS (non-home pages)
   ============================================ */

.page-hero {
  padding: 9rem var(--gutter) 4rem;
  position: relative;
  z-index: 2;
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 9rem);
  letter-spacing: -0.01em;
  line-height: 0.92;
  color: var(--bone);
}

.page-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 0.7em;
  color: var(--mint);
  display: block;
}

/* ============================================
   BUTTON SYSTEM
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(.7,0,.2,1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform 0.3s cubic-bezier(.7,0,.2,1);
  z-index: -1;
}

.btn:hover {
  color: var(--ink);
}

.btn:hover::before {
  transform: translateY(0);
}

.btn-arrow {
  width: 14px;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: transform 0.25s ease;
}

.btn-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-solid {
  background: var(--gold);
  color: var(--ink);
}

.btn-solid::before {
  background: var(--bone);
}

.btn-ghost {
  border-color: rgba(244,247,246,0.3);
  color: var(--bone);
}

.btn-ghost::before {
  background: var(--bone);
}

.btn-ghost:hover {
  color: var(--ink);
}

/* ============================================
   UTILITY
   ============================================ */

.section {
  padding: 6rem var(--gutter);
  position: relative;
  z-index: 2;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin-bottom: 2rem;
}

.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--mint);
}

/* ============================================
   FADE-IN ANIMATION
   ============================================ */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(.2,.6,.2,1), transform 0.9s cubic-bezier(.2,.6,.2,1);
}

.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
