/* elbihills. two colors, one typeface, whitespace does the work. */

:root {
  /* palette: exactly two values, hierarchy via opacity steps of off-white */
  --black: #0a0a0a;
  --white: #e8e6e0;
  --white-70: rgba(232, 230, 224, 0.7);
  --white-45: rgba(232, 230, 224, 0.45);
  --white-25: rgba(232, 230, 224, 0.25);
  --white-12: rgba(232, 230, 224, 0.12);
  --white-06: rgba(232, 230, 224, 0.06);

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* type scale: 4 quiet steps, hierarchy comes from spacing and weight */
  --text-xs: 0.6875rem;  /* 11px: labels, meta, nav */
  --text-s: 0.8125rem;   /* 13px: body, buttons */
  --text-m: 1rem;        /* 16px: product name, overlay titles */
  --text-l: 1.375rem;    /* 22px: terminal moments only (order placed) */

  --track: 0.06em;
  --track-wide: 0.16em;

  /* spacing scale */
  --s1: 4px;
  --s2: 8px;
  --s3: 16px;
  --s4: 24px;
  --s5: 40px;
  --s6: 64px;
  --s7: 96px;

  /* motion */
  --dur-fast: 150ms;
  --dur-panel: 300ms;
  --dur-overlay: 450ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* set to 0 to remove the starfield entirely */
  --star-opacity: 1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--black);
}

body {
  font-family: var(--font);
  font-size: var(--text-s);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: var(--track);
  color: var(--white);
  background: var(--black);
  min-height: 100dvh;
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  background: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 3px;
}

::selection {
  background: var(--white);
  color: var(--black);
}

/* ---------- starfield ---------- */

#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--star-opacity);
}

/* ---------- skip link ---------- */

.skip-link {
  position: fixed;
  top: -100px;
  left: var(--s4);
  z-index: 200;
  background: var(--white);
  color: var(--black);
  padding: var(--s2) var(--s3);
  text-decoration: none;
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus {
  top: var(--s3);
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s3) var(--s4);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 24px;
  color: var(--white);
  text-decoration: none;
  font-size: var(--text-s);
  font-weight: 500;
  letter-spacing: var(--track-wide);
}

/* official brand files. each is pinned by height so either can be swapped
   without moving the header. elbivole runs slightly larger: its artwork
   carries built-in glow padding, so it optically matches tenhills at 26px. */
.wordmark img {
  display: block;
  width: auto;
}

.wordmark img[alt="tenhills"] {
  height: 21px;
}

.wordmark img[alt="elbivole"] {
  height: 26px;
}

.wordmark-x {
  font-size: var(--text-xs);
  color: var(--white-45);
}

.bag-button {
  padding: var(--s2);
  min-height: 44px;
  font-size: var(--text-s);
  color: var(--white-70);
  transition: color var(--dur-fast) var(--ease);
}

.bag-button:hover {
  color: var(--white);
}

/* ---------- product stage ---------- */

.stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--s7) var(--s4) var(--s6);
}

.product-trigger {
  display: block;
  width: min(72vw, 400px);
}

.product-trigger img {
  display: block;
  width: 100%;
  height: auto;
  /* renders carry real alpha (backdrop keyed out in the png itself),
     so the shirt floats directly on the starfield */
}

.view-toggle {
  display: flex;
  justify-content: center;
  gap: var(--s3);
  margin-top: var(--s2);
}

.view-option {
  min-height: 44px;
  padding: var(--s2) var(--s2);
  font-size: var(--text-xs);
  letter-spacing: var(--track-wide);
  color: var(--white-45);
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.view-option:hover {
  color: var(--white);
}

.view-option[aria-pressed="true"] {
  color: var(--white);
  border-bottom-color: var(--white);
}

.product-hint {
  display: block;
  margin-top: var(--s3);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--white-45);
  letter-spacing: var(--track-wide);
  transition: opacity var(--dur-fast) var(--ease);
}

.product-trigger[aria-expanded="true"] .product-hint {
  opacity: 0;
}

.product-panel {
  width: min(100%, 400px);
  margin-top: var(--s4);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur-panel) var(--ease), transform var(--dur-panel) var(--ease);
}

