:root {
  color-scheme: dark;
  --page: #080808;
  --surface: #0d0d0d;
  --text: #f3eee5;
  --muted: #9b9893;
  --gold: #d4af37;
  --gold-bright: #f2cf6a;
  --gold-deep: #8c6b1f;
  --line: rgba(212, 175, 55, 0.58);
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ui: "Manrope", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 43%, rgba(212, 175, 55, 0.045), transparent 28rem),
    var(--page);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
}

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

a,
button {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: clamp(18px, 5vw, 84px) 14px;
}

.contact-card {
  position: relative;
  width: min(100%, 510px);
  padding: clamp(34px, 8vw, 62px) clamp(22px, 6vw, 42px) 24px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.82);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.022), transparent 24%),
    rgba(13, 13, 13, 0.96);
  box-shadow:
    0 32px 100px rgba(0, 0, 0, 0.72),
    0 0 46px rgba(212, 175, 55, 0.035),
    inset 0 0 0 1px rgba(255, 255, 255, 0.012);
}

.contact-card::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='.26'/%3E%3C/svg%3E");
  content: "";
  pointer-events: none;
}

.contact-card > * {
  position: relative;
  z-index: 1;
}

.card-header {
  position: relative;
  padding: 22px 0 35px;
}

.gold-rule {
  position: absolute;
  top: -10px;
  right: 0;
  width: 1px;
  height: 106px;
  background: linear-gradient(var(--gold-bright), var(--gold-deep));
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.2);
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 15vw, 5.6rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.82;
  text-wrap: balance;
}

h1 span {
  display: block;
}

.card-header p {
  margin: 26px 0 0;
  color: var(--gold);
  font-size: clamp(0.94rem, 3.6vw, 1.13rem);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.card-header p span {
  margin: 0 0.28em;
  color: var(--gold-deep);
}

.contact-links {
  border-top: 1px solid var(--line);
}

.contact-row {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background-color 180ms ease, padding 180ms ease;
}

.contact-copy {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0.012em;
}

.value {
  overflow-wrap: anywhere;
  font-size: clamp(0.98rem, 4vw, 1.12rem);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.35;
}

.arrow {
  width: 28px;
  min-width: 28px;
  fill: none;
  stroke: var(--gold);
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.35;
  transition: transform 180ms ease, stroke 180ms ease;
}

.contact-row:hover,
.contact-row:focus-visible {
  padding-left: 10px;
  padding-right: 6px;
  outline: none;
  background: rgba(212, 175, 55, 0.045);
}

.contact-row:hover .arrow,
.contact-row:focus-visible .arrow {
  transform: translateX(4px);
  stroke: var(--gold-bright);
}

.save-contact {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 94px;
  border: 1px solid var(--gold-bright);
  border-radius: 0;
  color: #111;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.14), transparent 36%, rgba(255, 255, 255, 0.09)),
    #d4af37;
  box-shadow:
    0 14px 42px rgba(212, 175, 55, 0.1),
    inset 0 1px rgba(255, 255, 255, 0.26);
  font: 700 1.05rem/1 var(--ui);
  cursor: pointer;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.save-contact::before {
  position: absolute;
  right: 0;
  top: -34px;
  left: 0;
  height: 1px;
  background: var(--line);
  content: "";
}

.save-contact svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.save-contact:hover,
.save-contact:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
  background-color: var(--gold-bright);
  box-shadow: 0 16px 48px rgba(212, 175, 55, 0.18);
  transform: translateY(-2px);
}

.save-contact:active {
  transform: translateY(0);
}

.card-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}

.card-footer span {
  height: 1px;
  background: var(--line);
}

.card-footer p {
  margin: 0;
  color: rgba(212, 175, 55, 0.7);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.status-message {
  min-height: 1em;
  margin: 14px 0 -5px;
  color: var(--gold-bright);
  font-size: 0.72rem;
  text-align: center;
}

@media (max-width: 430px) {
  .page-shell {
    padding: 12px;
  }

  .contact-card {
    padding: 28px 22px 18px;
  }

  .card-header {
    padding-top: 18px;
  }

  .gold-rule {
    height: 88px;
  }

  .contact-row {
    min-height: 86px;
  }

  .save-contact {
    min-height: 66px;
  }
}

@media (max-width: 360px) {
  .contact-card {
    padding-inline: 17px;
  }

  h1 {
    font-size: 3.72rem;
  }

  .card-header p {
    font-size: 0.86rem;
  }

  .value {
    font-size: 0.92rem;
  }

  .card-footer {
    gap: 10px;
  }
}

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