/* Shared foundations: tokens, reset, header, footer, small type helpers */

:root {
  color-scheme: dark;
  --bg: #0c0c0c;
  --ink: #edeae4;
  --mute: #8b8882;
  --soft: #c9c5be;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --rose: #e9a99b;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: max(4vw, 20px);
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html, body { background: var(--bg); }
body {
  margin: 0;
  color: var(--ink);
  font: 400 15px/1.55 "Inter Tight", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
body.locked { overflow: hidden; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Small spaced capitals used for labels across the site */
.cap {
  font: 500 11px/1.3 Montserrat, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.cap.dim { color: var(--mute); }

/* Wordmark */
.wmk {
  display: inline-block;
  font: 400 clamp(12px, 1vw, 14px)/1 Montserrat, "Inter Tight", sans-serif;
  letter-spacing: .26em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
}
.wmk b { font-weight: 700; }

/* Header */
.top {
  position: fixed; z-index: 20; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: max(2vw, 16px) var(--gutter);
  background: linear-gradient(var(--bg) 35%, rgba(12, 12, 12, 0));
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.logo { padding: 12px 0; }

/* Glass pill used for header and page buttons */
.pill {
  min-height: 40px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 18px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font: 500 11px/1 Montserrat, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background .3s, border-color .3s;
}
.pill:hover, .pill:focus-visible {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .3);
  outline: none;
}

/* Footer menu */
.foot {
  display: flex; justify-content: center;
  padding: 40px var(--gutter) max(4vw, 36px);
  border-top: 1px solid var(--line);
}
.foot a {
  padding: 10px 4px;
  color: var(--mute);
  font: 500 11px/1 Montserrat, sans-serif;
  letter-spacing: .24em;
  text-transform: uppercase;
  transition: color .3s;
}
.foot a:hover, .foot a:focus-visible { color: var(--ink); outline: none; }

/* Inner pages share this frame */
.page-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(96px, 11vw, 140px) var(--gutter) clamp(56px, 8vw, 96px);
}
.page-bar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.crumbs { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 0; white-space: nowrap; }
.crumbs > * { flex: none; }
.crumbs > :not([aria-hidden]) { flex: 0 1 auto; min-width: 2.5em; overflow: hidden; text-overflow: ellipsis; }
.crumbs > a:first-child { flex: none; }
.pbtn { position: relative; display: inline-flex; align-items: center; gap: 10px; flex: none; }
.pbtn svg { display: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.crumbs a { color: var(--mute); transition: color .3s; }
.crumbs a:hover, .crumbs a:focus-visible { color: var(--ink); outline: none; }
.crumbs span[aria-hidden] { color: var(--mute); }

@media (max-width: 700px) {
  .wmk { letter-spacing: .2em; }
  .crumbs > :nth-last-child(n+4) { display: none; }
  .pbtn { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
  .pbtn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pbtn svg { display: block; }
}

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