@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/golos-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/golos-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #faf8f3;
  --warm-paper: #f2ede5;
  --sage: #e7eee5;
  --ink: #212b24;
  --muted: #4f5b50;
  --forest: #2a4537;
  --deep-forest: #23372e;
  --rule: #d8d9cf;
  --font-body: "Golos Text", Arial, sans-serif;
  --page-width: 76rem;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --section-space: clamp(3.75rem, 7.6vw, 7.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3,
p,
figure,
dl,
dd,
ul {
  margin: 0;
}

h1,
h2 {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

h2 {
  font-size: clamp(2rem, 3.65vw, 3.35rem);
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid #855f3e;
  outline-offset: 4px;
}

.container {
  width: min(var(--page-width), calc(100% - var(--gutter) - var(--gutter)));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

.masthead {
  background: var(--warm-paper);
  border-bottom: 1px solid #ded7ca;
}

.masthead__inner {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}

.masthead__name,
.footer__name {
  font-weight: 600;
  line-height: 1.3;
}

.button {
  display: inline-flex;
  min-height: 3.4rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font: 600 1rem/1.25 var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button--outline {
  min-height: 2.75rem;
  padding: 0.6rem 1.1rem;
  border-color: #a5aba0;
  color: var(--forest);
  font-size: 0.875rem;
}

.button--outline:hover {
  border-color: var(--forest);
  background: var(--sage);
}

.button--primary {
  background: var(--forest);
  color: #fffdf7;
}

.button--primary:hover {
  background: #1c3227;
}

.hero {
  padding-block: clamp(2.5rem, 4.7vw, 4.75rem) clamp(3.8rem, 6.5vw, 6.5rem);
  background: var(--warm-paper);
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 5.5vw, 5.5rem);
}

.hero__context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  margin-bottom: clamp(1.2rem, 2.4vw, 2rem);
  color: var(--forest);
  font-size: 0.9375rem;
  font-weight: 500;
}

.hero__location {
  padding-inline-start: 1rem;
  border-inline-start: 1px solid #aeb7a9;
}

.hero h1 {
  font-size: clamp(2.5rem, 4.75vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 span {
  display: block;
  margin-top: 0.26em;
  font-size: 0.62em;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.hero__description {
  max-width: 28rem;
  margin-block: clamp(1.2rem, 2.35vw, 1.9rem) clamp(1.3rem, 2.4vw, 1.85rem);
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.55;
}

.hero__portrait {
  aspect-ratio: 10 / 11;
  overflow: hidden;
  background: #d1c3b6;
}

.hero__portrait img {
  height: 100%;
  object-fit: cover;
  object-position: 50% 41%;
}

.about__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  align-items: center;
  column-gap: clamp(2.25rem, 6vw, 6.25rem);
}

.about__content {
  grid-column: 2;
  grid-row: 1;
}

.about__photo {
  grid-column: 1;
  grid-row: 1;
  background: #2b2e34;
}

.about__photo img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 43% center;
}

.about__content h2 {
  margin-bottom: 1.25rem;
}

.about__content > p {
  max-width: 38rem;
  margin-bottom: 0.8rem;
  color: var(--muted);
}

.about__label {
  margin-top: 1.7rem;
  margin-bottom: 0.6rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.affiliations > div {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.75rem;
  padding-block: 0.55rem;
  border-top: 1px solid var(--rule);
}

.affiliations dt {
  color: var(--forest);
  font-size: 0.875rem;
  font-weight: 700;
}

.affiliations dd {
  font-size: 0.9375rem;
}

.services {
  background: var(--sage);
}

.services__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: 2rem;
}

.services__list,
.resource-list {
  padding: 0;
  list-style: none;
}

.services__list {
  border-bottom: 1px solid #b9c7b8;
}

.services__list li {
  padding-block: 1.2rem 1.4rem;
  border-top: 1px solid #b9c7b8;
}

.services__list h3 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.35;
}

.services__list p {
  max-width: 36rem;
  color: var(--muted);
}

.resources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2.75rem, 7.3vw, 7.5rem);
}

.resources h2 {
  margin-bottom: 1.45rem;
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
}

.resource-list {
  border-bottom: 1px solid var(--rule);
}

