/* Homepage only. Shared store styles stay in styles.css.
   theme-a: black and orange. theme-b: warm off-white, charcoal, small accents. */

.banner {
  margin: 0;
  width: 100%;
  background: #000;
  line-height: 0;
}

.banner img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.wrap,
.intro {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 28px;
}

.intro-copy { min-width: 0; }

.cabin-photo {
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 480px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 28px 50px rgba(0, 0, 0, 0.55);
}

.cabin-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

body.theme-a h1,
body.theme-b h1 {
  font-size: clamp(2.05rem, 4.6vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 640;
  margin: 0;
  overflow-wrap: normal;
  word-break: normal;
}

body.theme-a h1 { color: #F7F4EF; }
body.theme-b h1 { color: #221E1B; }

.mark {
  width: 42px;
  height: 2px;
  border: 0;
  margin: 18px 0 0;
  background: linear-gradient(135deg, #E8641E 0%, #F2B705 100%);
}

.lede {
  max-width: 38rem;
  margin: 18px 0 0;
  font-size: 1.0625rem;
  line-height: 1.55;
}

body.theme-a .lede { color: #D9D3CB; }
body.theme-b .lede { color: #3A342E; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.fine,
.note {
  margin: 22px 0 0;
  max-width: 40rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

body.theme-a .fine,
body.theme-a .note { color: #9C968E; }
body.theme-b .fine,
body.theme-b .note { color: #6A635C; }

.roster {
  padding: 56px 0 64px;
  scroll-margin-top: calc(var(--header-h, 80px) + var(--preview-bar-h, 28px) + 16px);
}

body.theme-a .roster {
  background: #141414;
  color: #E7E1D8;
  border-top: 1px solid #242424;
  border-bottom: 1px solid #242424;
}

body.theme-b .roster {
  background: transparent;
  color: #221E1B;
  padding-top: 32px;
}

.roster-kicker {
  margin: 0 0 8px;
  color: #E8641E;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.roster-kicker a {
  color: inherit;
  text-decoration: none;
}

.roster h2,
.knee h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 12px;
  font-weight: 640;
}

body.theme-a .roster h2,
body.theme-a .knee h2 { color: #F7F4EF; }
body.theme-b .roster h2,
body.theme-b .knee h2 { color: #221E1B; }

.roster-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin-top: 20px;
}

.roster-grid > li {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.roster-grid > li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(100% + 16px);
  border-top: 1px solid #86634d;
}

.roster-grid time {
  color: #F2B705;
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}

.roster-grid time::before {
  content: "";
  position: relative;
  display: block;
  width: 11px;
  height: 11px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #E8641E;
}

.roster-scroll-hint,
.roster-note {
  color: #bbb;
  font-size: 0.875rem;
}

.roster-scroll-hint { display: none; }
.roster-note { margin-top: 16px; }

@media (max-width: 700px) {
  .roster-scroll-hint { display: block; }

  .roster-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
  }

  .roster-grid > li { scroll-snap-align: start; }
}

.roster article {
  border-radius: 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

body.theme-b .roster article {
  background: #FFFcf8;
  border: 1px solid rgba(34, 30, 27, 0.06);
  box-shadow: 0 18px 40px rgba(72, 48, 22, 0.06);
}

.roster-photo {
  display: block;
  width: 100%;
  height: 148px;
  object-fit: cover;
  object-position: center;
  margin: 0;
  border-radius: 0;
  flex-shrink: 0;
}

.roster-grid > li:nth-child(3) .roster-photo { object-position: center 42%; }
.roster-grid > li:nth-child(4) .roster-photo { object-position: center 48%; }

.roster-card-body {
  padding: clamp(10px, 1.35vw, 20px);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.roster h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

body.theme-a .roster h3 { color: #fff; }
body.theme-b .roster h3 { color: #221E1B; }

.roster article p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.62;
  flex: 1;
}

body.theme-a .roster article p { color: #C9C3BB; }
body.theme-b .roster article p { color: #4A453F; }

.knee {
  padding: 48px 0 56px;
}

.knee-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.knee-mark {
  width: 64px;
  height: 3px;
  border: 0;
  margin: 0 0 16px;
  background: linear-gradient(135deg, #E8641E 0%, #F2B705 100%);
}

.specs {
  list-style: none;
  margin: 8px 0 22px;
  padding: 0;
}

.specs li {
  padding: 13px 0;
  font-size: 1.05rem;
  line-height: 1.45;
}

body.theme-a .specs li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #E6E0D8;
}

body.theme-b .specs li {
  border-bottom: 1px solid rgba(34, 30, 27, 0.1);
  color: #2A2521;
}

.specs li.price,
body.theme-a .specs li.price {
  color: #E8641E;
  font-weight: 680;
  border-bottom: 0;
  padding-bottom: 4px;
}

.knee-copy .btn { margin-top: 8px; }

.layover {
  position: relative;
  width: 100%;
  height: 56vh;
  min-height: 300px;
  max-height: 560px;
  overflow: hidden;
  background: #0A0A0A;
}

.layover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% 55%;
}

.layover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.62) 40%, rgba(0, 0, 0, 0) 80%);
  pointer-events: none;
}

.layover-copy {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(50%, 520px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 18px 24px 22px;
}

.layover-copy p {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(1.35rem, 2.6vw, 2.05rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 650;
  max-width: 12em;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6);
}

.layover-copy .btn {
  min-width: 0;
  padding: 12px 18px;
  font-size: 1rem;
}

.footer-logo {
  height: 36px;
  width: 185px;
  margin-bottom: 16px;
}

.footer-blurb {
  max-width: 280px;
  margin: 0;
}

.foot-label {
  display: block;
  margin-bottom: 12px;
  font-weight: 680;
}

body.theme-a .foot-label { color: #fff; }
body.theme-b .foot-label { color: #221E1B; }

.foot-link {
  display: block;
  margin-bottom: 10px;
  min-height: 44px;
  line-height: 44px;
}

.home-footer {
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.legal {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  line-height: 1.6;
}

body.theme-a .legal { border-top: 1px solid #222; }
body.theme-b .legal { border-top: 1px solid rgba(34, 30, 27, 0.12); }

body.theme-b {
  background: #F7F3EE;
  color: #221E1B;
}

body.theme-b header {
  background: rgba(247, 243, 238, 0.94);
  border-bottom-color: rgba(34, 30, 27, 0.1);
  color: #221E1B;
}

body.theme-b .hamburger,
body.theme-b .cart-icon {
  color: #221E1B;
}

body.theme-b .cart-icon:hover {
  background: rgba(34, 30, 27, 0.06);
}

body.theme-b .menu-drawer {
  background: #F7F3EE;
  color: #221E1B;
  border-top-color: rgba(34, 30, 27, 0.1);
}

body.theme-b .menu-drawer a {
  border-bottom-color: rgba(34, 30, 27, 0.08);
}

body.theme-b footer {
  background: #F7F3EE;
  color: #5E5852;
  border-top: 1px solid rgba(34, 30, 27, 0.1);
}

body.theme-b .social-links a {
  background: #fff;
  color: #221E1B;
  border: 1px solid rgba(34, 30, 27, 0.08);
}

body.theme-b .social-links a:hover {
  background: #E8641E;
  color: #0A0A0A;
  border-color: #E8641E;
}

body.theme-b .payment-icons span {
  border-color: rgba(34, 30, 27, 0.16);
  color: #221E1B;
}

body.theme-b .btn-secondary {
  color: #221E1B;
  border-color: #221E1B;
}

body.theme-b .btn-secondary:hover {
  background: #221E1B;
  color: #F7F3EE;
}

body.theme-b .btn-primary:hover {
  background: #221E1B;
  border-color: #221E1B;
  color: #F7F3EE;
  box-shadow: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #E8641E;
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .wrap,
  .intro {
    padding-left: 40px;
    padding-right: 40px;
  }

  .intro {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    padding-top: 36px;
    padding-bottom: 40px;
  }

  .lede { font-size: 1.125rem; }

  .roster { padding: 64px 0 72px; }

  .roster-photo {
    height: 168px;
  }

  .knee { padding: 56px 0 64px; }

  .knee-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
  }

  .layover {
    height: 52vh;
    min-height: 320px;
    max-height: 520px;
  }

  .home-footer { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .banner img {
    height: 260px;
    object-fit: cover;
  }

  .home-footer {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .intro .btn,
  .knee-copy .btn {
    width: 100%;
  }

  .roster { padding: 44px 0 52px; }

  .roster-photo {
    height: 132px;
  }

  .roster-card-body {
    padding: 18px 18px 24px;
  }

  .knee { padding: 36px 0 48px; }

  .layover {
    height: 46vh;
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

.roster article > picture {
  display: block;
  flex-shrink: 0;
}

.founder-story {
  padding: clamp(44px, 7vw, 96px) 0;
}

.founder-story h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 2rem;
}

@media (max-width: 700px) {
  .layover::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.78) 55%, rgba(0, 0, 0, 0.25) 100%);
  }
}
