@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&display=swap");

:root {
  --ink: #0a0507;
  --wine: #3b0e19;
  --wine-light: #78263a;
  --paper: #f8f0ec;
  --muted: #c7b5b8;
  --line: rgba(248, 240, 236, 0.18);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}

.texture {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(8, 3, 5, 0.78), rgba(8, 3, 5, 0.94)),
    url("mia-kerr-logo.jpg") center / cover;
  filter: saturate(0.9);
}

.profile {
  width: min(100% - 32px, 620px);
  margin: 0 auto;
  padding: 54px 0 40px;
  text-align: center;
}

.avatar {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border: 1px solid rgba(248, 240, 236, 0.42);
  border-radius: 50%;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.45);
}

.kicker {
  margin: 22px 0 4px;
  color: #d8a1ad;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 12vw, 5.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
}

.bio {
  max-width: 490px;
  margin: 16px auto 30px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.links {
  display: grid;
  gap: 12px;
}

.links a {
  display: flex;
  min-height: 62px;
  padding: 0 22px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 7, 10, 0.74);
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.links a:hover,
.links a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(248, 240, 236, 0.52);
  background: rgba(59, 14, 25, 0.9);
  outline: none;
}

.links .primary {
  border-color: rgba(216, 161, 173, 0.48);
  background: linear-gradient(120deg, rgba(83, 21, 36, 0.96), rgba(48, 12, 22, 0.96));
}

.newsletter-card {
  margin-top: 28px;
  padding: clamp(24px, 6vw, 38px);
  border: 1px solid rgba(216, 161, 173, 0.34);
  border-radius: 18px;
  background: #3b0e19;
  text-align: left;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.newsletter-card h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 7vw, 3.1rem);
  font-weight: 500;
  line-height: 1.08;
}

.newsletter-intro {
  margin: 12px 0 23px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.newsletter-form {
  display: grid;
  gap: 15px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: #eadde0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid rgba(248, 240, 236, 0.24);
  border-radius: 10px;
  outline: none;
  background: rgba(7, 3, 5, 0.54);
  color: var(--paper);
  font: inherit;
}

.field input::placeholder { color: #8f7d81; }
.field input:focus { border-color: rgba(248, 240, 236, 0.68); }

.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: #baa9ad;
  font-size: 0.75rem;
  line-height: 1.45;
}

.consent input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--wine-light);
}

.newsletter-form button {
  min-height: 52px;
  border: 1px solid rgba(248, 240, 236, 0.28);
  border-radius: 10px;
  background: rgba(248, 240, 236, 0.1);
  color: #a8979b;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: not-allowed;
}

.links .patreon-link {
  position: relative;
  min-height: 112px;
  overflow: hidden;
  border-color: rgba(248, 240, 236, 0.46);
  background:
    linear-gradient(90deg, rgba(7, 3, 5, 0.82), rgba(31, 7, 16, 0.5), rgba(7, 3, 5, 0.78)),
    url("patreon-thumbnail.png") center 44% / cover;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  font-size: 1.12rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
}

.links .patreon-link:hover,
.links .patreon-link:focus-visible {
  background:
    linear-gradient(90deg, rgba(7, 3, 5, 0.72), rgba(59, 14, 32, 0.42), rgba(7, 3, 5, 0.7)),
    url("patreon-thumbnail.png") center 44% / cover;
}

footer {
  margin-top: 28px;
  color: #88767a;
  font-size: 0.72rem;
}

.newsletter-profile {
  width: min(100% - 32px, 620px);
  margin: 0 auto;
  padding: 54px 0 40px;
  text-align: center;
}

.newsletter-home {
  display: inline-block;
  border-radius: 50%;
}

.newsletter-avatar {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: cover;
  border: 1px solid rgba(248, 240, 236, 0.42);
  border-radius: 50%;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.45);
}

.newsletter-card--standalone {
  margin-top: 24px;
}

.newsletter-card--standalone h1 {
  font-size: clamp(2.4rem, 9vw, 4rem);
  letter-spacing: -0.035em;
}

.back-link {
  display: inline-block;
  margin-top: 24px;
  color: #c7b5b8;
  font-size: 0.82rem;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--paper);
  text-decoration: underline;
}

@media (max-width: 520px) {
  .profile { width: min(100% - 24px, 620px); padding-top: 34px; }
  .newsletter-profile { width: min(100% - 24px, 620px); padding-top: 34px; }
  .avatar { width: 112px; height: 112px; }
  .bio { max-width: 92%; font-size: 0.96rem; }
  .links a { min-height: 58px; border-radius: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
