/* ==========================================================================
   INVICITY BRAND CSS — v3.0 structure, v2.1 FINAL colours (Invicity Design System.html, Aug 2026)
   <link rel="stylesheet" href="invicity-brand.css">
   Single source of truth: mirrors _ds/.../tokens/colors.css. Never hand-type hexes.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif&family=Instrument+Sans:wght@400;500;600&family=DM+Mono:wght@400;500&display=swap');

:root {
  /* ---- Color: each value has one job ----------------------------------- */
  --deep-forest: #1a2620;   /* ground */
  --forest:      #26342c;   /* raised surface — 2.1:1 vs ground, no border needed */
  --ivory:       #f3f1ec;   /* light ground · text on dark (13.9:1) */
  --sage:        #b6c7a1;   /* ONLY interactive: CTA, links, focus, route */
  --sage-dim:    #9fb287;   /* sage hover — forest text on it 6.9:1 */
  --champagne:   #c9b79b;   /* membership moments only */

  /* text floors — nothing lighter than these */
  --text-muted-dark:  rgba(243, 241, 236, 0.62);  /* v2.1 ink-muted-on-dark */
  --text-muted-light: rgba(26, 38, 32, 0.62);     /* v2.1 ink-muted-on-light */
  --steel:       #78828f;   /* v2.1 muted meta (decorative / large only) */
  --steel-text-dark:  rgba(243, 241, 236, 0.62);  /* v2.1: meta text uses ink-muted */
  --steel-text-light: #5c6570;                    /* 5.2:1 */

  /* edges */
  --hairline-dark:  rgba(182, 199, 161, 0.22);   /* decorative only */
  --hairline-light: rgba(26, 38, 32, 0.20);      /* decorative only */
  --control-border-dark:  #78828f;               /* inputs/controls: v2.1 steel */
  --control-border-light: #7d8a80;               /* inputs/controls — 3.4:1 */

  /* ---- Type ------------------------------------------------------------- */
  --font-display: 'Instrument Serif', Georgia, serif;   /* ≥ 28px only */
  --font-ui:      'Instrument Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', ui-monospace, monospace;   /* ≥ 12px */

  /* ---- Space, shape, motion -------------------------------------------- */
  --pad-x:  clamp(20px, 6vw, 80px);
  --pad-y:  clamp(48px, 8vw, 112px);
  --radius: 2px;
  --radius-pill: 100px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:  220ms;
  --tap:  44px;   /* minimum touch target */
}

/* ==========================================================================
   BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-ui); font-size: 16px; line-height: 1.65;
  background: var(--deep-forest); color: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
body.inv-light { background: var(--ivory); color: var(--deep-forest); }
img { max-width: 100%; display: block; }

a { color: var(--sage); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--ivory); }
body.inv-light a { color: var(--deep-forest); text-decoration-color: var(--hairline-light); }
body.inv-light a:hover { text-decoration-color: currentColor; }

/* Focus: always visible for keyboard users */
:where(a, button, [role="button"], input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--sage); outline-offset: 3px; border-radius: var(--radius);
}
body.inv-light :focus-visible, .inv-on-light :focus-visible { outline-color: var(--deep-forest); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ==========================================================================
   TYPE
   ========================================================================== */
.inv-display    { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 5vw, 72px); line-height: 1.1; letter-spacing: 0.01em; margin: 0; text-wrap: balance; }
.inv-display-md { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.1; margin: 0; text-wrap: balance; }
.inv-display-sm { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.25; margin: 0; }
.inv-body  { font-size: 16px; line-height: 1.7; color: var(--text-muted-dark); max-width: 64ch; margin: 0; text-wrap: pretty; }
body.inv-light .inv-body, .inv-on-light .inv-body { color: var(--text-muted-light); }

/* Mono label — brand furniture. Muted ivory, NOT sage (sage = actionable). */
.inv-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted-dark); margin: 0; }
body.inv-light .inv-meta, .inv-on-light .inv-meta { color: var(--text-muted-light); }
.inv-meta--champagne { color: var(--champagne); }

