/* LMary52: greetings from the void.
   Deep night background with drifting sparkles, Mary's white wordmark and
   buttons are soft blobs of the void in a teal haze. */

:root {
  --void: #07011b;
  --void-2: #0e0630;
  --void-3: #170c45;
  --ink: #f4f1ff;
  --muted: #bdb5e0;
  --faint: #8a82b3;
  --line: #f4f1ff;
  --teal: #3cb8cb;        /* Mary's hair */
  --teal-deep: #1d7f92;
  --gold: #f7b940;        /* the star in her logo */
  --blue: #2a5bc0;        /* the swoosh */
  --display: "Shantell Sans", "Comic Sans MS", system-ui, sans-serif;
  --body: "Reddit Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(175deg, #0a002b 0%, var(--void) 45%, #03010a 100%) fixed;
  background-color: var(--void);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* scrollbar: a little blob of the void with a teal haze, like the buttons.
   The gutter is always reserved, so nothing shifts when it appears. */
html { scrollbar-gutter: stable; scrollbar-color: #2e1c78 #07011b; }
@supports selector(::-webkit-scrollbar) {
  html { scrollbar-color: auto; }
  ::-webkit-scrollbar { width: 14px; height: 14px; background: #07011b; }
  ::-webkit-scrollbar-track { background: #07011b; }
  ::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 12px;
    background: radial-gradient(140% 60% at 35% 20%, #2e1c78, #110740 75%) padding-box;
    box-shadow: inset 0 0 0 1px rgba(60, 184, 203, .28), inset 0 0 7px rgba(60, 184, 203, .3);
  }
  ::-webkit-scrollbar-thumb:hover { box-shadow: inset 0 0 0 1px rgba(60, 184, 203, .6), inset 0 0 9px rgba(60, 184, 203, .55); }
  ::-webkit-scrollbar-thumb:active { box-shadow: inset 0 0 0 1px var(--teal), inset 0 0 11px rgba(60, 184, 203, .75); }
  ::-webkit-scrollbar-corner { background: #07011b; }
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 8px 14px; background: var(--ink); color: var(--void); border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- sky ---------- */
#sky { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* ---------- icons (mask, so they take the text colour) ---------- */
.ico {
  display: inline-block;
  flex: none;
  width: 1.1em;
  height: 1.1em;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}

/* ---------- layout ---------- */
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
section { scroll-margin-top: 24px; }

/* ---------- hero ---------- */
.hero { display: grid; justify-items: center; text-align: center; padding: clamp(28px, 6vw, 56px) 0 8px; }
.hero__logo { width: min(520px, 92%); margin: 0 auto; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .55)); }
.hero__logo img { display: block; width: 100%; }
.hero__avatar { width: clamp(200px, 40vw, 300px); margin-top: clamp(-6px, -1vw, 0px); }
.hero__avatar img { display: block; width: 100%; image-rendering: auto; }
.hero__hello {
  margin: 6px 0 0;
  font: 600 clamp(26px, 4.6vw, 38px)/1.15 var(--display);
  letter-spacing: -.01em;
}
.hero__hello span { display: inline-block; }
.hero__sub { margin: 6px 0 0; font: 400 clamp(18px, 2.6vw, 22px)/1.4 var(--display); color: var(--muted); }

/* ---------- void blob buttons ----------
   Each button sits on a soft, slowly wobbling blob of the void, drawn as an
   SVG by script.js, in a faint teal haze that brightens on hover. */
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 20px; margin: 30px 0 0; padding: 0; list-style: none; }
.vb { position: relative; display: inline-grid; color: var(--ink); text-decoration: none; font: 600 16px/1.2 var(--display); isolation: isolate; }
/* fallback until the script has drawn the blob (or without JS) */
.vb::before { content: ""; position: absolute; inset: -2px -4px; z-index: -2; border-radius: 26px; background: radial-gradient(120% 150% at 32% 22%, #271868, #0d0530 70%); box-shadow: 0 0 16px rgba(60, 184, 203, .18); transition: opacity .3s; }
.vb.has-blob::before { opacity: 0; }
.vb__svg { position: absolute; inset: -8px -12px; z-index: -1; width: calc(100% + 24px); height: calc(100% + 16px); overflow: visible; pointer-events: none; }
.vb__label { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; }
.vb__label .ico { font-size: 19px; color: var(--teal); transition: transform .35s cubic-bezier(.3, 1.5, .5, 1); }
.vb--big .vb__label { padding: 18px 28px; }
.vb--big .vb__label .ico { font-size: 24px; }
.vb__t { display: grid; text-align: left; line-height: 1.2; }
.vb__t small { font: 400 13px/1.3 var(--body); color: var(--muted); }
.vb:hover .vb__label .ico, .vb:focus-visible .vb__label .ico { transform: rotate(-12deg) scale(1.15); }
.vb:focus-visible { outline: none; }
.vb:focus-visible .vb__label { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 20px; }
.vb__halo, .vb__glow { transition: opacity .45s ease; }
.vb__glow { opacity: 0; }
.vb:hover .vb__halo, .vb:focus-visible .vb__halo { opacity: .3; }
.vb:hover .vb__glow, .vb:focus-visible .vb__glow { opacity: 1; }

/* a drop of void drips off on hover */
.vb__drop { position: absolute; left: 62%; top: calc(100% - 4px); width: 10px; height: 12px; border-radius: 50% 50% 50% 50% / 62% 62% 42% 42%; background: #1a0f4d; opacity: 0; pointer-events: none; }
@keyframes drip {
  0% { opacity: 1; transform: translateY(-8px) scale(.3, .2); }
  35% { opacity: 1; transform: translateY(-2px) scale(.9, 1.2); }
  55% { opacity: 1; transform: translateY(2px) scale(1, 1.4); }
  90% { opacity: 1; transform: translateY(44px) scale(.8, 1); }
  100% { opacity: 0; transform: translateY(52px) scale(.6, .8); }
}
.vb.is-dripping .vb__drop { animation: drip 1.5s cubic-bezier(.5, 0, .7, 1) infinite; }

/* ---------- sparkle divider ---------- */
.divider { display: block; width: min(640px, 92%); height: 22px; margin: clamp(40px, 7vw, 64px) auto; color: var(--faint); }

/* ---------- home: page cards ---------- */
.label { margin: 0 0 18px; text-align: center; font: 600 15px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.links--pages { margin-top: 0; gap: 20px 22px; }
.links--pages .vb { min-width: 260px; }
@media (max-width: 560px) { .links--pages { display: grid; } .links--pages .vb { width: 100%; min-width: 0; } }

/* ---------- sub pages: top bar ---------- */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding: 18px 0 0; }
.top__logo { display: block; width: 170px; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .55)); transition: transform .18s ease; }
.top__logo img { display: block; width: 100%; height: auto; }
.top__logo:hover { transform: rotate(-2deg); }
.top__nav { display: flex; flex-wrap: wrap; gap: 2px 18px; margin: 0; padding: 0; list-style: none; font: 500 16px/1.3 var(--display); }
.top__nav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 2px; color: var(--muted); text-decoration: none; }
.top__nav .ico { font-size: 15px; color: var(--gold); }
.top__nav a:hover { color: var(--ink); }
.top__nav a[aria-current="page"] { color: var(--ink); text-decoration: underline wavy var(--teal) 1.5px; text-underline-offset: 7px; }
@media (max-width: 700px) {
  .top { justify-content: center; }
  .top__nav { justify-content: center; gap: 0 14px; font-size: 15px; }
}
.top + main .head { margin-top: clamp(32px, 6vw, 56px); }

/* ---------- coming soon ---------- */
.soon { display: grid; justify-items: center; gap: 4px; text-align: center; }
.soon img { width: 180px; height: auto; opacity: .9; }
.soon p { margin: 0; max-width: 460px; color: var(--muted); font-size: 18px; }
.soon__tag { margin-top: 14px !important; padding: 6px 16px; border: 1.5px dashed var(--faint); border-radius: 10px; font: 600 15px/1.3 var(--display) !important; color: var(--gold) !important; }

/* ---------- section heads ---------- */
.head { text-align: center; margin-bottom: 26px; }
.head h1 { margin: 0; font: 700 clamp(30px, 5vw, 44px)/1.1 var(--display); letter-spacing: -.01em; }
.head h1 .star { display: inline-block; width: .55em; height: .55em; margin: 0 .3em; vertical-align: .12em; background: var(--gold); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.head p { max-width: 560px; margin: 10px auto 0; color: var(--muted); }

/* ---------- gallery ---------- */
.gallery { columns: 4 200px; column-gap: 16px; margin-top: 34px; }
.tile {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: 2px solid rgba(244, 241, 255, .22);
  border-radius: 14px;
  background: var(--void-3);
  overflow: hidden;
  cursor: zoom-in;
  break-inside: avoid;
  transition: border-color .18s ease, transform .18s ease;
}
.tile img { display: block; width: auto; max-width: 100%; max-height: 440px; height: auto; margin-inline: auto; }
.tile:hover, .tile:focus-visible { border-color: var(--teal); transform: rotate(-.6deg) scale(1.01); }
.tile:nth-child(even):hover, .tile:nth-child(even):focus-visible { transform: rotate(.6deg) scale(1.01); }
@media (prefers-reduced-motion: reduce) { .tile:hover, .tile:focus-visible, .tile:nth-child(even):hover { transform: none; } }

/* ---------- lightbox ---------- */
.lb {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(4, 1, 16, .97);
  color: var(--ink);
}
html:has(.lb[open]) { overflow: hidden; }
.lb::backdrop { background: transparent; }
.lb[open] { display: grid; grid-template-rows: 1fr auto; }
.lb__stage { display: grid; place-items: center; min-height: 0; padding: 56px 64px 8px; }
.lb__stage img { max-width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; border-radius: 6px; }
.lb__bar { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 10px 16px 18px; font: 500 15px/1.4 var(--display); color: var(--muted); }
.lb__btn {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: url(/assets/img/edge-2.svg) center / 100% 100% no-repeat, var(--void-2);
  color: var(--ink);
  cursor: pointer;
}
.lb__btn .ico { font-size: 18px; }
.lb__btn:hover { background: url(/assets/img/edge-2.svg) center / 100% 100% no-repeat, var(--teal); color: var(--void); }
.lb__close { position: absolute; top: 12px; right: 12px; }
@media (max-width: 600px) { .lb__stage { padding: 60px 12px 4px; } }

/* ---------- credits ---------- */
.credits { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.credit {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 2px solid rgba(244, 241, 255, .22);
  border-radius: 16px;
  background: var(--void-2);
  overflow: hidden;
}
.credit__pics { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; aspect-ratio: 1; background: var(--void-3); }
.credit__pics img { width: 100%; height: 100%; object-fit: cover; }
.credit__pics--contain img { object-fit: contain; padding: 10px; }
.credit__t { display: grid; gap: 2px; padding: 12px 14px 14px; }
.credit__what { font: 600 17px/1.25 var(--display); }
.credit__who { display: inline-flex; align-items: center; gap: 6px; width: max-content; max-width: 100%; color: var(--teal); font-weight: 500; text-decoration: none; }
.credit__who .ico { font-size: 12px; }
.credit__who:hover { text-decoration: underline wavy 1.5px; text-underline-offset: 5px; }

/* ---------- footer ---------- */
.foot { display: grid; justify-items: center; gap: 16px; padding: 0 0 44px; text-align: center; color: var(--faint); font-size: 14px; }
.foot .divider { margin-bottom: 8px; }
.foot__socials { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.foot__socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; color: var(--muted); }
.foot__socials a:hover { background: var(--void-3); color: var(--teal); }
.foot__socials .ico { font-size: 19px; }
.foot p { margin: 0; }

/* =====================================================================
   Motion. Everything below switches off for "reduce motion" users.
   ===================================================================== */

/* page to page: a soft cross-fade, and the logo glides between its two spots */
@view-transition { navigation: auto; }
.hero__logo img, .top__logo img { view-transition-name: logo; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
::view-transition-group(logo) { animation-duration: .5s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }

/* in-page navigation (script.js) in browsers without view transitions */
body > :not(#sky) { transition: opacity .2s ease; }
.is-leaving body > :not(#sky) { opacity: 0; }
h1[tabindex="-1"]:focus { outline: none; }

/* home: things arrive one after another */
@keyframes drop-in {
  0% { opacity: 0; transform: translateY(-28px) rotate(-4deg) scale(.94); }
  60% { opacity: 1; transform: translateY(4px) rotate(1deg) scale(1.01); }
  100% { opacity: 1; transform: none; }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop-in {
  0% { opacity: 0; transform: scale(.6) rotate(-6deg); }
  70% { opacity: 1; transform: scale(1.06) rotate(1.5deg); }
  100% { opacity: 1; transform: rotate(var(--tilt, 0deg)); }
}
.hero__logo { animation: drop-in .9s cubic-bezier(.3, 1.2, .5, 1) both; }
.hero__avatar { animation: rise-in .8s .25s ease-out both; }
.hero__hello { animation: rise-in .6s .45s ease-out both; }
.hero__sub { animation: rise-in .6s .55s ease-out both; }
.hero ~ main .links > li { animation: pop-in .5s calc(.65s + var(--n, 0) * 70ms) cubic-bezier(.3, 1.4, .5, 1) both; }
.top + main .head h1 { animation: rise-in .5s .05s ease-out both; }
.top + main .head p, .top + main .head + .links { animation: rise-in .5s .15s ease-out both; }

/* the avatar drifts in the void */
@keyframes drift {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -10px; rotate: -1.2deg; }
}
.hero__avatar img, .soon img { animation: drift 6s ease-in-out infinite; }

/* little stars next to headings twinkle */
@keyframes twinkle {
  0%, 100% { scale: 1; rotate: 0deg; opacity: 1; }
  50% { scale: .7; rotate: 45deg; opacity: .7; }
}
.head h1 .star { animation: twinkle 3.2s ease-in-out infinite; }
.head h1 .star:last-child { animation-delay: -1.6s; }

/* logo wiggles when you point at it */
@keyframes wiggle {
  0%, 100% { rotate: 0deg; }
  25% { rotate: -3deg; }
  75% { rotate: 2deg; }
}
.hero__logo:hover img, .top__logo:hover img { animation: wiggle .5s ease-in-out; }

/* gallery tiles and credit cards float up as they scroll into view */
.js .reveal { opacity: 0; translate: 0 22px; transition: opacity .55s ease, translate .55s cubic-bezier(.2, .9, .3, 1); transition-delay: calc(var(--n, 0) * 60ms); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }
.credit { transition: transform .2s ease, border-color .2s ease; }
.credit:hover { transform: translateY(-4px) rotate(-.8deg); border-color: var(--teal); }
.credits li:nth-child(even).credit:hover { transform: translateY(-4px) rotate(.8deg); }

/* lightbox: the picture zooms in */
@keyframes zoom-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.lb[open] .lb__stage img { animation: zoom-in .25s ease-out; }
.lb[open] { animation: rise-in .2s ease-out; }

/* sparkles burst from a clicked button (made in script.js) */
.burst { position: fixed; z-index: 60; width: 12px; height: 12px; margin: -6px 0 0 -6px; pointer-events: none; background: var(--gold); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
  .credit:hover, .credits li:nth-child(even).credit:hover { transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
