:root {
  --bg: #0f0d0b;
  --cream: #f3ead8;
  --gold: #c9a24a;
  --gold-bright: #f0d48a;
  --gold-deep: #b08a3e;
  --ink: #1c140c;
  --line: rgba(201, 162, 74, 0.72);
  --watermark: url("assets/watermark.svg");
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

html.age-ok .age-gate {
  display: none;
}

html.age-ok body.is-gated {
  overflow: visible;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--cream);
  font-family: Inter, system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-gated {
  overflow: hidden;
}

body::before,
.age-gate::before {
  content: "";
  pointer-events: none;
  background-image: var(--watermark);
  background-repeat: repeat;
  background-size: 300px 168px;
  opacity: 0.16;
}

body::before {
  position: fixed;
  z-index: 0;
  left: -30vmax;
  top: -30vmax;
  width: 160vmax;
  height: 160vmax;
  transform: rotate(-18deg);
}

::selection {
  background: var(--gold);
  color: var(--bg);
}

.page {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100% - 2rem - env(safe-area-inset-left) - env(safe-area-inset-right)));
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(2.75rem + env(safe-area-inset-top)) 0 calc(1.75rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fade-in 0.85s ease both;
}

.hero,
.links,
.disclosure {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar-ring {
  width: 7.75rem;
  height: 7.75rem;
  padding: 4px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(201, 162, 74, 0.14);
}

.avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
}

h1 {
  margin: 1.2rem 0 0.65rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.55rem, 11vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.tagline,
.topics {
  margin: 0;
  color: var(--cream);
}

.tagline {
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.45;
}

.mark {
  color: var(--gold);
  padding: 0 0.12em;
}

.topics {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
}

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 2.15rem;
  margin-bottom: 2rem;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 3.4rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  transition: transform 0.18s ease, filter 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
  color: var(--ink);
  background-image: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 46%, var(--gold-deep) 100%);
  border-color: #e7d199;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 230, 0.7),
    0 10px 26px rgba(0, 0, 0, 0.28);
  font-weight: 600;
}

.btn-outline {
  color: var(--cream);
  background: transparent;
  border-color: var(--line);
}

.icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

@media (hover: hover) {
  .btn-primary:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
  }

  .btn-outline:hover {
    background: rgba(201, 162, 74, 0.1);
    border-color: var(--gold);
    transform: translateY(-1px);
  }
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn-primary:active {
  filter: brightness(0.97);
}

.btn:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

.disclosure {
  width: 100%;
  margin-top: auto;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(201, 162, 74, 0.35);
  text-align: center;
}

.disclosure p {
  margin: 0;
  color: var(--cream);
  font-size: 5px;
  font-weight: 500;
  line-height: 1.5;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(1.5rem + env(safe-area-inset-top)) 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  overflow: hidden;
  background: var(--bg);
}

.age-gate[hidden] {
  display: none;
}

.age-gate::before {
  position: absolute;
  inset: -20%;
  z-index: 0;
  transform: rotate(-18deg);
}

.age-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-width: 100%;
  min-width: 0;
  text-align: center;
  animation: fade-in 0.8s ease both;
}

.age-mark {
  display: inline-block;
  margin: 0 0 1.35rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1;
  color: var(--cream);
}

#age-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.45rem, 5.4vw, 1.75rem);
  font-weight: 500;
  line-height: 1.35;
  text-wrap: balance;
  overflow-wrap: break-word;
  color: var(--cream);
}

.age-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.85rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page,
  .age-card {
    animation: none;
  }

  .btn {
    transition: none;
  }
}
