@font-face {
  font-family: "Source Sans 3";
  src: url("source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f7f4;
  --white: #fdfcf9;
  --ink: #1e2a37;
  --muted: #48515a;
  --wine: #682e40;
  --wine-dark: #4f2030;
  --rule: #d9d4ce;
  --text: "Source Sans 3", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.55;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }

a:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 5px;
}

.wrap {
  width: min(100% - 6rem, 78rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 2;
  top: .75rem;
  left: .75rem;
  transform: translateY(-180%);
  padding: .65rem 1rem;
  background: var(--white);
}

.skip-link:focus { transform: none; }

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

.header-inner {
  min-height: 5.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.brand {
  justify-self: start;
  display: flex;
  align-items: center;
  width: clamp(9.75rem, 17vw, 13rem);
  max-width: 100%;
  min-height: 2.75rem;
}

.brand img {
  width: 100%;
  height: auto;
  filter: brightness(0);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.7rem);
}

.nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover, .text-link:hover, .project-link:hover { color: var(--wine); }
.nav a:hover { text-decoration: underline; text-underline-offset: .24em; }

.languages {
  justify-self: end;
  display: flex;
  align-items: center;
  border: 1px solid var(--rule);
}

.languages a {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.5rem;
  padding: .25rem .5rem;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
}

.languages a:hover { background: #eee8e5; }
.languages a[aria-current="page"] { background: var(--ink); color: var(--white); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-areas: "portrait copy";
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6.65rem);
  padding-block: clamp(2.75rem, 5vw, 4.9rem);
}

.hero-copy { grid-area: copy; padding-block: .9rem 1.1rem; }

.location {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}

.location::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  flex: none;
  background: currentColor;
}

h1, h2, h3 { font-weight: 600; }

h1 {
  font-size: clamp(3.5rem, 4.7vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.025em;
}

.hero-bio {
  margin-top: 1.7rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  max-width: 31rem;
}

.hero-role { font-size: clamp(1.125rem, 1.5vw, 1.25rem); font-weight: 600; }
.intro { margin-top: .55rem; color: var(--muted); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.65rem;
  margin-top: 1.65rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: .65rem 1.35rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}

.button-primary { background: var(--wine); color: var(--white); }
.button-primary:hover { background: var(--wine-dark); }

.text-link, .project-link {
  font-size: 1rem;
  font-weight: 500;
  text-underline-offset: .26em;
  text-decoration-thickness: 1px;
}

.portrait {
  display: block;
  grid-area: portrait;
  position: relative;
  margin: 0 .75rem .75rem 0;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: .75rem -.75rem -.75rem .75rem;
  z-index: -1;
  border: 1px solid #aa8d95;
}

.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 38rem;
  object-fit: cover;
  object-position: center 8%;
  background: #d5dbd8;
}

.about { background: var(--white); border-block: 1px solid var(--rule); }

.section-inner { padding-block: clamp(3.25rem, 7vw, 6.25rem); }

.section-intro {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: start;
  gap: clamp(1rem, 6vw, 6rem);
}

.about-copy p + p { margin-top: .9rem; }

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -.018em;
  line-height: 1.18;
  text-wrap: balance;
}

.section-intro p, .project-description, .focus-grid p {
  color: var(--muted);
  max-width: 39rem;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.6rem;
  border-block: 1px solid var(--rule);
}

.focus-grid article {
  padding: 1.45rem clamp(1rem, 2.6vw, 2rem) 1.55rem 0;
}

.focus-grid article + article {
  padding-left: clamp(1rem, 2.6vw, 2rem);
  border-left: 1px solid var(--rule);
}

.focus-grid h3 {
  margin-bottom: .6rem;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.2;
}

.inquiry-grid article { display: flex; flex-direction: column; }

.inquiry-link {
  align-self: start;
  display: inline-flex;
  align-items: end;
  min-height: 2.75rem;
  margin-top: auto;
  padding-top: .8rem;
}

.resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
  margin-top: 2.3rem;
}

.project {
  min-height: 15rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(1.4rem, 3vw, 2.45rem);
  background: #f2eaeb;
  border-top: 2px solid var(--wine);
}

