:root {
  color-scheme: dark;
  --black: #101010;
  --panel: #191713;
  --crown-accent: #c5a059;
  --champagne: #e6cd96;
  --pearl: #f5f5f5;
  --line: #695537;
  font: 16px/1.6 system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--black); color: var(--pearl); }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
h1, h2, h3, .brand { font: 400 1.5rem/1.12 Georgia, serif; }
h1 { font-size: clamp(3rem, 6vw, 6.7rem); letter-spacing: -.055em; margin: .2em 0; }
h2 { font-size: clamp(2.15rem, 4.4vw, 4.5rem); margin: .25em 0 .55em; }
h3 { margin: .55em 0 .35em; }
p { margin: .5em 0 1em; }
.eyebrow { color: var(--champagne); text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 650; }

.skip-link { position: absolute; inset: 1rem auto auto 1rem; transform: translateY(-200%); z-index: 2; }
.skip-link:focus { transform: none; }
header {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 2rem;
  background: #0b0b0b;
  border-bottom: 1px solid var(--line);
  padding: .7rem clamp(1rem, 4vw, 4rem);
  z-index: 1;
}

.home-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.home-header .brand { justify-self: start; }
.home-account-action { padding: .45rem .8rem; white-space: nowrap; }
.home-account-action:disabled { opacity: .65; cursor: wait; }
.home-account-status { grid-column: 1 / -1; margin: 0; text-align: end; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--champagne);
  font-size: clamp(1rem, 2vw, 1.35rem);
  text-decoration: none;
  text-transform: uppercase;
}

nav { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem 1rem; font-size: .84rem; }
nav a { display: block; padding: .35rem 0; text-decoration: none; }
nav a:hover { color: var(--champagne); }

button, .btn, .skip-link {
  display: inline-block;
  border: 1px solid var(--crown-accent);
  border-radius: 2px;
  background: linear-gradient(110deg, #aa8342, #e9d3a5);
  color: #15120d;
  padding: .7rem 1rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.home > section { padding: clamp(3rem, 7vw, 7rem) clamp(1.25rem, 7vw, 7rem); }
.grid { display: grid; }

.home > .hero {
  --hero-gutter: clamp(1.25rem, 6vw, 6rem);
  isolation: isolate;
  position: relative;
  display: grid;
  align-content: center;
  min-height: clamp(36rem, 80svh, 52rem);
  overflow: hidden;
  background: #0a0908;
  padding: clamp(3rem, 7vw, 7rem) var(--hero-gutter);
}
.hero-scene, .hero-scene::after { position: absolute; inset: 0; }
.hero-scene { z-index: -1; overflow: hidden; }
.hero-scene::after {
  content: "";
  background:
    linear-gradient(0deg, #0a0908 0%, #0a090800 44%),
    linear-gradient(90deg, #0a0908 17%, #0a0908dc 34%, #0a090840 58%, transparent 81%);
}
.hero-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 82%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
  transform-origin: 68% 48%;
}
.hero.is-moving .hero-photo { animation: vial-drift 14s ease-in-out infinite alternate; }
.hero.is-paused .hero-photo { animation-play-state: paused; }

@keyframes vial-drift {
  from { transform: scale(1.02); }
  to { transform: scale(1.12) translate(-1%, .5%); }
}

.hero-copy { max-width: 36rem; }
.hero-copy h1 { font-size: clamp(3.4rem, 7.4vw, 8rem); }
.hero-copy p { max-width: 38ch; color: #efe6d8; }
.hero-copy em, .podcast-copy em {
  display: block;
  color: var(--champagne);
  font-weight: inherit;
}
.motion-toggle {
  position: absolute;
  inset: auto var(--hero-gutter) 1.6rem auto;
  background: #14110dd4;
  color: var(--champagne);
  border-color: #e6cd9688;
  padding: .45rem .7rem;
  font-size: .85rem;
  font-weight: 500;
}

.home > #founders {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  color-scheme: light;
  color: #211a12;
  background: #eee6d7;
}
.founders-photo { margin: 0; }
.founders-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 50% 18%;
}
.founders-photo figcaption {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  text-align: center;
  gap: clamp(.7rem, 3vw, 2rem);
  padding-top: 1rem;
}
.founders-photo figcaption strong { display: block; font-size: 1.125rem; }
.founders-photo figcaption ul {
  list-style: none;
  margin: .35rem 0 0;
  padding: 0;
  color: #514535;
  font-size: .875rem;
  line-height: 1.45;
}
.founders-photo figcaption li { text-wrap: balance; }
.founders-photo figcaption li + li { margin-top: .2rem; }
.founders-copy .eyebrow { color: #76552a; }
.founders-copy h2, .podcast-copy h2 { font-size: clamp(2.75rem, 5.5vw, 6rem); }
.founders-copy a { text-underline-offset: .25em; }

.home > #podcast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: #100e0c;
}
.podcast-copy h2 { margin-bottom: .3em; }
.podcast-media { min-width: 0; }
.podcast-trailer {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #050504;
  border: 1px solid var(--line);
}
.podcast-sound { margin-top: .75rem; }
#apparel { background: #100e0c; }
#apparel h2 { color: var(--champagne); }
.home > #apparel { padding-top: 2.5rem; }
#apparel > .eyebrow { padding-top: 2.5rem; border-top: 1px solid var(--line); }
.apparel-featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.75rem, 3vw, 2rem);
  max-width: 52rem;
  margin: 1.5rem 0;
}
.apparel-featured a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: #191511;
  color: var(--champagne);
}
.apparel-featured a:hover { border-color: var(--champagne); }
.apparel-featured img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 30% center;
}
.apparel-featured span { display: block; padding: .75rem; }


