:root {
  color-scheme: light;
  --canvas: #faf5ee;
  --sand: #ecddcf;
  --ink: #33241f;
  --muted: #66534a;
  --accent: #75493b;
  --dark: #422d27;
  --line: #d8c6b7;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: Manrope, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 1rem/1.65 var(--body);
}
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font: 500 1rem/.98 var(--display); }
h2 {
  font-size: clamp(2.55rem, 5.3vw, 5rem);
  letter-spacing: -.043em;
  text-wrap: balance;
}
p { color: var(--muted); }
section[id] { scroll-margin-top: 1.25rem; }
.shell { width: min(calc(100% - 2 * clamp(1rem, 4.2vw, 4rem)), 80rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 8rem); }

.site-header {
  min-height: 5.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.signature {
  font: 600 clamp(1.55rem, 3vw, 2rem)/1 var(--display);
  text-decoration: none;
  text-wrap: balance;
}
.site-header nav { display: flex; gap: clamp(.8rem, 2.7vw, 2.5rem); }
.site-header nav a, .header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: .875rem;
  font-weight: 600;
}
.site-header nav a { text-decoration: none; }
.site-header nav a:hover, .header-cta:hover { color: var(--accent); text-decoration: underline; }
.header-cta { text-underline-offset: .35em; }

