/* Redtail Luxe public site, dark theme to match redtailluxe.com.
   Fonts: Salvager (headings), Adrianna Extended (small headers), Muli (body).
   The font files live in /fonts. */

@font-face {
  font-family: "Salvager";
  src: url("/fonts/salvager.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Adrianna Extended";
  src: url("/fonts/adrianna-extended.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Muli";
  src: url("/fonts/muli-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Muli";
  src: url("/fonts/muli-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Muli";
  src: url("/fonts/muli-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #000000;
  --fg: #f2efe9; /* brand cream */
  --muted: #a69e95;
  --line: rgba(242, 239, 233, 0.28);
  --tint: #151211;
  --maroon: #641014;
  --brown: #603931;

  --display: "Salvager", "Times New Roman", serif;
  --label: "Adrianna Extended", "Arial Black", sans-serif;
  --body: "Muli", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
}

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

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

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

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

a {
  color: inherit;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- header and footer ---------- */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px clamp(16px, 2.6vw, 38px);
}

.site-nav a {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  padding: 6px 0;
}

.site-nav a:hover {
  color: var(--muted);
}

.site-nav a[aria-current="page"] {
  color: var(--muted);
}

.site-nav .nav-cta {
  padding: 11px 26px;
  border: 1px solid var(--fg);
  font-weight: 700;
}

.site-nav .nav-cta:hover {
  background: var(--fg);
  color: var(--bg);
}

.site-header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
}

.site-footer {
  padding-bottom: 40px;
  margin-top: 96px;
  background: linear-gradient(180deg, #000000 0%, #120b09 28%, #2a1c18 62%, #4d2d26 100%);
}

.foot__eagle {
  padding: clamp(80px, 12vw, 170px) 0 clamp(120px, 18vw, 260px);
}

.foot__eagle img {
  width: clamp(190px, 19vw, 330px);
  height: auto;
  margin: 0 auto;
}

.foot__bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin: 0 var(--gutter);
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(242, 239, 233, 0.75);
}

.foot__name {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 3.6vw, 50px);
  line-height: 1;
  color: var(--fg);
}

.footer-links {
  display: grid;
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  column-gap: clamp(48px, 9vw, 130px);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.35;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--muted);
}

/* ---------- shop ---------- */

.hero {
  padding-top: clamp(36px, 7vw, 84px);
  padding-bottom: clamp(28px, 4vw, 48px);
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 104px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--fg);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 320px;
}

.chip {
  font: inherit;
  font-size: 13px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}

.chip:hover {
  border-color: var(--fg);
}

.chip[aria-pressed="true"] {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

.field {
  font: inherit;
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
}

.field::placeholder {
  color: var(--muted);
}

.field--search {
  width: 180px;
}

.count {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.card {
  display: block;
  text-decoration: none;
}

.card__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--tint);
  overflow: hidden;
}

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

.card__body {
  padding-top: 16px;
}

.card__brand {
  margin: 0 0 6px;
  font-family: var(--label);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.card__name {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  color: var(--fg);
}

.card:hover .card__name {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.card__meta {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.card__price {
  margin: 10px 0 0;
  font-weight: 700;
  font-size: 16px;
}

.card__price--ask {
  font-weight: 600;
  color: var(--muted);
}

.soon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--tint);
}

.soon__inner {
  text-align: center;
}

.soon__mark {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted);
}

.soon span {
  font-family: var(--label);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.notice {
  padding: 48px 0;
  font-size: 18px;
  color: var(--muted);
}

.notice a {
  color: var(--fg);
}

.skeleton {
  aspect-ratio: 1 / 1;
  background: linear-gradient(90deg, #121010, #1c1818, #121010);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* ---------- watch page ---------- */

.crumbs {
  padding: 22px 0 18px;
  font-size: 14px;
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.crumbs a:hover {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

.watch {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.gallery {
  position: sticky;
  top: 16px;
}

.gallery__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--tint);
  overflow: hidden;
}

.gallery__stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: var(--fg);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.gallery__btn:hover {
  background: var(--bg);
  border-color: var(--fg);
}

.gallery__btn--prev {
  left: 12px;
}

.gallery__btn--next {
  right: 12px;
}

.gallery__count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 3px 10px;
  background: rgba(0, 0, 0, 0.65);
  font-size: 13px;
  color: var(--fg);
}

.gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.thumb {
  flex: 0 0 72px;
  height: 72px;
  padding: 0;
  border: 1px solid transparent;
  background: var(--tint);
  cursor: pointer;
  opacity: 0.55;
}

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

.thumb:hover {
  opacity: 0.9;
}

.thumb[aria-current="true"] {
  border-color: var(--fg);
  opacity: 1;
}

.info__brand {
  margin: 0 0 10px;
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.info h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  color: var(--fg);
}

.info__ref {
  margin: 12px 0 0;
  color: var(--muted);
}

.info__price {
  margin: 22px 0 0;
  font-size: 28px;
  font-weight: 700;
}

.info__price--ask {
  font-size: 20px;
  font-weight: 600;
  color: var(--muted);
}

.btn {
  display: inline-block;
  font-family: inherit;
  cursor: pointer;
  margin-top: 22px;
  padding: 14px 30px;
  border: 1px solid var(--fg);
  background: transparent;
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.btn:hover {
  background: var(--fg);
  color: var(--bg);
}

.info h2 {
  margin: 40px 0 12px;
  font-family: var(--label);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.specs dt,
.specs dd {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.specs dt {
  padding-right: 24px;
  color: var(--muted);
}

.copy p {
  margin: 0 0 14px;
  max-width: 62ch;
}

.states {
  margin-top: 6px;
}

.states summary {
  cursor: pointer;
  font-weight: 600;
  padding: 6px 0;
}

.states .specs {
  margin-top: 8px;
}

.terms {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}

.terms li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.terms li:last-child {
  border-bottom: 1px solid var(--line);
}

/* ---------- small screens ---------- */

@media (max-width: 900px) {
  .gallery {
    position: static;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 18px;
  }
  .watch {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .foot__bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .site-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 26px;
  }
  .card__name {
    font-size: 22px;
  }
  .field--search {
    width: 100%;
  }
  .gallery__btn {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
  }
}