.resource-list li {
  padding-block: 1.05rem;
  border-top: 1px solid var(--rule);
  font-weight: 500;
  line-height: 1.48;
}

.resource-list a {
  color: var(--forest);
  text-decoration-color: #97a796;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 160ms ease;
}

.resource-list a:hover {
  text-decoration-color: currentColor;
}

.resource-list__note {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 400;
}

.appointment {
  position: relative;
  isolation: isolate;
  background: var(--deep-forest);
  color: var(--paper);
  scroll-margin-top: 1rem;
}

.appointment__photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(49%, 60rem);
  overflow: hidden;
}

.appointment__photo img {
  transform: translateY(-3%);
  mask-image: linear-gradient(#000 86%, transparent);
}

.appointment__photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--deep-forest), rgb(35 55 46 / 48%) 23%, transparent 60%);
  content: "";
}

.appointment__layout {
  position: relative;
  padding-block: clamp(3.6rem, 7vw, 6.5rem);
}

.appointment__content {
  width: min(51%, 34rem);
}

.appointment h2 {
  font-size: clamp(1.625rem, 2.35vw, 2.25rem);
  text-wrap: balance;
}

.appointment-form {
  max-width: 28rem;
  margin-top: 1.7rem;
}

.form-field + .form-field {
  margin-top: 0.95rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.form-field input {
  display: block;
  width: 100%;
  min-height: 3.45rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d9ded5;
  border-radius: 3px;
  background: #fffdf9;
  color: var(--ink);
  font: inherit;
}

.form-field input::placeholder {
  color: #60695e;
  opacity: 1;
}

.appointment :focus-visible {
  outline-color: #f0d7ab;
}

.button--submit {
  width: 100%;
  margin-top: 1.3rem;
  background: #d8e7cb;
  color: #20352a;
}

.button--submit:hover:not(:disabled) {
  background: #e8f0de;
}

.button--submit:disabled {
  opacity: 0.72;
  cursor: default;
}

.form-status:not(:empty) {
  margin-top: 0.8rem;
  color: #e3eddd;
  font-size: 0.9375rem;
}

.form-status[data-state="error"] {
  color: #ffdbca;
}

.footer {
  border-top: 1px solid var(--rule);
  background: var(--paper);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem 1.5rem;
  padding-block: 1.55rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer__name {
  color: var(--ink);
}

@media (max-width: 56rem) {
  .hero__layout,
  .about__layout {
    gap: 2rem;
  }

  .hero__context {
    display: grid;
    justify-items: start;
  }

  .hero__location {
    padding-inline-start: 0;
    border-inline-start: 0;
  }
}

@media (max-width: 49rem) {
  .hero__layout,
  .about__layout,
  .services__layout,
  .resources {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero h1 {
    font-size: clamp(2.125rem, 7.6vw, 3.5rem);
  }

  .hero__description {
    max-width: 23rem;
  }

  .hero__portrait {
    aspect-ratio: 10 / 10.4;
    max-height: 34rem;
  }

  .about__content,
  .about__photo {
    grid-column: auto;
    grid-row: auto;
  }

  .about__photo img {
    aspect-ratio: 3 / 2;
  }

  .services__layout {
    gap: 1.45rem;
  }

  .resources {
    row-gap: 2.65rem;
  }

  .appointment__photo {
    position: relative;
    inset: auto;
    width: min(calc(100% - var(--gutter) - var(--gutter)), 42rem);
    height: clamp(16rem, 75vw, 25rem);
    margin-inline: auto;
  }

  .appointment__photo::after {
    background: linear-gradient(180deg, transparent 57%, var(--deep-forest));
  }

  .appointment__layout {
    margin-top: -1.4rem;
    padding-block: 0 3.5rem;
  }

  .appointment__content {
    width: 100%;
  }
}

@media (max-width: 25rem) {
  .masthead__inner {
    gap: 0.6rem;
  }

  .masthead__name {
    max-width: 9rem;
    font-size: 0.9375rem;
  }

  .masthead .button {
    padding-inline: 0.55rem;
  }
}

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

  .button,
  .resource-list a {
    transition: none;
  }
}
