/* əvōlve · Dir 1 preview (wide stained-glass transom)
   Palette sampled from Image Studio dir-1-wide-transom.png.
   Fonts self-hosted (SIL OFL): EB Garamond (headings, wordmark), Alegreya Sans (body). */

@font-face {
  font-family: "EB Garamond";
  src: url("assets/fonts/EBGaramond-var-subset.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("assets/fonts/AlegreyaSans-Regular-subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("assets/fonts/AlegreyaSans-Italic-subset.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* sampled from the art */
  --burgundy: #48101a;        /* frame */
  --burgundy-mid: #6b1d29;    /* frame, lit edge (derived) */
  --gold: #d39d4b;            /* trim */
  --gold-light: #e9c27a;      /* gold for text on dark wood/burgundy */
  --gold-ink: #7d5418;        /* gold for small text on cream (AA) */
  --walnut: #402416;          /* name rail */
  --walnut-dark: #2a150b;
  --cream: #f5e9c7;           /* rail lettering */
  --sky: #92bede;             /* glass sky */
  --sun: #f3c367;             /* sunburst */
  --purple: #513f77;          /* mountains */
  --river: #618fbc;           /* river */

  /* surfaces */
  --paper: #faf4e6;
  --paper-deep: #f2e8d2;
  --ink: #2a1a14;
  --ink-soft: #5a4335;
  --rule: rgba(125, 84, 24, 0.45);

  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Alegreya Sans", "Gill Sans", "Seravek", "Segoe UI", system-ui, sans-serif;

  --arch: 50% 50% 0 0 / 1.6rem 1.6rem 0 0;  /* shallow arch for cards */
  --measure: 40rem;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--burgundy-mid); text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--burgundy); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.6rem 1rem; background: var(--burgundy); color: var(--cream);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wordmark {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.02em;
  font-feature-settings: "kern", "liga";
}

/* ---------- walnut bands (header + footer) ---------- */
.site-header,
.site-footer {
  background-color: var(--walnut);
  background-image:
    linear-gradient(rgba(42, 21, 11, 0.38), rgba(42, 21, 11, 0.38)),
    image-set(url("assets/dir1/walnut.webp") type("image/webp"), url("assets/dir1/walnut.jpg") type("image/jpeg"));
  background-size: auto, auto 100%;
  background-repeat: repeat-x;
  background-position: center;
  color: var(--cream);
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-top: 3px solid var(--burgundy);
  box-shadow: inset 0 1px 0 var(--gold), 0 1px 0 var(--gold), 0 4px 0 var(--burgundy);
  margin-bottom: 4px;
}
.header-inner {
  max-width: 72rem; margin: 0 auto; padding: 0.7rem 1.25rem;
  display: flex; justify-content: center;
}
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem clamp(1.25rem, 4vw, 3rem); }
.nav a {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: var(--cream);
  text-decoration: none;
  padding: 0.3rem 0.1rem;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--gold-light); border-bottom-color: var(--gold); }

/* ---------- hero: the transom ---------- */
.hero { padding: clamp(2rem, 5vw, 3.75rem) 1.25rem clamp(2.5rem, 5vw, 4rem); }
.hero-inner { max-width: 68rem; margin: 0 auto; text-align: center; }

.eyebrow {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-ink);
  display: flex; align-items: center; justify-content: center; gap: 1rem;
}
.eyebrow::before,
.eyebrow::after { content: ""; height: 1px; width: clamp(1.5rem, 8vw, 5rem); background: var(--gold); }

/* outer gold hairline -> burgundy frame -> gold trim -> glass */
.transom {
  --r: clamp(2.5rem, 8vw, 6rem);
  background: var(--gold);
  padding: 2px;
  border-radius: 50% 50% 4px 4px / var(--r) var(--r) 4px 4px;
}
.transom-frame {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.18), transparent 6%, transparent 94%, rgba(0,0,0,0.18)),
    var(--burgundy);
  padding: clamp(0.6rem, 1.4vw, 1.1rem);
  border-radius: 50% 50% 3px 3px / calc(var(--r) - 2px) calc(var(--r) - 2px) 3px 3px;
}
.transom-glass {
  margin: 0;
  border: 2px solid var(--gold);
  border-radius: 50% 50% 0 0 / calc(var(--r) - 1.1rem) calc(var(--r) - 1.1rem) 0 0;
  overflow: hidden;
  background: var(--walnut-dark);
}
.transom-glass img { width: 100%; aspect-ratio: 1080 / 458; object-fit: cover; }

