@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/playfair-regular.ttf") format("truetype");
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/playfair-italic.ttf") format("truetype");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/inter-medium.ttf") format("truetype");
}

:root {
  color-scheme: dark;
  --navy: #031529;
  --navy-deep: #010b17;
  --gold: #f7c85e;
  --gold-light: #ffe394;
  --gold-dark: #9a6511;
  --white: #f8f7f3;
  background: var(--navy);
  color: var(--white);
  font-family: Inter, Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--navy-deep);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 17%, rgb(248 197 83 / 10%), transparent 22%),
    radial-gradient(ellipse at 50% 55%, #062340 0%, transparent 52%),
    linear-gradient(118deg, #010b17 0%, #03182e 48%, #010c19 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  opacity: 0.035;
}

.pixel {
  display: none;
}

.ambient-light {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-light::before,
.ambient-light::after {
  position: absolute;
  width: 42vw;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgb(247 200 94 / 34%), transparent);
  filter: drop-shadow(0 0 8px rgb(247 200 94 / 45%));
}

.ambient-light::before {
  top: 48%;
  left: 18%;
  transform: rotate(-3deg);
}

.ambient-light::after {
  right: 15%;
  bottom: 8%;
  transform: rotate(2deg);
  opacity: 0.38;
}

.navbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  padding: 24px clamp(24px, 4vw, 72px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--gold);
  text-decoration: none;
  filter: drop-shadow(0 0 12px rgb(247 200 94 / 17%));
}

.brand span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(32px, 3vw, 51px);
  font-style: italic;
  line-height: 1.1;
  text-shadow: 0 0 18px rgb(249 196 68 / 22%);
}

.brand i {
  position: relative;
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 14px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-dark) 14%, var(--gold) 70%, transparent 100%);
  box-shadow: 0 0 8px rgb(247 200 94 / 50%);
}

.brand i::after {
  position: absolute;
  top: 50%;
  left: 43%;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--gold-light);
  border-radius: 50%;
  box-shadow: 0 0 5px 2px var(--gold), 0 0 15px 5px rgb(247 200 94 / 65%);
  transform: translate(-50%, -50%);
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  justify-content: center;
  padding: clamp(96px, 10.5vh, 112px) 5% clamp(46px, 7vh, 76px);
  text-align: center;
}

.hero-content {
  width: 100%;
  max-width: 1380px;
}

.portrait-ring {
  position: relative;
  width: clamp(214px, 17.6vw, 300px);
  aspect-ratio: 1;
  margin: 0 auto clamp(38px, 5.2vh, 60px);
  overflow: hidden;
  border: 4px solid var(--gold);
  border-radius: 50%;
  background: #092039;
  box-shadow:
    0 0 0 1px rgb(255 232 156 / 68%),
    0 0 18px rgb(247 190 59 / 70%),
    0 0 48px rgb(220 154 31 / 40%),
    0 22px 55px rgb(0 0 0 / 42%);
}

.portrait-ring::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  border-radius: inherit;
  box-shadow: inset 0 0 20px rgb(0 0 0 / 26%);
}

.profile-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: brightness(0.88) contrast(1.08) saturate(0.9);
  transform: scale(1.42);
}

h1 {
  margin: 0;
  color: var(--gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(52px, 5.7vw, 98px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-shadow:
    0 2px 0 #7d4e0a,
    0 0 13px rgb(247 200 94 / 22%),
    0 10px 24px rgb(0 0 0 / 52%);
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 430px;
  margin: clamp(26px, 3.4vh, 38px) auto 24px;
  color: var(--gold);
}

.ornament span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  box-shadow: 0 0 6px rgb(247 200 94 / 28%);
}

.ornament span:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.ornament svg {
  width: 28px;
  height: 28px;
  margin: 0 12px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  filter: drop-shadow(0 0 6px rgb(247 200 94 / 50%));
}

.hero-subtitle {
  margin: 0 auto clamp(28px, 4vh, 38px);
  color: var(--white);
  font-family: Arial, sans-serif;
  font-size: clamp(17px, 1.5vw, 27px);
  font-weight: 400;
  line-height: 1.5;
  text-shadow: 0 2px 12px rgb(0 0 0 / 65%);
}

.telegram-cta {
  position: relative;
  display: inline-flex;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 15px 42px;
  overflow: hidden;
  border: 2px solid #9e6710;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe18b 0%, #f7c45b 45%, #d89421 100%);
  box-shadow:
    0 0 0 3px #061a30,
    0 0 0 5px var(--gold),
    inset 0 1px 0 rgb(255 255 255 / 80%),
    inset 0 -3px 10px rgb(123 71 0 / 22%),
    0 0 24px rgb(247 183 47 / 54%),
    0 11px 30px rgb(0 0 0 / 45%);
  color: #03172b;
  font-size: clamp(17px, 1.2vw, 21px);
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.telegram-cta::before {
  position: absolute;
  inset: 4px;
  pointer-events: none;
  content: "";
  border: 1px solid rgb(255 245 204 / 72%);
  border-radius: inherit;
}

.telegram-cta svg {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.telegram-cta span {
  position: relative;
  z-index: 1;
}

.telegram-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-3px);
  box-shadow:
    0 0 0 3px #061a30,
    0 0 0 5px #ffdc77,
    inset 0 1px 0 rgb(255 255 255 / 90%),
    0 0 34px rgb(247 183 47 / 70%),
    0 15px 34px rgb(0 0 0 / 48%);
}

.telegram-cta:active {
  transform: translateY(0);
}

.telegram-cta:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 7px;
}

@media (max-width: 900px) {
  .hero {
    align-items: center;
    padding-top: 118px;
  }

  h1 {
    font-size: clamp(46px, 8.5vw, 72px);
  }
}

@media (max-width: 600px) {
  .navbar {
    padding: 19px 22px;
  }

  .brand span {
    font-size: 30px;
  }

  .brand i {
    margin-top: 10px;
  }

  .hero {
    align-items: flex-start;
    padding: 112px 22px 44px;
  }

  .portrait-ring {
    width: clamp(166px, 48vw, 210px);
    margin-bottom: 36px;
    border-width: 3px;
  }

  h1 {
    font-size: clamp(40px, 12vw, 58px);
    line-height: 1.02;
  }

  .ornament {
    width: 78%;
    margin: 25px auto 19px;
  }

  .hero-subtitle {
    max-width: 350px;
    margin-bottom: 30px;
    font-size: 16px;
  }

  .telegram-cta {
    min-height: 60px;
    gap: 13px;
    padding: 13px 27px;
    font-size: 16px;
  }

  .telegram-cta svg {
    width: 29px;
    height: 29px;
  }
}

@media (max-height: 720px) and (min-width: 601px) {
  .hero {
    padding-block: 86px 38px;
  }

  .portrait-ring {
    width: 174px;
    margin-bottom: 26px;
  }

  h1 {
    font-size: clamp(43px, 5vw, 68px);
  }

  .ornament {
    margin-block: 20px 14px;
  }

  .hero-subtitle {
    margin-bottom: 22px;
  }

  .telegram-cta {
    min-height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .telegram-cta {
    transition: none;
  }
}