/* Oversized section numeral — tonal, decorative */
.inv-numeral { font-family: var(--font-display); font-size: clamp(96px, 13vw, 180px); line-height: 0.8; color: var(--forest); margin: 0; }
body.inv-light .inv-numeral, .inv-on-light .inv-numeral { color: #e2dfd6; }

/* ==========================================================================
   LAYOUT — hairlines, not boxes
   ========================================================================== */
.inv-section  { padding: var(--pad-y) var(--pad-x); border-top: 1px solid var(--hairline-dark); }
body.inv-light .inv-section, .inv-on-light.inv-section { border-top-color: var(--hairline-light); }
.inv-on-light { background: var(--ivory); color: var(--deep-forest); }

.inv-split { display: grid; gap: clamp(28px, 5vw, 80px); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
@media (max-width: 860px) { .inv-split { grid-template-columns: minmax(0, 1fr); } }

.inv-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.inv-rule { height: 1px; border: 0; margin: 0; background: var(--hairline-dark); }
body.inv-light .inv-rule, .inv-on-light .inv-rule { background: var(--hairline-light); }

/* Boxes only for real objects: cards, tickets, swatches */
.inv-object { background: var(--forest); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }

/* The route motif as a divider */
.inv-route { height: 2px; border: 0; margin: 0; background-image: linear-gradient(to right, var(--sage) 0 3.4px, transparent 3.4px 7.8px); background-size: 7.8px 2px; background-repeat: repeat-x; }

/* ==========================================================================
   NAV
   ========================================================================== */
.inv-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px var(--pad-x); border-bottom: 1px solid var(--hairline-dark); }
.inv-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.inv-nav a {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted-dark); text-decoration: none;
}
.inv-nav a:hover, .inv-nav a[aria-current="page"] { color: var(--ivory); }
@media (max-width: 720px) { .inv-nav a:not(.inv-btn) { display: none; } }

/* ==========================================================================
   BUTTONS — 44px minimum
   ========================================================================== */
.inv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 26px;
  font-family: var(--font-ui); font-size: 14px; font-weight: 500; letter-spacing: 0.01em; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.inv-btn:active { opacity: 0.85; }
.inv-btn--lg { min-height: 48px; padding: 0 30px; }
.inv-btn--primary { background: var(--sage); color: var(--deep-forest); }
.inv-btn--primary:hover { background: var(--sage-dim); }
.inv-btn--secondary { background: transparent; color: var(--ivory); border-color: var(--hairline-dark); }
.inv-btn--secondary:hover { border-color: var(--ivory); }
body.inv-light .inv-btn--primary, .inv-on-light .inv-btn--primary { background: var(--deep-forest); color: var(--ivory); }
body.inv-light .inv-btn--primary:hover, .inv-on-light .inv-btn--primary:hover { background: var(--forest); }
body.inv-light .inv-btn--secondary, .inv-on-light .inv-btn--secondary { color: var(--deep-forest); border-color: var(--control-border-light); }
body.inv-light .inv-btn--secondary:hover, .inv-on-light .inv-btn--secondary:hover { border-color: var(--deep-forest); }
.inv-nav .inv-btn { color: var(--deep-forest); }

/* ==========================================================================
   FORMS
   ========================================================================== */
.inv-input {
  width: 100%; min-height: var(--tap); padding: 0 14px;
  font: inherit; color: var(--ivory); background: transparent;
  border: 1px solid var(--control-border-dark); border-radius: var(--radius);
}
.inv-input::placeholder { color: var(--steel-text-dark); }
body.inv-light .inv-input, .inv-on-light .inv-input { color: var(--deep-forest); border-color: var(--control-border-light); }

/* ==========================================================================
   BADGES — the only pills
   ========================================================================== */
.inv-badge { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--sage); color: var(--deep-forest); }
.inv-badge--outline { background: transparent; color: var(--ivory); border: 1px solid var(--hairline-dark); }
.inv-badge--champagne { background: var(--champagne); color: var(--deep-forest); }

/* ==========================================================================
   LOGO
   ========================================================================== */
.inv-logo { display: inline-flex; align-items: center; min-height: var(--tap); }
.inv-logo img { height: 36px; width: auto; }

/* ==========================================================================
   MEMBERSHIP — champagne lives here and nowhere else
   ========================================================================== */
.inv-member-card { background: var(--deep-forest); border: 1px solid var(--champagne); border-radius: var(--radius); padding: 34px; display: flex; flex-direction: column; gap: 26px; }

/* PHOTOGRAPHY — warm, grained, toned toward forest */
.inv-photo { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--forest); }
.inv-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.82) contrast(1.02); }

/* NEVER: gradients, card shadows, blur, emoji, sage as a surface. */