.product-panel.open {
  opacity: 1;
  transform: none;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s3);
}

.product-name {
  font-size: var(--text-m);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--track-wide);
}

.product-price {
  font-size: var(--text-s);
  color: var(--white-70);
}

.product-desc {
  margin-top: var(--s2);
  color: var(--white-45);
  max-width: 44ch;
}

.size-block {
  margin-top: var(--s4);
  border-top: 1px solid var(--white-12);
  padding-top: var(--s2);
}

.size-toggle {
  display: flex;
  align-items: center;
  gap: var(--s2);
  width: 100%;
  min-height: 44px;
  color: var(--white-70);
  transition: color var(--dur-fast) var(--ease);
}

.size-toggle:hover {
  color: var(--white);
}

.size-toggle-icon {
  display: inline-block;
  width: 1em;
  text-align: center;
  transition: transform var(--dur-fast) var(--ease);
}

.size-toggle[aria-expanded="true"] .size-toggle-icon {
  transform: rotate(45deg);
}

.size-row {
  display: flex;
  gap: var(--s2);
  padding: var(--s2) 0 var(--s3);
  opacity: 0;
  transition: opacity var(--dur-panel) var(--ease);
}

.size-row.open {
  opacity: 1;
}

.size-option {
  min-width: 56px;
  min-height: 44px;
  border: 1px solid var(--white-25);
  color: var(--white-70);
  text-transform: uppercase;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}

.size-option:hover {
  border-color: var(--white);
  color: var(--white);
}

.size-option[aria-pressed="true"] {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.buy-button {
  margin-top: var(--s3);
  width: 100%;
  min-height: 48px;
  background: var(--white);
  border: 1px solid var(--white);
  color: var(--black);
  font-weight: 500;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  transition: opacity var(--dur-fast) var(--ease);
}

.buy-button:hover:not(:disabled) {
  opacity: 0.85;
}

.buy-button:disabled {
  background: transparent;
  border-color: var(--white-12);
  color: var(--white-25);
  cursor: not-allowed;
}

.buy-feedback {
  min-height: 1.6em;
  margin-top: var(--s2);
  font-size: var(--text-xs);
  color: var(--white-45);
  letter-spacing: var(--track-wide);
  text-transform: none;
}

/* only ever visible when stock is out and orders became preorders */
.supply-note {
  margin-top: var(--s2);
  font-size: var(--text-xs);
  color: var(--white-70);
  letter-spacing: var(--track-wide);
}

/* size letters stay capital against the page-wide lowercase */
#size-toggle-label,
.bag-line-label,
.bag-line-meta,
.review-summary dd {
  text-transform: none;
}

/* ---------- the story ---------- */

.lore {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: var(--s6) var(--s4) 0;
}

.lore-text {
  max-width: 58ch;
  color: var(--white-70);
  margin-bottom: var(--s4);
}

.lore-cover {
  display: flex;
  align-items: flex-end;
  gap: var(--s4);
  margin: 0 0 var(--s5);
  max-width: 560px;
}

.lore-cover img {
  display: block;
  width: 220px;
  height: auto;
}

.lore-cover figcaption {
  padding-bottom: 4px;
  font-size: var(--text-xs);
  letter-spacing: var(--track-wide);
  line-height: 1.9;
  color: var(--white-45);
  max-width: 30ch;
}

.lore-video {
  margin: 0;
  max-width: 560px;
}

.video-player {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--white-12);
  transition: border-color var(--dur-fast) var(--ease);
}

.video-player:hover {
  border-color: var(--white-45);
}

.video-player img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: grayscale(1);
  opacity: 0.85;
  transition: opacity var(--dur-fast) var(--ease);
}

.video-player:hover img {
  opacity: 1;
}

.video-stage {
  border: 1px solid var(--white-12);
}

.video-stage iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: var(--black);
}

.lore-video-caption {
  margin-top: var(--s2);
  font-size: var(--text-xs);
  letter-spacing: var(--track-wide);
  color: var(--white-45);
}

/* ---------- reels ---------- */

.reels {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: var(--s6) var(--s4);
}

