@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=DM+Sans:wght@400;500;600;700&display=swap");

:root {
  --background: #f1eadf;
  --background-deep: #e3d7c6;
  --card: #fffdf8;
  --surface: #f7f2ea;
  --surface-hover: #ede4d8;
  --primary: #66866b;
  --primary-dark: #45634d;
  --accent: #c8875a;
  --text: #2f3c32;
  --muted: #6d796e;
  --border: #d9cdbd;
  --shadow: rgba(69, 78, 59, .14);
}

body.dark {
  --background: #26352d;
  --background-deep: #1c2a23;
  --card: #304237;
  --surface: #3a4d40;
  --surface-hover: #465c4c;
  --primary: #a8c49a;
  --primary-dark: #d7e6c6;
  --accent: #e2ab7c;
  --text: #f3f1e8;
  --muted: #c3cdbd;
  --border: #536756;
  --shadow: rgba(11, 22, 15, .3);
}

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

body {
  align-items: center;
  background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .55), transparent 35%),
    linear-gradient(135deg, var(--background), var(--background-deep));
  color: var(--text);
  display: flex;
  font-family: "DM Sans", sans-serif;
  justify-content: center;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 32px 20px;
  transition: background-color .35s ease, color .35s ease;
}

.container {
  position: relative;
  width: 100%;
  z-index: 2;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 24px 60px var(--shadow);
  margin: auto;
  max-width: 440px;
  padding: 42px 32px 28px;
  position: relative;
  transition: background-color .35s ease, border-color .35s ease;
}

.theme-btn {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  height: 38px;
  justify-content: center;
  position: absolute;
  right: 20px;
  top: 20px;
  transition: transform .2s ease, background-color .2s ease;
  width: 38px;
}

.theme-btn > i {
  font-size: 1.8rem;
}

.theme-btn:hover {
  background: var(--surface-hover);
  transform: rotate(12deg);
}

.profile {
  text-align: center;
}

.avatar {
  align-items: center;
  background: #e6eee0;
  border: 8px solid var(--card);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--border);
  color: var(--primary-dark);
  display: flex;
  font-size: 2rem;
  height: 92px;
  justify-content: center;
  margin: 0 auto 20px;
  width: 92px;
}

body.dark .avatar {
  background: #425849;
}

.eyebrow {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.title {
  color: var(--primary-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.65rem, 10vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: .95;
}

.subtitle {
  color: var(--text);
  font-size: 0.7rem;
  line-height: 1.5;
  margin: 12px auto 0;
  max-width: 310px;
}

.bio {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.65;
  margin: 18px auto 0;
  max-width: 350px;
}

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

.link-btn {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 16px;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.link-btn:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  box-shadow: 0 8px 18px var(--shadow);
  transform: translateY(-2px);
}

.link-btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fffdf8;
  font-weight: 700;
}

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

.link-content {
  align-items: center;
  display: flex;
  gap: 12px;
}

.link-icon {
  align-items: center;
  display: flex;
  font-size: 1.1rem;
  justify-content: center;
  width: 22px;
}

.link-arrow {
  font-size: .8rem;
  opacity: .6;
  transition: transform .2s ease;
}

.link-btn:hover .link-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

.footer {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: .78rem;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}

.footer i {
  color: var(--accent);
}

.ambient-shape {
  background: var(--primary);
  border-radius: 50%;
  filter: blur(1px);
  height: 180px;
  opacity: .12;
  position: fixed;
  width: 180px;
  z-index: 0;
}

.ambient-shape-left {
  left: -80px;
  top: 12%;
}

.ambient-shape-right {
  bottom: 8%;
  right: -90px;
}

@media (max-width: 500px) {
  body {
    padding: 20px 14px 42px;
  }

  .card {
    border-radius: 22px;
    padding: 38px 20px 24px;
  }

  .theme-btn {
    right: 16px;
    top: 16px;
  }

  .bio {
    font-size: .84rem;
  }

}
