: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 {
  width: 100%;
  height: 100%;
  min-width: 320px;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--page);
}

body {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  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 {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  padding: clamp(8px, 2vh, 20px) 14px;
}

.contact-card {
  position: relative;
  width: min(100%, 510px);
  max-height: 100%;
  padding: clamp(18px, 3.4vh, 34px) clamp(22px, 6vw, 42px) clamp(10px, 2vh, 20px);
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.contact-card::after {
  display: none;
}

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

.card-header {
  position: relative;
  padding: clamp(8px, 1.8vh, 18px) 0 clamp(18px, 3.2vh, 30px);
}

.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(3rem, min(15vw, 9.5dvh), 5.6rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.82;
  text-wrap: balance;
}

h1 span {
  display: block;
}

.card-header p {
  margin: clamp(14px, 2.4vh, 24px) 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: clamp(58px, 9dvh, 84px);
  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: clamp(52px, 7.5dvh, 64px);
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: clamp(34px, 5dvh, 58px);
  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: clamp(-28px, -3.2vh, -20px);
  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: clamp(12px, 2.6vh, 24px);
}

.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 {
  position: fixed;
  right: 50%;
  bottom: max(8px, env(safe-area-inset-bottom));
  min-height: 0;
  margin: 0;
  padding: 4px 8px;
  color: var(--gold-bright);
  background: rgba(8, 8, 8, 0.92);
  font-size: 0.72rem;
  text-align: center;
  transform: translateX(50%);
  white-space: nowrap;
  pointer-events: none;
}

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

  .contact-card {
    padding: clamp(16px, 3vh, 24px) 22px 10px;
  }

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

  .gold-rule {
    height: 72px;
  }

  .contact-row {
    min-height: clamp(58px, 9dvh, 74px);
  }

  .save-contact {
    min-height: clamp(52px, 7.5dvh, 60px);
  }
}

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

  h1 {
    font-size: clamp(3rem, 14.5vw, 3.72rem);
  }

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

  .value {
    font-size: 0.92rem;
  }

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

@media (max-height: 700px) {
  .page-shell {
    padding-block: 4px;
  }

  .contact-card {
    padding-block: 8px 5px;
  }

  .card-header {
    padding: 2px 0 10px;
  }

  .gold-rule {
    top: 0;
    height: 58px;
  }

  h1 {
    font-size: clamp(2.75rem, 8.4dvh, 3.7rem);
  }

  .card-header p {
    margin-top: 10px;
    font-size: 0.86rem;
  }

  .contact-row {
    min-height: clamp(46px, 8.2dvh, 56px);
  }

  .contact-copy {
    gap: 2px;
  }

  .label {
    font-size: 0.74rem;
  }

  .value {
    font-size: 0.9rem;
  }

  .arrow {
    width: 24px;
    min-width: 24px;
  }

  .save-contact {
    min-height: 46px;
    margin-top: 26px;
    font-size: 0.95rem;
  }

  .save-contact::before {
    top: -16px;
  }

  .save-contact svg {
    width: 23px;
  }

  .card-footer {
    margin-top: 8px;
  }
}

@media (max-height: 560px) {
  .page-shell {
    padding-block: 2px;
  }

  .contact-card {
    padding: 4px 16px 3px;
  }

  .card-header {
    padding: 0 0 7px;
  }

  .gold-rule {
    height: 46px;
  }

  h1 {
    font-size: clamp(2.3rem, 8.2dvh, 2.9rem);
  }

  .card-header p {
    margin-top: 6px;
    font-size: 0.74rem;
  }

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

  .label {
    font-size: 0.66rem;
  }

  .value {
    font-size: 0.8rem;
  }

  .arrow {
    width: 20px;
    min-width: 20px;
  }

  .save-contact {
    min-height: 42px;
    gap: 10px;
    margin-top: 18px;
    font-size: 0.86rem;
  }

  .save-contact::before {
    top: -11px;
  }

  .save-contact svg {
    width: 21px;
  }

  .card-footer {
    gap: 8px;
    margin-top: 5px;
  }

  .card-footer p {
    font-size: 0.56rem;
  }
}

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