.section-label {
  margin-bottom: var(--s4);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: var(--track-wide);
  color: var(--white-45);
}

.reel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
  justify-items: center;
}

@media (min-width: 720px) {
  .reel-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s4);
  }
}

.reel {
  width: min(100%, 328px);
  margin: 0;
}

.reel-player {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--white-12);
  transition: border-color var(--dur-fast) var(--ease);
}

.reel-player:hover {
  border-color: var(--white-45);
}

/* the reels stand tall, the covers as shot */
.reel-player img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  filter: grayscale(1);
  opacity: 0.85;
  transition: opacity var(--dur-fast) var(--ease);
}

.reel-player:hover img {
  opacity: 1;
}

.reel-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reel-play::before {
  content: "";
  position: absolute;
  width: 56px;
  height: 56px;
  border: 1px solid var(--white-70);
  border-radius: 50%;
}

.reel-play::after {
  content: "";
  margin-left: 5px;
  border-left: 14px solid var(--white);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  opacity: 0.85;
}

/* the player swaps in here: local mp4 if present, official embed otherwise */
.reel-stage {
  border: 1px solid var(--white-12);
}

/* the player keeps the poster's tall box; the 4:3 footage letterboxes
   inside it, and the bars vanish into the page black */
.reel-stage video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  border: 0;
  background: var(--black);
}

.reel-stage iframe {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
  background: var(--black);
}

.reel-caption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s2);
  margin-top: var(--s3);
}

/* the instagram story comment-repost sticker. rounded card is a deliberate
   override of the no-rounded-cards rule: it must read as a reposted artifact
   sitting on the page, not as page ui. */
.comment-sticker {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 100%;
  margin-bottom: 6px;
  padding: 11px 16px 12px 12px;
  background: var(--white);
  color: var(--black);
  border-radius: 18px;
  transform: rotate(-2deg);
  text-transform: none;
}

.reel:nth-child(2) .comment-sticker {
  transform: rotate(1.5deg);
}

/* sticker tail */
.comment-sticker::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: -5px;
  width: 14px;
  height: 14px;
  background: var(--white);
  border-radius: 3px;
  transform: rotate(45deg);
}

.comment-avatar {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(10, 10, 10, 0.12);
}

.comment-user {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.comment-text {
  margin-top: 1px;
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0;
}

.reel-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: var(--s1);
  font-size: var(--text-xs);
  letter-spacing: var(--track-wide);
  color: var(--white-45);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

.reel-link:hover,
.reel-link:focus-visible {
  color: var(--white);
}

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  padding: var(--s5) var(--s4) var(--s6);
  text-align: center;
  font-size: var(--text-xs);
  letter-spacing: var(--track-wide);
  color: var(--white-25);
}

/* shipping, returns and what happens to a buyer's details. plain language,
   set quiet, but there before anyone hands over an address. */
.terms {
  max-width: 62ch;
  margin: var(--s5) auto var(--s4);
  text-align: left;
  line-height: 1.7;
  color: var(--white-25);
}

.terms p + p {
  margin-top: var(--s3);
}

.terms-label {
  color: var(--white-45);
}

.terms a {
  color: var(--white-45);
  border-bottom: 1px solid var(--white-12);
}

.terms a:hover {
  color: var(--white);
  border-bottom-color: var(--white-45);
}

/* whatsapp, monochrome: the mark reads as whatsapp without importing its
   green, which the two-colour page does not allow */
.wa-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.wa-mark {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--s4);
  margin-bottom: var(--s3);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s2);
  color: var(--white-45);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--white);
}

.rights {
  margin-top: 4px;
  text-transform: none;
}

.tribute {
  margin-top: 2px;
  text-transform: none;
}

/* the real neck ticket, sitting quiet under the credits */
.footer-ticket {
  display: block;
  width: 132px;
  height: auto;
  margin: var(--s4) auto 0;
  opacity: 0.16;
  filter: grayscale(1);
  transition: opacity var(--dur-panel) var(--ease);
}

.footer-ticket:hover {
  opacity: 0.3;
}

