/* Shared base for all three homepage concepts. Uses tokens.css only. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--onyx);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; line-height: 1.2; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-32); }
@media (min-width: 900px) { .wrap { padding: 0 var(--space-48); } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: var(--space-16); top: -100px; z-index: 100;
  background: var(--onyx); color: var(--ivory); padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-md); font-weight: 600; text-decoration: none;
}
.skip:focus { top: var(--space-16); }

:focus-visible { outline: 2px solid var(--onyx); outline-offset: 3px; border-radius: 2px; }

/* Type helpers */
.eyebrow {
  font-family: var(--font-sans); font-size: var(--fs-eyebrow); font-weight: 600;
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; line-height: 1.5;
}
.display { font-size: var(--fs-display); font-style: italic; line-height: 1.1; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); line-height: 1.25; }
.lead { font-size: var(--fs-lead); line-height: 1.55; }

/* Signature ornament: a gold hairline on each side */
.flanked { display: flex; align-items: center; justify-content: center; gap: var(--space-16); text-align: center; }
.flanked::before, .flanked::after { content: ""; flex: 0 1 64px; height: 1px; background: var(--antique-gold); }
.rule { height: 1px; background: var(--antique-gold); border: 0; margin: 0; }
.rule-soft { height: 1px; background: var(--champagne); border: 0; margin: 0; }

/* Icons: thin outline, 1.5px stroke, round ends */
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-gold { color: var(--antique-gold); }

/* Buttons: onyx label on antique gold (6.2:1). White-on-gold is flagged in the system. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8);
  min-height: 48px; padding: 0 var(--space-24);
  font-family: var(--font-sans); font-size: var(--fs-button); font-weight: 600;
  letter-spacing: var(--tracking-button); text-transform: uppercase; text-decoration: none;
  border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-gold { background: var(--antique-gold); color: var(--onyx); }
.btn-gold:hover { background: var(--onyx); color: var(--ivory); }
.btn-line { background: transparent; color: var(--onyx); border-color: var(--onyx); }
.btn-line:hover { background: var(--onyx); color: var(--ivory); }
.btn-sm { min-height: 44px; padding: 0 var(--space-16); }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-8);
  font-size: var(--fs-button); font-weight: 600; letter-spacing: var(--tracking-button);
  text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--antique-gold); padding-bottom: 2px;
}
.link-arrow .icon { width: 16px; height: 16px; color: var(--antique-gold); }

/* Nav */
.nav-links { display: flex; gap: var(--space-32); }
.nav-links a {
  font-size: var(--fs-nav); font-weight: 600; letter-spacing: var(--tracking-nav);
  text-transform: uppercase; text-decoration: none; padding: var(--space-8) 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--antique-gold); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: none; border: 0; color: var(--onyx); cursor: pointer; border-radius: var(--radius-md);
}
.icon-btn .icon { width: 24px; height: 24px; }

/* Placeholder marker: anything not yet confirmed by the client */
.tbc {
  display: inline-block; vertical-align: middle; margin-left: var(--space-4);
  padding: 1px 6px; border-radius: var(--radius-sm); background: var(--champagne); color: var(--onyx);
  font-family: var(--font-sans); font-style: normal; font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.5;
}
.embed-slot {
  display: grid; place-items: center; gap: var(--space-8); text-align: center;
  min-height: 200px; padding: var(--space-24);
  background: var(--white); border: 1px dashed var(--antique-gold); border-radius: var(--radius-lg);
  font-size: 0.875rem;
}
.embed-slot code { font-size: 0.8125rem; background: var(--ivory); padding: 2px 6px; border-radius: var(--radius-sm); }

/* Mockup chrome: link back to the overview */
.mock-pill {
  position: fixed; left: var(--space-16); bottom: var(--space-16); z-index: 50;
  display: inline-flex; align-items: center; gap: var(--space-8);
  background: var(--onyx); color: var(--ivory); text-decoration: none;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: var(--space-8) var(--space-16); border-radius: var(--radius-full); border: 1px solid var(--antique-gold);
}
.mock-pill .icon { width: 16px; height: 16px; }
.in-frame .mock-pill { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
