@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0e0d0b;
  --bg-elev: #161512;
  --bg-card: #1a1917;
  --ivory: #f3efe7;
  --muted: #9c968c;
  --gold: #c4a265;
  --gold-hover: #d4b57a;
  --ink: #111110;
  --line: rgba(196, 162, 101, 0.3);
  --max: 70rem;
  --pad: clamp(1.25rem, 4.5vw, 3.25rem);
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold-hover);
}

:focus {
  outline: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--pad);
  top: 0;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding: 0.55rem 1rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.skip:focus,
.skip:focus-visible {
  transform: translateY(0.75rem);
  outline-color: var(--ivory);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem var(--pad);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ivory);
  text-decoration: none;
  min-height: 2.75rem;
}

.logo:hover {
  color: var(--ivory);
}

.mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--gold);
  flex-shrink: 0;
  background: url("/monogram.svg") center / 72% 72% no-repeat;
}

.logo-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.header-link:hover,
.header-link:focus-visible {
  background: var(--gold);
  color: var(--ink);
}

.icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  flex-shrink: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 24.5rem);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 9vh, 6.5rem) var(--pad) clamp(3.5rem, 8vh, 6rem);
  min-height: calc(100svh - 4.6rem);
}

.hero-copy {
  max-width: 38rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 5.25rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0 0 2rem;
  color: var(--gold);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.45;
  max-width: 28rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border: 2px solid var(--gold);
}

.btn:hover,
.btn:focus-visible {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  color: var(--ink);
}

.portrait {
  margin: 0;
  justify-self: end;
  width: 100%;
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}

.band {
  border-top: 1px solid var(--line);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vh, 6.25rem) var(--pad);
}

.section h2 {
  margin: 0 0 1.75rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.about-text {
  max-width: 52rem;
}

.about-text p {
  margin: 0 0 1.15rem;
  color: var(--ivory);
  font-size: 1.125rem;
  line-height: 1.75;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  grid-column: span 3;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 1.5rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.card:nth-child(n + 5) {
  grid-column: span 4;
}

.card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ivory);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.roles {
  background: var(--bg-elev);
}

.roles .section {
  padding-top: clamp(2.75rem, 7vh, 4.5rem);
  padding-bottom: clamp(2.75rem, 7vh, 4.5rem);
}

.role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.role-list li {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ivory);
}

.role-list li:not(:last-child)::after {
  content: "·";
  color: var(--gold);
  margin: 0 0.7rem;
  font-weight: 500;
}

.edu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 42rem;
}

.edu-list li {
  border-left: 2px solid var(--gold);
  padding: 0.2rem 0 0.2rem 1.1rem;
}

.edu-label {
  display: block;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.edu-value {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.3;
}

.contact {
  text-align: center;
}

.contact h2 {
  margin-bottom: 0.75rem;
}

.contact-lead {
  margin: 0 auto 1.75rem;
  color: var(--muted);
  max-width: 28rem;
  font-size: 1.125rem;
}

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

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.page-404 {
  min-height: calc(100svh - 8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .card {
    grid-column: span 3;
  }

  .card:nth-child(n + 5) {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    justify-items: center;
    text-align: center;
    padding-top: 2.75rem;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .tagline {
    max-width: 24rem;
  }

  .portrait {
    justify-self: center;
    max-width: 20rem;
  }
}

@media (max-width: 639px) {
  .cards,
  .edu-list {
    grid-template-columns: 1fr;
  }

  .card,
  .card:nth-child(n + 5) {
    grid-column: auto;
  }

  .logo-name {
    /* Keep the name readable at 390; header still fits with LinkedIn. */
    font-size: 1.1rem;
  }
}

@media (max-width: 360px) {
  .logo-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

.edu-list li {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.3;
}

.lead-start {
  margin-left: 0;
  text-align: left;
}

.btn {
  cursor: pointer;
  font-family: inherit;
}

.contact-form {
  margin: 2rem auto 0;
  max-width: 28rem;
  text-align: left;
}

.contact-form .field {
  margin-bottom: 1.1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--ivory);
}

.contact-form .req {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  background: var(--bg-elev);
  color: var(--ivory);
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0;
}

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

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: var(--gold);
}

.turnstile-wrap {
  margin: 0.4rem 0 1rem;
  min-height: 65px;
}

.contact-status {
  min-height: 1.5em;
  margin: 0 0 1rem;
  font-size: 0.98rem;
}

.contact-status.is-success {
  color: #c6d9b8;
}

.contact-status.is-error {
  color: #e8b4a0;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact .btn[type="submit"] {
  width: 100%;
}

@media (max-width: 720px) {
  .contact-form {
    margin-top: 1.75rem;
  }
}