/* the same ticket, full strength, pinned beside the story */
.lore-head {
  display: flex;
  align-items: flex-start;
  gap: var(--s5);
  flex-wrap: wrap;
  margin-bottom: var(--s4);
}

.lore-head .lore-text {
  flex: 1 1 320px;
  margin-bottom: 0;
}

.stub {
  flex: 0 0 auto;
  margin: 0;
  width: 200px;
  transform: rotate(-4deg);
  transition: transform var(--dur-panel) var(--ease);
}

.stub:hover {
  transform: rotate(-1deg) translateY(-2px);
}

.stub img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.9;
}

.stub figcaption {
  margin-top: var(--s3);
  padding-left: 2px;
  font-size: var(--text-xs);
  letter-spacing: var(--track-wide);
  color: var(--white-25);
}

/* ---------- overlays (bag, checkout) ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--black);
  overflow-y: auto;
  opacity: 0;
  transition: opacity var(--dur-overlay) var(--ease);
}

.overlay.open {
  opacity: 1;
}

.overlay-inner {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  padding: var(--s4) var(--s4) var(--s7);
}

.overlay-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s2) 0 var(--s5);
}

.overlay-head h2 {
  font-size: var(--text-m);
  font-weight: 500;
}

.overlay-close {
  min-height: 44px;
  padding: var(--s2);
  color: var(--white-70);
  transition: color var(--dur-fast) var(--ease);
}

.overlay-close:hover {
  color: var(--white);
}

/* bag */

.bag-lines {
  list-style: none;
}

.bag-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--white-12);
}

.bag-line-label {
  color: var(--white);
}

.bag-line-meta {
  color: var(--white-45);
  font-size: var(--text-xs);
  letter-spacing: var(--track-wide);
}

.bag-qty {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.bag-qty-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--white-25);
  color: var(--white-70);
  font-size: var(--text-s);
  line-height: 1;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.bag-qty-btn:hover {
  border-color: var(--white);
  color: var(--white);
}

.bag-qty-count {
  min-width: 20px;
  text-align: center;
}

.bag-line-remove {
  min-height: 44px;
  padding: var(--s2);
  color: var(--white-45);
  font-size: var(--text-xs);
  letter-spacing: var(--track-wide);
  transition: color var(--dur-fast) var(--ease);
}

.bag-line-remove:hover {
  color: var(--white);
}

.bag-empty {
  color: var(--white-45);
  padding: var(--s3) 0;
}

.bag-foot {
  margin-top: auto;
  padding-top: var(--s5);
}

.bag-total {
  display: flex;
  justify-content: space-between;
  padding-bottom: var(--s3);
}

.primary-button {
  width: 100%;
  min-height: 48px;
  background: var(--white);
  border: 1px solid var(--white);
  color: var(--black);
  font-weight: 500;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  transition: opacity var(--dur-fast) var(--ease);
}

.primary-button:hover {
  opacity: 0.85;
}

.ghost-button {
  width: 100%;
  min-height: 48px;
  margin-top: var(--s2);
  border: 1px solid var(--white-25);
  color: var(--white-70);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.ghost-button:hover {
  border-color: var(--white);
  color: var(--white);
}

/* checkout steps
   the one place on the site that runs in sentence case: forced lowercase or
   all-caps both read cheap next to real payment and address fields. */

#checkout-overlay,
#checkout-overlay .primary-button,
#checkout-overlay .ghost-button,
#checkout-overlay .method-option,
#checkout-overlay .overlay-close,
#checkout-overlay .step-indicator {
  text-transform: none;
}

.step-indicator {
  padding-bottom: var(--s4);
  font-size: var(--text-xs);
  letter-spacing: var(--track-wide);
  color: var(--white-45);
}

.step-title {
  font-size: var(--text-m);
  font-weight: 500;
  margin-bottom: var(--s3);
}

.field {
  margin-bottom: var(--s4);
}

.field label,
.field-label {
  display: block;
  margin-bottom: var(--s1);
  font-size: var(--text-xs);
  letter-spacing: var(--track-wide);
  color: var(--white-45);
}

.method-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2);
}

.method-option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--s2);
  border: 1px solid var(--white-25);
  color: var(--white-70);
  font-size: var(--text-xs);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}

