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

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

:root {
  --profile-bg: #f8f5f0;
  --profile-ink: #221d1a;
  --profile-muted: #5f5249;
  --profile-line: rgba(34, 29, 26, 0.16);
  --profile-accent: #b38a5b;
}

body {
  min-height: 100vh;
  background: #fff;
  color: var(--profile-ink);
}

.profile-page {
  display: grid;
  min-height: calc(100vh - 100px);
  padding: 3rem 1.25rem;
  place-items: center;
  background: #fff;
}

.profile-card {
  max-width: 100%;
  box-sizing: border-box;
  width: min(100%, 520px);
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--profile-line);
  background: #fff;
  box-shadow: 0 18px 55px rgba(41, 28, 16, 0.08);
}

.profile-card .eyebrow {
  margin-bottom: 0.5rem;
  color: var(--profile-muted);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.profile-card h1 {
  font-family: "TheSeason", Georgia, serif;
  font-size: clamp(2.2rem, 7vw, 3.3rem);
  font-weight: 400;
}

.profile-intro {
  margin: 0.5rem 0 1.75rem;
  color: var(--profile-muted);
}

#profile-form {
  display: grid;
  gap: 0.55rem;
}

#profile-form label {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  font-weight: 600;
}

#profile-form label span {
  color: var(--profile-muted);
  font-weight: 400;
}

#profile-form input {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--profile-line);
  border-radius: 0;
  background: #fff;
  color: var(--profile-ink);
  font: inherit;
}

#profile-form input:focus-visible {
  outline: 2px solid var(--profile-accent);
  outline-offset: 2px;
}

#profile-form button {
  min-height: 48px;
  margin-top: 1rem;
  border: 1px solid var(--profile-ink);
  background: var(--profile-ink);
  color: #fff;
  cursor: pointer;
  font: inherit;
  transition: background 180ms ease, color 180ms ease;
}

#profile-form button:hover {
  background: #fff;
  color: var(--profile-ink);
}

.profile-status {
  min-height: 1.5rem;
  color: #315c3a;
  font-size: 0.88rem;
}

.profile-note {
  margin-top: 1rem;
  color: var(--profile-muted);
  font-size: 0.78rem;
}

@media (max-width: 600px) {
  .profile-page {
    min-height: calc(100vh - 80px);
    padding: 2rem 1rem;
  }

  .profile-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #profile-form button {
    transition: none;
  }
}
