@font-face {
  font-family: "Cormorant Garamond";
  src: url("./assets/cormorant.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("./assets/cormorant-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("./assets/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #f8f6ef;
  --ink: #282c23;
  --text: #4e5148;
  --muted: #555a4e;
  --moss: #536349;
  --leaf: #354035;
  --olive-wash: #e8e9df;
  --line: #d6d7cb;
  --rust: #964b36;
  --rust-dark: #733726;
  --gold-line: #ac873b;
  --white: #fffdf7;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --section: clamp(4.25rem, 8vw, 7.25rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
}

h1, h2 {
  line-height: .97;
  letter-spacing: -.045em;
}

h2 {
  font-size: clamp(3.35rem, 6vw, 5.4rem);
}

em {
  color: var(--moss);
  font-weight: 500;
}

h1 em, h2 em {
  background: linear-gradient(var(--gold-line), var(--gold-line)) left 94% / 100% 2px no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

a {
  color: inherit;
}

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

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

[id] {
  scroll-margin-top: 1.5rem;
}

.shell {
  width: min(100% - 7rem, 76rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1;
  inset: 1rem auto auto 1rem;
  padding: .75rem 1.125rem;
  transform: translateY(-150%);
  border-radius: .25rem;
  color: var(--white);
  background: var(--leaf);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.masthead {
  min-height: 5.6rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  width: fit-content;
  text-decoration: none;
}

.brand-mark {
  flex: none;
  width: auto;
  height: 3.5rem;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: .125rem;
  line-height: 1.2;
}

.brand-name {
  color: var(--ink);
  font: 500 1.5rem/1.1 var(--serif);
  white-space: nowrap;
  letter-spacing: -.035em;
}

.brand-role {
  color: var(--muted);
  font-size: .875rem;
}

.main-nav {
  display: flex;
  gap: clamp(1.2rem, 3vw, 3rem);
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--text);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--rust);
  text-decoration: underline;
  text-underline-offset: .3em;
}

.button {
  display: inline-flex;
  min-height: 3.4rem;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: .78rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 100px;
  text-align: center;
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.35;
  transition: background-color .18s, border-color .18s, color .18s;
}

.button-outline {
  justify-self: end;
  min-height: 2.75rem;
  border-color: #858c79;
  color: var(--leaf);
}

.button-outline:hover {
  border-color: var(--leaf);
  background: var(--leaf);
  color: var(--white);
}

.button-primary {
  background: var(--rust);
  color: var(--white);
}

.button-primary:hover {
  background: var(--rust-dark);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  width: fit-content;
  color: var(--leaf);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: .32em;
}

.text-link:hover {
  color: var(--rust);
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr minmax(0, .92fr);
  align-items: center;
  gap: clamp(2.25rem, 6vw, 6rem);
  padding-block: clamp(3rem, 5vw, 5rem);
}

.hero-copy {
  padding-block: .75rem;
}

.eyebrow {
  display: flex;
  gap: .65rem;
  align-items: center;
  color: var(--moss);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: .115em;
}

.eyebrow span {
  flex: 0 0 1.4rem;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  margin-block: 1.35rem 1.55rem;
  font-size: clamp(4.25rem, 7.55vw, 7.45rem);
  line-height: .88;
}

.hero-title-line {
  display: block;
}

.hero-intro {
  max-width: 28rem;
  color: var(--text);
  font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 1.45rem;
  margin-top: 1.85rem;
}

.portrait {
  min-width: 0;
}

.portrait-media {
  aspect-ratio: 1 / 1;
  background: radial-gradient(ellipse at 52% 57%, #dce2d4, transparent 72%);
}

.portrait-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.portrait figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem 1rem;
  flex-wrap: wrap;
  padding: .9rem .125rem 0;
  border-top: 1px solid var(--line);
}

.portrait-name, .portrait-role {
  display: block;
}

.portrait-name {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.025em;
}

.portrait-role {
  margin-top: .3rem;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.3;
}

.registration {
  color: var(--moss);
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
}

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

.services {
  background: var(--olive-wash);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.2fr minmax(0, .8fr);
  gap: 1rem 3rem;
  align-items: end;
  margin-bottom: 2.15rem;
}

.section-heading h2, .faq h2, .contact h2 {
  margin-top: .85rem;
}

.section-heading > p {
  max-width: 26rem;
  padding-bottom: .25rem;
  color: var(--text);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid #bdc4b2;
}

.service {
  padding: 1.6rem 1.75rem 1.75rem;
}

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

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

.service + .service {
  border-left: 1px solid #bdc4b2;
}

.service h3 {
  font-size: clamp(2.3rem, 3.2vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.service p {
  margin-top: .55rem;
  color: var(--text);
}

.service .text-link {
  margin-top: .4rem;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(2.25rem, 8vw, 7rem);
  align-items: center;
}

.about-media {
  justify-self: center;
  width: min(100%, 29rem);
}

.about-copy > p {
  max-width: 34rem;
  margin-top: 1.2rem;
  color: var(--text);
}

.credentials {
  display: grid;
  gap: .75rem;
  margin: 1.5rem 0 0;
  padding: 1.2rem 0 0 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--text);
}

.credentials li::marker {
  color: var(--moss);
}

.faq {
  border-top: 1px solid var(--line);
  background: #f2f1e9;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.faq h2 {
  max-width: 10ch;
}

.faq-items {
  border-top: 1px solid #c9ccbf;
}

details {
  border-bottom: 1px solid #c9ccbf;
}

summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.6rem;
  gap: 1rem;
  align-items: center;
  padding-block: 1.12rem;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "";
  display: block;
  width: 1rem;
  height: 1rem;
  margin-inline: auto;
  background:
    linear-gradient(var(--moss), var(--moss)) center / 100% 1px no-repeat,
    linear-gradient(var(--moss), var(--moss)) center / 1px 100% no-repeat;
}

details[open] summary::after {
  background-size: 100% 1px, 0 0;
}

summary:hover {
  color: var(--rust);
}

details p {
  max-width: 37rem;
  padding: 0 2.5rem 1.25rem 0;
  color: var(--text);
}

.contact {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  color: var(--white);
  background: var(--leaf);
}

.contact-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem 4rem;
}

.contact em, .contact .eyebrow {
  color: #d7ddca;
}

.contact h2 em {
  --gold-line: #d5bf81;
}

.contact h2 + p {
  max-width: 28rem;
  margin-top: 1rem;
  color: #e7ebdf;
}

.contact-actions {
  display: grid;
  justify-items: center;
  gap: .4rem;
}

.button-light {
  background: var(--white);
  color: var(--leaf);
  white-space: nowrap;
}

.button-light:hover {
  background: #dfe3d3;
}

.contact .text-link {
  color: var(--white);
}

.contact .text-link:hover {
  color: #d7ddca;
}

.contact a:focus-visible {
  outline-color: var(--white);
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.6rem;
  color: var(--muted);
  font-size: .875rem;
}

.footer-name {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.1;
}

@media (max-width: 69rem) {
  .shell {
    width: calc(100% - 4.5rem);
  }

  .hero h1 {
    font-size: clamp(3.9rem, 8vw, 6.9rem);
  }
}

@media (max-width: 52rem) {
  .shell {
    width: calc(100% - 3rem);
  }

  .masthead {
    grid-template-columns: 1fr 1fr;
    gap: .3rem .75rem;
    padding-top: .8rem;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 1.6rem;
  }

  .header-contact {
    grid-column: 2;
    grid-row: 1;
  }

  .hero {
    gap: 2rem;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 8vw, 5rem);
  }

  .hero-actions {
    gap: .4rem 1.15rem;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .service {
    padding-inline: 1.15rem;
  }

  .about {
    gap: 2rem;
  }

  .faq-layout {
    gap: 2rem;
  }
}

@media (max-width: 39rem) {
  .shell {
    width: calc(100% - 2.5rem);
  }

  .masthead {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand {
    gap: .45rem;
    max-width: 100%;
  }

  .brand-mark {
    height: 2.85rem;
  }

  .brand-name {
    font-size: 1.31rem;
    white-space: normal;
  }

  .header-contact {
    padding-inline: .65rem;
    font-size: .875rem;
  }

  .hero, .about, .faq-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-block: 2.8rem 3.25rem;
  }

  .hero-copy {
    padding: 0;
  }

  .hero h1 {
    margin-block: .9rem 1.25rem;
    font-size: clamp(3.1rem, 14.5vw, 5.8rem);
  }

  .hero-actions {
    margin-top: 1.35rem;
  }

  .portrait {
    max-width: 30rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service {
    padding: 1.45rem 0;
  }

  .service + .service {
    border-top: 1px solid #bdc4b2;
    border-left: 0;
  }

  .about-media {
    grid-row: 2;
  }

  .faq h2 {
    max-width: none;
  }

  .contact-layout {
    align-items: start;
    flex-direction: column;
  }

  .contact-actions {
    justify-items: start;
  }

  .footer-layout {
    flex-wrap: wrap;
  }
}

@media (max-width: 22rem) {
  .shell {
    width: calc(100% - 2rem);
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .brand-role {
    font-size: .8125rem;
  }

  .header-contact {
    max-width: 7.5rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    --motion-ease: cubic-bezier(.22, 1, .36, 1);
  }

  .hero-title-line, [data-reveal="heading"].is-in-view {
    animation: title-rise 640ms var(--motion-ease) backwards;
  }

  .hero-title-line:nth-child(2) {
    animation-delay: 80ms;
  }

  .hero-title-line:nth-child(3) {
    animation-delay: 160ms;
  }

  .hero h1 em, [data-reveal="heading"].is-in-view em {
    animation: underline-draw 680ms var(--motion-ease) 200ms backwards;
  }

  .hero .portrait-media, [data-reveal="photo"].is-in-view {
    animation: portrait-enter 800ms var(--motion-ease) backwards;
    transform-origin: center bottom;
  }

  .hero .portrait-media {
    animation-delay: 80ms;
  }

  @keyframes title-rise {
    from {
      transform: translateY(.8rem);
    }
  }

  @keyframes underline-draw {
    from {
      background-size: 0 2px;
    }
  }

  @keyframes portrait-enter {
    from {
      opacity: .72;
      transform: translateY(.8rem) scale(.98);
    }
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .portrait-media img, .about-media img {
    transform-origin: center bottom;
    transition: transform 600ms var(--motion-ease);
  }

  .portrait-media:hover img, .about-media:hover img {
    transform: scale(1.025);
  }
}

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

  .button {
    transition: none;
  }
}
