/* base.css — reset, layout primitives, nav, footer, shared components. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  /* sticky header: keep anchor jumps and focus scrolls clear of the bar
     (allows for the step eyebrow that sits above the focused heading) */
  scroll-padding-top: 128px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img,
svg,
video,
canvas {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
a {
  color: inherit;
}
button {
  font: inherit;
  cursor: pointer;
}
input,
select,
textarea {
  font: inherit;
}
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection {
  background: var(--gold-deep);
  color: var(--text);
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -64px; /* fully above the viewport; was -48px, taller than its own 48.8px pill */
  z-index: 100;
  background: var(--raised);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 6px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
}

/* type helpers */
.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.section-head {
  max-width: 720px;
  margin-bottom: var(--s6);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: 1.08;
  margin-top: var(--s2);
}
.section-head .sub {
  color: var(--muted);
  margin-top: var(--s2);
  max-width: 56ch;
}
.num {
  font-variant-numeric: tabular-nums lining-nums;
}

/* buttons */
.cta,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  min-height: 44px;
}
.cta {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #171204;
  border-color: var(--gold-deep);
}
.cta:hover {
  background: linear-gradient(180deg, var(--gold), var(--gold-hover));
}
.ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(244, 239, 228, 0.03);
}
.ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}
.text-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-link:hover {
  color: var(--gold-bright);
}

/* header — solid near-black bar, crest lockup, compact uppercase nav,
   Grading dropdown, account cluster (2026-07-21 handoff header contract) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 10, 0.94);
  border-bottom: 1px solid rgba(244, 239, 228, 0.05);
  transition: border-color 0.25s var(--ease);
}
.site-header.scrolled {
  border-color: var(--line-faint);
}
.nav {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding-block: 14px;
}
.site-header.scrolled .nav {
  padding-block: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.brand-crest {
  width: 44px;
  height: 44px;
}
.brand-lines {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.brand-club {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 30px);
  margin-inline: auto;
}
.nav-links > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 2px;
  position: relative;
  white-space: nowrap;
}
.nav-links > a:hover {
  color: var(--text);
}
.nav-links > a[aria-current="page"] {
  color: var(--gold-bright);
}
.nav-links > a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 4px;
  height: 2px;
  background: var(--gold);
}
.nav-account {
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex: none;
}
.nav-signin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 6px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav-signin:hover {
  color: var(--text);
}
.nav-create {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--gold-deep);
  border-radius: 8px;
  text-decoration: none;
  color: var(--gold-bright);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-create:hover {
  background: rgba(232, 192, 104, 0.1);
  border-color: var(--gold);
}
.menu-btn {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 9px 12px;
  min-width: 44px;
  min-height: 44px;
}
.mobile-menu {
  display: none;
}

@media (max-width: 1023px) {
  .nav-links,
  .nav-account {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }
  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(7, 7, 10, 0.97);
    padding: var(--s10) var(--s4) var(--s6);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden; /* keeps the closed menu's 9 links out of keyboard tab order */
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s 0.25s;
  }
  .mobile-menu.open {
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
  }
  .mobile-menu .close-btn {
    position: absolute;
    top: 18px;
    right: clamp(20px, 4vw, 40px);
    background: none;
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 8px;
    min-width: 44px;
    min-height: 44px;
  }
  .mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: var(--s2);
  }
  .mobile-menu nav a:not(.cta):not(.ghost) {
    font-family: var(--font-display);
    font-size: 1.8rem;
    text-decoration: none;
    color: var(--text);
    padding: 10px 0;
  }
  .mobile-menu .menu-ctas {
    margin-top: var(--s5);
    display: flex;
    flex-direction: column;
    gap: var(--s2);
  }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu {
    transition: none;
  }
}

/* sections */
.section {
  padding-block: clamp(72px, 10vw, 128px);
}
.section.tight {
  padding-block: clamp(56px, 7vw, 96px);
}
.surface-band {
  background: linear-gradient(180deg, var(--bg-warm), var(--bg));
  border-block: 1px solid var(--line-faint);
}

/* frame motif — thin gold-to-neutral frame rule around imagery (gasket echo) */
.framed {
  border: 1px solid var(--line);
  outline: 1px solid rgba(244, 239, 228, 0.05);
  outline-offset: 4px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

/* footer */
.site-footer {
  border-top: 1px solid var(--line-faint);
  background: var(--bg-warm);
  padding-block: var(--s10) var(--s5);
  color: var(--muted);
  font-size: var(--fs-small);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: var(--s5);
  margin-bottom: var(--s8);
}
.footer-grid h3 {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: var(--s2);
  font-weight: 600;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-grid a {
  text-decoration: none;
  color: var(--muted);
}
.footer-grid a:hover {
  color: var(--gold-bright);
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text);
  max-width: 18ch;
  line-height: 1.25;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  justify-content: space-between;
  border-top: 1px solid var(--line-faint);
  padding-top: var(--s4);
  color: var(--faint);
}
@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
