@font-face {
  font-family: "Italianno";
  src: url("/assets/italianno.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* { box-sizing: border-box; }

:root {
  color-scheme: dark;
  --ink: rgba(255, 255, 255, .98);
  --muted: rgba(255, 255, 255, .74);
  --glass: rgba(28, 22, 30, .42);
  --glass-hover: rgba(43, 32, 43, .56);
  --line: rgba(255, 255, 255, .68);
  --focus: #ffd4a8;
}

html { min-height: 100%; background: #050507; }

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #050507;
  background-attachment: fixed;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

.preview-badge {
  position: absolute;
  z-index: 10;
  top: max(10px, env(safe-area-inset-top));
  left: 12px;
  padding: 5px 8px 4px;
  border: 1px solid rgba(255, 190, 122, .72);
  border-radius: 999px;
  color: #ffe2c2;
  background: rgba(96, 45, 18, .74);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .34);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1;
  pointer-events: none;
}

.stage {
  position: relative;
  isolation: isolate;
  width: min(100%, 480px);
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: #0b0b0e;
  box-shadow: 0 28px 100px rgba(0, 0, 0, .42);
}

.hero {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1);
  transform-origin: 50% 0%;
  animation: photo-breath 20s ease-in-out infinite alternate;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-mask-image: none;
  mask-image: none;
  user-select: none;
  -webkit-user-drag: none;
}

@keyframes photo-breath {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

html[data-breath-preview="exhale"] .hero {
  animation: none;
  transform: scale(1);
}

html[data-breath-preview="inhale"] .hero {
  animation: none;
  transform: scale(1.04);
}

.shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, .32) 0%,
    rgba(0, 0, 0, .10) 18%,
    rgba(0, 0, 0, 0) 38%,
    rgba(0, 0, 0, 0) 62%,
    rgba(0, 0, 0, .11) 82%,
    rgba(0, 0, 0, .32) 100%
  );
}

.browser-helper {
  position: absolute;
  z-index: 4;
  top: max(22px, env(safe-area-inset-top));
  right: 18px;
  pointer-events: none;
  transition: opacity .4s ease;
}

.browser-chip-surface {
  position: relative;
  display: grid;
  isolation: isolate;
  width: 66px;
  height: 51px;
  grid-template-rows: 13px 1fr;
  align-items: start;
  justify-items: center;
  padding: 6px 7px 5px;
  border: 0;
  border-radius: 11px;
  color: rgba(255, 255, 255, .62);
  background: transparent;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 12px;
  text-align: center;
  white-space: nowrap;
}

.browser-chip-surface::before {
  position: absolute;
  z-index: -1;
  top: -7px;
  left: 0;
  width: 66px;
  height: 59px;
  background: url('/assets/browser-helper-surface.svg') no-repeat 0 0 / 66px 59px;
  filter: drop-shadow(0 5px 9px rgba(0, 0, 0, .18));
  content: "";
}

.browser-chip-surface > span {
  position: relative;
  z-index: 2;
}

.browser-chip-top {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.overflow-glyph {
  display: inline-grid;
  width: 10px;
  height: 13px;
  place-items: center;
  font-size: 14px;
  line-height: 10px;
}


.content {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  padding:
    max(30px, calc(env(safe-area-inset-top) + 22px))
    clamp(18px, 5vw, 26px)
    max(16px, calc(env(safe-area-inset-bottom) + 16px));
}

.identity {
  margin: 0 auto;
  transform: translateY(-7px);
  text-align: center;
  text-shadow: 0 2px 28px rgba(0, 0, 0, .55);
}

.identity h1 {
  margin: 0;
  font-family: "Italianno", cursive;
  font-size: clamp(38px, 10vw, 44px);
  font-style: normal;
  font-weight: 400;
  letter-spacing: .015em;
  margin-right: -.015em;
  line-height: .85;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .45);
}

.identity p {
  margin: 6px auto 0;
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.35;
}