.name-rail {
  margin-top: clamp(0.6rem, 1.4vw, 1.1rem);
  border: 1px solid var(--gold);
  outline: 1px solid rgba(211, 157, 75, 0.35);
  outline-offset: -6px;
  padding: clamp(1.1rem, 2.6vw, 1.9rem) 1rem clamp(1.2rem, 2.6vw, 1.8rem);
  background-color: var(--walnut);
  background-image:
    linear-gradient(rgba(42, 21, 11, 0.22), rgba(42, 21, 11, 0.22)),
    image-set(url("assets/dir1/walnut.webp") type("image/webp"), url("assets/dir1/walnut.jpg") type("image/jpeg"));
  background-size: auto, auto 100%;
  background-repeat: repeat-x;
  background-position: center;
  color: var(--cream);
}
.name-rail h1 {
  margin: 0;
  display: inline-block;
  padding: 0.12em 0.4em 0;
  border-top: 1px solid rgba(233, 194, 122, 0.7);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 8.5vw, 6rem);
  line-height: 1.05;
  color: var(--cream);
}
.name-rail .tagline {
  margin: 0.55rem auto 0;
  display: block;
  max-width: max-content;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(233, 194, 122, 0.7);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.1vw, 1.45rem);
  letter-spacing: 0.12em;
  color: var(--cream);
}

