:root {
  color-scheme: light;
  --ink: #111418;
  --muted: #58616c;
  --soft: #88929d;
  --line: #d9e0e6;
  --paper: #ffffff;
  --field: #f8fafb;
  --surface: #eef2f4;
  --accent: #111418;
  --accent-hover: #2d333a;
  --focus: #276d9f;
  --danger: #b42318;
  --success: #16703c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #eef3f5 0%, #f8f9fa 46%, #eef2f4 100%);
  color: var(--ink);
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  width: min(44rem, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 44px 0;
}

.contact-card {
  width: 100%;
  display: grid;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(17, 20, 24, 0.07), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  padding: clamp(24px, 5vw, 38px);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  object-fit: contain;
  flex: 0 0 auto;
  box-shadow: 0 1px 2px rgba(17, 20, 24, 0.05);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px;
  background: #f7f9fa;
  box-shadow: 0 1px 2px rgba(17, 20, 24, 0.04);
}

.language-button {
  min-width: 38px;
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 6px 9px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.language-button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 1px 2px rgba(17, 20, 24, 0.16);
}

.language-button:hover {
  background: #edf1f3;
}

.language-button[aria-pressed="true"]:hover {
  background: var(--ink);
}

.profile {
  display: grid;
  gap: 13px;
  padding-bottom: 2px;
}

h1 {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 2.05rem);
  font-weight: 720;
  line-height: 1.1;
  letter-spacing: 0;
  word-break: keep-all;
}

.eyebrow {
  margin: 0;
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead {
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.68;
}

.profile-links {
  display: flex;
  gap: 7px;
  align-items: center;
}

.profile-links a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #fbfcfd;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.profile-links a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}

.profile-links a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.profile-links svg,
.button-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-links .brand-icon {
  fill: currentColor;
  stroke: none;
}

form {
  display: grid;
  gap: 17px;
  padding-top: 22px;
}

.form-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.form-title::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

label > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

label > span > span {
  color: inherit;
  font: inherit;
}

.label-icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  padding: 14px 16px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

input:focus,
textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 16%, transparent);
  background: #ffffff;
}

input::placeholder,
textarea::placeholder {
  color: #aeb4ba;
}

textarea {
  resize: vertical;
  min-height: 136px;
}

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-slot {
  display: flex;
  justify-content: flex-end;
  min-height: 0;
}

.turnstile-slot:empty {
  display: none;
}

.actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.status {
  flex: 1;
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.status:not(:empty) {
  border-radius: 8px;
  padding: 10px 12px;
}

.status[data-kind="error"] {
  border: 1px solid color-mix(in srgb, var(--danger) 28%, white);
  background: color-mix(in srgb, var(--danger) 7%, white);
  color: var(--danger);
}

.status[data-kind="success"] {
  border: 1px solid color-mix(in srgb, var(--success) 30%, white);
  background: color-mix(in srgb, var(--success) 9%, white);
  color: var(--success);
  font-weight: 750;
}

form button[type="submit"] {
  min-width: 130px;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(17, 20, 24, 0.13);
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

form button[type="submit"]:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(17, 20, 24, 0.16);
}

button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

form button[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.72;
}

form button[type="submit"]:disabled:hover {
  transform: none;
  box-shadow: 0 8px 18px rgba(17, 20, 24, 0.13);
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 40rem);
    align-items: flex-start;
    padding: 10px 0;
  }

  .contact-card {
    padding: 20px 14px 16px;
  }

  .top-bar {
    align-items: flex-start;
  }

  .identity {
    align-items: center;
    gap: 11px;
  }

  .avatar {
    width: 52px;
    height: 52px;
  }

  h1 {
    font-size: clamp(1.35rem, 8vw, 1.85rem);
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .turnstile-slot {
    width: 100%;
    justify-content: flex-start;
  }

  form button[type="submit"] {
    width: 100%;
  }
}
