/* Sterling and Crown — shared tokens + logo lockup
   Lane: old-money private services. Letterhead direction.
   Color in OKLCH; neutrals tinted toward warm 78deg so nothing reads
   as pure white or pure black. */

:root {
  /* Surface */
  --bg: oklch(96% 0.014 80);            /* parchment cream */
  --bg-deep: oklch(92.5% 0.016 78);     /* deeper parchment, panels */
  --fg: oklch(22% 0.012 70);            /* warm ink */
  --muted: oklch(46% 0.012 75);         /* dimmed ink, body secondary */
  --line: oklch(22% 0.012 70 / 0.16);   /* hairline rule (ink @ 16%) */
  --subtle: oklch(93.5% 0.014 78);      /* table head fill, soft panel */

  /* Accents — used sparingly. Oxblood is the brand's signature. */
  --accent: oklch(38% 0.13 25);         /* oxblood — single committed color */
  --accent-ink: oklch(28% 0.10 25);     /* darker oxblood, hover states */
  --gold: oklch(72% 0.10 82);           /* aged gold leaf — for rule lines, eyebrow lead-ins */
  --gold-soft: oklch(72% 0.10 82 / 0.55);

  /* Type — Letterhead */
  --font-display: "Libre Caslon Text", "Caslon", "Hoefler Text", Georgia, serif;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Modular scale — 1.333 (perfect fourth) */
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.333rem;
  --step-2: 1.777rem;
  --step-3: 2.369rem;
  --step-4: 3.157rem;
  --step-5: 4.209rem;

  /* Motion — exponential ease-outs only. No bounce, no elastic. */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur: 200ms;
  --dur-slow: 400ms;
}

/* Skip link — visually hidden until focused. */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--fg);
  transform: translateY(-110%);
  transition: transform var(--dur) var(--ease-out);
  z-index: 100;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Global focus visibility — letterhead-style oxblood outline. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Allow components that paint their own focus treatment to opt out. */
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: none;
  outline-offset: 0;
}

.logo-lockup {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.logo-image {
  display: block;
  height: 2.25rem;
  width: auto;
  mix-blend-mode: multiply;
}

.logo-image--sm {
  height: 1.625rem;
}

/* Wordmark fallback (used where text logo is preferred) */
.logo-wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.005em;
  color: var(--fg);
  white-space: nowrap;
}

.logo-tagline {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 0.1rem;
}

.logo-mark {
  display: block;
}

.logo-mark--sm {
  height: 1.25rem;
  width: auto;
}

.logo-type {
  display: inline-flex;
  flex-direction: column;
  margin-left: 0.65rem;
}

/* Reusable letterhead-style rule:
   a hairline ink line with a short gold lead-in. Use as <hr class="rule-gold">
   or pair an eyebrow ::before (already done per page). */
.rule-gold {
  border: 0;
  height: 1px;
  background: var(--line);
  position: relative;
  margin: 0;
}
.rule-gold::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3rem;
  height: 1px;
  background: var(--gold);
}

/* Respect motion preference */
@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;
  }
}
