:root {
  --ink: #24352d;
  --pine: #30483a;
  --moss: #64775c;
  --ivory: #f7f3e9;
  --paper: #fffdf6;
  --sand: #e8dfcc;
  --clay: #a75f45;
  --line: #dcd4c4;
  --muted: #637065;
  --header-height: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1rem); }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: 'DM Sans', Arial, sans-serif; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: auto; }
h1, h2, h3, .quote { font-family: 'Libre Baskerville', Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(3rem, 5.8vw, 5.65rem); line-height: 1.13; letter-spacing: -.065em; }
h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); line-height: 1.18; letter-spacing: -.055em; }
h3 { font-size: 1.3rem; line-height: 1.3; }
p { margin: 0 0 17px; }
.eyebrow { font-weight: 700; color: var(--clay); font-size: .75rem; text-transform: uppercase; letter-spacing: .18em; }

.header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: var(--header-height); }
.brand { display: flex; min-width: 0; align-items: center; gap: 12px; }
.brand img { flex: none; width: 64px; height: 64px; border-radius: 50%; }
.brand-label { display: block; font: bold 1.05rem Georgia, serif; text-transform: uppercase; letter-spacing: .055em; }
.brand small { display: block; color: var(--moss); font-size: .68rem; letter-spacing: .1em; }
.nav { display: flex; align-items: center; gap: 23px; font-size: .84rem; font-weight: 700; }
.nav a:not(.button):hover, .nav a[aria-current="page"] { color: #894733; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; }
.header :focus-visible, .footer :focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.menu-toggle {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  padding: .5rem .65rem;
  border-radius: 5px;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}

.menu-icon { width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px currentColor, 0 5px currentColor; }
.menu-toggle[aria-expanded="true"] .menu-icon { box-shadow: none; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { display: block; content: ''; width: 100%; height: 2px; background: currentColor; transform: rotate(90deg); }

.button { display: inline-flex; justify-content: center; align-items: center; padding: 13px 20px; border-radius: 4px; background: var(--pine); color: white; font-size: .86rem; font-weight: 700; border: 1px solid var(--pine); }
.button:hover { filter: brightness(.87); }
.button.light { background: transparent; color: var(--pine); }

.footer { background: var(--ink); color: var(--paper); padding: 60px 0 30px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 26px; border-bottom: 1px solid #ffffff30; padding-bottom: 38px; }
.footer-brand { display: flex; gap: 17px; align-items: center; }
.footer-brand img { width: 90px; height: 90px; border-radius: 50%; border: 4px solid #ece5d4; }
.footer-brand strong { font: 1.5rem Georgia, serif; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 25px; font-size: .8rem; color: #bcc9b9; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; z-index: 100; background: white; color: black; padding: 10px; }

@media (max-width: 900px) {
  .nav { gap: 13px; }
}

@media (max-width: 780px) {
  :root { --header-height: 72px; }
  .header .wrap { gap: 10px; }
  .header:not([data-menu-ready]) { position: static; }
  .header:not([data-menu-ready]) .wrap { flex-wrap: wrap; }
  .brand { gap: 9px; }
  .brand img { width: 52px; height: 52px; }
  .brand-label { font-size: .85rem; }
  .brand small { font-size: .57rem; }
  .nav { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a:not(.button) { padding: .65rem 0; min-height: 44px; }
  .header:not([data-menu-ready]) .nav { width: 100%; padding-bottom: 1rem; }
  .header[data-menu-ready] .menu-toggle { display: inline-flex; }
  .header[data-menu-ready] .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    background: var(--paper);
    padding: .65rem max(17px, calc((100% - 1180px) / 2)) 1rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 18px #24352d14;
  }
  .header[data-menu-ready] .menu-toggle[aria-expanded="true"] + .nav { display: flex; }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 34px); }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
}

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