:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #07080b;
  color: #f2eee6;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: #07080b;
}

body {
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 8%, rgba(112, 102, 84, 0.17), transparent 34%),
    radial-gradient(circle at 12% 82%, rgba(52, 69, 65, 0.14), transparent 32%),
    linear-gradient(180deg, #111318 0%, #090b0f 58%, #07080b 100%);
}

button {
  font: inherit;
}

.contact-shell {
  width: min(100%, 440px);
  min-height: 100svh;
  margin: 0 auto;
  padding:
    max(1.15rem, env(safe-area-inset-top))
    1rem
    max(1.25rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.aura-kicker {
  margin-bottom: 1.35rem;
  color: rgba(227, 220, 207, 0.56);
  font-size: 0.68rem;
  font-weight: 680;
  letter-spacing: 0.3em;
}

.contact-status {
  min-height: 1.25rem;
  margin-bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  color: #c9beaa;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.contact-status-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #a89b82;
  box-shadow: 0 0 0 0.28rem rgba(168, 155, 130, 0.1);
}

h1 {
  margin: 0;
  color: #f4f0e8;
  font-size: clamp(2.25rem, 11vw, 3.25rem);
  font-weight: 520;
  letter-spacing: 0.055em;
  line-height: 1;
}

.contact-subtitle {
  margin: 0.65rem 0 1.4rem;
  color: rgba(235, 229, 218, 0.66);
  font-size: 0.92rem;
}

.portrait-placeholder {
  position: relative;
  width: min(64vw, 252px);
  aspect-ratio: 1;
  margin: 0 auto 1.45rem;
  overflow: hidden;
  border: 1px solid rgba(220, 208, 185, 0.15);
  border-radius: 50%;
  background:
    radial-gradient(circle at 48% 38%, rgba(178, 164, 137, 0.11), transparent 22%),
    radial-gradient(circle at 50% 50%, #22252a 0%, #16191e 56%, #101217 100%);
  box-shadow:
    0 1.4rem 4rem rgba(0, 0, 0, 0.42),
    inset 0 0 3rem rgba(255, 255, 255, 0.022);
}

.placeholder-ring,
.placeholder-mark {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.placeholder-ring-outer {
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid rgba(211, 198, 175, 0.15);
}

.placeholder-ring-inner {
  width: 34%;
  aspect-ratio: 1;
  border: 1px solid rgba(211, 198, 175, 0.11);
}

.placeholder-mark {
  width: 0.48rem;
  height: 0.48rem;
  background: rgba(201, 190, 170, 0.72);
  box-shadow: 0 0 1.5rem rgba(201, 190, 170, 0.35);
}

.contact-panel,
.state-panel {
  margin: 0 auto 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(223, 214, 197, 0.1);
  border-radius: 1.15rem;
  background: rgba(25, 28, 33, 0.72);
  box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.panel-label {
  margin-bottom: 0.45rem;
  color: rgba(218, 209, 193, 0.48);
  font-size: 0.66rem;
  font-weight: 680;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.message-preview,
.state-panel h2 {
  margin: 0;
  color: #eee8dc;
  font-size: 1rem;
  line-height: 1.5;
}

.state-panel h2 {
  font-size: 1.08rem;
  font-weight: 620;
}

.state-panel p {
  margin: 0.45rem 0 0;
  color: rgba(226, 219, 207, 0.62);
  font-size: 0.82rem;
  line-height: 1.5;
}

.primary-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.contact-actions button,
.reset-action {
  width: 100%;
  min-height: 3.45rem;
  border: 1px solid rgba(222, 212, 193, 0.17);
  border-radius: 1rem;
  background: rgba(29, 32, 37, 0.92);
  color: #e9e3d8;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
  touch-action: manipulation;
}

.contact-actions button:hover,
.contact-actions button:focus-visible,
.reset-action:hover,
.reset-action:focus-visible {
  border-color: rgba(218, 205, 180, 0.38);
  background: rgba(43, 46, 50, 0.96);
  color: #fffaf0;
  outline: none;
}

.contact-actions button:active,
.reset-action:active {
  transform: scale(0.985);
}

.contact-actions .primary-action {
  border-color: #b7aa91;
  background: #b7aa91;
  color: #111318;
}

.quiet-action {
  margin-top: 0.6rem;
  background: transparent !important;
  color: rgba(230, 224, 212, 0.68) !important;
}

.reset-action {
  margin-top: 1rem;
}

.neutral-panel {
  border-style: dashed;
}

footer {
  margin-top: 1.25rem;
  color: rgba(219, 212, 200, 0.4);
  font-size: 0.68rem;
  line-height: 1.45;
}

@media (max-width: 360px) {
  .contact-shell {
    padding-right: 0.78rem;
    padding-left: 0.78rem;
  }

  .primary-actions {
    gap: 0.35rem;
  }

  .contact-actions button {
    min-height: 3.65rem;
    padding: 0.4rem 0.18rem;
    font-size: 0.63rem;
  }
}

@media (min-width: 700px) {
  .contact-shell {
    padding-right: 1.4rem;
    padding-left: 1.4rem;
  }
}

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