/* =========================================================================
   ABZUURD
   Five values. Two faces. Mobile first.
   ========================================================================= */

/* --- Fonts. Self-hosted, variable, swap. --------------------------------- */

@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The naira sign (U+20A6) lives here — without this file the price falls back. */
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Bodoni Moda';
  src: url('fonts/bodoni-moda-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}


/* --- Tokens -------------------------------------------------------------- */

:root {
  --ground:  #14140F;
  --panel:   #1C1A15;
  --gold:    #C9A24B;
  --oxblood: #6E2024;
  --bone:    #E9E3D5;

  --display: 'Bodoni Moda', 'Times New Roman', Times, serif;
  --utility: 'Archivo', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  --track: 0.18em;

  --gutter: 24px;
  --section: 88px;
  --bar: 56px;
}


/* --- Reset --------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--bone);
  font-family: var(--utility);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: var(--track);
  text-transform: uppercase;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--bar);          /* clears the sticky bar */
}

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

figure { margin: 0; }

h1, h2, h3, p, dl, dd, ol, ul {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

ol, ul { list-style: none; padding: 0; }

a { color: inherit; text-decoration: none; }

button, input {
  font: inherit;
  letter-spacing: inherit;
  /* Form controls do not inherit this on their own — without it the
     submit button reads "Enter" instead of ENTER. */
  text-transform: inherit;
  color: inherit;
  border: 0;
  background: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

::selection { background: var(--gold); color: var(--ground); }


/* --- Accessibility ------------------------------------------------------- */

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  top: -100px; left: 12px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--gold);
  color: var(--ground);
  font-size: 11px;
}

.skip:focus { top: 12px; }


/* --- Shared primitives --------------------------------------------------- */

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: 32px;
}

.caption {
  margin-top: 16px;
  font-size: 10px;
  letter-spacing: 0.16em;
  line-height: 1.8;
  color: var(--bone);
  opacity: 0.55;
  text-transform: none;
}

/* Placeholder copy still to be filled in. Delete this rule once done. */
.ph {
  color: var(--gold);
  border-bottom: 1px dotted currentColor;
}

.btn {
  display: block;
  width: 100%;
  padding: 17px 20px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-align: center;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.btn--primary {
  background: var(--gold);
  color: var(--ground);
  font-weight: 600;
}

.btn--ghost {
  border: 1px solid var(--gold);
  color: var(--gold);
  width: auto;
  padding: 17px 28px;
}

.link {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--bone);
  opacity: 0.6;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 180ms ease, color 180ms ease;
}

@media (hover: hover) {
  .btn--primary:hover { background: var(--bone); }
  .btn--ghost:hover   { background: var(--gold); color: var(--ground); }
  .link:hover         { opacity: 1; color: var(--gold); }
}

/* A quiet fade. Nothing moves far. */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Placeholder field for photography that has not landed yet. Names the file it
   is waiting for, so a local run reads as "drop hero.webp here" rather than as
   a broken page. All of this disappears on its own once /img/ is populated. */
.is-empty {
  position: relative;
  background: var(--panel);
  min-height: 220px;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(201, 162, 75, 0.22);
  display: grid;
  place-items: center;
}

.is-empty img { display: none; }

.is-empty::after {
  content: attr(data-missing);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--gold);
  opacity: 0.6;
  text-align: center;
  padding: 0 16px;
}


/* --- 1. Hero ------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  /* minmax(0, 1fr), not 1fr: the image row must be allowed to shrink below its
     content size, or a short phone (360 × 640) pushes the scroll cue off. */
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  /* The sticky bar overlays the viewport, so the hero stops above it —
     otherwise the scroll cue sits behind the bar. Bounded at both ends: with
     only a min-height the box grows to the image's intrinsic size and a short
     phone (360 × 640) pushes the cue past the fold. */
  min-height: calc(100svh - var(--bar));
  max-height: calc(100svh - var(--bar));
  padding: 20px var(--gutter) 16px;
  text-align: center;
}

.wordmark {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--bone);
}

/* Bleeds past the gutter on mobile: the scarf is the argument, give it the width. */
.hero__figure {
  min-height: 0;
  padding: 14px 0;
  margin-inline: calc(var(--gutter) * -1);
}

/* contain, so the square never crops and never overruns the row it is given */
.hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__line {
  font-size: 11px;
  letter-spacing: 0.16em;
  line-height: 1.7;
  color: var(--bone);
  opacity: 0.75;
}

.price {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--bone);
  opacity: 0.75;
}

.hero__foot .btn--primary { margin-top: 22px; }
.hero__foot .link { margin-top: 16px; }

.scrollcue {
  display: flex;
  justify-content: center;
  padding-top: 26px;
}

.scrollcue__rule {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  opacity: 0.7;
}


/* --- 1b. Hero carousel --------------------------------------------------- */

/* A column, not a bare block: the viewport takes whatever height the hero row
   gives it and the dots sit under it, so the slides never overrun the fold. */
