:root {
  color-scheme: light;
  --paper: #f8f5ef;
  --ink: #2b1b3c;
  --muted: #60536a;
  --line: #d9d0df;
  --purple: #4a2d70;
  --violet: #653e92;
  --lilac: #e5d9f7;
  --green: #e6edb0;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --gutter: clamp(1.2rem, 4.8vw, 4.75rem);
  --section: clamp(3.75rem, 8.2vw, 7.85rem);
  font-family: var(--sans);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }
.wrap { width: min(100% - var(--gutter) * 2, 79rem); margin-inline: auto; }
.skip { position: absolute; z-index: 2; top: -6rem; left: 1rem; padding: .6rem 1rem; background: white; }
.skip:focus { top: 1rem; }
.section { padding-block: var(--section); scroll-margin-top: 1rem; }

.header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 760; font-size: 1.17rem; letter-spacing: -.055em; text-decoration: none; white-space: nowrap; }
.brand-dot { flex: none; width: 2.02rem; height: 2.02rem; border-radius: 50%; }
.brand-period { margin-inline-start: -.56rem; color: var(--violet); }
.nav, .header-actions { display: flex; align-items: center; gap: clamp(.8rem, 2.2vw, 2rem); }
.nav a, .lang, .header-book { padding-block: .7rem; font-size: .89rem; font-weight: 640; text-decoration: none; white-space: nowrap; }
.nav a:hover, .lang:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.header-book { display: inline-flex; align-items: center; gap: .5rem; padding-inline: .85rem; border: 1px solid var(--line); border-radius: 999px; }
.header-book:hover { border-color: var(--violet); color: var(--purple); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .91fr);
  align-items: center;
  gap: clamp(1.75rem, 5.7vw, 6.25rem);
  padding-block: clamp(2.75rem, 6.25vw, 6rem) clamp(3rem, 7vw, 7rem);
}
.eyebrow { font-size: .75rem; font-weight: 760; letter-spacing: .105em; text-transform: uppercase; }
.hero-eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--purple); margin-bottom: 1.15rem; }
.hero-eyebrow::before { content: ""; width: .52rem; height: .52rem; flex: 0 0 auto; background: var(--violet); border-radius: 50%; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: .99; letter-spacing: -.059em; text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 7.2vw, 7.35rem); }
h1 em { color: var(--violet); padding-inline-end: .15em; }
h2 { font-size: clamp(2.65rem, 5vw, 5.25rem); }
.hero-copy { max-width: 29rem; margin-top: clamp(1.2rem, 2.3vw, 2.1rem); font-size: clamp(1.05rem, 1.55vw, 1.25rem); color: var(--muted); }
.button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3.45rem;
  padding: .82rem 1.15rem .82rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 730;
  line-height: 1.22;
  text-decoration: none;
}
.button > span { flex-shrink: 0; font-size: 1.25rem; font-weight: 500; }
.button-primary { margin-top: 1.55rem; color: white; background: var(--purple); }
.button-primary:hover { background: #3c245e; }
.hero-note { margin-top: .67rem; font-size: .82rem; color: var(--muted); }
.hero-figure { padding: .7rem; background: var(--lilac); border-radius: .55rem; transform: rotate(1.5deg); }
.hero-image { position: relative; background: #c3b2d7; overflow: hidden; border-radius: .28rem; aspect-ratio: 1 / 1.03; }
.hero-image > img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.hero-quote {
  position: absolute;
  right: 4.2%;
  bottom: 6%;
  max-width: 57%;
  transform: rotate(-4deg);
  padding: .65rem .85rem;
  border-radius: .7rem .7rem .15rem .7rem;
  background: var(--green);
  box-shadow: .2rem .26rem 0 #2b1b3c60;
  font-size: .78rem;
  color: #333719;
}
.hero-quote strong { display: block; font: italic clamp(1.02rem, 2vw, 1.55rem)/1.05 var(--serif); }
.hero-quote span { display: block; margin-top: .22rem; line-height: 1.3; }
figcaption { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; column-gap: 1rem; padding: .64rem .27rem .12rem; color: #4b3962; font-size: .77rem; }
figcaption strong { color: var(--ink); }

.formats { background: #f0e9f6; border-block: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .55fr); align-items: end; gap: 1.3rem 2rem; margin-bottom: clamp(1.6rem, 4vw, 3.3rem); }
.section-heading h2 { text-wrap: pretty; }
.section-heading > p { color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.15rem); max-width: 25rem; }
.format-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.format-card { display: grid; grid-template-rows: auto auto 1fr auto; gap: .8rem; padding: clamp(1.2rem, 2.55vw, 2.2rem); border: 1px solid #dcd0e7; border-radius: .65rem; background: var(--paper); }
.format-card h3 { font: 400 clamp(1.55rem, 3vw, 2.35rem)/1 var(--serif); letter-spacing: -.045em; }
.format-card p { color: var(--muted); }
.format-card .format-example { border-top: 1px solid var(--line); margin-top: .2rem; padding-top: .85rem; font-size: .87rem; font-weight: 640; color: var(--purple); }
.format-mark { display: flex; align-items: center; min-height: 2.25rem; padding-left: .08rem; }
.format-mark i { width: 1.58rem; height: 1.58rem; border: 1px solid var(--purple); border-radius: 50%; background-color: #ddcbef; }
.format-mark i + i { margin-inline-start: -.36rem; }
.format-one i:nth-child(n + 2), .format-pair i:nth-child(3) { display: none; }
.format-pair i:nth-child(2), .format-group i:nth-child(2n) { background-color: #eed7e2; }
.format-group i:last-child { background-color: var(--green); }

.method-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(1.8rem, 6.2vw, 6rem); align-items: center; }
.phrase { padding: clamp(1.35rem, 4.2vw, 3.75rem); border: 1px solid #cfdb94; border-radius: .65rem; background: var(--green); color: #393c23; }
.phrase .eyebrow { margin-bottom: .55rem; }
.phrase .phrase-text { font: italic clamp(1.95rem, 4.2vw, 4.05rem)/1.03 var(--serif); letter-spacing: -.055em; margin-top: 1.25rem; }
.phrase-translation { margin-top: .45rem; font-size: .92rem; }
.text-link { display: inline-flex; align-items: baseline; gap: .33rem; font-weight: 690; text-underline-offset: .24em; }
.text-link:hover { text-decoration-thickness: 2px; }
.phrase .text-link { margin-top: 1.4rem; }
.steps { counter-reset: steps; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: steps; display: flex; gap: 1.2rem; align-items: baseline; border-bottom: 1px solid var(--line); padding: 1.2rem 0; }
.steps li:first-child { border-top: 1px solid var(--line); }
.steps li::before { content: counter(steps, decimal-leading-zero); flex: 0 0 1.8rem; font: italic 1.15rem/1 var(--serif); color: var(--violet); }
.steps h3 { font-size: 1.04rem; margin-bottom: .18rem; }
.steps p { color: var(--muted); }

.faq { padding-block-start: 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { min-height: 3.7rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .75rem; cursor: pointer; list-style: none; font-size: 1rem; font-weight: 690; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+" / ""; flex: 0 0 1.6rem; color: var(--violet); text-align: center; font-size: 1.45rem; font-weight: 400; }
details[open] summary::after { content: "−" / ""; }
details > p { max-width: 45rem; color: var(--muted); padding: 0 1rem 1.12rem 0; }

.callout { color: #fff9ff; background: #35214e; }
.call-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.7rem 3rem; padding-block: clamp(2.8rem, 6.3vw, 5.75rem); }
.call-inner p { margin-top: .9rem; max-width: 33rem; color: #ecddf6; font-size: 1.06rem; }
.call-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .85rem; }
.button-light { background: var(--green); color: #25281b; }
.button-light:hover { background: #f0f4c4; }
.callout :focus-visible { outline-color: white; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 1.15rem 2rem; flex-wrap: wrap; padding-block: 1.55rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .45rem 1.2rem; }
.footer-links a { padding-block: .5rem; color: var(--muted); font-size: .89rem; font-weight: 620; text-decoration: none; }

@media (max-width: 56rem) {
  .nav { gap: .85rem; }
  .header-actions { gap: .75rem; }
  .header-book { display: none; }
  .hero { gap: 1.85rem; }
  figcaption { font-size: .72rem; }
}

@media (max-width: 44rem) {
  .header-inner { min-height: 4rem; }
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 1.95rem; padding-top: 2.25rem; }
  h1 { font-size: clamp(3.08rem, 11.9vw, 5.8rem); }
  .hero-copy { margin-top: .95rem; }
  .button-primary { margin-top: 1.05rem; }
  .hero-eyebrow { margin-bottom: .75rem; letter-spacing: .075em; }
  .hero-figure { padding: .53rem; transform: rotate(1deg); }
  .hero-image { aspect-ratio: 1.17; }
  .hero-quote { max-width: 57%; right: 4%; bottom: 6%; }
  .section-heading, .format-grid, .method-grid, .faq-grid, .call-inner { grid-template-columns: 1fr; }
  .format-grid { gap: .7rem; }
  .format-card { gap: .55rem; }
  .format-card .format-example { padding-top: .68rem; }
  .call-actions { gap: .65rem; }
}

@media (forced-colors: active) {
  .button, .brand-dot { border: 1px solid ButtonText; }
}