.lower-content {
  width: 100%;
  margin-top: auto;
  transform: translateY(4px);
}

.lower-note {
  position: relative;
  isolation: isolate;
  margin: 0 auto 11px;
  color: rgba(255, 255, 255, .68);
  font-family: ui-serif, Georgia, serif;
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: .012em;
  line-height: 1.5;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .72);
}

.lower-note::before {
  position: absolute;
  z-index: -1;
  inset: -10px -24px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, .15) 48%, transparent 76%);
  content: "";
  pointer-events: none;
}

.patreon-links {
  display: grid;
  width: min(var(--mia-control-width), calc(100% - 48px));
  gap: 8px;
  margin: 0 auto;
}

.cta-link {
  position: relative;
  display: grid;
  isolation: isolate;
  width: 100%;
  height: var(--mia-control-height);
  min-height: var(--mia-control-height);
  grid-template-columns: 34px 1fr 34px;
  gap: 0;
  align-items: center;
  padding: 0 9px;
}

.patreon-link {
  overflow: hidden;
  border: 1px solid var(--mia-control-border);
  border-radius: var(--mia-control-radius);
  background: rgba(14, 14, 17, .53);
  box-shadow: var(--mia-control-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(108%);
  backdrop-filter: blur(20px) saturate(108%);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.patreon-link::after {
  position: absolute;
  z-index: 0;
  inset: -1px;
  border: 1px solid rgba(255, 255, 255, 0);
  border-radius: inherit;
  background: rgba(255, 255, 255, 0);
  content: "";
  pointer-events: none;
  animation: patreon-ambient 9s cubic-bezier(.45, 0, .55, 1) infinite;
}

.patreon-link:nth-child(2)::after { animation-delay: -3.2s; }

@keyframes patreon-ambient {
  0%, 100% {
    border-color: rgba(255, 255, 255, 0);
    background-color: rgba(255, 255, 255, 0);
  }
  45%, 55% {
    border-color: rgba(255, 255, 255, .055);
    background-color: rgba(255, 255, 255, .012);
  }
}

.patreon-link:hover {
  border-color: rgba(255, 255, 255, .24);
  background-color: rgba(35, 31, 32, .42);
  transform: translateY(-1px);
}

.patreon-link:hover::after { animation-play-state: paused; }

.patreon-link:active { transform: scale(.992); }
.patreon-link[data-pending="true"],
.support-link[data-pending="true"],
.social-link[data-pending="true"] { cursor: default; }

.patreon-icon,
.patreon-arrow {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .58);
}

.patreon-icon { color: rgba(255, 255, 255, .76); transform: translateY(-1px); }
.patreon-icon svg { width: 21px; height: 21px; fill: currentColor; }
.patreon-link[aria-label^="Fansly"] .patreon-icon { color: #2699f4; }
.patreon-link[aria-label^="Fansly"] .patreon-icon img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.patreon-arrow { color: rgba(255, 255, 255, .64); font-size: 13px; font-weight: 300; line-height: 1; }

.patreon-label {
  position: relative;
  z-index: 1;
  text-align: center;
  color: rgba(255, 255, 255, .92);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.support-slot {
  display: grid;
  width: min(var(--mia-control-width), calc(100% - 48px));
  min-height: var(--mia-control-height);
  align-items: center;
  margin: 8px auto 0;
}

.support-link {
  overflow: hidden;
  border: 1px solid var(--mia-control-border);
  border-radius: var(--mia-control-radius);
  background: rgba(14, 14, 17, .53);
  box-shadow: var(--mia-control-shadow);
  color: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(20px) saturate(108%);
  backdrop-filter: blur(20px) saturate(108%);
  transition: color .16s ease-out, transform .16s ease-out;
}

.support-link:hover {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .92);
  transform: translateY(-1px);
}

.support-link:active { transform: scale(.992); }

.support-icon,
.support-arrow {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .70);
}

.support-arrow {
  color: rgba(255, 255, 255, .64);
  font-size: 13px;
  font-weight: 300;
  line-height: 1;
}

.support-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.support-label {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.label-text { position: relative; display: inline-block; }
.label-heart {
  position: absolute;
  top: 50%;
  left: 100%;
  display: block;
  width: .9em;
  height: .9em;
  margin-left: 6px;
  background: currentColor;
  -webkit-mask: url('/assets/heart.svg') center / contain no-repeat;
  mask: url('/assets/heart.svg') center / contain no-repeat;
  transform: translateY(-47%);
}
.heart-blue { color: #2699f4; }
.heart-white { color: rgba(255, 255, 255, .88); }
.heart-black { color: rgba(118, 118, 126, .78); }

.support-arrow {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .64);
  font-size: 13px;
  font-weight: 300;
  line-height: 1;
}

.social-links {
  display: flex;
  width: min(var(--mia-control-width), calc(100% - 48px));

  align-items: center;
  justify-content: space-between;
  margin: 8px auto 0;
  padding: 0;
}

.social-link {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, .80);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .5));
  transition: color .16s ease, transform .16s ease, background .16s ease;
}

