/* Leia Baby · link page
   Lavender silk, candlelight. */

:root {
  --mist: #F3ECF7;      /* background, top */
  --veil: #E9DDF2;      /* background, bottom */
  --plum: #5B3A72;      /* primary text */
  --plum-deep: #4A2C5F; /* featured fill */
  --plum-soft: #75568A; /* secondary text, AA on mist */
  --lavender: #B79AD0;  /* rings, hairlines */
  --pearl: #D9D4E3;     /* metallic highlight */
  --candle: #FFF4E6;    /* warm glow */
  --card: rgba(255, 255, 255, .8);

  --serif-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;

  --ease: cubic-bezier(.22, .7, .25, 1);
  --radius: 16px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--veil);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--plum);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  background:
    radial-gradient(60% 38% at 50% 0%, var(--candle) 0%, rgba(255, 244, 230, 0) 100%),
    radial-gradient(90% 50% at 85% 100%, rgba(183, 154, 208, .38) 0%, rgba(183, 154, 208, 0) 70%),
    radial-gradient(70% 40% at 0% 70%, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, var(--mist) 0%, var(--veil) 100%);
  background-attachment: fixed;
}

/* Fine silk grain over everything, never intercepts taps */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .22;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .23 0 0 0 0 .45 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }

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

/* ------------------------------------------------------------------ */
/* Page column                                                         */
/* ------------------------------------------------------------------ */

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: max(44px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar {
  width: 128px;
  height: 128px;
  padding: 4px;
  border-radius: 50%;
  /* pearl ring with a silvery turn of light */
  background:
    conic-gradient(from 210deg, #fff 0deg, var(--pearl) 70deg, var(--lavender) 150deg, #fff 210deg, var(--pearl) 290deg, #fff 360deg);
  box-shadow:
    0 0 0 1px rgba(183, 154, 208, .55),
    0 14px 34px -14px rgba(91, 58, 114, .45),
    0 0 46px rgba(255, 244, 230, .9);
}

.avatar img {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--veil);
  border: 2px solid #fff;
}

.crown {
  display: block;
  margin: 26px 0 2px;
  color: #8E78A4;
}

.name {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(2.35rem, 11vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--plum);
  /* satin plum with a pearl sheen through the middle */
  background: linear-gradient(176deg, #6B4885 0%, #4A2C5F 38%, #8C6BA8 52%, #4A2C5F 66%, #5B3A72 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .9));
  /* Cinzel adds tracking after the last letter; balance it */
  padding-left: .06em;
}

.tagline {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  color: var(--plum-soft);
}

.note {
  margin: 10px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  padding-left: .24em;
  color: var(--plum-soft);
}

/* ------------------------------------------------------------------ */
/* Silk-thread divider                                                 */
/* ------------------------------------------------------------------ */

.flourish {
  display: block;
  width: 240px;
  max-width: 70%;
  height: auto;
  margin: 28px auto 30px;
  overflow: visible;
}

/* ------------------------------------------------------------------ */
/* Link plaques                                                        */
/* ------------------------------------------------------------------ */

nav { width: 100%; }

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.link {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 20px;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 16px 10px 10px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--plum);
  background: var(--card);
  /* framed plaque: outer hairline, white mat, inner pearl hairline */
  border: 1px solid rgba(183, 154, 208, .75);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, .9),
    inset 0 0 0 4px rgba(217, 212, 227, .9),
    0 8px 22px -16px rgba(91, 58, 114, .5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  -webkit-tap-highlight-color: transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.link__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--plum);
  background: radial-gradient(circle at 35% 30%, #fff 0%, #F1EAF6 55%, #E4D8EE 100%);
  box-shadow: inset 0 0 0 1px rgba(183, 154, 208, .55);
}
.link__icon svg { width: 20px; height: 20px; fill: currentColor; }

.link__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.link__label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.25;
}

.link__sub {
  margin-top: 2px;
  font-style: italic;
  font-size: 16px;
  letter-spacing: .01em;
  line-height: 1.2;
  color: var(--plum-soft);
}

.link__chev {
  width: 20px;
  height: 20px;
  color: var(--lavender);
  transition: transform .35s var(--ease), color .35s var(--ease);
}

@media (hover: hover) {
  .link:hover {
    transform: translateY(-2px);
    border-color: var(--lavender);
    box-shadow:
      inset 0 0 0 3px rgba(255, 255, 255, .95),
      inset 0 0 0 4px rgba(183, 154, 208, .7),
      0 14px 30px -16px rgba(91, 58, 114, .55),
      0 0 0 4px rgba(183, 154, 208, .14);
  }
  .link:hover .link__chev { transform: translateX(3px); color: var(--plum); }
}

.link:active {
  transform: translateY(0) scale(.99);
  transition-duration: .12s;
}

