/* Psxnx contact page — minimal dark theme */

:root {
  --bg: #0d1117;
  --card: #161b22;
  --border: #2d333b;
  --text: #e6edf3;
  --text-dim: #8b949e;
  --accent: #2f81f7;
  --accent-hover: #58a6ff;
  --focus: #79c0ff;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

/* Subtle tech grid backdrop — static, no animation */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.12;
  pointer-events: none;
}

.card {
  position: relative;
  width: 100%;
  max-width: 30rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

/* Accent line at the top of the card */
.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.7;
}

/* Header */

.name {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.notice {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.handle-old {
  color: var(--text);
  font-weight: 500;
}

.card-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

/* Buttons */

.contacts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #1c2128;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: #22272e;
  border-color: var(--text-dim);
}

.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-size: 1.05rem;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-hint {
  display: block;
  width: 100%;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-dim);
  word-break: break-all;
}

.btn-primary .btn-hint {
  color: rgba(255, 255, 255, 0.85);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

/* Backup section */

.backup {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.backup-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.link {
  color: var(--accent);
  text-decoration: none;
}

.link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.dot {
  color: var(--text-dim);
  margin: 0 0.4rem;
}

/* Small screens */

@media (max-width: 420px) {
  .card {
    padding: 1.5rem 1.25rem;
  }

  .name {
    font-size: 1.5rem;
  }

  .btn {
    padding: 0.75rem 0.9rem;
  }
}