.social-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  transform: translateY(-2px);
}

.social-link:active { transform: scale(.94); }
.social-link svg { width: 24.2px; height: 24.2px; fill: currentColor; }
.social-link.patreon svg { transform: scale(.98); }
.social-link.instagram svg { transform: scale(.98); }
.social-link.tiktok svg { transform: scale(.96); }
.social-link.youtube svg { transform: scale(1.04); }
.social-link.x svg { transform: scale(.82); }
.social-link.telegram svg { transform: translate(-1px, 1px) scale(.93); }
.social-link.instagram svg { fill: currentColor; }
.social-link.tiktok svg,
.social-link.youtube svg,
.social-link.telegram svg { opacity: .84; }
.social-link.instagram svg,
.social-link.x svg { opacity: 1; }

.load-error,
noscript {
  position: absolute;
  inset: auto 20px 18px;
  z-index: 4;
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  color: #ffd0d0;
  background: rgba(70, 8, 12, .84);
  text-align: center;
}

.load-error[hidden] { display: none; }

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

@media (min-width: 481px) {
  body { padding: 18px 0; }
  .stage {
    min-height: calc(100vh - 36px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 28px;
  }
  .content { min-height: calc(100vh - 38px); }
}

@media (max-width: 480px) and (max-height: 700px) {
  .content { padding-top: 66px; padding-bottom: 12px; }
  .identity h1 { font-size: 40px; }
  .identity p { margin-top: 8px; font-size: 13px; }
  .social-links { margin-top: 12px; }
}

@media (max-width: 480px) {
  .lower-content { transform: none; }
  .patreon-links,
  .support-slot,
  .social-links { width: min(var(--mia-control-width), calc(100% - 48px)); }
  .patreon-link { min-height: var(--mia-control-height); }
  .support-slot { min-height: var(--mia-control-height); margin-top: 8px; }
  .support-link { min-height: var(--mia-control-height); }
  .support-link::before { inset: 0; }
  .support-label { font-size: 13px; }
  .social-links {
    margin-top: 8px;
  }
  .social-link { width: 44px; height: 44px; }
}

@media (max-width: 480px) and (max-height: 640px) {
  .content { padding-top: 58px; padding-bottom: 10px; }
  .identity { margin-bottom: 12px; }
  .identity h1 { font-size: 38px; }
  .identity p { margin-top: 6px; font-size: 13px; }
  .lower-note { margin-bottom: 8px; font-size: 14px; }
  .patreon-links { gap: 8px; }
  .patreon-link { min-height: var(--mia-control-height); }
  .support-slot { min-height: var(--mia-control-height); margin-top: 8px; }
  .support-link { min-height: var(--mia-control-height); }
  .social-links { margin-top: 8px; }
}

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

  .hero,
  .patreon-link::after {
    animation: none !important;
  }

  .hero { transform: scale(1.02); }
}
