:root {
  color-scheme: light;
  --blue-900: #123c6c;
  --blue-700: #145ca8;
  --blue-600: #1c70b9;
  --blue-100: #e8f2f9;
  --ink: #29343d;
  --muted: #687782;
  --line: #e1e8ed;
  --paper: #ffffff;
  --success: #247648;
  --error: #b33a3a;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(145deg, #0f4f98 0%, #2e84c2 52%, #87c3dc 100%);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue-700);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: var(--blue-900);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(20, 92, 168, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.55rem 0.85rem;
  color: var(--paper);
  background: var(--blue-900);
  border-radius: 0.25rem;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  color: var(--paper);
  transform: translateY(0);
}

.page-shell {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding: 6.5rem 1.5rem 4rem;
}

.profile-card {
  position: relative;
  align-self: flex-start;
  width: min(100%, 40rem);
  padding: 6.1rem clamp(2rem, 7vw, 4.75rem) 2.25rem;
  background: var(--paper);
  border-radius: 0.45rem;
  box-shadow: 0 1.5rem 4rem rgba(5, 43, 78, 0.26);
}

.avatar-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  width: 8.5rem;
  height: 8.5rem;
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  box-shadow: 0 0.65rem 1.8rem rgba(12, 55, 92, 0.2);
  transform: translate(-50%, -50%);
}

.avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.intro {
  padding-bottom: 2.75rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.5rem;
  color: #24313a;
  font-size: clamp(1.55rem, 4vw, 1.85rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tagline {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 1.04rem;
}

.contact-link,
.send-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.62rem 1.3rem;
  color: var(--paper);
  background: var(--blue-700);
  border: 1px solid var(--blue-700);
  border-radius: 0.25rem;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.contact-link:hover,
.send-button:hover:not(:disabled) {
  color: var(--paper);
  background: var(--blue-900);
  border-color: var(--blue-900);
  transform: translateY(-1px);
}

.bio {
  padding: 2.75rem 0 1rem;
}

.bio p {
  margin-bottom: 1.4rem;
}

.linkedin-copy {
  margin-top: 2.3rem;
}

.linkedin-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.linkedin-copy a {
  overflow-wrap: anywhere;
}

.contact {
  margin-top: 1rem;
  padding-top: 2.9rem;
  border-top: 1px solid var(--line);
}

h2 {
  margin-bottom: 0.5rem;
  color: #24313a;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-copy {
  margin-bottom: 1.75rem;
  color: var(--muted);
}

.contact-form {
  position: relative;
}

.form-field {
  margin-bottom: 1.15rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  color: #35434d;
  font-size: 0.88rem;
  font-weight: 650;
}

input,
textarea {
  display: block;
  width: 100%;
  padding: 0.68rem 0.75rem;
  color: var(--ink);
  background: #fbfcfd;
  border: 1px solid #cfd9e0;
  border-radius: 0.2rem;
  font: inherit;
  line-height: 1.5;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

input:hover,
textarea:hover {
  border-color: #a9bac6;
}

input:focus,
textarea:focus {
  background: var(--paper);
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(28, 112, 185, 0.1);
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.send-button {
  min-width: 6rem;
  margin-top: 0.15rem;
}

.send-button:disabled {
  background: #7a95ac;
  border-color: #7a95ac;
  cursor: wait;
}

.form-status {
  min-height: 1.7rem;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.form-status[data-state="success"] {
  color: var(--success);
}

.form-status[data-state="error"] {
  color: var(--error);
}

.noscript-note {
  color: var(--error);
  font-size: 0.9rem;
}

.social-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

.linkedin-icon {
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--blue-700);
  border-radius: 0.2rem;
  transition:
    color 150ms ease,
    transform 150ms ease;
}

.linkedin-icon:hover {
  color: var(--blue-900);
  transform: translateY(-1px);
}

.linkedin-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

@media (max-width: 36rem) {
  .page-shell {
    padding: 5.75rem 0.75rem 2rem;
  }

  .profile-card {
    padding: 5.4rem 1.4rem 1.75rem;
    border-radius: 0.35rem;
  }

  .avatar-wrap {
    width: 7.4rem;
    height: 7.4rem;
  }

  .intro {
    padding-bottom: 2.2rem;
  }

  .bio {
    padding-top: 2.2rem;
  }

  .contact {
    padding-top: 2.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
