@font-face {
  font-family: "EB Garamond";
  src: url("assets/fonts/eb-garamond-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("assets/fonts/eb-garamond-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("assets/fonts/jost-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
}

:root {
  --forest: #073e28;
  --blush: #edd3ca;
  --sage: #d2d9d7;
  --content-width: 1022px;
  --column-inset: clamp(2.5rem, 8vw, 114px);
}

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

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

body {
  margin: 0;
  background: var(--forest);
  color: var(--blush);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.container {
  width: calc(100% - 3rem);
  max-width: var(--content-width);
  margin-inline: auto;
}

.page-header {
  padding-block: 85px 36px;
  background: url("assets/design/section-rule.svg") repeat-x left bottom;
}

.page-header h1 {
  text-align: center;
  font-size: 5rem;
  font-weight: 400;
  min-height: 127px;
  line-height: 1.3;
}

.intro-section {
  padding-block: 84px 68px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  column-gap: 125px;
  align-items: start;
}

.portrait-wrap {
  position: relative;
  width: 292px;
  margin-top: 8px;
}

.portrait-underlay {
  position: absolute;
  inset: -14px 14px 14px -14px;
  background: var(--sage);
}

.portrait {
  position: relative;
  width: 292px;
  height: 292px;
  object-fit: fill;
}

.label {
  font-family: "Jost", system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 25px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.intro-label,
.section-label {
  margin-bottom: 24px;
}

.intro-copy p + p {
  margin-top: 31px;
}

.signature {
  font-style: italic;
}

.services-section {
  padding-block: 138px 104px;
  background: var(--sage);
  color: var(--forest);
  color-scheme: light;
}

.services-lead {
  margin-bottom: 68px;
}

.services-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.services-grid::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 8px;
  left: 50%;
  width: 1px;
  background: url("assets/design/column-rule.svg") repeat-y left top;
}

.service {
  min-width: 0;
  padding-block: 63px 72px;
}

.service:nth-child(odd) {
  padding-right: var(--column-inset);
}

.service:nth-child(even) {
  padding-left: var(--column-inset);
}

.service:nth-child(-n + 2) {
  padding-top: 0;
  padding-bottom: 69px;
}

.service:nth-child(2n + 3)::before {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  margin-top: -63px;
  background: url("assets/design/row-rule.svg") repeat-x left top;
}

.service:nth-last-child(-n + 2) {
  padding-bottom: 0;
}

.service h3 {
  margin-bottom: 31px;
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
}

.service ul {
  padding-left: 30px;
  list-style: disc;
  font-style: italic;
}

.service li + li {
  margin-top: 15px;
}

.meeting-section {
  padding-block: 113px 106px;
}

.meeting-section p {
  font-style: italic;
}

footer {
  padding-block: 89px 106px;
  background: url("assets/design/section-rule.svg") repeat-x left top;
}

footer h2 {
  font-size: 5rem;
  font-weight: 400;
  min-height: 127px;
  line-height: 1.3;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 8px;
}

.underlined {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

@media (max-width: 1199px) {
  .intro-grid {
    column-gap: 64px;
  }

  .intro-section,
  .services-section {
    padding-block: 96px;
  }
}

@media (max-width: 959px) {
  .intro-grid {
    grid-template-columns: 220px minmax(0, 1fr);
    column-gap: 40px;
  }

  .portrait-wrap,
  .portrait {
    width: 220px;
    height: 220px;
  }

  .services-grid {
    display: block;
  }

  .services-grid::before,
  .service:nth-child(2n + 3)::before {
    display: none;
  }

  .service:nth-child(n) {
    padding: 40px 0;
  }

  .service:first-child {
    padding-top: 0;
  }

  .service:last-child {
    padding-bottom: 0;
  }

  .service + .service {
    background: url("assets/design/row-rule.svg") repeat-x left top;
  }

  .services-lead {
    margin-bottom: 48px;
  }
}

@media (max-width: 639px) {
  body {
    font-size: 1.125rem;
    line-height: 1.6;
  }

  .page-header {
    padding-block: 32px;
  }

  .page-header h1 {
    font-size: 3.5rem;
    min-height: 0;
    line-height: 1.25;
  }

  .intro-section,
  .services-section,
  .meeting-section,
  footer {
    padding-block: 64px;
  }

  .intro-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 48px;
  }

  .portrait-wrap {
    width: min(292px, calc(100% - 14px));
    height: auto;
    margin-inline: auto;
    margin-top: 0;
  }

  .portrait {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .label {
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .intro-copy p + p {
    margin-top: 24px;
  }

  .service h3 {
    margin-bottom: 24px;
  }

  .service ul {
    padding-left: 24px;
  }

  footer h2 {
    margin-bottom: 24px;
    font-size: clamp(2rem, 10vw, 4rem);
    min-height: 0;
    line-height: 1.25;
  }

  .contact-links {
    column-gap: 12px;
  }
}

@media (max-width: 479px) {
  .contact-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-links > [aria-hidden] {
    display: none;
  }
}
