/* ==========================================================================
   Yeti Bread — Design tokens
   ========================================================================== */
:root {
  --color-bg: #faf1de;
  --color-bg-warm: #f1dfb8;
  --color-bg-card: #fffdf7;
  --color-surface: #efe3c4;
  --color-border: #e0cba0;

  --color-crimson: #e0692b;
  --color-crimson-glow: #f5a25a;
  --color-maroon: #7a2e1d;
  --color-slate: #1f3a56;

  --color-cream: #f8ecd4;
  --color-cream-dim: #e4d2ac;
  --color-text-muted: #6b5b42;

  --font-display: "Fredoka", "Nunito", sans-serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;

  --nav-height: 72px;
  --max-width: 1200px;

  --shadow-soft: 0 10px 30px rgba(58, 38, 14, 0.15);
  --shadow-card: 0 14px 34px rgba(58, 38, 14, 0.18);

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-slate);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  color: var(--color-slate);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-crimson);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn-ghost--light {
  color: var(--color-cream);
}
.btn-ghost--light:hover {
  background: var(--color-cream);
  color: var(--color-maroon);
  transform: translateY(-2px);
}

.btn-ghost--dark {
  color: var(--color-crimson);
}
.btn-ghost--dark:hover {
  background: var(--color-crimson);
  color: var(--color-cream);
  transform: translateY(-2px);
}

/* ==========================================================================
   Navigation — Apple Vision Pro style: minimal, centered, chrome that
   dissolves into a blurred bar once you scroll past the hero.
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease, height 0.35s ease;
}

.nav.is-scrolled {
  height: 60px;
  background: rgba(250, 241, 222, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 rgba(122, 46, 29, 0.08);
}

.nav__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.nav__logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(248, 236, 212, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.nav__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--color-cream);
  transition: color 0.35s ease;
  white-space: nowrap;
}

.nav.is-scrolled .nav__wordmark {
  color: var(--color-slate);
}

.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 6px 22px;
  justify-self: center;
  border-radius: 999px;
}

.nav__links a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-cream);
  transition: color 0.35s ease, opacity 0.2s ease;
  opacity: 0.9;
}

.nav__links a:hover {
  opacity: 1;
}

.nav.is-scrolled .nav__links a {
  color: var(--color-slate);
}

.nav__cta {
  justify-self: end;
}

.nav__cta .btn-ghost {
  padding: 8px 18px;
  font-size: 0.82rem;
  color: var(--color-cream);
}

.nav.is-scrolled .nav__cta .btn-ghost {
  color: var(--color-maroon);
}

.nav__toggle {
  display: none;
  justify-self: end;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-cream);
  border-radius: 2px;
  transition: background 0.35s ease, transform 0.3s ease, opacity 0.3s ease;
}

.nav.is-scrolled .nav__toggle span {
  background: var(--color-slate);
}

.nav__mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(78vw, 320px);
  background: rgba(250, 241, 222, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: -12px 0 40px rgba(58, 38, 14, 0.25);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 100px 32px 32px;
}

.nav__mobile-panel.is-open {
  transform: translateX(0);
}

.nav__mobile-panel a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-slate);
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-slate);
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(31, 24, 12, 0.15) 0%,
    rgba(31, 24, 12, 0.05) 35%,
    rgba(31, 24, 12, 0.65) 78%,
    rgba(20, 15, 8, 0.88) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 32px 96px;
  max-width: var(--max-width);
  margin: 0 auto;
  color: var(--color-cream);
}

.hero__title {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  color: var(--color-cream);
  line-height: 1.03;
  margin: 14px 0 18px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero__title em {
  font-style: normal;
  color: var(--color-crimson-glow);
}

.hero__tagline {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 46ch;
  color: var(--color-cream-dim);
  margin-bottom: 34px;
}

.hero__scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--color-cream-dim);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.85;
}

.hero__scroll-cue::after {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, var(--color-cream-dim), transparent);
  animation: scrollpulse 2s ease-in-out infinite;
}

@keyframes scrollpulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ==========================================================================
   Section shared
   ========================================================================== */
.section {
  padding: 120px 0;
}

.section--warm {
  background: var(--color-bg-warm);
}

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.section__intro {
  max-width: 640px;
}

.section__intro h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin: 10px 0 16px;
}