.carousel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.carousel__viewport {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* The track is the viewport's only child and stretches to its full height, so
   nothing here depends on a percentage resolving. */
.carousel__track {
  display: flex;
  flex: 1;
  min-width: 0;
  transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Exactly one viewport wide, so one slide is ever visible and the track's
   translate lands on a whole image every time. */
.carousel__slide {
  display: flex;
  flex: 0 0 100%;
  min-width: 0;
}

.carousel__slide img {
  width: 100%;
  min-height: 0;
  object-fit: contain;
}

/* Rules, not dots — the same hairline vocabulary as the scroll cue and the
   dimension lines. The button is oversized around it for the thumb. */
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 14px;
}

.carousel__dot {
  display: grid;
  align-items: center;
  width: 26px;
  height: 16px;
  padding: 0;
  cursor: pointer;
}

.carousel__dot::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--bone);
  opacity: 0.3;
  transition: background-color 300ms, opacity 300ms;
}

.carousel__dot[aria-current="true"]::after {
  background: var(--gold);
  opacity: 1;
}

/* Reduced motion: the slide is cut, not animated. The auto-advance is turned
   off in JS as well, so the dots are the only thing that moves it. */
@media (prefers-reduced-motion: reduce) {
  .carousel__track { transition: none; }
}


/* Landscape and very short screens: let the hero scroll rather than crush the
   scarf into a sliver to satisfy the one-screen rule. */
@media (max-height: 560px) {
  .hero { max-height: none; }
}


/* --- 2. Specimen --------------------------------------------------------- */

.specimen {
  background: var(--panel);
  padding: var(--section) var(--gutter);
}

/* Two columns, two rows: the top rule sits over the scarf and stops exactly at
   its edge, the side rule runs exactly its height. That alignment is the
   whole effect — a dimension line that misses its subject reads as a border. */
.measure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 14px;
  row-gap: 14px;
  margin-bottom: 44px;
}

/* The measured frame: hairlines along the top and the right edge. */
.measure__dim {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
}

.measure__dim--top { grid-column: 1; grid-row: 1; }
.measure__corner   { grid-column: 2; grid-row: 1; }
.measure__figure   { grid-column: 1; grid-row: 2; min-width: 0; }
.measure__dim--side { grid-column: 2; grid-row: 2; }

.measure__rule {
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.65;
  position: relative;
}

/* Ticks turn the rule into a dimension line rather than a border. */
.measure__rule::before,
.measure__rule::after {
  content: '';
  position: absolute;
  background: var(--gold);
}

.measure__dim--top .measure__rule::before,
.measure__dim--top .measure__rule::after {
  top: -3px;
  width: 1px;
  height: 7px;
}

.measure__dim--top .measure__rule::before { left: 0; }
.measure__dim--top .measure__rule::after  { right: 0; }

.measure__label {
  font-size: 9px;
  letter-spacing: 0.24em;
  white-space: nowrap;
}

.measure__figure img { width: 100%; }

/* Only the label rotates. Putting writing-mode on the flex container would
   flip its main axis and lay the gauge out sideways. */
.measure__dim--side {
  flex-direction: column;
  align-items: center;
}

.measure__dim--side .measure__label { writing-mode: vertical-rl; }

.measure__dim--side .measure__rule {
  width: 1px;
  height: auto;
}

.measure__dim--side .measure__rule::before,
.measure__dim--side .measure__rule::after {
  left: -3px;
  height: 1px;
  width: 7px;
}

.measure__dim--side .measure__rule::before { top: 0; }
.measure__dim--side .measure__rule::after  { bottom: 0; }

/* Specification list */
.spec {
  border-top: 1px solid rgba(233, 227, 213, 0.14);
}

.spec__row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(233, 227, 213, 0.14);
}

.spec dt {
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--gold);
  padding-top: 1px;
}

.spec dd {
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.5;
}

.cta-inline { margin-top: 40px; }
.cta-inline .link { margin-top: 18px; }


/* --- 3. The print, close ------------------------------------------------- */

.print { padding: var(--section) 0; }

.print .eyebrow { padding: 0 var(--gutter); }

.print__figure img { width: 100%; }

.print .caption { padding: 0 var(--gutter); }


/* --- 4. Colorways -------------------------------------------------------- */

.colorways {
  padding: var(--section) var(--gutter);
  background: var(--panel);
}

.colorways__grid {
  display: grid;
  gap: 40px;
}

.colorway figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(233, 227, 213, 0.14);
}

.colorway__name {
  font-family: var(--display);
  font-size: 21px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.colorway__note {
  font-size: 9px;
  letter-spacing: 0.2em;
  opacity: 0.55;
}

/* The one place oxblood is used. */
.colorway--oxblood figcaption { border-top-color: var(--oxblood); }
.colorway--oxblood .colorway__name { color: var(--oxblood); }


/* --- 5. Six ways --------------------------------------------------------- */

.ways { padding: var(--section) var(--gutter); }

.ways__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(233, 227, 213, 0.14);
  border: 1px solid rgba(233, 227, 213, 0.14);
}