.hero {
  --hero-ground: #533a2c;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  isolation: isolate;
  overflow: hidden;
  border-radius: .35rem;
  background: radial-gradient(ellipse at 92% 28%, #85684f, var(--hero-ground) 68%);
  color: #fff4e6;
}
.hero-copy, .hero-photo { grid-area: 1 / 1; }
.hero-copy {
  z-index: 1;
  align-self: center;
  width: min(65%, 46rem);
  padding: 2.6rem 1rem 2.8rem clamp(1.7rem, 6vw, 6rem);
}
.hero-role {
  display: grid;
  grid-template-columns: minmax(.65rem, 1fr) minmax(0, max-content) minmax(.65rem, 1fr);
  align-items: start;
  gap: .75rem;
  width: min(100%, 29rem);
  margin-bottom: 1.25rem;
  color: #ffe9d5;
  font-size: clamp(.65rem, 1vw, .82rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
}
.hero-role::before, .hero-role::after {
  content: "";
  height: 1px;
  margin-top: .7em;
  background: currentColor;
  opacity: .56;
}
.hero-heading { position: relative; isolation: isolate; }
.hero-flourish {
  position: absolute;
  inset: -9% -3% auto -4%;
  width: 107%;
  height: 124%;
  z-index: -1;
  fill: none;
  stroke: #f7d9b5;
  stroke-width: 1.1;
  opacity: .59;
  pointer-events: none;
}
.hero-flourish path { vector-effect: non-scaling-stroke; }

.hero h1 {
  font-size: clamp(3.4rem, 8.1vw, 7.4rem);
  font-style: italic;
  letter-spacing: -.04em;
  line-height: .88;
}
.hero h1 span { white-space: nowrap; }
.hero-description {
  margin-block: 1.7rem 1.6rem;
  max-width: 28rem;
  color: #fff4e6;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
}
.hero-copy .button {
  border-color: #efe2d1;
  background: #efe2d1;
  color: var(--dark);
}
.hero-copy .button:hover {
  border-color: #fff4e6;
  background: #fff4e6;
}
.hero-copy .button:focus-visible { outline-color: #fff4e6; }
.hero-photo {
  --hero-mask: linear-gradient(90deg, transparent, rgb(0 0 0 / 44%) 32%, #000 72%);
  align-self: end;
  justify-self: end;
  width: min(66%, 36rem);
  -webkit-mask-image: var(--hero-mask);
  mask-image: var(--hero-mask);
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.4rem;
  padding: .78rem 1.25rem;
  border: 1px solid var(--dark);
  border-radius: .35rem;
  background: var(--dark);
  color: #fff9f1;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  line-height: 1.35;
}
.button:hover { background: var(--accent); border-color: var(--accent); }
.button-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.button-outline:hover { background: var(--sand); border-color: var(--accent); }

.topics, .approach-inner, .benefits-inner, .education, .contact-inner {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 6vw, 6rem);
}
.topics { grid-template-columns: minmax(0, .56fr) minmax(0, 1.44fr); }
.section-intro p, .education p, .contact p { margin-top: 1.15rem; max-width: 37rem; }
.section-intro h2 { font-size: clamp(2.55rem, 4.4vw, 4.65rem); }
.section-intro p { max-width: 21rem; }
.topic-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}
.topic-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .75rem;
  padding: clamp(.85rem, 1.3vw, 1.2rem);
  border: 1px solid #e5d7c9;
  border-radius: .7rem;
  background: #f5ebdf;
}
.topic-icon {
  width: 2.375rem;
  height: 2.375rem;
  padding: .5rem;
  border-radius: .45rem;
  background: #ecdbcc;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.topic-list h3 { font-size: 1rem; line-height: 1.35; }
.topic-list p { margin-top: .3rem; line-height: 1.5; }

.approach { background: linear-gradient(125deg, var(--dark) 35%, #50352d); color: var(--canvas); }
.approach-inner { align-items: start; }
.approach p { color: #f0dfd4; font-size: clamp(1rem, 1.65vw, 1.25rem); }
.approach p + p { margin-top: 1.2rem; }
.benefits { background: #f0e3d6; }
.benefits-inner {
  align-items: center;
  padding-block: clamp(2.35rem, 5.25vw, 5rem);
}
.benefits h2 { font-size: clamp(2.35rem, 4.65vw, 4.25rem); }
.benefits p { max-width: 38rem; font-size: clamp(1rem, 1.45vw, 1.15rem); }
.formats-intro p { margin-top: 1.1rem; max-width: 39rem; }
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.offer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .9rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  padding: clamp(1.3rem, 3.1vw, 2.7rem);
}
.offer:first-child { background: linear-gradient(145deg, #f4e9de, #ecddcf); }
.offer h3, .credential h3 {
  font: 600 clamp(1.8rem, 3.2vw, 2.9rem)/1 var(--display);
  letter-spacing: -.024em;
  text-wrap: balance;
}
.offer > p { max-width: 35rem; }
.offer-bottom { margin-top: auto; padding-top: 1rem; }
.offer-meta { font-weight: 600; font-size: .875rem; }
.offer-support {
  margin-block: .75rem 1rem;
  padding: .75rem .875rem;
  border-inline-start: 2px solid var(--accent);
  background: #f3e9de;
}
.offer-support h4 { margin: 0 0 .3rem; font-size: 1rem; line-height: 1.4; }
.offer-support p { line-height: 1.5; }
.price {
  color: var(--ink);
  font: 600 clamp(1.6rem, 3vw, 2.05rem)/1.15 var(--body);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -.045em;
  margin-block: .35rem .9rem;
}
.offer-written {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  align-items: start;
  gap: clamp(1.2rem, 4vw, 3rem);
}
.written-option { border-left: 1px solid var(--line); padding-left: clamp(1rem, 2.5vw, 2rem); }
.offer-written h3 + p { margin-top: .65rem; }
.written-format { margin: 1rem 0 0; }
.written-format dt { font-weight: 700; }
.written-format dd { margin: .15rem 0 0; color: var(--muted); }
.education { border-top: 1px solid var(--line); align-items: center; }
.credential {
  border-block: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  padding: 1.5rem clamp(1rem, 3vw, 2.7rem);
}
.credential p:first-child { margin-top: 0; margin-bottom: .55rem; font-size: .875rem; }
.credential p:last-of-type { margin-top: .65rem; }
.credential-photo {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 1.15rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
}
.contact { background: linear-gradient(120deg, var(--sand), #f2e7da); }
.contact-inner { align-items: start; }
.contact-inner p:first-child { margin-top: 0; }
.messengers { display: flex; flex-wrap: wrap; gap: .65rem; }
.messengers:not(:empty) { margin-top: 1.25rem; }
.messengers .button { min-width: 7rem; }
.contact-social {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.contact-social nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.4rem;
  margin-top: .35rem;
}
.contact-social a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-size: .875rem;
  font-weight: 700;
  text-underline-offset: .25em;
}
.contact-social a:hover { color: var(--accent); }
.contact-status { font-size: .875rem; }
.site-footer { padding-block: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; font-size: .875rem; }
.site-footer a { text-underline-offset: .25em; }

dialog {
  width: min(100% - 2rem, 30rem);
  border: 1px solid var(--line);
  border-radius: .85rem;
  max-height: calc(100% - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  padding: 2.5rem clamp(1.4rem, 5vw, 2.5rem);
  box-shadow: 0 1.25rem 5rem rgb(51 36 31 / 22%);
  background: var(--canvas);
  color: var(--ink);
}
dialog::backdrop { background: rgb(51 36 31 / 60%); }
dialog h2 { font-size: clamp(2.4rem, 6vw, 3.4rem); }
dialog p { margin-top: .9rem; }
.dialog-close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  font: 400 1.65rem/1 var(--body);
  cursor: pointer;
}
.dialog-close:hover { background: var(--sand); }

@media (max-width: 980px) {
  .topics { grid-template-columns: 1fr; gap: 1.75rem; }
  .section-intro h2, .section-intro p { max-width: 34rem; }
  .offer-written { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
  .offer-written > div:first-child { grid-column: 1 / -1; }
  .written-option { border-left: 0; border-top: 1px solid var(--line); padding: 1rem 0 0; }
}

@media (max-width: 760px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: .75rem;
    row-gap: 0;
    padding-top: .25rem;
  }
  .site-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    border-top: 1px solid var(--line);
  }
  .site-header nav a { font-size: .8125rem; }
  .signature { font-size: clamp(1.25rem, 5.3vw, 1.55rem); }
}

@media (max-width: 680px) {
  .approach-inner, .benefits-inner, .education, .contact-inner, .formats { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .benefits-inner { gap: .9rem; }
  .offer-bottom { width: 100%; padding-top: .5rem; }
  .offer .button { width: 100%; }
}

@media (max-width: 640px) {
  .topic-list { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .offer-written { grid-template-columns: 1fr; }
  .written-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .65rem;
  }
  .written-option .price { margin: 0; }
  .written-option .button { grid-column: 1 / -1; }
}

@media (min-width: 600px) and (max-width: 850px) and (max-height: 480px) and (orientation: landscape) {
  .site-header { display: flex; min-height: 3.4rem; gap: .85rem; }
  .site-header nav { border-top: 0; }
  .hero-copy { padding: 1rem 1.5rem; }
  .hero-copy .button { min-height: 2.75rem; padding: .65rem .9rem; }
  .hero-role { margin-bottom: .65rem; line-height: 1.4; }
  .hero h1 { font-size: clamp(2.65rem, 6.5vw, 3.4rem); }
  .hero-description { margin-block: .7rem .85rem; font-size: .9375rem; line-height: 1.5; }
}

@media (max-width: 599px), (max-width: 740px) and (min-height: 481px) {
  .hero { background: radial-gradient(ellipse at 76% 24%, #6f503a, var(--hero-ground) 70%); }
  .hero-copy {
    width: 100%;
    align-self: start;
    padding: clamp(1.35rem, 5.6vw, 2.8rem) 1rem .5rem;
    text-align: center;
  }
  .hero-role {
    gap: .55rem;
    margin: 0 auto .75rem;
    font-size: clamp(.59rem, 2.25vw, .79rem);
    letter-spacing: .12em;
  }
  .hero-heading { max-width: 37rem; margin-inline: auto; }
  .hero-flourish { inset-inline: 0; width: 100%; }
  .hero h1 { font-size: clamp(2.6rem, 13.6vw, 6.1rem); }
  .hero-description {
    margin: .85rem auto .95rem;
    max-width: 35ch;
    font-size: clamp(.9375rem, 2.8vw, 1.125rem);
    line-height: 1.45;
    text-wrap: balance;
  }
  .hero-copy .button { min-height: 2.95rem; padding-inline: .9rem; }
  .hero-photo {
    --hero-mask: linear-gradient(transparent, #000 28%);
    grid-area: 2 / 1;
    width: 100%;
    margin-top: -34%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: appear .65s ease-out both; }
  .hero-photo img { animation: portrait-fade .9s ease-out both; }
  .button {
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
  }
  .button:active { transform: translateY(1px); }
  dialog[open] { animation: appear .24s ease-out both; }
  dialog[open]::backdrop { animation: backdrop-in .24s ease-out both; }
  [data-reveal].revealed { animation: appear .52s ease-out both; }
}

@keyframes appear {
  from { opacity: .55; transform: translateY(.55rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes portrait-fade {
  from { opacity: .5; }
  to { opacity: 1; }
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

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