/* ==========================================================================
   ANF brand-page chrome
   --------------------------------------------------------------------------
   The ONLY shared styling across brand pages. It covers the ANF top bar and
   footer so a visitor always knows where they are and how to get back, while
   leaving the entire page body free to look like the brand's own site.

   Every colour here reads from a variable the page sets, so the chrome adapts
   to a light or dark brand palette. A page only needs to define these on
   :root (all optional - sensible ANF defaults apply):

     --chrome-bg          bar/footer background
     --chrome-fg          bar/footer text
     --chrome-fg-muted    secondary text
     --chrome-border      hairline
     --chrome-accent      hover / active colour
   ========================================================================== */

:root {
  --chrome-bg: #0a1628;
  --chrome-fg: #ffffff;
  --chrome-fg-muted: rgba(255, 255, 255, 0.62);
  --chrome-border: rgba(255, 255, 255, 0.14);
  --chrome-accent: #c8a45e;
  --chrome-h: 62px;
}

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

/* ----- top bar ----- */

.anf-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--chrome-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--chrome-bg) 88%, transparent);
  border-bottom: 1px solid var(--chrome-border);
  z-index: 9000;
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .anf-bar { background: var(--chrome-bg); }
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .anf-bar {
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    backdrop-filter: saturate(140%) blur(14px);
  }
}

.anf-bar__back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--chrome-fg);
  text-decoration: none;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  padding: 8px 4px;
  border-radius: 8px;
  transition: color 0.25s ease, transform 0.25s ease;
}

.anf-bar__back:hover,
.anf-bar__back:focus-visible {
  color: var(--chrome-accent);
}

.anf-bar__back:hover .anf-bar__arrow {
  transform: translateX(-3px);
}

.anf-bar__arrow {
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.anf-bar__mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--chrome-fg-muted);
  text-decoration: none;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.anf-bar__mark:hover,
.anf-bar__mark:focus-visible {
  color: var(--chrome-fg);
}

.anf-bar__mark img {
  height: 26px;
  width: auto;
  display: block;
}

/* the label collapses first on small screens - the logo still identifies ANF */
@media (max-width: 640px) {
  .anf-bar__mark span { display: none; }
  .anf-bar__back { font-size: 0.66rem; letter-spacing: 0.6px; }
}

/* offset for the fixed bar - put on the first section of the page */
.anf-chrome-offset {
  padding-top: var(--chrome-h);
}

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

.anf-foot {
  background: var(--chrome-bg);
  color: var(--chrome-fg-muted);
  border-top: 1px solid var(--chrome-border);
  padding: clamp(34px, 6vw, 54px) clamp(16px, 5vw, 48px);
  font-family: 'Montserrat', system-ui, sans-serif;
  text-align: center;
}

.anf-foot__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.anf-foot__logo img {
  height: 42px;
  width: auto;
  display: block;
  opacity: 0.95;
}

.anf-foot__line {
  font-size: 0.85rem;
  line-height: 1.7;
  margin: 0;
  max-width: 60ch;
}

.anf-foot__line strong {
  color: var(--chrome-fg);
  font-weight: 600;
}

.anf-foot__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 2px;
}

.anf-foot__links a {
  color: var(--chrome-fg-muted);
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.anf-foot__links a:hover,
.anf-foot__links a:focus-visible {
  color: var(--chrome-accent);
}

.anf-foot__legal {
  font-size: 0.68rem;
  letter-spacing: 0.4px;
  opacity: 0.66;
  margin: 6px 0 0;
}

/* ----- shared utilities ----- */

.anf-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:where(.anf-chrome) a:focus-visible,
.anf-bar a:focus-visible,
.anf-foot a:focus-visible {
  outline: 2px solid var(--chrome-accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .anf-bar__arrow,
  .anf-bar__back,
  .anf-bar__mark,
  .anf-foot__links a {
    transition: none;
  }
}