#research { color-scheme: light; background: #f4f0e9; color: #211a12; }
#reports { color-scheme: light; background: #e9e0d1; color: #211a12; }
.grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.5rem; }
#research .card { border-top: 1px solid #a17c48; padding-top: .65rem; }
input, select {
  display: block;
  width: 100%;
  margin: .3rem 0 .85rem;
  padding: .6rem .75rem;
  background: transparent;
  font: inherit;
  color: inherit;
  border: 1px solid #92764d;
}
select option { background: #1c1914; color: var(--pearl); }
output { display: block; margin-top: .65rem; font-weight: 700; }

.shop-filters { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.shop-filters label { flex: 0 1 14rem; }
#products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#products .card { background: var(--panel); border: 1px solid var(--line); padding: 1rem; }
#products img { width: 100%; height: auto; }
#bag p { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }

#account, #install, footer { border-top: 1px solid var(--line); }
#install-status { max-width: 40ch; margin: .75rem 0 0; }
#install-status:empty { margin: 0; }
#account li + li { margin-top: .5rem; }
footer { color: var(--champagne); padding: 2rem clamp(1rem, 7vw, 7rem); }

@media (max-width: 999px) {
  #shop-nav { order: 1; flex-basis: 100%; align-items: start; }
  #shop-nav a { padding-block: .5rem; }
}

@media (max-width: 759px) {
  .home > .hero {
    min-height: 34.5rem;
    align-content: start;
    padding-top: 1.65rem;
    padding-bottom: 4rem;
  }
  .hero-copy { max-width: 30rem; }
  .hero-copy h1 { font-size: clamp(2.9rem, 10.8vw, 5rem); }
  .hero-photo { width: 100%; inset-block-start: 23%; height: 77%; object-position: 50% 55%; }
  .hero-scene::after {
    background: linear-gradient(180deg, #0a0908 21%, #0a090800 66%, #0a0908 98%);
  }
  .home > #founders, .home > #podcast { grid-template-columns: 1fr; }
  .founders-copy { order: -1; }
  #products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 479px) {
  #products { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero.is-moving .hero-photo { animation: none; }
  .hero .motion-toggle { display: none; }
}

.header-cart {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  color: var(--champagne);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: .45rem .7rem;
}
[data-cart-count] {
  display: inline-flex;
  min-width: 1.5rem;
  min-height: 1.5rem;
  padding: 0 .35rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--champagne);
  color: var(--black);
  font-size: .78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  vertical-align: middle;
}
.store-links { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1.1rem; }
#shipping { border-top: 1px solid var(--line); }
#shipping li + li { margin-top: .65rem; }
.support-page { width: min(100%, 50rem); margin: auto; padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 5vw, 3rem); }
.support-page h1 { font-size: clamp(2.75rem, 7vw, 4.75rem); }
.support-page h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); color: var(--champagne); }
.support-page section { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.support-page a { color: var(--champagne); overflow-wrap: anywhere; }
footer a { display: inline-block; margin-left: .55rem; }

@media (max-width: 479px) {
  header { gap: .55rem; }
  .header-cart { padding: .35rem .5rem; }
}

.home-footer {
  display: grid;
  gap: 1.65rem;
  padding-block: clamp(2rem, 5vw, 4.5rem);
  background: #0b0b0b;
}
.home-footer .brand { justify-self: start; margin: 0; }
.home-footer nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 1.5rem clamp(1rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  font-size: .95rem;
}
.home-footer h2 { margin: 0 0 .5rem; font-size: 1.35rem; }
.home-footer ul { list-style: none; padding: 0; margin: 0; }
.home-footer nav a { display: block; margin: 0; padding-block: .35rem; color: var(--pearl); overflow-wrap: anywhere; }
.home-footer nav a:hover, .home-footer nav a:focus-visible { text-decoration: underline; text-underline-offset: .22em; }

@media (max-width: 640px) {
  .home-footer nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

