/* ────────────────────────────────────────────────────────────────────────────
   WhatAreWeWearing — shared brand stylesheet
   Used by: index.html (landing), terms.html, contact.html, support.html
   Tokens match the app palette in app.html (Luxury Summer Palette).
   ──────────────────────────────────────────────────────────────────────────── */

:root {
  --page:    #FAFAF7;
  --surface: #FFFFFF;
  --tint:    #F4F2EC;

  --ink:     #191714;
  --body:    #3D3830;
  --muted:   #6B625A;
  --faint:   #7A726A;

  --rule:    #E8E2D9;

  --rose:    #A05A64;
  --roseDk:  #8A3D48;
  --roseLt:  #F5E6E9;

  --aqua:    #4D8FA3;
  --aquaLt:  #E0EEF3;
  --sage:    #5C8A6E;
  --sageLt:  #E4F0E9;
  --sand:    #8B6A2E;
  --sandLt:  #F5ECD6;

  --display: 'Bodoni Moda', 'Playfair Display', Georgia, serif;
  --body-font: 'Jost', 'Plus Jakarta Sans', system-ui, sans-serif;

  --max:     1180px;
  --max-text: 720px;

  --shadow-soft: 0 1px 2px rgba(25,23,20,0.04), 0 8px 24px rgba(25,23,20,0.04);
  --shadow-hover: 0 2px 4px rgba(25,23,20,0.06), 0 16px 40px rgba(25,23,20,0.08);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--page);
  color: var(--body);
  font-family: var(--body-font);
  font-weight: 300;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 3px; }

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

:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; border-radius: 2px; }
:focus:not(:focus-visible) { outline: none; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Typographic primitives ─────────────────────────────────────────────── */

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 600;
}

.eyebrow-muted {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.display {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.005em;
}

.h1 { font-size: clamp(40px, 7.2vw, 84px); }
.h2 { font-size: clamp(30px, 4.8vw, 52px); }
.h3 { font-size: clamp(22px, 2.6vw, 30px); }

.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--body);
  line-height: 1.65;
  font-weight: 300;
  letter-spacing: 0.005em;
}

.rule-divider {
  width: 40px;
  height: 1px;
  background: var(--rose);
  margin: 18px 0;
}

.rule-divider.center { margin-left: auto; margin-right: auto; }

/* ── Containers ─────────────────────────────────────────────────────────── */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.container-text {
  max-width: var(--max-text);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 3px;
  font-family: var(--body-font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  min-height: 48px;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary  { background: var(--rose); color: #fff; }
.btn-primary:hover { background: var(--roseDk); }

.btn-dark     { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }

.btn-outline  { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-ghost    { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-light    { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.28); backdrop-filter: blur(8px); }
.btn-light:hover { background: rgba(255,255,255,0.2); }

/* ── Top navigation (shared across marketing pages) ─────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,247,0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule);
}

.site-nav .nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Push Support / Contact + Open App to the right edge */
.site-nav nav {
  margin-left: auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

/* Nav logo: cropped wordmark (poppy + www, no subtitle) — viewBox 120×76 */
.brand-mark .brand-logo,
.brand-mark > svg {
  height: 80px;
  width: auto;
  display: block;
}

@media (max-width: 880px) {
  .brand-mark .brand-logo,
  .brand-mark > svg { height: 68px; }
}

@media (max-width: 540px) {
  .brand-mark .brand-logo,
  .brand-mark > svg { height: 58px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--body);
  font-weight: 500;
  transition: color 0.16s ease;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--rose);
  transition: right 0.22s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 3px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -5px; left: 0; }
.nav-toggle span::after  { position: absolute; top:  5px; left: 0; }

@media (max-width: 880px) {
  .site-nav .nav-inner { padding: 14px 20px; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 20px 24px;
    background: var(--page);
    border-bottom: 1px solid var(--rule);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
    width: 100%;
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn { padding: 10px 16px; min-height: 42px; font-size: 11px; }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.82);
  margin-top: 96px;
}

.site-footer .footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 28px 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .footer-logo-slot {
  margin-bottom: 20px;
  min-height: 72px;
}

.footer-brand .footer-logo,
.footer-brand .footer-logo-slot svg {
  height: 72px;
  width: auto;
  display: block;
  opacity: 0.95;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.62);
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  font-weight: 500;
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }

.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.01em;
  transition: color 0.16s ease;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 28px;
}

.footer-bottom p,
.footer-bottom a {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}

.footer-bottom .footer-social {
  display: flex;
  gap: 20px;
}

@media (max-width: 720px) {
  .site-footer { margin-top: 64px; }
  .site-footer .footer-inner { padding: 56px 22px 28px; }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding-bottom: 40px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 440px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ── Generic editorial section ──────────────────────────────────────────── */

section.section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; padding: 0 24px; }
.section-head .eyebrow { display: inline-block; margin-bottom: 16px; }
.section-head .lede { margin-top: 20px; }
.section-head .rule-divider { margin: 22px auto 0; }
