:root {
  --bg: #e9e9f0;
  --text: #1a1a1a;
  --accent: #3a72a8;
  --accent-dark: #1a1a1a;
  --field-border: #1a1a1a;
  --social-bg: #3a72a8;
  --max-width: 1600px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 1.05rem;
  color: var(--text);
  padding-bottom: 2px;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 3rem 4rem;
}

h1 {
  color: var(--accent);
  font-size: 3.75rem;
  font-weight: 500;
  margin: 1.5rem 0 2rem;
}

.bio p {
  max-width: 42rem;
  font-size: 1.15rem;
  margin: 0 0 1.75rem;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0 3rem;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--social-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Contact page layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

form {
  max-width: 32rem;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.75rem;
}

legend, .field-label {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.field-label .required,
legend .required {
  color: #6b6b6b;
  font-weight: 400;
  font-size: 0.95rem;
}

.name-fields {
  display: flex;
  gap: 1rem;
}

.field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.field label {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

input[type="text"],
input[type="email"],
textarea {
  border: 1.5px solid var(--field-border);
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  background: transparent;
  color: var(--text);
}

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

button.send {
  background: var(--accent-dark);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-transform: uppercase;
}

button.send:hover {
  opacity: 0.9;
}

@media (max-width: 800px) {
  .site-header,
  main {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .name-fields {
    flex-direction: column;
  }
}
