:root {
  --cream: #f7f2ea;
  --stone: #ece3d3;
  --stone-dark: #ddd0b7;
  --ink: #1c1a17;
  --ink-soft: #5c574c;
  --bronze: #a5793f;
  --bronze-dark: #7e5a2c;
  --line: rgba(28, 26, 23, 0.14);
  --radius: 5px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  display: flex;
  justify-content: center;
  padding: 32px 16px 64px;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #efe6d5 0%, #f7f2ea 40%);
}

.card {
  width: 100%;
  max-width: 480px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(28, 26, 23, 0.35);
}

/* Hero */
.hero {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 15, 0.15) 0%, rgba(20, 18, 15, 0.55) 100%);
}

.hero-mark {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: auto;
  fill: #fdf9f1;
  opacity: 0.92;
  z-index: 1;
}

/* Avatar overlapping hero */
.avatar-wrap {
  display: flex;
  justify-content: center;
  margin-top: -46px;
  position: relative;
  z-index: 2;
}

.avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid #fffdf9;
  box-shadow: 0 8px 20px rgba(28, 26, 23, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar svg {
  width: 34px;
  height: auto;
  fill: var(--ink);
}

/* Identity */
.identity {
  text-align: center;
  padding: 14px 32px 0;
}

.identity h1 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-weight: 600;
  font-size: 27px;
  letter-spacing: 0.01em;
  margin: 0 0 6px;
}

.identity .address {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.identity .address a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.identity .address a:hover {
  border-color: var(--bronze);
  color: var(--bronze-dark);
}

/* Socials */
.socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 18px 0 4px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.socials a svg {
  width: 17px;
  height: auto;
  fill: var(--cream);
}

.socials a:hover {
  background: var(--bronze-dark);
}

/* Contact headers */
.contacts {
  padding: 10px 32px 4px;
  text-align: center;
}

.contacts p {
  margin: 10px 0;
  font-size: 14.5px;
  font-weight: 700;
}

.contacts p span {
  font-weight: 400;
  color: var(--ink-soft);
}

.contacts a {
  color: var(--bronze-dark);
  text-decoration: none;
}

.contacts a:hover {
  text-decoration: underline;
}

/* Divider */
.hr {
  height: 1px;
  background: var(--line);
  margin: 22px 32px 18px;
}

/* Links */
.links {
  padding: 0 24px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 18px;
  background: var(--stone);
  border: 1px solid var(--stone-dark);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.link-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.link-btn .arrow {
  opacity: 0.55;
  font-size: 14px;
}

.section-label {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--bronze-dark);
  font-weight: 700;
  text-align: center;
  margin: 20px 0 2px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 26px 24px 30px;
  font-size: 12px;
  color: var(--ink-soft);
}

.footer a {
  color: inherit;
}

@media (max-width: 400px) {
  .identity {
    padding-left: 20px;
    padding-right: 20px;
  }
  .links {
    padding-left: 16px;
    padding-right: 16px;
  }
}
