:root {
  --bg: #f3eee6;
  --paper: #f7f3ec;
  --fg: #1c1712;
  --muted: #6b6258;
  --primary: #3d2a1f;
  --primary-fg: #f3eee6;
  --walnut: #4a3428;
  --border: #d4cbbd;
  --line: #cfc5b6;
  --oak: #7a624c;
  --font-display: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  --wrap: 72rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--fg);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  outline: 1px solid rgba(28, 23, 18, 0.1);
  outline-offset: -1px;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--walnut); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.page { min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.page__main { flex: 1; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header__bar {
  display: none;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) {
  .site-header__bar { display: block; }
}
.site-header__meta {
  display: flex;
  height: 2.25rem;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-header__meta .sep { margin: 0 0.75rem; color: var(--line); }
.site-header__row {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 768px) {
  .site-header__row { height: 4.5rem; }
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg);
}
.brand img { height: 2.75rem; width: auto; outline: none; }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; }
.brand em {
  margin-top: 0.25rem;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav { display: none; align-items: center; gap: 1.75rem; }
@media (min-width: 1024px) {
  .nav { display: flex; }
}
.nav a {
  position: relative;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.nav a:hover,
.nav a.is-active { color: var(--fg); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1.15rem;
  height: 1px;
  background: var(--fg);
}
.site-header__tools { display: flex; align-items: center; gap: 0.5rem; }
.site-header__tools .btn { display: none; }
@media (min-width: 640px) {
  .site-header__tools .btn { display: inline-flex; }
}

.nav-toggle {
  width: 2.75rem; height: 2.75rem;
  border: 0; background: transparent; color: var(--fg);
  display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  cursor: pointer;
}
@media (min-width: 1024px) {
  .site-header__tools .nav-toggle { display: none; }
}
.nav-toggle span {
  display: block; width: 18px; height: 1px; background: currentColor;
}
.nav-toggle__x {
  position: relative; width: 18px; height: 18px;
}
.nav-toggle__x::before,
.nav-toggle__x::after {
  content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 1px; background: currentColor;
}
.nav-toggle__x::before { transform: rotate(45deg); }
.nav-toggle__x::after { transform: rotate(-45deg); }

.overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--fg);
}
.overlay[hidden] { display: none; }
@media (min-width: 1024px) {
  .overlay { display: none !important; }
}
.overlay__top {
  display: flex; height: 4rem; align-items: center; justify-content: space-between;
  padding: 0 1.25rem; border-bottom: 1px solid var(--border);
}
.overlay__nav {
  display: flex; flex: 1; flex-direction: column;
  overflow: auto; padding: 1.5rem;
}
.overlay__nav a {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--walnut);
}
.overlay__nav a.is-active { color: var(--fg); }
.overlay__meta {
  margin-top: auto; padding-top: 2.5rem;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 2.75rem; padding: 0 1.25rem;
  background: var(--primary); color: var(--primary-fg);
  font-size: 0.9rem; border: 0; cursor: pointer;
}
.btn:hover { color: var(--primary-fg); filter: brightness(1.08); }
.btn--sm { height: 2.25rem; padding: 0 0.9rem; font-size: 0.82rem; }
.btn--invert { background: var(--primary-fg); color: var(--primary); }
.btn--block { width: 100%; margin-top: 2rem; }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100dvh - 4rem);
  overflow: hidden;
  background: var(--fg);
  color: var(--primary-fg);
}
@media (min-width: 768px) {
  .hero { min-height: calc(100dvh - 7.25rem); }
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 32%;
  outline: none;
}
.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28, 23, 18, 0.7), rgba(28, 23, 18, 0.2) 45%, rgba(28, 23, 18, 0.1));
}
.hero__inner {
  position: relative;
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin: 0 auto;
  min-height: inherit;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 5rem 0 3.5rem;
}
.hero__eyebrow {
  margin: 0;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(243, 238, 230, 0.75);
}
.hero h1 {
  margin: 1rem 0 0;
  max-width: 18ch;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}
.hero__lead {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  color: rgba(243, 238, 230, 0.82);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Intro */
.intro { border-bottom: 1px solid var(--border); background: var(--paper); }
.intro__inner { width: min(var(--wrap), calc(100% - 2.5rem)); margin: 0 auto; padding: 3rem 0; }
.intro h1 { margin: 0.75rem 0 0; max-width: 20ch; font-size: clamp(2rem, 4vw, 3rem); }
.intro__lead { margin: 1.25rem 0 0; max-width: 40rem; color: var(--muted); }
.eyebrow { margin: 0; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--oak); }
.crumbs { margin-bottom: 1.5rem; font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.crumbs__sep { margin: 0 0.5rem; color: var(--line); }
.crumbs__now { color: var(--fg); }

/* Content / FSC */
.content { width: min(var(--wrap), calc(100% - 2.5rem)); margin: 0 auto; padding: 3.5rem 0; }
.frame-type-text,
.frame-type-textpic,
.frame-type-textmedia,
.frame-type-header,
.frame-type-image,
.frame { margin-bottom: 2.5rem; }
.frame-header h2,
.ce-header { font-size: 2rem; }
.ce-bodytext { color: var(--muted); max-width: 42rem; }
.ce-bodytext p { margin: 0 0 1rem; }
.ce-gallery img,
.ce-image img { width: 100%; }

/* Footer */
.site-footer { background: var(--primary); color: var(--primary-fg); }
.site-footer__grid {
  display: grid; gap: 3rem; padding: 4rem 0;
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer__name { margin: 0; font-family: var(--font-display); font-size: 1.7rem; }
.site-footer__brand p + p { margin-top: 1.25rem; max-width: 28rem; font-size: 0.9rem; color: rgba(243, 238, 230, 0.7); }
.site-footer__label {
  margin: 0;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(243, 238, 230, 0.5);
}
.site-footer ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.site-footer li { margin: 0.4rem 0; }
.site-footer a { color: rgba(243, 238, 230, 0.8); }
.site-footer a:hover { color: var(--primary-fg); }
.site-footer address { margin: 1rem 0 0; font-style: normal; font-size: 0.95rem; color: rgba(243, 238, 230, 0.8); }
.site-footer address p { margin: 0 0 0.5rem; }
.site-footer__socket { border-top: 1px solid rgba(243, 238, 230, 0.1); }
.site-footer__legal {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: 1.15rem 0; font-size: 12px; color: rgba(243, 238, 230, 0.5);
}
@media (min-width: 640px) {
  .site-footer__legal { flex-direction: row; align-items: center; justify-content: space-between; }
}
.site-footer__legal a { margin-left: 1.25rem; }

body.is-nav-open { overflow: hidden; }
