:root {
  --paper: #f6f3ea;
  --white: #fffcf6;
  --sand: #ede7da;
  --sage: #e8ede3;
  --forest: #243d31;
  --dark: #1c3329;
  --ink: #263c32;
  --muted: #516056;
  --copper: #785335;
  --gold: #e8c99a;
  --line: #d8d9cc;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Manrope, system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5.1vw, 4.75rem);
  --section-space: clamp(3.7rem, 7.9vw, 7.25rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.72 var(--sans); }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); line-height: .99; font-weight: 500; letter-spacing: -.045em; }
h1 { font-size: clamp(5rem, 8.4vw, 8.15rem); }
h2 { font-size: clamp(3.15rem, 5.45vw, 5.5rem); }
h3 { font-size: clamp(1.9rem, 2.8vw, 2.55rem); }
a { color: inherit; text-underline-offset: .2em; }
button, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; }
::selection { background: var(--gold); color: var(--dark); }

.wrap { width: min(1250px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.skip { position: fixed; z-index: 30; inset: .7rem auto auto .8rem; padding: .6rem 1rem; background: var(--dark); color: white; transform: translateY(calc(-100% - 20px)); }
.skip:focus { transform: none; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--copper);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; flex: none; background: currentColor; }

.header { position: sticky; top: 0; z-index: 8; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.1rem 1.45rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; width: min(100%, 184px); min-height: 44px; }
.primary-nav, .language { display: flex; align-items: center; }
.primary-nav { justify-content: center; gap: clamp(.75rem, 3.2vw, 2.75rem); flex-wrap: wrap; }
.primary-nav a, .language a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .81rem; font-weight: 800; }
.primary-nav a:hover { text-decoration: underline; }
.header-actions { justify-self: end; }
.language { gap: 3px; }
.language a { justify-content: center; padding-inline: .65rem; min-width: 44px; }
.language a[aria-current="page"] { background: var(--forest); color: white; }
.language a:not([aria-current]):hover { background: var(--sand); }

