/* =============================================================================
   Erika — Link in Bio
   Edit the variables in :root below to re-theme the page.
   ============================================================================= */

:root {
  /* Colors */
  --color-accent-online: #22c55e;
  --btn-bg:              rgba(255, 255, 255, 0.12);
  --btn-bg-hover:        rgba(255, 255, 255, 0.18);
  --btn-border:          rgba(255, 255, 255, 0.18);
  --btn-text:            #ffffff;
  --overlay-top:         rgba(0, 0, 0, 0);
  --overlay-bottom:      rgba(0, 0, 0, 0.85);
  --modal-bg:            #0f0f0f;
  --modal-text:          #ffffff;
  --cta-glow:            34, 197, 94;   /* RGB of the accent, used inside rgba() */

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container-max-width: 440px;
  --radius-btn:   14px;
  --radius-modal: 20px;
  --radius-thumb: 10px;
  --gap-btn:      12px;
  --pad-x:        20px;
  --pad-top:      40px;
}

/* -------------------------------------------------------------------------
   Reset
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  color: var(--btn-text);
  background: #000;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; }
button { font: inherit; color: inherit; }

/* -------------------------------------------------------------------------
   Background layer (full-screen photo + vertical dark gradient)
   ------------------------------------------------------------------------- */
.bg {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--overlay-top) 0%, var(--overlay-bottom) 100%),
    url('../assets/bg.jpg') center / cover no-repeat #1a1a1a;
  z-index: -1;
}

/* -------------------------------------------------------------------------
   Container
   ------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--pad-top) var(--pad-x) 24px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  text-align: center;
  margin-bottom: 28px;
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  opacity: 0;
  animation: fadeIn 500ms ease-out 0ms forwards;
}

.hero__bio {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  opacity: 0;
  animation: fadeIn 500ms ease-out 80ms forwards;
}

.hero__arrow {
  display: inline-block;
  margin-left: 2px;
  animation: bounce 2s ease-in-out infinite;
  animation-delay: 800ms;   /* let the fade-in settle before bouncing */
}

/* -------------------------------------------------------------------------
   Links — full-photo cards (aspect matches the supplied photos)
   ------------------------------------------------------------------------- */
.links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-btn);
  margin-top: 4px;
}

.link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;

  background: #1a1a1a;              /* fallback while img loads */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-btn);
  overflow: hidden;
  color: var(--btn-text);

  font-family: var(--font-body);
  font-size: 15px;
  text-align: left;
  text-decoration: none;

  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease;

  opacity: 0;
  animation: fadeIn 500ms ease-out forwards;
}

.link:nth-child(1) { animation-delay: 240ms; }
.link:nth-child(2) { animation-delay: 320ms; }
.link:nth-child(3) { animation-delay: 400ms; }
.link:nth-child(4) { animation-delay: 480ms; }

.link:hover,
.link:focus-visible {
  transform: scale(1.02);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.link:active { transform: scale(0.99); }

/* Photo as card background */
.link__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* Dark gradient at the bottom for text legibility */
.link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.25) 40%,
    rgba(0, 0, 0, 0) 65%
  );
  pointer-events: none;
  z-index: 1;
}

.link__label {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;

  font-size: 16px;
  font-weight: 700;
  color: var(--btn-text);
  line-height: 1.2;
  letter-spacing: 0.005em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

/* CTA — OnlyFans */
.link--cta {
  border-color: transparent;
  box-shadow:
    0 0 0 2px rgba(var(--cta-glow), 0.55),
    0 0 28px rgba(var(--cta-glow), 0.28);
}

.link--cta:hover,
.link--cta:focus-visible {
  box-shadow:
    0 0 0 2px rgba(var(--cta-glow), 0.75),
    0 0 36px rgba(var(--cta-glow), 0.42);
}

.link__dot {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent-online);
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.5),
    0 0 12px rgba(var(--cta-glow), 0.9);
  animation: pulse 1.5s ease-in-out infinite;
}

/* Decoy X — shake inner content without resetting the card fade-in state */
.link--decoy.shake .link__bg,
.link--decoy.shake .link__label {
  animation: shake 300ms ease;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.footer {
  margin-top: auto;
  padding-top: 32px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  animation: fadeIn 500ms ease-out 560ms forwards;
}

.footer a { text-decoration: none; }
.footer a:hover,
.footer a:focus-visible { text-decoration: underline; }

/* -------------------------------------------------------------------------
   +18 gate modal
   ------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] { display: none; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  animation: fadeIn 200ms ease-out forwards;
}

.modal__card {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 28px 24px 24px;
  background: var(--modal-bg);
  color: var(--modal-text);
  border-radius: var(--radius-modal);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(12px);
  animation: modalIn 250ms ease-out 50ms forwards;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
}

.modal__desc {
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.85;
  margin-bottom: 22px;
}

.modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal__btn {
  padding: 13px 16px;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease;
}

.modal__btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 2px;
}

.modal__btn--primary {
  background: var(--color-accent-online);
  color: #052712;
}

.modal__btn--primary:hover,
.modal__btn--primary:focus-visible {
  background: #16a34a;
  color: #ffffff;
}

.modal__btn--primary:active { transform: scale(0.98); }

.modal__btn--secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.modal__btn--secondary:hover,
.modal__btn--secondary:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

/* Lock background scroll while modal is open */
body.is-modal-open { overflow: hidden; }

/* -------------------------------------------------------------------------
   Animations
   ------------------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.28); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-3px); }
  40%      { transform: translateX(3px); }
  60%      { transform: translateX(-2px); }
  80%      { transform: translateX(2px); }
}

@keyframes modalIn {
  to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------------------
   Responsive tweaks
   ------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .container  { padding-top: 60px; }
  .hero__name { font-size: 38px; }
}

@media (min-width: 1440px) {
  .container { padding-top: 80px; }
}

/* -------------------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__name,
  .hero__bio,
  .link,
  .footer {
    opacity: 1 !important;
    transform: none !important;
  }
}
