:root {
  --page-background: #ffffff;
  --header-border: #e9e9e9;
  --text: #3c4043;
  --muted: #666666;
  --soft: #f7f7f7;
  --linkedin: #5f6368;
  --max-width: 940px;
  --content-width: 820px;
  --copy-width: 470px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-background);
}

body {
  margin: 0;
  background: var(--page-background);
  color: var(--text);
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.8;
}

a {
  color: inherit;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--header-border);
}

.header-inner {
  width: min(100% - 2.5rem, var(--max-width));
  margin: 0 auto;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  width: 236px;
  max-width: 42vw;
  flex-shrink: 0;
}

.brand-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.header-tools {
  display: flex;
  align-items: center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a[aria-current="page"] {
  color: var(--muted);
  border-bottom-color: var(--muted);
}

.page-shell {
  width: min(100% - 2.5rem, var(--max-width));
  margin: 0 auto;
  padding: 1.2rem 0 3rem;
}

.intro-section {
  display: grid;
  grid-template-columns: 300px minmax(0, var(--copy-width));
  align-items: stretch;
  justify-content: center;
  gap: 2rem;
  max-width: var(--content-width);
  margin: 0 auto;
}

.portrait-wrap {
  width: 100%;
  margin: 0;
  min-height: 100%;
}

.portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.copy-wrap {
  width: 100%;
  max-width: none;
}

.copy-wrap h1 {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 700;
}

.copy-wrap p {
  margin: 0 0 0.95rem;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.55;
}

.linkedin-section {
  width: fit-content;
  max-width: min(100%, 620px);
  margin: 1.4rem auto 0;
  padding: 1rem 0 0;
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 1.1rem;
}

.linkedin-icon-wrap {
  display: flex;
  justify-content: center;
}

.linkedin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--linkedin);
}

.linkedin-button img {
  width: 44px;
  height: 44px;
}

.linkedin-section p {
  margin: 0;
  max-width: 420px;
  font-size: 0.9rem;
  line-height: 1.8;
  text-align: center;
}

.contact-shell {
  width: min(100% - 2.5rem, 900px);
}

.contact-intro {
  width: min(100%, 760px);
  margin: 0 auto 1.5rem;
  text-align: center;
}

.contact-intro p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.contact-form-section {
  width: min(100%, 760px);
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--header-border);
  padding: 1.5rem;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
}

.contact-form label {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d0d0d0;
  border-radius: 0;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  padding: 0.9rem 1rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 12rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(95, 99, 104, 0.18);
  outline-offset: 0;
  border-color: var(--linkedin);
}

.contact-form button {
  justify-self: start;
  border: 1px solid var(--linkedin);
  border-radius: 0;
  background: var(--linkedin);
  color: #ffffff;
  font: inherit;
  font-weight: 500;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
}

.site-footer {
  width: min(100% - 2.5rem, var(--max-width));
  margin: 0 auto;
  padding: 1.8rem 0 1.2rem;
}

.site-footer p {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 300;
}

@media (max-width: 720px) {
  .header-inner {
    width: min(100% - 1.5rem, var(--max-width));
    min-height: 62px;
    gap: 0.75rem;
  }

  .brand-logo {
    width: 165px;
    max-width: 50vw;
  }

  .page-shell {
    width: min(100% - 1.5rem, var(--max-width));
    padding-top: 1.5rem;
  }

  .intro-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: none;
  }

  .copy-wrap {
    max-width: none;
  }

  .copy-wrap h1 {
    font-size: 2rem;
    line-height: 1.08;
  }

  .copy-wrap p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .linkedin-section {
    grid-template-columns: 1fr;
    gap: 1rem;
    justify-items: center;
    width: min(100%, 520px);
  }

  .linkedin-section p {
    max-width: 520px;
  }

  .contact-shell {
    width: min(100% - 1.5rem, 900px);
  }

  .contact-form-section {
    padding: 1.25rem;
  }

  .site-footer {
    width: min(100% - 1.5rem, var(--max-width));
  }
}