.hero { background: linear-gradient(120deg, var(--white), var(--paper) 58%, var(--sand)); }
.hero-grid {
  display: grid;
  grid-template: "name portrait" minmax(auto, 1fr) "copy portrait" minmax(auto, 1fr) / minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(.8rem, 2.3vw, 1.6rem) clamp(2rem, 7.2vw, 6.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5.5vw, 5.25rem) clamp(2rem, 4.6vw, 4.1rem);
}
.hero-name { grid-area: name; align-self: end; }
.hero h1 { margin-top: .65rem; }
.hero h1 em { color: var(--copper); font-weight: 500; display: block; }
.hero-copy { grid-area: copy; align-self: start; }
.hero-copy p { max-width: 34rem; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.18rem); }
.portrait { grid-area: portrait; padding: .4rem; background: var(--white); border: 1px solid #d8cbb8; }
.portrait img { aspect-ratio: 4 / 4.68; object-fit: cover; object-position: 50% 36%; }
.actions, .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.25rem; }
.actions { margin-top: 1.4rem; }
.button, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 46px; font-weight: 800; font-size: .82rem; line-height: 1.4; }
.button { padding: .68rem .94rem; border: 1px solid transparent; text-decoration: none; text-align: center; border-radius: 2px; }
.button-dark { background: var(--forest); color: white; border-color: var(--forest); }
.button-dark:hover { background: #345643; border-color: #345643; }
.button-line { color: var(--forest); background: transparent; border-color: #9ba99a; }
.button-line:hover { background: var(--sage); border-color: var(--forest); }
.text-link { text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-color: var(--copper); }
.arrow { display: inline-block; flex: none; position: relative; width: .67em; height: .67em; border-block-start: 1px solid; border-inline-end: 1px solid; }
.arrow::after { content: ""; position: absolute; top: 0; right: 0; width: .92em; border-top: 1px solid; transform: rotate(-45deg); transform-origin: right; }

.facts { display: grid; grid-template-columns: .9fr 1.2fr 1fr; gap: .9rem 1.1rem; padding-block: 1.3rem 1.5rem; border-top: 1px solid #d4d1c1; }
.facts > div + div { border-inline-start: 1px solid #d4d1c1; padding-inline-start: clamp(.7rem, 2.25vw, 1.8rem); }
.facts dt { color: var(--copper); font-size: .67rem; line-height: 1.45; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.facts dd { margin-top: .22rem; font-size: .93rem; font-weight: 800; line-height: 1.4; }

.about { background: var(--paper); border-top: 1px solid var(--line); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
}
.about-copy > p { margin-top: .8rem; color: var(--muted); max-width: 54ch; }
.about-qualifications { margin-top: 1.25rem; border-top: 1px solid var(--line); }
.about-qualifications > div { padding-block: .65rem .72rem; border-bottom: 1px solid var(--line); }
.about-qualifications dt { font-size: .92rem; font-weight: 800; }
.about-qualifications dd { margin-top: .15rem; color: var(--muted); font-size: .87rem; }
.book {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  padding: clamp(1rem, 2.5vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
}
.book-image { aspect-ratio: 4 / 5; object-fit: cover; object-position: center; border: 1px solid #e6e0d4; }
.book-copy > p { margin-top: .52rem; color: var(--muted); font-size: .89rem; }
.book-copy .book-credit { color: var(--copper); font-size: .73rem; font-weight: 800; line-height: 1.45; }
.book-copy .text-link { margin-top: .5rem; justify-content: flex-start; }

.process { background: var(--white); border-top: 1px solid var(--line); }
.process-grid, .team-grid, .contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr); align-items: start; gap: clamp(1.8rem, 6.7vw, 6.35rem); }
.process-intro p, .team-copy > p { margin-top: 1rem; color: var(--muted); max-width: 42ch; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: purchase-step; border-top: 1px solid var(--line); }
.steps li {
  position: relative;
  padding: 1.15rem 0 1.3rem clamp(2.9rem, 6vw, 4.8rem);
  border-bottom: 1px solid var(--line);
  counter-increment: purchase-step;
}
.steps li::before {
  position: absolute;
  inset: 1.16rem auto auto 0;
  content: counter(purchase-step, decimal-leading-zero);
  color: var(--copper);
  font: 500 1.55rem/1 var(--serif);
  font-variant-numeric: tabular-nums;
}
.steps p { margin-top: .45rem; color: var(--muted); font-size: .93rem; }

.team { background: var(--sage); border-block: 1px solid var(--line); }
.team-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; }
.team-photo { padding: .4rem; border: 1px solid #c5cec0; background: var(--white); }
.team-photo img { aspect-ratio: 1.1; object-fit: cover; object-position: center 48%; }
.team-roles { margin-top: 1.3rem; border-top: 1px solid #ccd4c8; }
.team-roles > div { padding-block: .65rem .73rem; border-bottom: 1px solid #ccd4c8; }
.team-roles dt { font-weight: 800; font-size: .88rem; }
.team-roles dd { color: var(--muted); font-size: .88rem; margin-top: .15rem; }
.team-links { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.35rem; margin-top: .65rem; }
.broker { display: inline-flex; align-items: center; min-height: 44px; }
.broker img { width: 108px; }

.contact { background: var(--dark); color: var(--white); }
.contact-grid { align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, .98fr); }
.contact-copy > p { max-width: 38ch; margin-top: .9rem; color: #e1e7dc; }
.direct { display: grid; max-width: 30rem; border-top: 1px solid #627367; margin-top: 1.25rem; }
.direct a { display: flex; align-items: center; justify-content: space-between; gap: .65rem; min-height: 49px; padding-block: .5rem; border-bottom: 1px solid #627367; text-decoration: none; color: #f7eddb; font-weight: 800; overflow-wrap: anywhere; }
.direct a:hover { text-decoration: underline; }
.contact-copy :focus-visible { outline-color: var(--gold); }
.support { background: var(--white); color: var(--ink); padding: clamp(1.15rem, 3.2vw, 2.2rem); }
.support h3 { margin-bottom: 1rem; }
.support label { display: block; margin-block: .8rem .22rem; font-size: .82rem; font-weight: 800; }
.support :is(select, textarea) { width: 100%; border: 1px solid #a7b0a5; background: white; padding: .55rem .6rem; border-radius: 2px; min-height: 44px; }
.support textarea { resize: vertical; }
.form-actions { margin-top: .65rem; gap: .5rem .65rem; }
.form-hint { color: var(--muted); font-size: .76rem; margin-top: .6rem; }

.footer { background: var(--white); border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.2rem; padding-block: .95rem; }
.footer-brand img { width: 153px; }
.footer-inner p, .footer-links { color: var(--muted); font-size: .77rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; }
.footer-links :is(a, button) { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links button { color: inherit; background: transparent; text-decoration: underline; text-underline-offset: .2em; border: 0; padding: 0; }

.policy { padding-block: clamp(3rem, 7vw, 6rem); }
.policy .wrap { max-width: 780px; }
.policy h1 { font-size: clamp(3rem, 6vw, 5.6rem); margin-block: .65rem 1.15rem; }
.policy h2 { font-size: clamp(2rem, 3.7vw, 3.05rem); }
.policy section { margin-block: 1.35rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.policy section p { margin-top: .45rem; }
.policy p + p { margin-top: .65rem; }
.policy p { overflow-wrap: anywhere; }

.mobile-contact-bar { display: none; }
.cookie-banner {
  position: fixed;
  z-index: 10;
  inset-inline-end: max(.625rem, env(safe-area-inset-right));
  inset-block-end: max(.625rem, env(safe-area-inset-bottom));
  width: min(22.5rem, calc(100% - 1.25rem));
  max-height: calc(100vh - 1.25rem);
  max-height: calc(100dvh - 1.25rem);
  overflow: auto;
  padding: .625rem .75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: .625rem;
  box-shadow: 0 .375rem 1.4rem #243d3135;
  color: var(--ink);
  font-size: .75rem;
  line-height: 1.45;
}
.cookie-banner h2 { display: flex; align-items: center; min-height: 1.75rem; padding-inline-end: 5.5rem; font: 800 .875rem/1.45 var(--sans); letter-spacing: normal; }
.cookie-banner p { margin-top: .125rem; }
.cookie-options summary { position: absolute; inset: .625rem .75rem auto auto; display: flex; align-items: center; min-height: 1.75rem; list-style: none; text-decoration: underline; text-underline-offset: .15em; cursor: pointer; }
.cookie-options summary::-webkit-details-marker { display: none; }
.cookie-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: .5rem; }
.cookie-actions button, .cookie-options button { border: 1px solid var(--forest); border-radius: .375rem; font-weight: 800; }
.cookie-actions button { min-height: 2.75rem; padding: .375rem; background: var(--forest); color: white; font-size: .81rem; }
.cookie-actions button:hover { background: #345643; }
.cookie-options[open] { margin-top: .625rem; padding-top: .25rem; border-top: 1px solid var(--line); }
.cookie-options label { display: flex; align-items: center; gap: .5rem; min-height: 2.25rem; cursor: pointer; }
.cookie-options input { width: 1.0625rem; height: 1.0625rem; margin: 0; accent-color: var(--forest); }
.cookie-options button { min-height: 2.5rem; padding: .375rem .75rem; background: white; color: var(--forest); }
.cookie-options button:hover { background: var(--sage); }

@media (max-width: 1000px) {
  .hero-grid { column-gap: clamp(1.75rem, 5vw, 3.5rem); }
  .about-grid { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
  .book { grid-template-columns: minmax(0, .63fr) minmax(0, 1fr); }
  .process-grid, .team-grid, .contact-grid { column-gap: clamp(1.5rem, 5.2vw, 3.7rem); }
}

@media (max-width: 760px) {
  html {
    --mobile-contact-button-height: 3.5rem;
    --mobile-contact-height: calc(var(--mobile-contact-button-height) + 1px + env(safe-area-inset-bottom, 0px));
    scroll-padding-top: 1rem;
    scroll-padding-bottom: var(--mobile-contact-height);
  }
  body.profile { padding-block-end: var(--mobile-contact-height); }
  .header { position: static; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; min-height: 65px; padding-block: .55rem .2rem; gap: .2rem .6rem; }
  .brand { width: min(100%, 151px); }
  .primary-nav { grid-column: 1 / -1; justify-content: flex-start; gap: 0 clamp(.8rem, 4vw, 2rem); }
  .primary-nav a { font-size: .75rem; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .language a { font-size: .73rem; }
  .hero-grid { grid-template: "name" auto "portrait" auto "copy" auto / minmax(0, 1fr); gap: 1.05rem; padding-block: 1.8rem 1.3rem; }
  .hero h1 { font-size: clamp(3.35rem, 11.9vw, 6rem); margin-top: .4rem; overflow-wrap: anywhere; }
  .hero h1 em { display: inline; }
  .eyebrow { font-size: .65rem; letter-spacing: .085em; }
  .eyebrow::before { width: 18px; }
  .portrait img { aspect-ratio: 1.08; max-height: 455px; }
  .hero-copy p { font-size: .98rem; }
  .actions { margin-top: .81rem; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 1.07rem; }
  .facts > div:nth-child(3) { border: 0; padding-inline-start: 0; }
  .process-grid, .team-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .team-copy { grid-row: 1; }
  .footer-inner { justify-content: flex-start; }
  .mobile-contact-bar {
    position: fixed;
    z-index: 9;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
    padding-block-end: env(safe-area-inset-bottom, 0px);
    border-top: 1px solid #ffffff40;
    background: var(--dark);
  }
  .mobile-contact-bar a {
    display: grid;
    place-items: center;
    min-height: var(--mobile-contact-button-height);
    padding: .4rem .5rem;
    color: white;
    font-size: .8125rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
  }
  .mobile-contact-bar a + a { border-inline-start: 1px solid #ffffff40; color: var(--gold); }
  .mobile-contact-bar a:hover { background: #ffffff16; }
  .mobile-contact-bar a:focus-visible { outline-color: var(--gold); outline-offset: -.25rem; }
  .cookie-banner {
    inset-block-end: calc(var(--mobile-contact-height) + .625rem);
    max-height: calc(100vh - var(--mobile-contact-height) - 1.25rem);
    max-height: calc(100dvh - var(--mobile-contact-height) - 1.25rem);
  }
}

@media (max-width: 480px) {
  .book { grid-template-columns: minmax(0, 1fr); }
  .book-image { aspect-ratio: 1.33; object-fit: contain; background: white; }
  .cookie-banner { inset-inline-start: max(.625rem, env(safe-area-inset-left)); width: auto; }
}

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