.hero-copy { max-width: var(--measure); margin: clamp(2rem, 4vw, 2.75rem) auto 0; }
.lede { margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.3rem); line-height: 1.6; color: var(--ink); }
.hero-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35em;
  min-height: 2.9rem; padding: 0.55rem 1.6rem;
  font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 3px;
  transition: background-color 160ms ease, color 160ms ease;
}
.btn-primary {
  background: var(--burgundy); color: var(--cream);
  border: 1px solid var(--burgundy);
  box-shadow: inset 0 0 0 2px var(--burgundy), inset 0 0 0 3px var(--gold);
}
.btn-primary:hover { background: var(--burgundy-mid); color: #fff8e6; }
.btn-ghost { color: var(--burgundy); border: 1px solid var(--burgundy); background: transparent; }
.btn-ghost:hover { background: rgba(72, 16, 26, 0.06); color: var(--burgundy); }
.btn .wordmark { font-size: 1.08em; }

/* ---------- sections ---------- */
.section { padding: clamp(3rem, 6vw, 4.75rem) 1.25rem; }
.section + .section { border-top: 1px solid var(--rule); }
.section-inner { max-width: 60rem; margin: 0 auto; }
.section-inner.narrow { max-width: 44rem; }

.section h1,
.section h2 {
  margin: 0 0 1.4rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.15;
  color: var(--burgundy);
  letter-spacing: 0.01em;
}
/* gold rule with a small lozenge under headings */
.section h2::after {
  content: "";
  display: block;
  width: 5.5rem; height: 7px; margin-top: 0.8rem;
  background:
    linear-gradient(var(--gold), var(--gold)) left center / 100% 1px no-repeat,
    linear-gradient(45deg, transparent 42%, var(--gold) 42% 58%, transparent 58%) center / 7px 7px no-repeat;
}
.section-lead { margin: -0.4rem 0 1.4rem; color: var(--ink-soft); font-style: italic; }
.prose p { margin: 0 0 1rem; max-width: var(--measure); }
.prose p:last-child { margin-bottom: 0; }


/* split layouts */
.section-inner.section-split { display: grid; gap: 2rem 3rem; align-items: start; }
.split-copy { min-width: 0; }
@media (min-width: 800px) {
  .section-inner.section-split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
  .section-split--reverse { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .section-split--reverse .split-copy { order: 2; }
  .section-split--reverse .companion { order: 1; }
}

/* framed images: shallow arch, burgundy + gold trim */
.atmosphere { margin: 0; }
.atmosphere picture {
  display: block;
  background: var(--gold);
  padding: 2px;
  border-radius: 50% 50% 3px 3px / 2.2rem 2.2rem 3px 3px;
}
.atmosphere picture img {
  width: 100%;
  object-fit: cover;
  border: 6px solid var(--burgundy);
  border-radius: 50% 50% 2px 2px / 2.1rem 2.1rem 2px 2px;
}
.atmosphere.companion img { aspect-ratio: 4 / 3.4; max-height: 20rem; }
.atmosphere.contained { margin-top: 1.5rem; }
.atmosphere.contained img { max-height: 24rem; }
.atmosphere figcaption {
  margin-top: 0.7rem;
  font-size: 0.9rem; font-style: italic; color: var(--ink-soft); text-align: center;
}

/* organizations: quiet sky-tinted band */
.plant-medicine { background: linear-gradient(rgba(146, 190, 222, 0.24), rgba(146, 190, 222, 0.24)), var(--paper); }

.interior { background: var(--paper-deep); }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1rem 0.1rem;
  font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--burgundy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 0.55rem; height: 0.55rem; margin-right: 0.3rem;
  border-right: 1.5px solid var(--gold-ink); border-bottom: 1.5px solid var(--gold-ink);
  transform: translateY(-0.15rem) rotate(45deg);
  transition: transform 160ms ease;
}
.faq-item[open] summary::after { transform: translateY(0.1rem) rotate(-135deg); }
.faq-item summary:hover { color: var(--burgundy-mid); }
.faq-item p { margin: 0 0 1.2rem; padding: 0 0.1rem; color: var(--ink); max-width: var(--measure); }

/* ---------- visit card: small transom ---------- */
.visit-card {
  --pad: 1.6rem;
  display: grid;
  font-style: normal;
  margin-top: 0.5rem;
  background: var(--gold);
  padding: 2px;
  border-radius: 50% 50% 4px 4px / 2rem 2rem 4px 4px;
}
.visit-card > p { margin: 0; background: var(--burgundy); color: var(--cream); padding: 0 var(--pad); }
.visit-card > p:first-child { padding-top: 2rem; border-radius: 50% 50% 0 0 / 1.9rem 1.9rem 0 0; }
.visit-card > p:last-child { padding-bottom: 1.6rem; border-radius: 0 0 3px 3px; }
.visit-card .visit-name { font-size: 2.2rem; line-height: 1.1; text-align: center; }
.visit-card .visit-tag {
  text-align: center; font-family: var(--serif); font-style: italic; letter-spacing: 0.06em;
  font-size: 1.05rem; color: var(--gold-light); padding-top: 0.2rem; padding-bottom: 1.1rem;
  background-image: linear-gradient(rgba(233, 194, 122, 0.55), rgba(233, 194, 122, 0.55));
  background-size: calc(100% - 2 * var(--pad)) 1px; background-position: center bottom; background-repeat: no-repeat;
}
.visit-card > p:nth-child(3) { padding-top: 1.1rem; padding-bottom: 0.8rem; }
.visit-card .visit-note { font-style: italic; font-size: 0.98rem; color: #eadcbc; }

/* ---------- contact: burgundy panel ---------- */
.contact { padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }
.contact-panel {
  text-align: center;
  background: var(--burgundy);
  color: var(--cream);
  padding: clamp(2.6rem, 5vw, 3.4rem) clamp(1.25rem, 4vw, 3rem) clamp(2.2rem, 4vw, 3rem);
  border-radius: 50% 50% 4px 4px / 2.6rem 2.6rem 4px 4px;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--gold);
}
.contact-panel h2 { color: var(--cream); }
.contact-panel h2::after { margin-left: auto; margin-right: auto; }
.contact-panel .contact-lead { margin: 0 auto 1.5rem; max-width: 32rem; color: var(--cream); }
.contact-panel .btn-primary {
  background: var(--cream); color: var(--burgundy); border-color: var(--cream);
  box-shadow: inset 0 0 0 2px var(--cream), inset 0 0 0 3px var(--gold);
  font-size: clamp(1rem, 3.6vw, 1.2rem); padding-inline: clamp(1rem, 4vw, 1.8rem);
  overflow-wrap: anywhere;
}
.contact-panel .btn-primary:hover { background: #fff8e6; color: var(--burgundy); }
.contact-panel p { margin-top: 0; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 0;
  border-bottom: 3px solid var(--burgundy);
  box-shadow: 0 -1px 0 var(--gold), 0 -4px 0 var(--burgundy), inset 0 -1px 0 var(--gold);
  margin-top: 4px;
}
.site-footer {
  background-image:
    linear-gradient(rgba(42, 21, 11, 0.5), rgba(42, 21, 11, 0.5)),
    image-set(url("assets/dir1/walnut.webp") type("image/webp"), url("assets/dir1/walnut.jpg") type("image/jpeg"));
  background-size: auto, auto 9rem;
  background-repeat: repeat;
}
.footer-inner {
  max-width: 60rem; margin: 0 auto; padding: 2.2rem 1.25rem 2.4rem;
  text-align: center; font-size: 1rem; color: var(--cream);
}
.footer-mark { margin: 0 auto 0.9rem; opacity: 0.9; }
.footer-inner p { margin: 0.3rem 0; }
.footer-inner .wordmark { font-size: 1.35em; }
.footer-inner a { color: var(--gold-light); text-decoration-color: rgba(233, 194, 122, 0.6); }
.footer-inner a:hover { color: var(--cream); }

/* ---------- narrow screens ---------- */
@media (max-width: 640px) {
  body { font-size: 1.125rem; }
  .transom { --r: 3.25rem; }
  .transom-glass img { aspect-ratio: 640 / 475; }
  .name-rail { padding-inline: 0.5rem; }
  .eyebrow { font-size: 0.8rem; letter-spacing: 0.12em; }
  .eyebrow::before, .eyebrow::after { display: none; }
  .hero-copy .btn { flex: 1 1 9rem; }
  .nav a { font-size: 1rem; letter-spacing: 0.1em; }
  .atmosphere.companion img { aspect-ratio: 4 / 3; }
}

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