.ways__list li {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 18px;
  background: var(--ground);
  min-height: 116px;
  justify-content: space-between;
}

.ways__num {
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--gold);
}

.ways__name {
  font-size: 12px;
  letter-spacing: 0.18em;
}


/* --- 6. Acquire ---------------------------------------------------------- */

.acquire {
  padding: var(--section) var(--gutter);
  background: var(--panel);
}

.acquire__price {
  font-size: 11px;
  letter-spacing: 0.2em;
  opacity: 0.75;
  margin-bottom: 28px;
}

.spec--terms { margin-bottom: 4px; }


/* --- 7. Email capture ---------------------------------------------------- */

.enter { padding: var(--section) var(--gutter); }

.enter__line {
  font-size: 11px;
  letter-spacing: 0.16em;
  opacity: 0.7;
  margin-bottom: 26px;
}

.enter__form {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
}

.enter__field {
  flex: 1 1 180px;
  min-width: 0;
  padding: 16px 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  border-bottom: 1px solid rgba(233, 227, 213, 0.3);
}

.enter__field::placeholder { color: var(--bone); opacity: 0.4; }
.enter__field:focus { outline: none; border-bottom-color: var(--gold); }
.enter__field:focus-visible { outline: none; }

/* Tally's iframe. The height here is the fallback used until (or unless) the
   form reports its own height back over postMessage. */
.enter__embed {
  display: block;
  width: 100%;
  min-height: 120px;
  border: 0;
  color-scheme: normal;
}


/* --- 8. Footer ----------------------------------------------------------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 40px var(--gutter) 48px;
  border-top: 1px solid rgba(233, 227, 213, 0.14);
}


/* --- Sticky bar (mobile) ------------------------------------------------- */

.stickybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: var(--ground);
  border-top: 1px solid rgba(201, 162, 75, 0.35);
  padding-bottom: env(safe-area-inset-bottom);
}

.stickybar__btn {
  display: block;
  padding: 19px 16px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-align: center;
  color: var(--gold);
}


/* --- Desktop. An afterthought, deliberately. ----------------------------- */

@media (min-width: 800px) {
  :root {
    --gutter: 56px;
    --section: 140px;
  }

  body {
    font-size: 14px;
    padding-bottom: 0;
  }

  .stickybar { display: none; }

  /* No sticky bar on desktop, so the hero gets the whole viewport back. */
  .hero {
    min-height: 100svh;
    padding: 32px var(--gutter) 24px;
  }

  .hero__figure {
    margin-inline: 0;
    padding: 24px 0;
  }

  .wordmark { font-size: 17px; }

  /* Description left, actions right — placed explicitly so the four children
     do not auto-flow into an accidental arrangement. */
  .hero__foot {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 48px;
    row-gap: 6px;
    align-items: end;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
  }

  .hero__line { grid-column: 1; grid-row: 1; align-self: end; }
  .price      { grid-column: 1; grid-row: 2; margin-top: 0; }

  .hero__foot .btn--primary {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    margin-top: 0;
    width: auto;
    padding: 17px 44px;
  }

  .hero__foot .link {
    grid-column: 2;
    grid-row: 3;
    justify-self: center;
    margin-top: 14px;
  }

  .specimen,
  .colorways,
  .acquire,
  .ways,
  .enter,
  .print .eyebrow,
  .print .caption,
  .footer {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  /* Specimen: frame on the left, specification on the right. */
  /* The measured frame spans both content rows so the specification and its
     button stack together at the top of the right column. */
  .specimen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "head    head"
      "measure spec"
      "measure cta";
    column-gap: 80px;
    align-items: start;
  }

  .specimen .eyebrow { grid-area: head; }
  .measure { grid-area: measure; margin-bottom: 0; }
  .specimen .spec { grid-area: spec; }

  .specimen .cta-inline {
    grid-area: cta;
    align-self: start;
    justify-self: start;
  }

  .cta-inline .btn--primary { width: auto; padding: 17px 44px; }

  .spec__row { grid-template-columns: 120px 1fr; }

  .colorways__grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .colorway__name { font-size: 28px; }

  .ways__list { grid-template-columns: repeat(3, 1fr); }
  .ways__list li { min-height: 168px; padding: 28px 26px; }

  .acquire {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "head head"
      "price terms"
      "cta terms";
    column-gap: 80px;
    align-items: start;
  }

  .acquire .eyebrow { grid-area: head; }
  .acquire__price { grid-area: price; }
  .spec--terms { grid-area: terms; }
  .acquire .cta-inline { grid-area: cta; margin-top: 0; }

  .enter__form { max-width: 520px; }

  .print__figure img { max-height: 78vh; object-fit: cover; }
}


/* --- Reduced motion ------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }
}
