:root {
  --bg: #0f1419;
  --bg-elevated: #1a222d;
  --text: #f0f4f8;
  --text-muted: #9aa8b4;
  --accent: #faa51a;
  --accent-hover: #fbc14d;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --tap-min: 48px;
  font-family: "Instrument Sans", system-ui, -apple-system, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.page {
  max-width: 28rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.profile {
  text-align: center;
  margin-bottom: 1.75rem;
}

.headshot-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  position: relative;
}

.headshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.headshot-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-muted);
  background: linear-gradient(145deg, #243042, #1a222d);
}

.headshot-fallback[hidden] {
  display: none !important;
}

.name {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.title {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
}

.contact-line {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  line-height: 1.6;
}

.contact-line a {
  color: var(--accent);
  text-decoration: none;
}

.contact-line a:hover {
  text-decoration: underline;
}

.contact-line .sep {
  color: var(--text-muted);
  margin: 0 0.35rem;
}

.actions {
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: var(--tap-min);
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #0a0e12;
}

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

.btn .icon {
  flex-shrink: 0;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--tap-min);
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.link-card:hover {
  background: #222c3a;
  border-color: rgba(255, 255, 255, 0.12);
}

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

.link-card.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.link-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-icon svg {
  width: 22px;
  height: 22px;
}

.link-label {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.link-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.15rem;
}

.footer {
  margin-top: 2.5rem;
  text-align: center;
}

.fine-print {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (min-width: 400px) {
  .page {
    padding-top: 2.5rem;
  }
}