.project:nth-child(2) {
  background: #e9eef0;
  border-color: var(--ink);
}

.project-logo {
  width: 15rem;
  height: 6.5rem;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 1.15rem;
}

.project-category {
  color: var(--wine);
  font-size: 1rem;
  font-weight: 500;
}

.project:nth-child(2) .project-category { color: var(--ink); }

.project h3 {
  margin: .65rem 0 .65rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.18;
  letter-spacing: -.015em;
}

.project-link { margin-top: 1.25rem; }

.contact { background: var(--wine); color: var(--white); }
.contact :is(a, button, select, textarea):focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }

.contact-inner {
  padding-block: clamp(3rem, 6.3vw, 5.5rem);
}

.contact-anchor { display: block; }

.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 35rem;
  margin-top: 1.5rem;
}

.contact-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.contact-actions [hidden] { display: none; }

.button-contact {
  border: 0;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
}

.button-contact:hover { background: #ecdde2; }

.contact-field label { display: block; margin-bottom: .3rem; font-size: 1rem; }

.contact-field :is(select, textarea) {
  display: block;
  width: 100%;
  padding: .55rem .65rem;
  border: 1px solid #d4b8c0;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.contact-field select {
  appearance: none;
  min-height: 3rem;
  padding-right: 2.15rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.2rem) center, calc(100% - .9rem) center;
  background-size: .3rem .3rem;
  background-repeat: no-repeat;
}

.contact-field textarea { resize: vertical; }
.contact-hint { margin-top: .4rem; color: #f3e8eb; font-size: .95rem; }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem 1rem;
  min-height: 4.75rem;
  padding-block: 1rem;
  font-size: .94rem;
}

@media (max-width: 63rem) {
  .wrap { width: min(100% - 3.5rem, 78rem); }
  .header-inner { gap: 1rem; }
  .hero { gap: 2rem; }
  h1 { font-size: clamp(2.75rem, 6vw, 3.5rem); }
}

@media (max-width: 46rem) {
  body { font-size: 1.0625rem; }
  .wrap { width: calc(100% - 2.5rem); }
  .header-inner {
    min-height: auto;
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand languages" "menu menu";
    gap: .2rem 1rem;
    padding-top: .75rem;
  }

  .brand { grid-area: brand; width: clamp(9.75rem, 43vw, 11.5rem); }
  .nav { grid-area: menu; flex-wrap: wrap; column-gap: .8rem; }
  .languages { grid-area: languages; }
  .hero {
    grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
    grid-template-areas:
      "location location"
      "portrait identity"
      "bio bio"
      "actions actions";
    align-items: center;
    gap: 1.05rem .85rem;
    padding-block: 1.9rem 2.55rem;
  }

  .hero-copy { display: contents; }
  .hero-identity { grid-area: identity; }
  h1 { font-size: clamp(2.125rem, 8.5vw, 2.5rem); }
  .location { grid-area: location; margin-bottom: .15rem; }
  .hero-bio { grid-area: bio; margin-top: .2rem; padding-top: 1rem; }
  .hero-actions { grid-area: actions; margin-top: .1rem; }
  .portrait { width: min(100% - .45rem, 15rem); margin: 0 .45rem .45rem 0; }
  .portrait::after { inset: .45rem -.45rem -.45rem .45rem; }
  .portrait img { aspect-ratio: 4 / 5; object-position: center 30%; }
  .section-intro { grid-template-columns: 1fr; }
  .section-intro { gap: 1rem; }
  h2 { text-wrap: wrap; }
  h2, .focus-grid h3 { overflow-wrap: anywhere; hyphens: auto; }
  .focus-grid { grid-template-columns: 1fr; margin-top: 1.6rem; }
  .focus-grid article, .focus-grid article + article { padding: 1.15rem 0; }
  .focus-grid article + article { border-left: 0; border-top: 1px solid var(--rule); }
  .projects-grid { grid-template-columns: minmax(0, 1fr); margin-top: 1.45rem; }
  .project { min-height: 0; }
  .project-category { overflow-wrap: anywhere; hyphens: auto; }
}

@media (max-width: 23rem) {
  .wrap { width: calc(100% - 2rem); }
  .nav { column-gap: .55rem; }
}

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