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

:root {
  --ivory: #fffff0;
  --navy: #1B2A4A;
  --gold: #C9B99A;
  --gold-faint: rgba(201, 185, 154, 0.15);
}

html {
  font-size: 16px;
}

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background-color: var(--ivory);
  color: var(--navy);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 420px;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: fadeIn 1.2s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- profile section ---- */

.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

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

.name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  color: var(--navy);
}

.descriptor {
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--gold);
  flex-shrink: 0;
}

/* ---- links section ---- */

.links-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.link-button {
  display: block;
  width: 100%;
  padding: 0.9rem 1.25rem;
  text-align: center;
  text-decoration: none;
  color: var(--navy);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  border: 1px solid rgba(27, 42, 74, 0.2);
  border-radius: 8px;
  background: transparent;
  transition: border-color 0.35s ease,
              background-color 0.35s ease;
}

.link-button:hover,
.link-button:focus-visible {
  border-color: var(--gold);
  background-color: var(--gold-faint);
  outline: none;
}

/* ---- signup section ---- */

.signup-section {
  width: 100%;
  margin-bottom: 2.5rem;
}

.signup-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.signup-label {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--navy);
  opacity: 0.7;
}

.signup-field {
  display: flex;
  width: 100%;
  max-width: 280px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.35s ease;
}

.signup-field:focus-within {
  border-color: var(--rose);
}

.signup-field input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.65rem 0.9rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.9rem;
  color: var(--navy);
  text-transform: lowercase;
  outline: none;
}

.signup-field input::placeholder {
  color: var(--navy);
  opacity: 0.35;
}

.signup-field button {
  border: none;
  background: transparent;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  color: var(--gold);
  cursor: pointer;
  transition: color 0.35s ease;
  line-height: 1;
}

.signup-field button:hover {
  color: var(--rose);
}

/* ---- footer ---- */

.footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-line {
  width: 60px;
  height: 1px;
  background-color: var(--gold);
  margin-bottom: 1rem;
}

.footer p {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--navy);
  opacity: 0.5;
}

/* ---- responsive ---- */

@media (max-width: 480px) {
  .container {
    padding: 2.5rem 1.25rem;
  }

  .name {
    font-size: 1.5rem;
  }

  .descriptor {
    font-size: 0.85rem;
  }

  .link-button {
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 4rem 2rem;
  }
}