/* the whish option carries their official logo; selection inverts to white
   so the red mark sits on its natural light ground */
.whish-logo {
  display: block;
  height: 22px;
  width: auto;
}

.method-option:hover {
  border-color: var(--white);
  color: var(--white);
}

.method-option[aria-pressed="true"] {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid var(--white-25);
  border-radius: 0;
  color: var(--white);
  font: inherit;
  letter-spacing: inherit;
  transition: border-color var(--dur-fast) var(--ease);
}

.field input:focus {
  outline: none;
  border-color: var(--white);
}

.field input::placeholder {
  color: var(--white-25);
}

.phone-row {
  display: flex;
  gap: var(--s2);
}

.phone-row input {
  flex: 1;
}

/* proper form selects: native chrome stripped, one drawn chevron */
.code-select,
.country-select {
  min-height: 48px;
  padding: 0 34px 0 14px;
  background-color: var(--black);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23e8e6e0' stroke-opacity='.55' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 11px;
  border: 1px solid var(--white-25);
  border-radius: 0;
  color: var(--white);
  font: inherit;
  font-size: var(--text-s);
  letter-spacing: var(--track);
  text-transform: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease);
}

.code-select {
  flex: 0 0 132px;
}

.country-select {
  width: 100%;
}

.code-select:hover,
.country-select:hover {
  border-color: var(--white-45);
}

.code-select:focus,
.country-select:focus {
  outline: none;
  border-color: var(--white);
}

.code-select option,
.country-select option {
  background: #101010;
  color: var(--white);
}

.field.invalid input {
  border-width: 2px;
  border-color: var(--white);
  padding: 11px 13px;
}

.field-error {
  margin-top: var(--s1);
  font-size: var(--text-xs);
  letter-spacing: var(--track-wide);
  color: var(--white-70);
}

/* the order failed. said plainly, in the page's own voice, above the button
   that has to be pressed again. */
.order-error {
  margin: var(--s3) 0 0;
  padding: var(--s2) var(--s3);
  font-size: var(--text-xs);
  line-height: 1.5;
  letter-spacing: var(--track-wide);
  color: var(--white);
  text-transform: none;
  border: 1px solid var(--white-45);
}

.order-error:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 2px;
}

/* the honeypot has to be reachable to a bot and invisible to everyone else,
   so it is moved off screen rather than display:none */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}

.step-note {
  margin-bottom: var(--s4);
  font-size: var(--text-xs);
  letter-spacing: var(--track-wide);
  color: var(--white-45);
  max-width: 40ch;
}

.step-actions {
  display: flex;
  flex-direction: column;
  margin-top: var(--s4);
}

.review-summary {
  border-top: 1px solid var(--white-12);
}

.review-row {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--white-12);
}

.review-row dt {
  color: var(--white-45);
  font-size: var(--text-xs);
  letter-spacing: var(--track-wide);
  padding-top: 2px;
}

.review-row dd {
  text-align: right;
  max-width: 60%;
  overflow-wrap: anywhere;
}

.done-title {
  font-size: var(--text-l);
  font-weight: 500;
  margin-bottom: var(--s3);
}

.done-message {
  color: var(--white-70);
  max-width: 40ch;
}

.done-note {
  margin-top: var(--s2);
  font-size: var(--text-xs);
  letter-spacing: var(--track-wide);
  color: var(--white-45);
  max-width: 40ch;
}

/* ---------- the elbivole player ---------- */

.player {
  position: fixed;
  left: var(--s3);
  bottom: var(--s3);
  z-index: 30;
  width: min(340px, calc(100vw - 32px));
}

/* --- collapsed bar --- */

.player-bar {
  position: relative;
  display: flex;
  align-items: stretch;
  background: rgba(10, 10, 10, 0.94);
  border: 1px solid var(--white-12);
  backdrop-filter: blur(12px);
  transition: border-color var(--dur-fast) var(--ease);
}

.player-bar:hover {
  border-color: var(--white-25);
}

.bar-expand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding: 9px 6px 11px 9px;
  text-align: left;
}

