:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #e8d2df;
  color: #251d23;
  --ink: #251d23;
  --muted: #7c6e76;
  --pink: #bd5e91;
  --pink-light: #f4ddea;
  --line: rgba(55, 36, 47, 0.12);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.74), transparent 28rem),
    radial-gradient(circle at 82% 88%, rgba(190,91,145,.24), transparent 30rem),
    linear-gradient(145deg, #f2e5ec, #dbc1d1);
}

.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(1.25rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
}

.profile-card {
  width: min(100%, 27rem);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 2rem;
  background: rgba(255,255,255,.92);
  box-shadow: 0 2rem 5rem rgba(69, 38, 55, .18);
}

.cover {
  position: relative;
  height: 11.25rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.34), transparent 45%),
    linear-gradient(150deg, #edb8d4 0%, #bf6c9b 46%, #62405a 100%);
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45,24,36,.20), transparent 55%);
}

.cover-glow {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(1px);
  background: rgba(255,255,255,.22);
}

.cover-glow-one { width: 12rem; height: 12rem; top: -6rem; right: -2rem; }
.cover-glow-two { width: 8rem; height: 8rem; bottom: -5rem; left: -1rem; background: rgba(255,219,239,.34); }

.cover-word {
  position: absolute;
  z-index: 1;
  right: 1.3rem;
  bottom: -.55rem;
  color: rgba(255,255,255,.22);
  font: italic 400 5.3rem/1 Georgia, "Times New Roman", serif;
  letter-spacing: -.08em;
}

.profile-content {
  position: relative;
  padding: 3.6rem 1.25rem 1.4rem;
  text-align: center;
}

.avatar {
  position: absolute;
  top: -3.1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 6.2rem;
  height: 6.2rem;
  display: grid;
  place-items: center;
  border: .35rem solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #f2bfd9, #a64f81);
  color: #fff;
  font: italic 400 2.65rem/1 Georgia, "Times New Roman", serif;
  box-shadow: 0 .8rem 2rem rgba(82,44,65,.20);
}

.eyebrow {
  margin: 0 0 .35rem;
  color: #9a8691;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .18em;
}

h1 {
  margin: 0;
  font: 500 2rem/1.1 Georgia, "Times New Roman", serif;
  letter-spacing: -.03em;
}

.handle {
  margin: .3rem 0 0;
  color: var(--muted);
  font-size: .88rem;
}

.bio {
  margin: 1.05rem 0 1.45rem;
  color: #554851;
  font-size: 1rem;
}

.link-card {
  width: 100%;
  min-height: 4.65rem;
  display: grid;
  grid-template-columns: 2.65rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .85rem;
  padding: .75rem .95rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: linear-gradient(135deg, #fff, #fdf8fb);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 .55rem 1.4rem rgba(75,43,60,.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(189,94,145,.25);
  box-shadow: 0 .85rem 1.8rem rgba(75,43,60,.12);
}

.link-card:focus-visible,
.modal-button:focus-visible {
  outline: 3px solid rgba(189,94,145,.38);
  outline-offset: 3px;
}

.link-icon {
  width: 2.65rem;
  height: 2.65rem;
  display: grid;
  place-items: center;
  border-radius: .85rem;
  background: var(--pink-light);
  color: #a94778;
  font-size: 1.25rem;
}

.link-copy { min-width: 0; }
.link-copy strong { display: block; font-size: .98rem; }
.link-copy small { display: block; margin-top: .18rem; color: var(--muted); font-size: .78rem; }

.age-badge {
  padding: .35rem .5rem;
  border-radius: 999px;
  background: #2a2027;
  color: #fff;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .04em;
}

.browser-hint {
  margin: .85rem .25rem 0;
  color: #745f6b;
  font-size: .78rem;
  line-height: 1.5;
}

.privacy-note {
  margin: 1.3rem 0 0;
  color: #a08e98;
  font-size: .72rem;
}

.footer {
  margin: 1rem 0 0;
  color: rgba(54,37,47,.62);
  font-size: .72rem;
}

.modal-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(29, 22, 27, .58);
  backdrop-filter: blur(14px);
}

.age-dialog {
  width: min(100%, 25rem);
  padding: 1.55rem;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 1.5rem;
  background: rgba(255,255,255,.97);
  text-align: center;
  box-shadow: 0 2rem 5rem rgba(22,14,19,.30);
}

.age-symbol {
  width: 3.6rem;
  height: 3.6rem;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2a2027;
  color: #fff;
  font: 700 .95rem/1 Inter, sans-serif;
}

.modal-eyebrow {
  margin: 0 0 .4rem;
  color: #9b7c8d;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .16em;
}

.age-dialog h2 {
  margin: 0;
  font: 500 1.65rem/1.15 Georgia, "Times New Roman", serif;
}

.age-dialog > p:not(.modal-eyebrow) {
  margin: .8rem auto 1.35rem;
  max-width: 19rem;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.55;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
}

.modal-button {
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.modal-button.secondary { background: #fff; color: var(--ink); }
.modal-button.primary { border-color: #2a2027; background: #2a2027; color: #fff; }

.error-panel {
  width: min(100%, 25rem);
  padding: 2rem;
  border-radius: 1.5rem;
  background: #fff;
  text-align: center;
}

.error-panel p { color: var(--muted); }
[hidden] { display: none !important; }

@media (max-width: 34rem) {
  .page { justify-content: flex-start; padding: 0; background: #fff; }
  .profile-card { min-height: 100svh; border: 0; border-radius: 0; box-shadow: none; }
  .cover { height: 10.75rem; }
  .profile-content { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
  .footer { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .profile-card { animation: enter 420ms cubic-bezier(.2,.8,.2,1) both; }
  .age-dialog { animation: pop 220ms cubic-bezier(.2,.8,.2,1) both; }
  @keyframes enter { from { opacity: 0; transform: translateY(.5rem); } }
  @keyframes pop { from { opacity: 0; transform: translateY(.35rem) scale(.98); } }
}
