/* Shared pieces: the fixed header, the image plate, the two buttons, the
   basket pill and the footer. Every public screen uses some of these; the
   landing page's own five sections live in css/screens/landing.css. */


/* --- the fixed header ---------------------------------------------------- */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 20;
  background: var(--header-veil);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gutter);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--cream);
}
.site-brand:hover { color: var(--cream); }
.site-brand img { display: block; width: 32px; opacity: .92; }
.site-brand__wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  letter-spacing: var(--ls-wordmark);
  text-indent: var(--ls-wordmark);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 32px);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-meta);
  text-transform: uppercase;
  color: var(--sage-meta);
}
.site-nav__link { color: var(--sage-meta); }
.site-nav__link:hover,
.site-nav__link[aria-current="page"] { color: var(--cream); }

/* Georgian is a real locale in M5; until the strings exist this is the mark,
   not a control that would do nothing when pressed. PLAN.md §12.4. */
.site-nav__ka {
  font-family: var(--font-ka);
  letter-spacing: 0.12em;
  color: var(--gilt);
}


/* --- the basket pill ----------------------------------------------------- */
.basket-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border: 1px solid var(--hairline-edge);
  border-radius: 999px;
  color: var(--cream);
  transition: border-color var(--dur-hover) ease, background var(--dur-hover) ease;
}
.basket-pill:hover {
  border-color: var(--copper);
  background: var(--copper-veil);
  color: var(--cream);
}
.basket-pill__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  background: var(--copper);
  color: var(--ink-metal);
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
}
/* 620ms, scale 1.14 and settle — set by the script on every add */
.basket-pill__count[data-popped] {
  animation: count-pop var(--dur-basket) var(--ease);
}


/* --- the image plate ----------------------------------------------------- */
/* Every photograph in the design is a striped plate with the shot written on
   it; the brief is the brief. When a photograph lands it loads over a box of
   the right colour and height, so nothing shifts. PLAN.md §10. */
.plate {
  position: relative;
  overflow: hidden;
  background-color: var(--plate, var(--forest-panel));
  background-image: var(--plate-weave);
  border: 1px solid var(--hairline-firm);
}
.plate--ivory {
  background-image: var(--plate-weave-ivory);
  border: 0;
}
/* a landed photograph fills the box the weave was holding, so nothing shifts */
.plate__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ink at the corners the overlays sit in, so the gilt stays readable */
.plate__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(8, 14, 10, 0.42) 0%, rgba(8, 14, 10, 0) 34%),
    linear-gradient(to top, rgba(8, 14, 10, 0.48) 0%, rgba(8, 14, 10, 0) 38%);
  pointer-events: none;
}
/* a light band crosses the image once on hover, over 1600ms */
.plate__sweep {
  position: absolute;
  inset: 0;
  background-image: var(--plate-sweep);
  background-size: 260% 100%;
  background-position: 190% 0;
  background-repeat: no-repeat;
  transition: background-position var(--dur-sweep) var(--ease);
  pointer-events: none;
}
.plate--ivory .plate__sweep { background-image: var(--plate-sweep-ivory); }
@media (hover: hover) {
  .plate:hover .plate__sweep,
  .plate:focus-within .plate__sweep { background-position: -90% 0; }
}

.plate__brief {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--sage-meta);
  max-width: 20em;
}
.plate__spec {
  position: absolute;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-micro);
  text-transform: uppercase;
  color: var(--sage-faint);
}


/* --- buttons and links --------------------------------------------------- */
/* The primary CTA pill — one of the four foil elements. */
.btn-foil {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 17px 30px;
  border: 0;
  border-radius: 999px;
  color: var(--ink-metal);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--dur-hover) var(--ease), box-shadow var(--dur-hover) ease;
}
.btn-foil:hover {
  color: var(--ink-metal);
  transform: translateY(-3px);
  box-shadow: 0 16px 38px var(--copper-cast);
}
.btn-foil__rule { width: 22px; height: 1px; background: currentColor; }

/* the underline that grows 52 → 126px over 900ms */
.rule-link {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  width: max-content;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--sage);
}
.rule-link:hover { color: var(--cream); }
.rule-link__rule {
  height: 1px;
  width: 52px;
  background: var(--copper-rule);
  transition: width var(--dur-rule) var(--ease);
}
.rule-link:hover .rule-link__rule,
.rule-link:focus-visible .rule-link__rule { width: 126px; }

/* the horizontal variant, on the season tile and in the footer */
.arrow-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: var(--ls-meta);
  text-transform: uppercase;
  color: var(--cream);
}
.arrow-link:hover { color: var(--copper-lit); }
.arrow-link__rule {
  width: 26px;
  height: 1px;
  background: currentColor;
  transition: width var(--dur-rule) var(--ease);
}
.arrow-link:hover .arrow-link__rule,
.arrow-link:focus-visible .arrow-link__rule { width: 56px; }


/* --- eyebrows and figures ------------------------------------------------ */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--copper-lit);
}
.eyebrow--ivory { color: var(--copper-ink); }
.eyebrow__rule { width: 30px; height: 1px; }

/* a figure over its label — the hero's three, and the anatomy's three */
.figures {
  display: flex;
  gap: clamp(20px, 3vw, 48px);
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
}
.figure { display: flex; flex-direction: column; gap: 5px; }
.figure__n {
  font-family: var(--font-display);
  font-size: var(--fs-numeral-sm);
  line-height: 1;
  color: var(--cream-hi);
}
.figure__n--gilt { color: var(--gilt); }
.figure__k {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage-meta);
}


/* --- the footer ---------------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--forest-foot);
  padding: clamp(56px, 8vh, 96px) var(--gutter) 34px;
}
.site-footer__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(34px, 5vh, 56px);
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(26px, 3vw, 58px);
  align-items: start;
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 340px;
}
.site-footer__seal { display: block; width: 80px; opacity: .9; }
.site-footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  line-height: 1.4;
  color: var(--cream);
}
.site-footer__col { display: flex; flex-direction: column; gap: 11px; }
.site-footer__col-head {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper-lit);
}
.site-footer__col a,
.site-footer__col span:not(.site-footer__col-head) {
  font-size: var(--fs-legend);
  line-height: 1.7;
  color: var(--sage);
}
.site-footer__col a:hover { color: var(--cream); }
.site-footer__base {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
}
.site-footer__mark { display: flex; flex-direction: column; gap: 7px; }
.site-footer__wordmark {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.26em;
  color: var(--cream);
}
.site-footer__ka {
  font-size: 12px;
  letter-spacing: var(--ls-ka);
  color: var(--gilt);
}
.site-footer__legal {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sage-faint);
}


/* --- touch targets ------------------------------------------------------- */
@media (pointer: coarse) {
  .site-nav__link,
  .site-footer__col a {
    min-height: var(--tap-min);
    display: inline-flex;
    align-items: center;
  }
}
