/* base — tokens, page background, glass, shared bits */

:root {
  --background: 0 0% 4%;
  --foreground: 0 0% 100%;
  --card: 0 0% 8%;
  --card-foreground: 0 0% 100%;
  --muted: 0 0% 14%;
  --muted-foreground: 0 0% 62%;
  --primary: 0 0% 100%;
  --primary-foreground: 0 0% 4%;
  --secondary: 0 0% 14%;
  --secondary-foreground: 0 0% 100%;
  --accent: 0 0% 18%;
  --accent-foreground: 0 0% 100%;
  --input: 0 0% 20%;
  --ring: 0 0% 80%;
  --radius: 1rem;

  --ease-out: cubic-bezier(.22,1,.36,1);
  --warm: 137,128,117;   /* #898075, used for all the glows */
  --sans: 'Milliard', 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  background: #2e2c28;
  scroll-padding-top: env(safe-area-inset-top, 0px);
}
html, body { min-height: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  background: transparent;
  color: hsl(var(--foreground));
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: opacity .5s ease;
}
/* fixed so the gradient doesn't stretch over the whole scroll height */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(135deg, #494640 0%, #131312 100%);
}

html.js:not(.js-ready) body { opacity: 0; }

/* preflight resets heading weight, needs the extra specificity */
body :is(h1, h2, h3) { font-weight: 500; }
h1 em, h1 i, h1 .italic,
h2 em, h2 i, h2 .italic,
h3 em, h3 i, h3 .italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.08em;
  letter-spacing: -.005em;
  line-height: 1;
}

button, a { cursor: pointer; }
:focus-visible { outline: 2px solid rgba(255,255,255,.8); outline-offset: 3px; }


/* ---- glass ---- */

.glass,
.glass-strong {
  position: relative;
  overflow: hidden;
  border: none;
  background-blend-mode: luminosity;
}
.glass {
  background: rgba(255,255,255,.01);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.1);
}
.glass-strong {
  background: rgba(255,255,255,.015);
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
  box-shadow: 4px 4px 4px rgba(0,0,0,.05), inset 0 1px 1px rgba(255,255,255,.15);
}

/* gradient hairline: masked padding box, fades out in the middle */
.glass::before,
.glass-strong::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,.15) 20%, transparent 40%, transparent 60%, rgba(255,255,255,.15) 80%, rgba(255,255,255,.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.glass-strong::before {
  background: linear-gradient(180deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,.2) 20%, transparent 40%, transparent 60%, rgba(255,255,255,.2) 80%, rgba(255,255,255,.5) 100%);
}

.glass-tint { background: rgba(255,255,255,.07); }
.glass-tint::before { display: none; }

.glass.no-edge { box-shadow: none; }
.glass.no-edge::before { display: none; }

/* safari/chrome flicker on blurred stuff while other things animate — own layer fixes it */
[class*="backdrop-blur"], .glass, .glass-strong, #float-nav, .search-pill, #wellness-panel {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  isolation: isolate;
}
[class*="backdrop-blur"]:not(.pcard__panel), .glass, .glass-strong { will-change: transform; }


/* all round buttons: no border, soft white fill. !important because tailwind bg-* sits on half of them */
button.rounded-full:not(.bg-white),
a.rounded-full:not(.bg-white) {
  border: 0 !important;
  box-shadow: none !important;
  background-color: rgba(255,255,255,.12) !important;
  transition: background-color .25s ease, transform .2s ease;
}
button.rounded-full:not(.bg-white):hover,
a.rounded-full:not(.bg-white):hover { background-color: rgba(255,255,255,.2) !important; }
button.rounded-full::before,
a.rounded-full::before { display: none !important; }

.social { color: rgba(255,255,255,.45) !important; transition: color .3s ease, transform .2s ease !important; }
.social:hover { color: #fff !important; }


/* light sweep, injected by entrance.js */
.sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.sheen > i {
  position: absolute;
  inset: -20% 0;
  width: 60%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.16) 45%, rgba(255,255,255,.28) 50%, rgba(255,255,255,.16) 55%, transparent 100%);
}
