:root {
  --bg: #f4f2ee;
  --card: #ffffff;
  --text: #1c1e22;
  --muted: #62666e;
  --line: #e2dfd8;
  --accent: #1f4e79;
  --accent-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --card: #1d2026;
    --text: #eceae6;
    --muted: #9a9ea6;
    --line: #2e323a;
    --accent: #8db8e0;
    --accent-text: #10141a;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

.card {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 650;
}

.tagline {
  margin: 4px 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.save,
.links a {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 550;
  font-size: 1rem;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.save {
  margin-bottom: 24px;
  background: var(--accent);
  color: var(--accent-text);
}

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.links a {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
}

.save:active,
.links a:active { transform: scale(0.98); }

@media (hover: hover) {
  .links a:hover { border-color: var(--accent); }
  .save:hover { filter: brightness(1.08); }
}

.save:focus-visible,
.links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
