/* ap7.fun - Alivia. Black/gold look matching aliviaperez.com. Mobile first.
   Fonts are self-hosted (static/fonts/, latin subset, variable weight). */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

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

:root {
  --black: #080808;
  --white: #f5f0eb;
  --cream: #e8ddd0;
  --gold: #c9a96e;
  --gold-light: #e8c98a;
  --muted: #888;
  --border: rgba(255, 255, 255, 0.08);
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --page: 680px;
}

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

body {
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }

/* ── HERO ── */
.hero {
  position: relative;
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--black);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.75);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(8, 8, 8, 0) 30%,
    rgba(8, 8, 8, 0.4) 60%,
    rgba(8, 8, 8, 0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 28px calc(48px + env(safe-area-inset-bottom, 0px));
  padding-left: max(28px, env(safe-area-inset-left, 0px));
  padding-right: max(28px, env(safe-area-inset-right, 0px));
  max-width: 600px;
}

.hero-tag {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(56px, 12vw, 88px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -1px;
  color: var(--white);
}

.hero-name em,
.section-title em {
  font-style: italic;
  color: var(--cream);
}

.hero-bio {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 240, 235, 0.7);
  max-width: 380px;
}

/* ── BUTTON ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 16px 28px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.btn-primary {
  background: #229ED9; /* Telegram blue */
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 22px rgba(34, 158, 217, 0.45);
}

.btn-primary:hover { background: #2AABEE; transform: translateY(-1px); }
.btn-primary:active { background: #1c8bc2; transform: translateY(0); }
.btn-primary:focus-visible { outline: 2px solid #2AABEE; outline-offset: 3px; }

.hero .btn {
  margin-top: 28px;
  width: 100%;
  max-width: 340px;
}

.tg-icon { flex: none; }

/* ── SECTIONS ── */
.section {
  padding: 80px 28px;
  max-width: var(--page);
  margin: 0 auto;
}

.section-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 24px;
}

.about-text {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(245, 240, 235, 0.75);
}

.about-text p + p { margin-top: 18px; }

/* ── GALLERY ── */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-width: var(--page);
  margin: 0 auto;
}

.gallery-item {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.92);
  transition: transform 0.4s ease, filter 0.4s ease;
}

@media (hover: hover) {
  .gallery-item:hover img { transform: scale(1.04); filter: brightness(1); }
}

/* ── FOOTER ── */
.footer {
  max-width: var(--page);
  margin: 0 auto;
  padding: 40px 28px calc(40px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  margin-top: 64px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
}

@media (min-width: 681px) {
  .hero { min-height: 640px; max-height: 1000px; }
  .hero-content { padding-left: 48px; padding-right: 48px; }
  .section { padding-left: 48px; padding-right: 48px; }
}

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