/* Featured: plum satin */
.link--featured {
  min-height: 72px;
  color: #FBF7FD;
  border-color: var(--plum-deep);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, #654181 0%, var(--plum-deep) 100%);
  box-shadow:
    inset 0 0 0 3px var(--plum-deep),
    inset 0 0 0 4px rgba(217, 212, 227, .45),
    0 16px 30px -14px rgba(74, 44, 95, .7);
  overflow: hidden;
}
.link--featured .link__icon {
  color: var(--plum-deep);
  background: radial-gradient(circle at 35% 30%, #fff 0%, #EEE8F4 50%, var(--pearl) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35);
}
.link--featured .link__label { font-size: 16px; }
.link--featured .link__sub { color: #E4D6EF; }
.link--featured .link__chev { color: var(--pearl); }

/* One pass of candlelight across the satin, after the page settles */
.link--featured::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
  transform: translateX(-110%);
}
html:not(.gate-on) .link--featured::after {
  animation: sheen 1.6s var(--ease) 1.3s 1 both;
}
@keyframes sheen { to { transform: translateX(110%); } }

@media (hover: hover) {
  .link--featured:hover {
    border-color: var(--plum-deep);
    box-shadow:
      inset 0 0 0 3px var(--plum-deep),
      inset 0 0 0 4px rgba(217, 212, 227, .7),
      0 20px 36px -14px rgba(74, 44, 95, .8),
      0 0 0 4px rgba(183, 154, 208, .22);
  }
  .link--featured:hover .link__chev { color: #fff; }
}

/* ------------------------------------------------------------------ */
/* 404 page                                                            */
/* ------------------------------------------------------------------ */

.page--center { justify-content: center; }

.name--small {
  font-size: clamp(1.6rem, 7vw, 1.9rem);
}

.note-plain {
  margin: 6px 0 0;
  font-size: 18px;
  color: var(--plum-soft);
}

.home-btn {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 320px;
  min-height: 56px;
  margin-top: 32px;
  border-radius: var(--radius);
  font: 600 15px/1 var(--serif);
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: #FBF7FD;
  border: 1px solid var(--plum-deep);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, #654181 0%, var(--plum-deep) 100%);
  box-shadow:
    inset 0 0 0 3px var(--plum-deep),
    inset 0 0 0 4px rgba(217, 212, 227, .45),
    0 16px 30px -14px rgba(74, 44, 95, .7);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
@media (hover: hover) {
  .home-btn:hover { transform: translateY(-2px); }
}
.home-btn:active { transform: scale(.99); }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.footer {
  margin-top: auto;
  padding-top: 40px;
  text-align: center;
}
.footer p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--plum-soft);
}

/* ------------------------------------------------------------------ */
/* Age gate                                                            */
/* ------------------------------------------------------------------ */

.gate { display: none; }

html.gate-on { overflow: hidden; }

html.gate-on .gate {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px 20px;
  background:
    radial-gradient(60% 40% at 50% 20%, rgba(255, 244, 230, .95) 0%, rgba(255, 244, 230, 0) 100%),
    linear-gradient(180deg, rgba(243, 236, 247, .97) 0%, rgba(233, 221, 242, .98) 100%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.gate.is-leaving {
  opacity: 0;
  transition: opacity .45s var(--ease);
}

.gate__panel {
  width: 100%;
  max-width: 360px;
  padding: 34px 26px 28px;
  text-align: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(183, 154, 208, .75);
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, .9),
    inset 0 0 0 5px rgba(217, 212, 227, .9),
    0 30px 60px -30px rgba(91, 58, 114, .55);
}

.gate__crown { display: block; margin: 0 auto 6px; color: #8E78A4; }

.gate__brand {
  margin: 0;
  font-family: var(--serif-display);
  font-size: 15px;
  letter-spacing: .24em;
  text-transform: uppercase;
  padding-left: .24em;
  color: var(--plum);
}

.gate__title {
  margin: 18px 0 6px;
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 28px;
  line-height: 1.2;
  color: var(--plum);
}

.gate__desc {
  margin: 0;
  font-size: 18px;
  color: var(--plum-soft);
}

.gate__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 26px;
}

.gate__btn {
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  font: 600 15px/1 var(--serif);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}

.gate__btn--enter {
  color: #FBF7FD;
  border: 1px solid var(--plum-deep);
  background: linear-gradient(180deg, #654181 0%, var(--plum-deep) 100%);
  box-shadow: inset 0 0 0 3px var(--plum-deep), inset 0 0 0 4px rgba(217, 212, 227, .45), 0 12px 24px -14px rgba(74, 44, 95, .8);
}

.gate__btn--leave {
  color: var(--plum);
  border: 1px solid rgba(183, 154, 208, .9);
  background: rgba(255, 255, 255, .6);
}

@media (hover: hover) {
  .gate__btn:hover { transform: translateY(-1px); }
  .gate__btn--leave:hover { background: #fff; }
}
.gate__btn:active { transform: scale(.98); }

/* ------------------------------------------------------------------ */
/* Load reveal: one quiet staggered rise                               */
/* ------------------------------------------------------------------ */

.reveal {
  animation: rise .9s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 90ms + 60ms);
}
html.gate-on .reveal { animation-play-state: paused; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

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

/* ------------------------------------------------------------------ */
/* Small phones                                                        */
/* ------------------------------------------------------------------ */

@media (max-width: 370px) {
  .page { padding-left: 16px; padding-right: 16px; }
  .link { gap: 12px; padding-right: 12px; }
  .link__label { font-size: 14px; letter-spacing: .13em; }
  .link--featured .link__label { font-size: 15px; }
}
