/* Shared styles: colours, type, header, hero, page intros, buttons and footer.
   Sizes are in rem. Phones are designed at 375px wide (1rem = 10px) and the
   desktop layout at 1280px (1rem = 10px). Between 1000px and 1440px the
   desktop layout scales with the window, then stops growing. */
:root {
  --espresso: #3C2C19; --cream: #FDF9F2; --linen: #F3EADC; --oat: #E2D4BE;
  --wheat: #D9B98F; --crust: #8F5427; --crust-dk: #7A4520; --muted: #6B5640;
  --error: #9B2F22;
  --serif: "Young Serif", Georgia, serif;
  --sans: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --note: "EB Garamond", Georgia, serif;
}
html { font-size: min(calc(100vw / 37.5), 12px); -webkit-text-size-adjust: 100%; }
@media (min-width: 1000px) { html { font-size: clamp(8px, calc(100vw / 128), 11.25px); } }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--espresso); font: 400 1.6rem/1.6 var(--sans); }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
:focus-visible { outline: 0.2rem solid var(--crust); outline-offset: 0.3rem; }
.band--dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--wheat); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1.6rem; top: -10rem; z-index: 20; padding: 1.2rem 1.6rem; background: var(--espresso); color: var(--cream); font-weight: 600; text-decoration: none; }
.skip:focus { top: 1.6rem; }

.wrap { width: min(100% - 4rem, 72rem); margin-inline: auto; }
section { padding: 7.2rem 0; }
.cream { background: var(--cream); }
.linen { background: var(--linen); }
.band--dark { background: var(--espresso); color: var(--cream); }
.band--dark .label { color: var(--wheat); }

.label { margin: 0 0 1.4rem; font: 600 1.15rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--crust); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: 4.4rem; line-height: 1.05; letter-spacing: -.01em; }
h2 { font-size: 3.2rem; line-height: 1.12; }
.lead { margin: 1.6rem 0 0; font-size: 1.7rem; line-height: 1.6; color: var(--muted); }
.band--dark .lead { color: var(--oat); }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 4.8rem; padding: 0 2.6rem;
  border-radius: 0.2rem; border: 0.1rem solid transparent; text-decoration: none; cursor: pointer;
  font: 600 1.25rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--crust); color: var(--cream); }
.btn--primary:hover { background: var(--crust-dk); }
.btn--light { background: var(--cream); color: var(--espresso); }
.btn--light:hover { background: var(--wheat); }
.btn--ghost-light { border-color: var(--cream); color: var(--cream); }
.btn--ghost-light:hover { background: var(--cream); color: var(--espresso); }
.textlink { font: 600 1.25rem/1.7 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--crust); text-underline-offset: 0.4rem; text-decoration-thickness: 0.1rem; }
.textlink:hover { color: var(--crust-dk); }
.actions { display: grid; gap: 1.2rem; margin-top: 2.8rem; }

/* ---------- contact details with line icons ---------- */
.contact-list { list-style: none; margin: 3.2rem 0 0; padding: 0; display: grid; gap: 1.4rem; }
.contact-list li { display: grid; grid-template-columns: 2.2rem 1fr; gap: 1.2rem; align-items: start; line-height: 1.5; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 0.3rem; }
.ci { width: 2.2rem; height: 2.2rem; color: var(--wheat); flex: none; }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 10; background: var(--cream); border-bottom: 1px solid var(--oat); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 6.4rem; }
.logo img { width: 11rem; height: auto; }
.site-header nav ul { list-style: none; margin: 0; padding: 0; }
.site-header nav a { text-decoration: none; }
.menu-btn { width: 4.4rem; height: 4.4rem; margin-right: -1rem; border: 0; background: none; padding: 1rem; cursor: pointer; display: grid; align-content: center; gap: 0.6rem; color: var(--espresso); }
.menu-btn .bar { display: block; height: 0.2rem; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-btn[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(0.8rem) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.menu-btn[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-0.8rem) rotate(-45deg); }
.nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--oat); padding: 0.8rem max(2rem, (100% - 72rem) / 2) 3.2rem; }
.nav-links.open { display: block; }
.nav-links a { display: block; padding: 1.2rem 0; font: 400 2.8rem/1.2 var(--serif); border-bottom: 1px solid var(--oat); }
.nav-links a[aria-current="page"] { color: var(--crust); }

