:root {
  --ink: #0b2942;
  --ink-soft: #625b70;
  --background: #ffffff;
  --surface: #ffffff;
  --accent: #397aeb;
  --accent-strong: #285fc4;
  --signal: #e56a42;
  --line: rgba(11, 41, 66, 0.16);
  --shadow: 0 24px 70px rgba(11, 41, 66, 0.13);
  --paper: #ffffff;
  font-family: Charter, "Bitstream Charter", "Sitka Text", Cambria, serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }

.site-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 18%, rgba(229, 106, 66, 0.12), transparent 24rem),
    repeating-radial-gradient(ellipse at 89% 12%, transparent 0 28px, rgba(11, 41, 66, 0.055) 29px 30px),
    var(--paper);
  background-attachment: fixed;
}

.profile-shell {
  width: min(760px, calc(100% - 2rem));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.profile-header h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.profile-card {
  margin-top: 3.5rem;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.field-hint {
  margin: -0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.45;
}

.signed-in-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
}

.text-button {
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: "Avenir Next", Avenir, "Century Gothic", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: "Avenir Next", Avenir, "Century Gothic", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.lede {
  max-width: 32rem;
  margin: 2rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.65;
}

.stacked-form, .field { display: grid; gap: 0.8rem; }

.flash {
  position: relative;
  margin: 0 0 1.3rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent);
  color: var(--ink);
  background: rgba(57, 122, 235, 0.09);
  line-height: 1.45;
  z-index: 1;
}

.flash--alert {
  border-left-color: var(--signal);
  background: rgba(229, 106, 66, 0.1);
}

.stacked-form {
  position: relative;
  gap: 1.35rem;
  z-index: 1;
}

.field label {
  font-family: "Avenir Next", Avenir, "Century Gothic", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input, .field textarea, .field select {
  width: 100%;
  min-height: 3.4rem;
  padding: 0.82rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.profile-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(57, 122, 235, 0.14);
}

.primary-button {
  min-height: 3.45rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--accent-strong);
  color: var(--surface);
  background: var(--accent);
  cursor: pointer;
  font-family: "Avenir Next", Avenir, "Century Gothic", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background 160ms ease, transform 160ms ease;
}

.primary-button--compact { min-height: 2.5rem; padding: 0.55rem 1rem; }
.primary-button--danger { border-color: #7d3125; background: #9c3d2e; }
.primary-button--danger:hover { background: #7d3125; }
.primary-button:hover { background: var(--accent-strong); transform: translateY(-1px); }
.primary-button:focus-visible { outline: 3px solid rgba(229, 106, 66, 0.45); outline-offset: 3px; }

@media (max-width: 760px) {
  .profile-fields { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
