:root {
  --bg: #f9f3ea;
  --paper: rgba(255, 250, 244, 0.82);
  --ink: #1d2433;
  --muted: #5f6778;
  --line: rgba(29, 36, 51, 0.1);
  --warm: #ff7a3d;
  --warm-soft: #ffd7bf;
  --cool: #78d7ff;
  --cool-deep: #0d557a;
  --mint: #b7ffd1;
  --forest: #1d6b4e;
  --shadow: 0 22px 55px rgba(19, 30, 52, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 122, 61, 0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(120, 215, 255, 0.24), transparent 28%),
    linear-gradient(180deg, #fff8ef 0%, #f8efe5 48%, #f7f1ea 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.25) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.24;
  pointer-events: none;
}

img,
video {
  display: block;
  width: 100%;
}

button,
a {
  font: inherit;
}

main,
.site-header {
  position: relative;
  z-index: 1;
}

.site-header,
main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 12px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--warm), #ffb26d);
  color: white;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  line-height: 0.95;
}

h1 {
  font-size: clamp(1.8rem, 2vw, 2.2rem);
}

h2 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  max-width: 11ch;
}

h3 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.05;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cool-deep);
}

.panel-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.panel-link {
  padding: 14px 20px;
  color: var(--ink);
  border: 1px solid rgba(29, 36, 51, 0.16);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(12px);
}

.panel-link:hover,
.button:hover,
.tab-button:hover {
  transform: translateY(-2px);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 34px 0 24px;
}

.hero-text {
  max-width: 58ch;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0;
}

.button {
  padding: 14px 24px;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(29, 36, 51, 0.12);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-stats li,
.floating-card,
.post-card,
.club-card,
.video-card,
.care-card,
.gallery-tile,
.credits,
.tabs {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-stats li {
  padding: 18px;
  border-radius: var(--radius-md);
}

.hero-stats strong {
  display: block;
  margin-bottom: 8px;
  font-size: 2rem;
  color: var(--warm);
}

.hero-stats span {
  color: var(--muted);
  line-height: 1.4;
}

.hero-spotlight {
  display: grid;
  gap: 18px;
}

.floating-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.accent-card {
  padding: 26px;
  background: linear-gradient(135deg, rgba(255, 122, 61, 0.96), rgba(255, 178, 109, 0.92));
  color: white;
}

.accent-card p,
.accent-card h3 {
  max-width: 16ch;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-card-copy {
  padding: 20px 22px 24px;
}

.media-card-copy p,
.post-copy p,
.video-copy p,
.club-card p,
.care-card p,
.credits p,
figcaption,
ol,
ul {
  color: var(--muted);
  line-height: 1.65;
}

.ticker {
  overflow: hidden;
  padding: 8px 0 18px;
}

.ticker-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: ticker 22s linear infinite;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(29, 36, 51, 0.08);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tabs {
  border-radius: 34px;
  padding: 24px;
  margin-top: 18px;
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.tab-button {
  border: 0;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.tab-button.active {
  background: var(--ink);
  color: white;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.feed-grid,
.club-grid,
.video-grid,
.care-layout,
.gallery-grid {
  display: grid;
  gap: 18px;
}

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

.post-card {
  overflow: hidden;
  border-radius: 28px;
}

.post-card-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.post-card img,
.gallery-tile img {
  height: 100%;
  object-fit: cover;
}

.post-card:not(.post-card-wide) img {
  aspect-ratio: 4 / 3;
}

.post-copy,
.club-card,
.video-copy,
.care-card,
.credits {
  padding: 22px;
}

.post-meta,
.post-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.post-meta {
  margin-bottom: 14px;
}

.post-stats {
  margin-top: 18px;
  color: var(--ink);
  font-weight: 500;
}

.chip {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: rgba(29, 36, 51, 0.07);
}

.chip-warm { background: rgba(255, 122, 61, 0.15); color: #9e4214; }
.chip-cool { background: rgba(120, 215, 255, 0.18); color: #165474; }
.chip-sun { background: rgba(255, 209, 103, 0.22); color: #855a00; }
.chip-forest { background: rgba(183, 255, 209, 0.5); color: var(--forest); }

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

.gallery-tile {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

.gallery-tile.large {
  grid-column: span 2;
  grid-row: span 2;
}

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

.gallery-tile figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(22, 25, 38, 0.65);
  color: white;
  backdrop-filter: blur(8px);
}

.club-grid,
.care-layout,
.video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.club-card,
.video-card,
.care-card {
  border-radius: 28px;
}

.club-card ul,
.care-card ul,
.care-card ol {
  padding-left: 20px;
  margin-bottom: 0;
}

.video-card {
  overflow: hidden;
}

.video-card video {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #111;
}

.care-card.emphasis {
  background: linear-gradient(145deg, rgba(120, 215, 255, 0.24), rgba(183, 255, 209, 0.36));
}

.credits {
  margin: 24px auto 48px;
  border-radius: 30px;
}

.credits ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.credits a {
  color: var(--cool-deep);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (max-width: 960px) {
  .hero,
  .post-card-wide,
  .club-grid,
  .care-layout,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .feed-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .post-card-wide {
    grid-column: auto;
  }

  .gallery-grid {
    grid-auto-rows: auto;
  }

  .gallery-tile.large,
  .gallery-tile.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-tile img {
    aspect-ratio: 4 / 3;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  main,
  .site-header {
    width: min(100% - 20px, 1180px);
  }

  .tabs {
    padding: 18px;
    border-radius: 24px;
  }

  h2 {
    max-width: 12ch;
  }

  .panel-link,
  .button,
  .tab-button {
    width: 100%;
  }

  .hero-actions,
  .tab-buttons {
    flex-direction: column;
  }
}
