:root {
  --bg: #f4f7fb;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --text: #152033;
  --text-muted: #5b6778;
  --accent: #0ea5e9;
  --accent-strong: #0284c7;
  --accent-warm: #f97316;
  --accent-fresh: #22c55e;
  --accent-soft: rgba(14, 165, 233, 0.1);
  --accent-warm-soft: rgba(249, 115, 22, 0.12);
  --accent-fresh-soft: rgba(34, 197, 94, 0.12);
  --strava: #fc4c02;
  --border: rgba(21, 32, 51, 0.08);
  --shadow: 0 18px 50px rgba(21, 32, 51, 0.08);
  --shadow-soft: 0 8px 24px rgba(21, 32, 51, 0.06);
  --radius: 22px;
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(14, 165, 233, 0.14), transparent 32%),
    radial-gradient(circle at 92% 8%, rgba(249, 115, 22, 0.12), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(34, 197, 94, 0.08), transparent 36%),
    var(--bg);
}

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

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

.site-header,
.section,
.site-footer {
  width: min(calc(100% - 3rem), var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(244, 247, 251, 0.82);
  border-bottom: 1px solid transparent;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

.logo {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: linear-gradient(120deg, var(--accent-strong), var(--accent-warm));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.site-header nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.site-header nav a:hover {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  margin-bottom: 2rem;
  border-radius: calc(var(--radius) + 10px);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow);
}

.hero-media,
.hero-overlay,
.hero-content {
  grid-area: 1 / 1;
}

.hero-media img {
  width: 100%;
  height: 88vh;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(1.12) brightness(1.05);
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 35%, rgba(15, 23, 42, 0.55) 100%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.18) 55%, rgba(15, 23, 42, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem clamp(1.5rem, 4vw, 3rem) 3.5rem;
  max-width: 760px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.connect-card h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 400;
  line-height: 1.02;
}

.hero h1 em,
.section h2 em {
  font-style: italic;
  background: linear-gradient(120deg, #7dd3fc, #fdba74);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede,
.section-heading p,
.about-intro p,
.outdoors-copy p,
.connect-card p {
  color: var(--text-muted);
}

.hero .lede {
  color: rgba(255, 255, 255, 0.88);
}

.section-heading p a {
  color: var(--accent-strong);
  font-weight: 600;
}

.lede {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  font-size: 1.12rem;
}

.hero-actions,
.connect-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-actions {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), #38bdf8);
  color: #fff;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.35);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(8px);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.button.strava {
  background: linear-gradient(135deg, var(--strava), #ff7a45);
  color: #fff;
  margin-top: 1.5rem;
  box-shadow: 0 10px 24px rgba(252, 76, 2, 0.28);
}

.strava-mark {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset -0.15rem 0 0 0 var(--strava);
}

.section {
  margin-bottom: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.65rem;
}

.section h2 em {
  background: linear-gradient(120deg, var(--accent-strong), var(--accent-warm));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.profile-photo {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow:
    0 0 0 2px var(--accent),
    0 12px 24px rgba(14, 165, 233, 0.2);
}

.subtitle {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.about-intro p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.facts li {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
}

.facts li:nth-child(1) {
  background: var(--accent-soft);
  border-color: rgba(14, 165, 233, 0.18);
}

.facts li:nth-child(2) {
  background: var(--accent-fresh-soft);
  border-color: rgba(34, 197, 94, 0.18);
}

.facts li:nth-child(3) {
  background: var(--accent-warm-soft);
  border-color: rgba(249, 115, 22, 0.18);
}

.facts li:nth-child(4) {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.18);
}

.facts .label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.facts li:nth-child(1) .label { color: var(--accent-strong); }
.facts li:nth-child(2) .label { color: #16a34a; }
.facts li:nth-child(3) .label { color: #ea580c; }
.facts li:nth-child(4) .label { color: #9333ea; }

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.4rem;
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.card-tag {
  margin: 0 0 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cards .card:nth-child(1) .card-tag { color: var(--accent-strong); }
.cards .card:nth-child(2) .card-tag { color: #16a34a; }
.cards .card:nth-child(3) .card-tag { color: #ea580c; }
.cards .card:nth-child(4) .card-tag { color: #9333ea; }

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
}

.card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.card a {
  color: var(--accent-strong);
  font-weight: 700;
}

.outdoors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.06), rgba(34, 197, 94, 0.08)),
    rgba(255, 255, 255, 0.88);
}

.outdoors-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.outdoors-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(1.1);
}

.outdoors-stat {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
}

.stat-value {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  color: var(--accent-warm);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.strava-section {
  background:
    linear-gradient(135deg, rgba(252, 76, 2, 0.06), rgba(14, 165, 233, 0.05)),
    rgba(255, 255, 255, 0.92);
}

.strava-feed {
  display: grid;
  gap: 0.85rem;
}

.strava-status,
.strava-empty {
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px dashed rgba(252, 76, 2, 0.25);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text-muted);
}

.strava-empty {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.strava-card {
  display: grid;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.strava-card:hover {
  transform: translateY(-2px);
  border-color: rgba(252, 76, 2, 0.25);
  box-shadow: 0 14px 30px rgba(252, 76, 2, 0.12);
}

.strava-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.strava-type {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 14px;
  background: rgba(252, 76, 2, 0.1);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.strava-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.3;
}

.strava-subtitle {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.strava-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.strava-stats div {
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: var(--bg);
}

.strava-stats dt {
  margin: 0 0 0.15rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strava-stats dd {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

.strava-meta {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 200px;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.gallery-item--wide {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item--tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
  filter: saturate(1.08);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.72));
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
}

.gallery-more {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--accent-strong);
  font-weight: 700;
}

.connect-card {
  text-align: left;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(249, 115, 22, 0.08)),
    rgba(255, 255, 255, 0.92);
}

.connect-card h2 {
  margin: 0.35rem 0 0.85rem;
}

.connect-links a {
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.connect-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.3);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.5rem 0 3rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.env-badge {
  margin: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.25);
  background: var(--accent-warm-soft);
  color: #c2410c;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

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

@media (max-width: 900px) {
  .about,
  .outdoors,
  .cards,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .strava-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 180px;
  }

  .gallery-item--wide,
  .gallery-item--tall {
    grid-column: span 2;
    grid-row: span 1;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-media img {
    height: 78vh;
  }
}