@font-face {
  font-family: Prata;
  src: url("./assets/fonts/prata.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("./assets/fonts/golos.woff") format("woff");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f4eb;
  --linen: #eee9dc;
  --light: #fcfaf5;
  --ink: #293225;
  --olive: #37422c;
  --olive-dark: #263020;
  --muted: #54594c;
  --terra: #934b37;
  --line: #d6d1c3;
  --serif: Prata, Georgia, serif;
  --sans: "Golos Text", system-ui, sans-serif;
  --gutter: clamp(18px, 4.2vw, 64px);
  --section-space: clamp(64px, 8vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.58 var(--sans);
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 {
  font: 400 1rem/1.2 var(--serif);
  text-wrap: balance;
}
h2 { font-size: clamp(34px, 4.15vw, 62px); letter-spacing: -.045em; }
h3 { font-size: clamp(23px, 2.05vw, 31px); letter-spacing: -.025em; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 5px; }
[tabindex="-1"]:focus { outline: none; }

.wrap { width: min(1320px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: absolute; z-index: 2; top: 8px; left: 8px; padding: 12px; background: var(--light); }

.site-header {
  min-height: 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  width: fit-content;
  color: var(--olive);
  font: 400 26px/1 var(--serif);
  letter-spacing: -.055em;
  text-decoration: none;
}
.brand img { flex: none; }
.nav { display: flex; gap: clamp(20px, 2.65vw, 40px); font-size: 14px; }
.nav a, .header-book { padding-block: 9px; text-decoration: none; }
.nav a:hover, .header-book:hover { text-decoration: underline; text-underline-offset: 5px; }
.header-book {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
}
.header-book span { color: var(--terra); font-size: 17px; }

.hero {
  margin-top: 24px;
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  gap: clamp(22px, 3vw, 48px);
}
.hero-copy { align-self: center; padding: 32px 0 38px clamp(0px, 1.4vw, 20px); }
.eyebrow {
  color: var(--terra);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .105em;
  text-transform: uppercase;
}
.hero h1 {
  margin-block: 22px 23px;
  font-size: clamp(40px, 4.65vw, 73px);
  line-height: 1.08;
  letter-spacing: -.055em;
  text-wrap: initial;
}
.lead { max-width: 37ch; color: var(--muted); font-size: clamp(16px, 1.34vw, 19px); }
.hero-photo { min-width: 0; overflow: hidden; border-radius: 8px; background: var(--linen); }
.hero-photo img { width: 100%; height: 100%; aspect-ratio: 1.21; object-fit: cover; object-position: center; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; margin-top: 31px; }

.button {
  display: inline-flex;
  min-height: 50px;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  transition: background-color .16s ease, color .16s ease;
}
.button-primary { color: var(--light); background: var(--olive); }
.button-primary:hover { background: var(--olive-dark); }
.button-outline { color: var(--ink); background: transparent; border-color: #969b8a; }
.button-outline:hover { color: var(--light); background: var(--olive); }
.text-link { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-link:hover { color: var(--terra); }
.actions .text-link { font-size: 14px; font-weight: 500; }

.section { margin-top: var(--section-space); }
.section-head { margin-bottom: 32px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head > p:not(.eyebrow) { margin-top: 12px; color: var(--muted); max-width: 59ch; }
.grid { display: grid; gap: 16px; }
.grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.topic-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.topic-grid .card {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 13px;
  padding: 23px 18px 20px 0;
  border-top: 1px solid #91876c;
}
.topic-grid h3 { font-size: clamp(21px, 1.8vw, 28px); text-wrap: initial; }
.topic-grid p { color: var(--muted); font-size: 15px; }
.topic-grid .text-link { color: var(--terra); margin-top: auto; font-size: 14px; font-weight: 500; }

#materials { border-top: 1px solid var(--line); padding-top: clamp(32px, 4vw, 59px); }
.material-grid { display: grid; gap: 18px; }
.story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  overflow: hidden;
  background: var(--linen);
  border-radius: 8px;
}
.story > img { width: 100%; height: 100%; min-height: 100%; aspect-ratio: 1.44; object-fit: cover; }
.story:nth-child(2) > img { grid-column: 2; grid-row: 1; }
.story-copy { align-self: center; padding: clamp(24px, 3.2vw, 53px); }
.story-copy > :is(h3, p:not(.eyebrow), ol, ul) { margin-top: 13px; }
.story-copy h3 { font-size: clamp(28px, 3vw, 44px); text-wrap: initial; }
.story-copy p:not(.eyebrow), .story-list { color: var(--muted); }
.story-list, .rate-list { margin: 0; padding-left: 20px; }
.story-list li + li, .rate-list li + li { margin-top: 7px; }
.story-list li::marker, .rate-list li::marker { color: var(--terra); }
.source { display: inline-block; margin-top: 15px; color: var(--olive); font-size: 13px; }
.habit-story { display: block; background: transparent; border: 1px solid var(--line); }
.habit-story .story-copy > p:last-child { max-width: 77ch; }
.habit-flow, .steps { list-style: none; padding: 0; margin: 0; }
.habit-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-block: 5px;
}
.habit-flow li { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; align-content: start; }
.habit-flow li span:last-child { grid-column: 2; color: var(--muted); }
.flow-number {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--linen);
  color: var(--olive);
  font-size: 14px;
}
.material-cta {
  margin-top: 18px;
  padding: clamp(24px, 3.1vw, 48px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  border-radius: 8px;
  background: var(--olive);
  color: var(--light);
}
.material-cta h3 { text-wrap: initial; }
.material-cta p { margin-top: 8px; color: #edf0e5; }
.material-cta .button { flex: none; color: var(--olive); background: var(--paper); }
.material-cta .button:hover { background: #e6dfce; }
.material-cta :focus-visible, .site-footer :focus-visible { outline-color: var(--light); }

.pricing { background: #ece8dc; border-radius: 8px; padding: clamp(22px, 3.7vw, 54px); }
.rate {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: clamp(18px, 2.1vw, 32px);
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.rate-featured { background: #e5e9d9; border-color: #8a9478; }
.rate h3 { display: flex; align-items: center; min-height: 2.4em; text-wrap: initial; }
.rate-price { margin-top: 12px; font: 400 clamp(34px, 3.2vw, 50px)/1.1 var(--serif); letter-spacing: -.04em; }
.rate-format { color: var(--muted); font-weight: 500; font-size: 14px; margin: 10px 0 18px; }
.rate > p:not([class]) { color: var(--muted); font-size: 15px; }
.rate-list { margin: 12px 0 22px; color: var(--muted); font-size: 14px; }
.rate-link { width: 100%; margin-top: auto; }

.process .card { border-top: 1px solid var(--line); padding-top: 17px; }
.steps h3 { margin-block: 11px 7px; text-wrap: initial; }
.steps p { max-width: 37ch; color: var(--muted); }

.faq { display: grid; grid-template-columns: .66fr 1fr; gap: 32px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  cursor: pointer;
  display: block;
  padding: 16px 36px 16px 0;
  list-style: none;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 5px;
  width: 14px;
  height: 1px;
  background: var(--olive);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { display: none; }
.faq details p { color: var(--muted); padding-bottom: 16px; }

.request {
  display: grid;
  grid-template-columns: .78fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(22px, 4.5vw, 66px);
  background: var(--linen);
  border-radius: 8px;
}
.request-copy h2 { text-wrap: initial; }
.request-copy > p { margin: 14px 0 22px; color: var(--muted); }
.request-contacts { display: grid; justify-items: start; gap: 6px; }
.contact-card { min-width: 0; background: var(--light); padding: clamp(17px, 2.4vw, 32px); border-radius: 6px; }
.consultation-form { display: grid; align-items: start; gap: 7px; }
.consultation-form label { font-size: 14px; font-weight: 600; }
.consultation-form label:not(:first-child) { margin-top: 7px; }
.consultation-form label span, .form-note { color: var(--muted); font-weight: 400; }
.consultation-form :is(input, select) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  color: var(--ink);
  border: 1px solid #aaa99c;
  border-radius: 3px;
  background: var(--light);
}
.consultation-form select { text-overflow: ellipsis; }
.form-note { font-size: 13px; margin: 7px 0 5px; }
.consultation-form > button { justify-self: start; }
.consultation-form > button:disabled { opacity: .65; cursor: wait; }
.form-status { font-size: 14px; margin: 4px 0 0; }
.form-status:empty { margin: 0; }
.form-status[data-state="error"] { color: #913527; }
.form-status[data-state="success"] { color: #3d5428; }

.site-footer { margin-top: var(--section-space); background: var(--olive); color: var(--light); }
.footer-inner { display: grid; grid-template-columns: 1.3fr .8fr 1fr; gap: 24px; padding-block: 38px; }
.site-footer .brand { color: inherit; margin-bottom: 9px; }
.site-footer .brand img { filter: brightness(0) invert(1); }
.site-footer h2 { font: 600 15px/1.4 var(--sans); letter-spacing: 0; margin-bottom: 8px; }
.site-footer :is(p, a:not(.brand), .footer-inner > div > span) { display: block; font-size: 14px; color: #f2eee3; }
.site-footer a:hover { text-underline-offset: 4px; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: clamp(38px, 5vw, 53px); }
  .rate h3 { min-height: 2.4em; }
  .story-copy { padding: clamp(20px, 2.6vw, 32px); }
}
@media (max-width: 850px) {
  .site-header { gap: 14px; }
  .nav { gap: 14px; }
  .brand { font-size: 23px; }
  .hero-copy { padding: 10px 0 15px; }
  .hero h1 { font-size: clamp(38px, 5.3vw, 48px); }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing .grid-three { grid-template-columns: 1fr; }
  .rate h3 { min-height: 0; }
  .rate-link { width: auto; }
}
@media (max-width: 720px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 0; padding-top: 11px; gap: 0 14px; }
  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 8px;
    padding-top: 4px;
    font-size: 13px;
  }
  .nav a { padding-block: 10px 12px; }
  .header-book { grid-column: 2; grid-row: 1; }
  .hero { display: flex; flex-direction: column; gap: 23px; margin-top: 30px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(37px, 9vw, 57px); margin-block: 12px 13px; }
  .hero-photo img { aspect-ratio: 1.32; }
  .actions { margin-top: 19px; gap: 12px; }
  .actions .button { padding-inline: 16px; }
  .section-head { margin-bottom: 23px; }
  .story { grid-template-columns: 1fr; }
  .story > img { height: auto; min-height: 0; aspect-ratio: 1.46; }
  .story:nth-child(2) > img { grid-column: auto; grid-row: auto; }
  .material-cta { align-items: start; flex-direction: column; }
  .faq, .request { grid-template-columns: 1fr; gap: 18px; }
  .faq .section-head { margin-bottom: 0; }
  .request-copy h2 { max-width: 12ch; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 450px) {
  .topic-grid { grid-template-columns: 1fr; gap: 9px; }
  .topic-grid .card { padding: 15px 0 13px; gap: 7px; }
  .habit-flow, .steps, .footer-inner { grid-template-columns: 1fr; }
  .habit-flow { gap: 12px; }
  .rate-link { width: 100%; }
  .request { padding: 17px; }
  .draft-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