.bar-art {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  object-fit: cover;
  background: var(--white-06);
}

.bar-meta {
  display: block;
  min-width: 0;
}

.bar-track,
.bar-album {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-track {
  font-size: var(--text-s);
  color: var(--white);
  text-transform: none;
}

.bar-album {
  margin-top: 1px;
  font-size: var(--text-xs);
  letter-spacing: var(--track-wide);
  color: var(--white-45);
  text-transform: none;
}

.bar-play {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  border-left: 1px solid var(--white-12);
  transition: background var(--dur-fast) var(--ease);
}

.bar-play:hover {
  background: var(--white-06);
}

.bar-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--white-06);
}

.bar-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--white-45);
  transition: width 120ms linear;
}

/* play triangle / pause bars, shared by both controls */
.ctrl-icon {
  display: block;
  margin-left: 3px;
  border-left: 11px solid var(--white);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.player.playing .ctrl-icon {
  margin-left: 0;
  width: 11px;
  height: 13px;
  border-top: 0;
  border-bottom: 0;
  border-left: 3px solid var(--white);
  border-right: 3px solid var(--white);
}

.player.loading .ctrl-icon {
  width: 13px;
  height: 13px;
  margin-left: 0;
  border: 1px solid var(--white-25);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- expanded sheet --- */

.player-sheet {
  display: flex;
  flex-direction: column;
  max-height: min(74vh, 620px);
  padding: var(--s3);
  background: rgba(10, 10, 10, 0.97);
  border: 1px solid var(--white-12);
  border-bottom: 0;
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-panel) var(--ease), transform var(--dur-panel) var(--ease);
}

.player-sheet.open {
  opacity: 1;
  transform: none;
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--s3);
}

.sheet-title,
.sheet-close {
  font-size: var(--text-xs);
  letter-spacing: var(--track-wide);
}

.sheet-title { color: var(--white-45); }

.sheet-close {
  color: var(--white-45);
  padding: 4px;
  transition: color var(--dur-fast) var(--ease);
}

.sheet-close:hover { color: var(--white); }

.sheet-hero {
  display: flex;
  align-items: flex-end;
  gap: var(--s3);
  margin-bottom: var(--s3);
}

.sheet-art {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  object-fit: cover;
  background: var(--white-06);
}

.sheet-now { min-width: 0; }

.sheet-track {
  font-size: var(--text-m);
  font-weight: 500;
  color: var(--white);
  text-transform: none;
  line-height: 1.25;
}

.sheet-album,
.sheet-artist {
  font-size: var(--text-xs);
  letter-spacing: var(--track-wide);
  text-transform: none;
}

.sheet-album { margin-top: 6px; color: var(--white-70); }
.sheet-artist { margin-top: 2px; color: var(--white-25); }

/* scrub */

.scrub {
  padding: 6px 0 2px;
  cursor: pointer;
}

.scrub-rail {
  height: 3px;
  background: var(--white-12);
}

.scrub-fill {
  width: 0%;
  height: 100%;
  background: var(--white);
  transition: width 120ms linear;
}

.scrub:hover .scrub-rail,
.scrub:focus-visible .scrub-rail {
  height: 5px;
  margin-top: -1px;
}

.scrub-times {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: var(--text-xs);
  letter-spacing: var(--track-wide);
  color: var(--white-25);
  font-variant-numeric: tabular-nums;
}

/* controls */

.sheet-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  padding: var(--s2) 0 var(--s3);
}

.ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--white-70);
  transition: color var(--dur-fast) var(--ease);
}

.ctrl:hover { color: var(--white); }

.ctrl svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.ctrl svg path[d*="7z"] { fill: currentColor; }

.ctrl-main {
  width: 52px;
  height: 52px;
  border: 1px solid var(--white-25);
  border-radius: 50%;
}

.ctrl-main:hover { border-color: var(--white); }

/* releases + tracklist */

/* the release selector: the current release, click for the full list.
   a horizontal strip pushed the later releases off the sheet entirely. */