/* ---------- home hero ---------- */
.hero { position: relative; height: 52rem; overflow: hidden; display: flex; align-items: flex-end; padding: 0; color: var(--cream); background: var(--espresso) center / cover no-repeat; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(60, 44, 25, .45); pointer-events: none; }
.hero-content { position: relative; z-index: 1; padding-bottom: 4.8rem; }
.hero-label { margin: 0 0 1.4rem; font: 500 1.5rem/1.4 var(--sans); letter-spacing: .12em; }
.hero h1 { color: var(--cream); }
.hero .btn { margin-top: 2.8rem; width: 100%; }
.hero-toggle { position: absolute; z-index: 2; right: 1.6rem; top: 1.6rem; width: 4rem; height: 4rem; border-radius: 50%; border: 0.1rem solid rgba(253, 249, 242, .6); background: rgba(60, 44, 25, .35); color: var(--cream); display: grid; place-items: center; cursor: pointer; }
.hero-toggle:hover { background: rgba(60, 44, 25, .6); }
.hero-toggle svg { width: 1.4rem; height: 1.4rem; }
.hero-toggle .i-play { display: none; }
.hero-toggle[aria-pressed="true"] .i-play { display: block; }
.hero-toggle[aria-pressed="true"] .i-pause { display: none; }

/* ---------- page intro (every page except Home) ---------- */
.intro { padding: 7.2rem 0 3.2rem; }
.intro-lead { margin-top: 1.6rem; font-size: 1.7rem; line-height: 1.6; color: var(--muted); max-width: 31em; }

/* ---------- footer ---------- */
.site-footer { background: var(--espresso); color: var(--cream); padding: 7.2rem 0 4rem; border-top: 1px solid rgba(253, 249, 242, .12); }
.site-footer .cols { display: grid; gap: 3.2rem; }
.footer-logo { width: 12rem; height: auto; margin-bottom: 1.6rem; }
.site-footer h2 { margin: 0 0 1rem; font: 600 1.2rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--wheat); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { font-size: 1.6rem; line-height: 1.8; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 0.3rem; }
.fci li { display: grid; grid-template-columns: 2rem 1fr; gap: 1rem; align-items: start; }
.fci li + li { margin-top: 0.8rem; }
.fci .ci { width: 2rem; height: 2rem; margin-top: 0.45rem; }
.legal { margin-top: 4.8rem; padding-top: 2.4rem; border-top: 1px solid rgba(253, 249, 242, .18); display: grid; gap: 1.2rem; font-size: 1.3rem; color: var(--oat); }
.legal ul { display: flex; flex-wrap: wrap; gap: 0.4rem 2.4rem; }
.site-footer .legal li { font-size: 1.3rem; line-height: 1.6; }

/* ---------- legal pages and the not-found page ---------- */
.prose-band { padding-top: 0; }
.prose { max-width: 68rem; }
.prose h2 { font-size: 2.4rem; line-height: 1.2; margin: 4rem 0 1.2rem; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 1.4rem; }
.prose ul { margin: 1.2rem 0 1.4rem; padding-left: 2rem; }
.prose li + li { margin-top: 0.4rem; }
.prose a { color: var(--crust); }

/* ================= desktop: 1000px and wider ================= */
@media (min-width: 1000px) {
  body { font-size: 1.8rem; }
  .wrap { width: 112rem; }
  section { padding: 10.4rem 0; }
  .label { font-size: 1.2rem; }
  h1 { font-size: 7.6rem; }
  h2 { font-size: 4.6rem; }
  .lead { font-size: 2rem; max-width: 30em; }
  .btn { font-size: 1.3rem; }
  .actions { display: flex; flex-wrap: wrap; gap: 1.6rem; }
  .contact-list { gap: 1.6rem; }
  .contact-list li { grid-template-columns: 2.4rem 1fr; }
  .ci { width: 2.4rem; height: 2.4rem; }

  .site-header .wrap { height: 8.8rem; }
  .logo img { width: 13.2rem; }
  .menu-btn { display: none; }
  .nav-links { display: flex; position: static; padding: 0; border: 0; gap: 3.2rem; background: none; }
  .nav-links a { padding: 0.8rem 0; border: 0; font: 600 1.3rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
  .nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--crust); }

  .hero { height: 70rem; }
  .hero-content { padding-bottom: 8rem; }
  .hero-label { font-size: 1.7rem; }
  .hero h1 { max-width: 11em; }
  .hero .btn { width: auto; }
  .hero-toggle { right: 3.2rem; top: auto; bottom: 3.2rem; width: 4.4rem; height: 4.4rem; }

  .intro { padding: 10.4rem 0 4.8rem; }
  .intro-lead { font-size: 2rem; }

  .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr; gap: 4.8rem; }
  .legal { grid-template-columns: 1fr auto; align-items: center; }

  .prose h2 { font-size: 2.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
