:root {
  color-scheme: light;
  --paper: #f7f4eb;
  --sand: #efeadc;
  --forest: #263927;
  --ink: #222c22;
  --muted: #575e50;
  --line: #d8d5c7;
  --display: Baskerville, 'Palatino Linotype', Georgia, serif;
  font-family: 'Avenir Next', Avenir, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; width: 100%; height: auto; }
figure, h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; }
em { font-weight: 400; }
:focus-visible { outline: 2px solid #976434; outline-offset: 4px; }

.shell { width: min(100% - clamp(2rem, 8vw, 9rem), 83rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 5.5rem;
  gap: 1.5rem;
}
.wordmark { display: inline-grid; width: max-content; text-align: center; text-decoration: none; }
.wordmark-name { font: 2rem/.92 var(--display); letter-spacing: -.04em; }
.wordmark-detail { margin-top: .4rem; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; }
nav { display: flex; gap: clamp(1.25rem, 4vw, 3.5rem); }
nav a { font-size: .94rem; text-decoration: none; text-underline-offset: .35em; }
nav a:hover { text-decoration: underline; }
.header-inner > .button { justify-self: end; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  width: fit-content;
  padding: .68rem 1.16rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.button-outline { border-color: #778374; color: var(--forest); }
.button-outline:hover { background: var(--sand); }
.button-primary { color: var(--paper); background: var(--forest); }
.button-primary:hover { background: #3a513c; }
.button-light { background: var(--paper); color: var(--forest); }
.button-light:hover { background: var(--sand); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr);
  align-items: stretch;
  padding-block: 2.75rem 2.25rem;
}
.hero-copy {
  align-self: center;
  padding: clamp(2rem, 4vw, 3.6rem) clamp(1.5rem, 3.5vw, 3.5rem) clamp(2rem, 4vw, 3.6rem) 0;
}
.eyebrow {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero h1 { margin-top: 1.15rem; font-size: clamp(3.25rem, 6.05vw, 6.15rem); line-height: .92; letter-spacing: -.045em; }
.hero h1 em { display: block; color: var(--forest); }
.hero-intro { max-width: 25rem; margin-top: 1.55rem; color: var(--muted); font-size: 1.06rem; line-height: 1.65; }
.hero-copy .button { margin-top: 1.65rem; }
.hero-image { display: grid; grid-template-rows: 1fr auto; min-width: 0; }
.hero-image img { height: 100%; min-height: clamp(24rem, 39vw, 37rem); object-fit: cover; object-position: 56% 54%; }
figcaption { margin-top: .55rem; color: var(--muted); font-size: .8125rem; line-height: 1.4; }

.approach {
  display: grid;
  grid-template-columns: minmax(9rem, .65fr) minmax(0, 1.3fr) minmax(0, 1.35fr);
  align-items: baseline;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5.5vw, 5.25rem);
}
.approach h2, .journal-copy h2, .enquiry-inner h2 { font-size: clamp(2.65rem, 5vw, 5rem); line-height: .96; letter-spacing: -.035em; }
.approach > p:last-child, .journal-copy > p:not(.eyebrow), .enquiry-inner p {
  font-size: 1.05rem;
  line-height: 1.68;
}
.approach > p:last-child, .journal-copy > p:not(.eyebrow) { color: var(--muted); }

.journal-section { background: var(--sand); padding-block: clamp(2.7rem, 6vw, 5.8rem); }
.journal-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  margin-top: 1.2rem;
}
.journal-image img { aspect-ratio: 4 / 3; object-fit: cover; }
.journal-copy { max-width: 29rem; }
.journal-copy h2 { margin-top: .8rem; }
.journal-copy em { display: block; }
.journal-copy > p:not(.eyebrow) { margin-top: 1.1rem; }
.text-link { display: inline-block; margin-top: 1.35rem; font-weight: 600; text-underline-offset: .3em; }
.text-link:hover { color: #784d30; }

.enquiries { background: var(--forest); color: var(--paper); }
.enquiry-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding-block: clamp(3rem, 6.25vw, 5.75rem); }
.enquiry-inner p { margin-top: .75rem; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; padding-block: 1.7rem; color: var(--muted); font-size: .94rem; }
.site-footer a { text-underline-offset: .25em; }

.assistant {
  width: min(calc(100% - 2rem), 31rem);
  max-height: calc(100% - 2rem);
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1.5rem 4rem #17221744;
}
.assistant[open] { display: flex; flex-direction: column; overflow: hidden; }
.assistant::backdrop { background: #19291db5; }
body:has(.assistant[open]) { overflow: hidden; }
.assistant-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; padding: 1.2rem 1.25rem 1rem; border-bottom: 1px solid var(--line); }
.assistant-heading h2 { font-size: 2.15rem; line-height: 1; }
.assistant-heading p { margin-top: .45rem; color: var(--muted); font-size: .875rem; }
.close-button { min-width: 2.5rem; min-height: 2.5rem; padding: 0; border: 1px solid var(--line); background: transparent; color: var(--forest); font-size: 1.65rem; line-height: 1; }
.close-button:hover { background: var(--sand); }
.conversation { display: flex; flex-direction: column; gap: .65rem; min-height: 4rem; max-height: 19rem; padding: 1rem 1.25rem; overflow-y: auto; overflow-wrap: anywhere; }
.message { width: fit-content; max-width: 92%; padding: .7rem .85rem; background: var(--sand); line-height: 1.5; }
.message-user { align-self: flex-end; background: var(--forest); color: var(--paper); }
.message a { display: block; margin-top: .45rem; text-underline-offset: .2em; }
.suggestions { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 1.25rem 1rem; }
.suggestions button { min-height: 2.5rem; padding: .45rem .65rem; border: 1px solid #879485; background: transparent; color: var(--forest); font-size: .875rem; }
.suggestions button:hover { background: var(--sand); }
.assistant-form { display: flex; gap: .5rem; padding: .85rem 1.25rem 1.25rem; border-top: 1px solid var(--line); }
.assistant-form input { flex: 1; min-width: 0; padding: .65rem .75rem; border: 1px solid #879485; border-radius: 0; background: white; color: var(--ink); }
.visually-hidden, .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: fixed; z-index: 1; top: .5rem; left: .5rem; padding: .5rem; background: var(--paper); }

@media (max-width: 820px) {
  .hero-copy { padding-right: 1.25rem; }
  .hero h1 { font-size: clamp(3rem, 6.8vw, 5rem); }
  .hero-break { display: none; }
  .approach { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .approach > .eyebrow { grid-column: 1 / -1; }
}

@media (max-width: 630px) {
  .header-inner { grid-template-columns: 1fr auto; gap: .95rem 1rem; padding-block: 1rem .8rem; }
  .header-inner nav { grid-column: 1 / -1; grid-row: 2; gap: 1.5rem; }
  .header-inner > .button { grid-column: 2; grid-row: 1; }
  .hero { grid-template-columns: 1fr; padding-block: .65rem 1.9rem; }
  .hero-copy { padding: 1.7rem 0 1.75rem; }
  .hero h1 { font-size: clamp(3.1rem, 11.5vw, 4.8rem); }
  .hero-image img { min-height: 0; height: auto; aspect-ratio: 5 / 4; }
  .approach, .journal-entry { grid-template-columns: 1fr; gap: 1.15rem; }
  .journal-copy { padding-top: .65rem; }
  .enquiry-inner { align-items: flex-start; flex-direction: column; }
}

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