:root {
  --ink: #050607;
  --surface: #111516;
  --surface-strong: #0d1011;
  --gold: #d9b75d;
  --gold-light: #efd37d;
  --gold-deep: #b78a2a;
  --text: #f5f0e4;
  --muted: #aaa69d;
  --line: #40371e;
  --instagram: #e4405f;
  --youtube: #ff0000;
  --spotify: #1ed760;
  --telegram: #229ed9;
  --mail: #d9b75d;
}

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

html {
  min-width: 320px;
  color-scheme: dark;
  background: var(--ink);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 11%, rgb(23 75 55 / 18%), transparent 28rem),
    radial-gradient(circle at 94% 72%, rgb(100 24 26 / 12%), transparent 24rem),
    linear-gradient(180deg, #070909 0%, var(--ink) 48%, #080908 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(217 183 93 / 2.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(217 183 93 / 2%) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  pointer-events: none;
}

img,
svg {
  display: block;
}

.page-shell {
  width: min(100%, 430px);
  margin-inline: auto;
  padding: 28px 18px 38px;
  animation: page-reveal 700ms ease-out both;
}

.brand-header {
  position: relative;
  text-align: center;
}

.emblem-frame {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 16px;
}

.emblem-frame::before,
.emblem-frame::after {
  position: absolute;
  border: 1px solid rgb(217 183 93 / 38%);
  border-radius: 50%;
  content: "";
  inset: -5px;
}

.emblem-crop {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
}

.emblem-frame::after {
  border-color: rgb(217 183 93 / 13%);
  inset: -11px;
}

.brand-emblem {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgb(0 0 0 / 50%));
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--gold);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1,
.greivin-section h2,
.contact-section h2 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  max-width: 360px;
  margin: 0 auto;
  font-size: clamp(1.75rem, 9vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

h1 span {
  display: block;
  margin-top: 5px;
  color: var(--gold-light);
  font-size: 0.68em;
  letter-spacing: 0.16em;
}

.slogan {
  max-width: 340px;
  margin: 16px auto 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  font-style: italic;
  line-height: 1.45;
}

.brand-bio {
  max-width: 390px;
  margin: 11px auto 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.62;
}

.emoji-pair {
  white-space: nowrap;
}

.link-section {
  display: grid;
  gap: 10px;
}

.community-links {
  margin-top: 22px;
}

.link-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  min-height: 44px;
  min-block-size: 66px;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: linear-gradient(135deg, rgb(18 22 23 / 96%), rgb(10 13 14 / 98%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 3%);
  text-decoration: none;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.link-card:hover {
  border-color: var(--gold-deep);
  box-shadow: 0 10px 28px rgb(0 0 0 / 24%);
  transform: translateY(-2px);
}

.link-card:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

.link-card--primary {
  min-height: 72px;
  border-color: var(--gold-light);
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 52%, var(--gold-deep));
  box-shadow: 0 12px 34px rgb(183 138 42 / 20%);
}

.link-card--primary:hover {
  border-color: #fff0ad;
  box-shadow: 0 14px 36px rgb(183 138 42 / 30%);
}

.icon-wrap {
  display: grid;
  width: 42px;
  height: 42px;
  border: 1px solid rgb(217 183 93 / 17%);
  border-radius: 50%;
  place-items: center;
  background: rgb(255 255 255 / 3%);
}

.icon-wrap svg {
  width: 21px;
  height: 21px;
  overflow: visible;
  fill: currentColor;
}

.link-card--primary .icon-wrap {
  border-color: rgb(5 6 7 / 13%);
  color: #0b415d;
  background: rgb(5 6 7 / 8%);
}

.link-card--instagram .icon-wrap {
  color: var(--instagram);
}

.link-card--instagram svg,
.link-card--mail svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.link-card--instagram .icon-dot {
  fill: currentColor;
  stroke: none;
}

.link-card--youtube .icon-wrap {
  color: var(--youtube);
}

.link-card--youtube .icon-play {
  fill: var(--text);
}

.link-card--spotify .icon-wrap {
  color: var(--spotify);
}

.link-card--mail .icon-wrap {
  color: var(--mail);
}

.link-copy {
  min-width: 0;
}

.link-copy strong,
.link-copy small {
  display: block;
}

.link-copy strong {
  font-size: 0.89rem;
  font-weight: 650;
  line-height: 1.3;
}

.link-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.link-card--primary .link-copy small {
  color: rgb(5 6 7 / 68%);
}

.link-arrow {
  color: var(--gold);
  font-size: 1rem;
  text-align: center;
}

.link-card--primary .link-arrow {
  color: var(--ink);
}

.greivin-section {
  position: relative;
  margin-top: 36px;
  padding: 0 0 4px;
  text-align: center;
}

.legacy-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 11px;
  margin-bottom: 28px;
}

.legacy-divider span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
}

.legacy-divider span:last-child {
  background: linear-gradient(90deg, var(--line), transparent);
}

.legacy-divider b {
  color: var(--gold-deep);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
}

.portrait-frame {
  position: relative;
  width: 126px;
  height: 126px;
  margin: 0 auto 16px;
  padding: 4px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--surface-strong);
  box-shadow:
    0 0 0 7px rgb(217 183 93 / 6%),
    0 18px 38px rgb(0 0 0 / 42%);
}

.portrait {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 40%;
}

.greivin-section h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.15;
}

.section-subtitle {
  margin: 5px 0 17px;
  color: var(--muted);
  font-size: 0.78rem;
}

footer {
  margin-top: 37px;
  padding-top: 29px;
  border-top: 1px solid var(--line);
}

.contact-section h2 {
  margin: -2px 0 13px;
  font-size: 1.25rem;
  font-weight: 500;
}

.risk-notice {
  margin: 24px 4px 0;
  padding-left: 12px;
  border-left: 2px solid var(--gold-deep);
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.58;
}

.copyright {
  margin: 24px 0 0;
  color: rgb(170 166 157 / 82%);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-align: center;
}

.copyright span {
  color: var(--gold-deep);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes page-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

@media (min-width: 680px) {
  body {
    padding: 34px 0;
  }

  .page-shell {
    padding: 34px 28px 42px;
    border: 1px solid rgb(217 183 93 / 15%);
    border-radius: 22px;
    background: linear-gradient(180deg, rgb(13 16 17 / 88%), rgb(5 6 7 / 93%));
    box-shadow: 0 30px 90px rgb(0 0 0 / 48%);
  }
}

@media (max-width: 359px) {
  .page-shell {
    padding-inline: 13px;
  }

  .link-card {
    grid-template-columns: 38px minmax(0, 1fr) 16px;
    gap: 9px;
    padding-inline: 10px;
  }

  .icon-wrap {
    width: 38px;
    height: 38px;
  }

  .link-copy strong {
    font-size: 0.82rem;
  }

  .link-copy small {
    font-size: 0.67rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
