/* ==========================================================================
   Benzev Select — core stylesheet
   Palette sampled directly from the card artwork: espresso browns, one amber
   gold, one bronze. Nothing on this site is brighter than the gold.
   ========================================================================== */

:root {
  /* Surfaces — warm dark brown, lightened from the original near-black */
  --pitch:        #241407;
  --espresso:     #2E1B0D;
  --cocoa:        #38210F;
  --umber:        #442712;
  --umber-lift:   #55311A;
  --hairline:     #4A331C;

  /* Metals */
  --gold:         #D6914C;
  --gold-dim:     #B8804A;
  --bronze:       #8C5A2E;

  /* Text */
  --bone:         #F5ECE1;
  --muted:        #A8967F;

  /* Type */
  --display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --body:    "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rhythm */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --stack:  clamp(3.5rem, 9vw, 7rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--pitch);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.shell {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */

.masthead {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.75rem 1.5rem;
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  display: block;
  text-decoration: none;
  line-height: 1;
}

.wordmark b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--gold);
}

.wordmark i {
  display: block;
  font-style: normal;
  font-family: var(--display);
  font-size: clamp(0.42rem, 1vw, 0.5rem);
  letter-spacing: 0.62em;
  text-indent: 0.62em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-top: 0.45em;
  text-align: right;
}

.masthead-links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 1.85rem);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.masthead-link {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 160ms ease;
  white-space: nowrap;
}

.masthead-link:hover { color: var(--gold); }

/* --------------------------------------------------------------------------
   Hero — the card is the thesis. The card's own discs bleed behind it.
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 5.5rem) var(--stack);
  text-align: center;
}

.aura {
  position: absolute;
  top: 46%;
  left: 50%;
  translate: -50% -50%;
  width: min(190vw, 1500px);
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.aura-turn {
  transform-origin: 500px 500px;
  animation: revolve 180s linear infinite;
}

@keyframes revolve { to { rotate: 360deg; } }

.hero-inner { position: relative; z-index: 2; }

/* --------------------------------------------------------------------------
   The card — reproduced from the supplied artwork
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1.586;          /* ID-1, the real card ratio */
  margin: 0 auto clamp(2.5rem, 6vw, 3.5rem);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(214, 145, 76, 0.14),
    0 40px 80px -30px rgba(0, 0, 0, 0.95);
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.card-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.card-mark {
  position: absolute;
  top: 13%;
  right: 7%;
  z-index: 2;
  text-align: right;
  line-height: 1;
}

.card-mark b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 6.2vw, 2.05rem);
  letter-spacing: 0.155em;
  text-indent: 0.155em;
  text-transform: uppercase;
  color: var(--gold);
}

.card-mark i {
  display: block;
  font-style: normal;
  font-family: var(--display);
  font-size: clamp(0.5rem, 1.9vw, 0.63rem);
  letter-spacing: 0.72em;
  text-indent: 0.72em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-top: 1.15em;
}

.card:hover { transform: translateY(-5px) rotate(-0.35deg); }

/* Hero type */
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 5vw, 2.75rem);
  line-height: 1.28;
  margin: 0 auto 1rem;
  max-width: 17ch;
}

.lede {
  color: var(--muted);
  max-width: 40ch;
  margin: 0 auto clamp(2rem, 5vw, 2.75rem);
  font-size: 1.02rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 2rem;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  background: transparent;
  color: var(--gold);
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #170C04;
}

.btn-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

/* --------------------------------------------------------------------------
   Trio — card / balance / support. A taxonomy, not a sequence, so no numbers.
   -------------------------------------------------------------------------- */

.trio {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-block: var(--stack);
  border-top: 1px solid var(--hairline);
}

.trio-item h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 1.25rem 0 0.7rem;
}

.trio-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 32ch;
}

.trio-item a { color: var(--gold-dim); text-underline-offset: 3px; }

.trio-glyph { width: 30px; height: 30px; display: block; }

/* --------------------------------------------------------------------------
   Stores — participating locations, grouped by category
   -------------------------------------------------------------------------- */

.stores {
  position: relative;
  z-index: 2;
  padding-block: var(--stack);
  border-top: 1px solid var(--hairline);
  scroll-margin-top: 2rem;
}

.stores-head {
  text-align: center;
  margin: 0 auto clamp(2.25rem, 6vw, 3.25rem);
  max-width: 44ch;
}

.stores-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin: 0 0 0.75rem;
}

.stores-head p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(2rem, 5vw, 3rem);
}

.store-group {
  border-top: 1px solid var(--hairline);
  padding-top: 1.15rem;
}

.store-group h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.store-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.store-name {
  display: block;
  color: var(--bone);
  font-size: 0.96rem;
}

.store-addr {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   Balance page
   -------------------------------------------------------------------------- */

.page-head {
  padding-block: clamp(3rem, 8vw, 4.5rem) clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
}

.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 1.1rem;
}

.page-head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.6vw, 2.5rem);
  margin: 0 0 0.85rem;
}

.page-head p {
  color: var(--muted);
  max-width: 38ch;
  margin: 0 auto;
  font-size: 0.98rem;
}

/* The lookup form is a plain white page on a host we don't control. Rather
   than fight it, it's set as an inset paper panel with a gold rule — reads as
   a deliberate document laid on the dark shell. */
.frame-well {
  position: relative;
  width: min(100%, 620px);
  margin: clamp(1.5rem, 4vw, 2.5rem) auto 1.25rem;
  border: 1px solid var(--gold-dim);
  border-radius: 12px;
  background: #FFFFFF;
  overflow: hidden;
  min-height: 540px;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.9);
}

.frame-well iframe {
  display: block;
  width: 100%;
  height: 540px;
  border: 0;
  background: #FFFFFF;
}

.frame-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 1.25rem;
  justify-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--espresso);
  border-radius: inherit;
}

.frame-status[hidden] { display: none; }

.frame-status p {
  margin: 0;
  color: var(--muted);
  max-width: 34ch;
  font-size: 0.95rem;
}

.frame-status strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: var(--bone);
  margin-bottom: 0.55rem;
}

.pulse {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--umber-lift);
  border-top-color: var(--gold);
  animation: revolve 1.1s linear infinite;
}

.aside-note {
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
  margin: 0 auto clamp(3rem, 7vw, 5rem);
  max-width: 46ch;
}

.aside-note a { color: var(--gold-dim); text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--hairline);
  padding-block: 2.5rem 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--gold); }

.footer-links { display: flex; gap: 1.75rem; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Preferences and small screens
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .card:hover { transform: none; }
}

@media (max-width: 640px) {
  .masthead { padding-block: 1.35rem 1.15rem; }
  .frame-well, .frame-well iframe { min-height: 580px; height: 580px; }
}