.section__intro p {
  color: var(--color-text-muted);
  font-size: 1.08rem;
  max-width: 56ch;
}

.section__badge {
  width: 360px;
  height: 360px;
  border-radius: 25%;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 4px solid var(--color-bg-card);
  flex-shrink: 0;
}

.section__badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Weekly Rise — image cycler
   ========================================================================== */
.cycler {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 9;
  background: var(--color-slate);
}

.cycler__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.cycler__slide.is-active {
  opacity: 1;
}

.cycler__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cycler__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 15, 8, 0) 45%, rgba(20, 15, 8, 0.82) 100%);
}

.cycler__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 32px 68px;
}

.cycler__caption p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.85rem);
  font-weight: 600;
  color: var(--color-cream);
  max-width: 40ch;
  margin: 0;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.4);
}

.cycler__dots {
  position: absolute;
  left: 32px;
  bottom: 26px;
  display: flex;
  gap: 10px;
  z-index: 3;
}

.cycler__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(248, 236, 212, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.cycler__dot.is-active {
  background: var(--color-crimson-glow);
  transform: scale(1.25);
}

.weekly-rise__perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.perk {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 26px;
}

.perk h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.perk p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ==========================================================================
   Scrapbook
   ========================================================================== */
.scrapbook__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 130px;
  gap: 22px;
  margin-top: 20px;
}

.scrapbook__item {
  position: relative;
  background: var(--color-bg-card);
  padding: 10px 10px 34px;
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  transform: rotate(var(--tilt, -2deg));
  transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s;
}

.scrapbook__item:hover {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 0 20px 40px rgba(58, 38, 14, 0.28);
  z-index: 5;
}

.scrapbook__item::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 70px;
  height: 26px;
  background: rgba(224, 105, 43, 0.35);
  border: 1px solid rgba(224, 105, 43, 0.5);
}

.scrapbook__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.scrapbook__caption {
  position: absolute;
  bottom: 8px;
  left: 12px;
  right: 12px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--color-maroon);
  text-align: center;
}

.scrapbook__item--a { grid-column: span 2; grid-row: span 2; --tilt: -3deg; }
.scrapbook__item--b { grid-column: span 2; grid-row: span 3; --tilt: 2deg; }
.scrapbook__item--c { grid-column: span 2; grid-row: span 2; --tilt: -1.5deg; }
.scrapbook__item--d { grid-column: span 3; grid-row: span 2; --tilt: 1.5deg; }
.scrapbook__item--e { grid-column: span 3; grid-row: span 3; --tilt: -2.5deg; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--color-slate);
  color: var(--color-cream-dim);
  padding: 56px 0 32px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-cream);
}

.footer__email {
  color: var(--color-crimson-glow);
  font-weight: 700;
  transition: color 0.2s ease;
}

.footer__email:hover {
  color: var(--color-cream);
}

.footer__meta {
  width: 100%;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(248, 236, 212, 0.15);
  font-size: 0.82rem;
  color: rgba(228, 210, 172, 0.6);
  text-align: center;
}

/* ==========================================================================
   Fade-in on scroll
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .weekly-rise__perks {
    grid-template-columns: 1fr;
  }

  .scrapbook__grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 110px;
  }

  .scrapbook__item--a,
  .scrapbook__item--c { grid-column: span 2; grid-row: span 2; }
  .scrapbook__item--b { grid-column: span 2; grid-row: span 3; }
  .scrapbook__item--d,
  .scrapbook__item--e { grid-column: span 4; grid-row: span 2; }

  .section {
    padding: 90px 0;
  }
}

@media (max-width: 768px) {
  .hero__scroll-cue {
    display: none;
  }

  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__cta {
    display: none;
  }

  .nav__inner {
    grid-template-columns: 1fr auto;
  }

  .cycler__caption {
    padding: 16px 20px 52px;
  }

  .section__header {
    align-items: flex-start;
  }

  .section__badge {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 20px;
  }

  .hero__content {
    padding: 0 20px 64px;
  }

  .section {
    padding: 72px 0;
  }

  .scrapbook__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }

  .scrapbook__item--a,
  .scrapbook__item--b,
  .scrapbook__item--c,
  .scrapbook__item--d,
  .scrapbook__item--e {
    grid-column: span 2;
    grid-row: span 2;
  }

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