.release-current {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  width: 100%;
  padding: 4px 0 9px;
  margin-bottom: var(--s2);
  font-size: var(--text-xs);
  letter-spacing: var(--track-wide);
  color: var(--white);
  text-align: left;
  text-transform: none;
  border-bottom: 1px solid var(--white-12);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.release-current:hover { border-bottom-color: var(--white-45); }

.release-current-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.release-current-hint {
  flex: 0 0 auto;
  color: var(--white-45);
  white-space: nowrap;
}

.release-current[aria-expanded="true"] {
  border-bottom-color: var(--white);
}

.release-current[aria-expanded="true"] .release-current-hint::after {
  content: " \00d7";
}

.release-list {
  flex: 1;
  overflow-y: auto;
  list-style: none;
  margin: 0 calc(-1 * var(--s3));
  padding: 0 var(--s3);
  scrollbar-width: thin;
}

.release-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  width: 100%;
  padding: 6px 0;
  font-size: var(--text-xs);
  letter-spacing: var(--track-wide);
  color: var(--white-45);
  text-align: left;
  text-transform: none;
  transition: color var(--dur-fast) var(--ease);
}

.release-row:hover { color: var(--white); }

.release-row[aria-current="true"] { color: var(--white); }

.release-row-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.release-row-meta {
  flex: 0 0 auto;
  color: var(--white-25);
  font-variant-numeric: tabular-nums;
}

.tracklist {
  flex: 1;
  overflow-y: auto;
  list-style: none;
  margin: 0 calc(-1 * var(--s3));
  padding: 0 var(--s3);
  scrollbar-width: thin;
}

.track-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 0;
  text-align: left;
  color: var(--white-45);
  border-bottom: 1px solid var(--white-06);
  transition: color var(--dur-fast) var(--ease);
}

.track-row:hover { color: var(--white); }

.track-num {
  flex: 0 0 18px;
  font-size: var(--text-xs);
  color: var(--white-25);
  font-variant-numeric: tabular-nums;
}

.track-name {
  flex: 1;
  min-width: 0;
  font-size: var(--text-s);
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-len {
  flex: 0 0 auto;
  font-size: var(--text-xs);
  color: var(--white-25);
  font-variant-numeric: tabular-nums;
}

.track-row[aria-current="true"] { color: var(--white); }
.track-row[aria-current="true"] .track-num { color: var(--white); }

/* three animating bars on the playing row */
.track-row[aria-current="true"] .track-num span {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.track-row[aria-current="true"] .track-num span i {
  width: 2px;
  height: 40%;
  background: var(--white);
}

.player.playing .track-row[aria-current="true"] .track-num span i {
  animation: eq 900ms ease-in-out infinite;
}

.track-row[aria-current="true"] .track-num span i:nth-child(2) { animation-delay: 150ms; }
.track-row[aria-current="true"] .track-num span i:nth-child(3) { animation-delay: 300ms; }

@keyframes eq {
  0%, 100% { height: 30%; }
  50% { height: 100%; }
}

.sheet-note {
  padding-top: var(--s2);
  font-size: var(--text-xs);
  letter-spacing: var(--track-wide);
  color: var(--white-25);
}

@media (max-width: 640px) {
  .player {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
  }

  .player-bar,
  .player-sheet {
    border-left: 0;
    border-right: 0;
  }

  .player-sheet {
    max-height: 78vh;
  }
}

/* keep the footer reachable above the fixed player */
.site-footer {
  padding-bottom: 130px;
}

/* ---------- 404 ----------
   its own page, the same room: black, quiet, one way out. */
.notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--s4);
  text-align: center;
  gap: var(--s3);
}

.notfound-code {
  font-size: var(--text-xs);
  letter-spacing: var(--track-wide);
  color: var(--white-25);
}

.notfound-title {
  font-size: var(--text-l);
  font-weight: 400;
  letter-spacing: var(--track);
  color: var(--white);
}

.notfound-text {
  font-size: var(--text-s);
  color: var(--white-45);
}

.notfound-link {
  margin-top: var(--s3);
  padding: 12px 22px;
  font-size: var(--text-xs);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid var(--white-45);
  transition: border-color var(--dur-fast) var(--ease);
}

.notfound-link:hover {
  border-color: var(--white);
}
