@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --black: #0b0b0d;
  --charcoal: #1b1b1e;
  --paper: #f3eee7;
  --paper-dark: #e7e0d8;
  --ink: #111113;
  --muted: #6f6a64;
  --line: #cfc7bd;
  --violet: #7657d8;
  --display: "Bricolage Grotesque", Arial, Helvetica, sans-serif;
  --sans: Arial, Helvetica, sans-serif;
  font-family: var(--sans);
  font-synthesis: none;
  color-scheme: light;
  background: var(--black);
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
h1,
h2,
p,
ul {
  margin: 0;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--black);
  line-height: 1.5;
}

body.dialog-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}

::selection {
  color: white;
  background: var(--violet);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--black);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-stage {
  display: grid;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  place-items: start center;
}

.profile-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  min-height: 100svh;
  background: var(--paper);
}

.profile-photo {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--black);
}

.profile-photo picture,
.profile-photo img {
  width: 100%;
  height: 100%;
}

.profile-photo img {
  object-fit: cover;
  object-position: 50% 50%;
}

.profile-links {
  padding: 24px max(22px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
}

.name-row {
  margin-bottom: 20px;
}

.name-row h1 {
  font-family: var(--display);
  font-size: clamp(3.6rem, 17vw, 4.7rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.86;
}

.exclusive-link {
  display: grid;
  min-height: 60px;
  align-items: center;
  grid-template-columns: 1fr 20px;
  gap: 12px;
  padding: 14px 18px;
  color: white;
  background: var(--black);
  border: 1px solid var(--black);
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.locked-cta {
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lock-icon,
.link-chevron {
  width: 20px;
  height: 20px;
}

.lock-icon {
  opacity: 0.78;
}

.link-list {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.social-row {
  display: grid;
  min-height: 58px;
  align-items: center;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 120ms ease, padding 120ms ease;
}

.platform-icon {
  width: 23px;
  height: 23px;
}

.minimal-footer {
  display: flex;
  min-height: 44px;
  align-items: flex-end;
  justify-content: flex-end;
  margin-top: 16px;
}

.minimal-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font-size: 0.75rem;
  text-underline-offset: 3px;
}

.social-row[data-pending="true"],
.age-confirm[data-pending="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.age-dialog {
  width: min(calc(100% - 24px), 420px);
  max-height: calc(100svh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  margin: auto auto max(12px, env(safe-area-inset-bottom));
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: white;
  border: 0;
  background: transparent;
}

.age-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
}

.age-dialog.is-open {
  position: fixed;
  z-index: 100;
  inset: auto 12px max(12px, env(safe-area-inset-bottom));
  display: block;
}

.age-card {
  padding: 28px 24px 22px;
  color: white;
  border: 1px solid #36363b;
  border-radius: 18px;
  background: var(--charcoal);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

[data-dialog-heading]:focus {
  outline: none;
}

.age-card h2,
.age-page-panel h1 {
  font-size: clamp(2rem, 9vw, 2.65rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.age-card h2 {
  margin-top: 0;
}

.age-page-panel h1 {
  margin-top: 28px;
}

.inner-lead {
  margin-top: 14px;
  color: #d6d2cc;
  font-size: 0.94rem;
  line-height: 1.55;
}

.age-actions {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.age-confirm,
.age-decline {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.age-confirm {
  color: var(--ink);
  border: 1px solid var(--paper);
  background: var(--paper);
}

.age-decline {
  color: white;
  border: 1px solid #45454b;
  background: transparent;
  cursor: pointer;
}

.inner-stage {
  align-items: start;
}

.inner-shell,
.text-shell {
  width: min(100%, 760px);
  min-height: 100vh;
  min-height: 100svh;
  background: var(--paper);
}

.inner-photo {
  height: 270px;
  overflow: hidden;
  background: var(--black);
}

.inner-photo picture,
.inner-photo img {
  width: 100%;
  height: 100%;
}

.inner-photo img {
  object-fit: cover;
  object-position: 50% 30%;
}

.inner-panel {
  padding: 26px max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}

.brand-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink);
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
  text-decoration: none;
}

.age-page-panel h1 {
  color: var(--ink);
}

.standalone-confirm {
  margin-top: 24px;
  color: white;
  border-color: var(--black);
  background: var(--black);
}

.standalone-decline {
  margin-top: 8px;
  color: var(--ink);
  border-color: var(--line);
}

.inner-footer {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.text-shell {
  padding-bottom: max(32px, env(safe-area-inset-bottom));
}

.text-header {
  display: flex;
  min-height: 112px;
  align-items: flex-end;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 20px max(24px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
}

.text-content {
  padding: 32px max(24px, env(safe-area-inset-right)) 24px max(24px, env(safe-area-inset-left));
}

.text-content h1 {
  font-size: clamp(2.5rem, 12vw, 4rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.text-content h2 {
  margin-top: 30px;
  font-size: 1rem;
}

.text-content h2 + p,
.text-content ul {
  margin-top: 9px;
}

.text-content p,
.text-content li {
  color: #494541;
  font-size: 0.92rem;
  line-height: 1.65;
}

.text-content ul {
  display: grid;
  gap: 5px;
  padding-left: 20px;
}

.back-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  margin-top: 30px;
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 4px;
}

.not-found-content {
  padding-top: 64px;
}

.error-code {
  color: #aaa39a;
  font-size: 0.84rem;
  font-weight: 700;
}

.return-link {
  grid-template-columns: 1fr 20px;
  margin-top: 28px;
}

@media (hover: hover) and (pointer: fine) {
  .exclusive-link:hover,
  .standalone-confirm:hover {
    color: white;
    background: #2a2a2e;
    transform: translateY(-1px);
  }

  .social-row:hover {
    padding-right: 4px;
    padding-left: 4px;
    color: var(--violet);
  }

  .minimal-footer a:hover,
  .back-link:hover {
    color: var(--violet);
  }
}

@media (min-width: 800px) {
  .page-stage {
    padding: 32px;
    place-items: center;
  }

  .profile-shell {
    display: grid;
    width: min(100%, 1000px);
    min-height: 660px;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 420px);
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  }

  .profile-photo {
    height: 100%;
    min-height: 660px;
    aspect-ratio: auto;
  }

  .profile-photo img {
    object-position: 50% 50%;
  }

  .profile-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px 44px 38px;
  }

  .name-row {
    margin-bottom: 28px;
  }

  .name-row h1 {
    font-size: 5rem;
  }

  .link-list {
    margin-top: 30px;
  }

  .minimal-footer {
    margin-top: 28px;
  }

  .age-dialog {
    inset: 0;
    margin: auto;
  }

  .inner-stage {
    align-items: center;
  }

  .inner-shell {
    display: grid;
    width: min(100%, 820px);
    min-height: 600px;
    grid-template-columns: 380px 1fr;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  }

  .inner-photo {
    height: 100%;
  }

  .inner-photo img {
    object-position: 50% 50%;
  }

  .inner-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 42px;
  }

  .text-shell {
    width: min(100%, 720px);
    min-height: auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  }
}

@media (max-width: 359px) {
  .profile-links {
    padding-right: max(18px, env(safe-area-inset-right));
    padding-left: max(18px, env(safe-area-inset-left));
  }

  .name-row h1 {
    font-size: 3.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .exclusive-link,
  .social-row,
  .age-card,
  .age-confirm,
  .age-decline {
    border: 2px solid ButtonText;
  }
}
