:root {
  --paper: #f4e6cc;
  --paper-2: #efe0c4;
  --foam: #fbf6ec;
  --ink: #1b1714;
  --indigo: #16325c;
  --indigo-deep: #0c2242;
  --vermilion: #c4452d;
  --ochre: #c9893a;
  --pine: #2c4a38;
  --line: rgba(27, 23, 20, 0.16);
  --shadow: 0 18px 50px rgba(12, 34, 66, 0.12);
  --serif: "Spectral", "Iowan Old Style", Palatino, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --settle: cubic-bezier(0.22, 1, 0.36, 1);
  --measure: 68ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    repeating-linear-gradient(0deg, rgba(27, 23, 20, 0.035) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(27, 23, 20, 0.025) 0 1px, transparent 1px 7px),
    radial-gradient(circle at 12% 8%, rgba(201, 137, 58, 0.16), transparent 28%),
    linear-gradient(180deg, var(--foam), var(--paper) 18%, var(--paper-2));
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--indigo);
  color: var(--foam);
  padding: 0.6rem 1rem;
  z-index: 20;
}
.skip:focus { top: 1rem; }

.proposal {
  background: var(--paper);
  color: var(--indigo);
  text-align: center;
  font-size: 0.92rem;
  padding: 0.55rem 1rem;
}
.proposal strong { font-weight: 700; }

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 4vw;
  background: rgba(251, 246, 236, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.mark {
  font-family: var(--serif);
  font-size: 1.35rem;
  text-decoration: none;
  letter-spacing: -0.03em;
}
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--vermilion); }
.bar-cta, .stamp, .text-link {
  text-decoration: none;
}
.bar-cta, .stamp, .form button, .nav-toggle {
  background-color: #8a5a32;
  background-image: url("images/wood.jpg");
  background-size: cover;
  background-position: center;
  color: #24140c;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 #f6e7cf, 0 2px 0 rgba(246, 231, 207, 0.45);
  -webkit-text-stroke: 0;
  border: 1px solid #3a2414;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 236, 210, 0.28), inset 0 -2px 0 rgba(36, 18, 8, 0.25);
  padding: 0.55rem 1rem;
}
a.carved-sign, button.carved-sign {
  background: none;
  background-image: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  color: transparent;
  text-shadow: none;
  -webkit-text-stroke: 0;
}
.stamp { display: inline-flex; align-items: center; min-height: 48px; padding: 0.8rem 1.2rem; }
.carved-sign {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  line-height: 0;
  color: transparent;
  text-shadow: none;
}
.carved-sign img {
  height: 52px;
  width: auto;
  max-width: min(92vw, 520px);
  display: block;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--ink);
  background: transparent;
  min-height: 44px;
  padding: 0 0.9rem;
}

.hero {
  min-height: calc(100svh - 7rem);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  margin: 1.2rem 3vw 0;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.hero-art {
  min-height: 72vh;
  object-fit: cover;
  height: 100%;
  width: 100%;
}
.hero-sheet {
  background: var(--foam);
  color: var(--ink);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-left: 1px solid var(--ink);
}
.kicker {
  margin: 0 0 1rem;
  color: var(--vermilion);
  font-size: 0.95rem;
}
h1, h2, .mark, .chapter h2, .article h1 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
h1 {
  margin: 0 0 1rem;
  font-size: clamp(3.1rem, 6vw, 5.6rem);
}
.lede { font-size: 1.15rem; max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; margin-top: 0.5rem; }
.text-link { border-bottom: 1px solid var(--vermilion); padding-bottom: 0.1rem; }

.chapter, .band, .visit, .faq, .blog-tease, .footer {
  width: min(1180px, calc(100% - 6vw));
  margin: 0 auto;
}
.chapter { padding: 5.5rem 0 1rem; }
.chapter-kicker, .band-kicker {
  margin: 0 0 0.6rem;
  color: var(--indigo);
  font-size: 0.95rem;
}
.chapter h2, .band h2, .visit h2, .faq h2, .blog-tease h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  max-width: 16ch;
}
.chapter-grid, .visit-grid, .blog-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}
.plate {
  margin: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.plate img { width: 100%; height: min(68vh, 640px); object-fit: cover; }
.plate figcaption {
  color: var(--ink);
  padding: 0.7rem 1rem 0.9rem;
  font-family: var(--serif);
}
.prose { max-width: var(--measure); }
.quote {
  margin: 1.4rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--vermilion);
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.35;
}

.pillars, .programs, .day {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
}
.pillars { grid-template-columns: repeat(4, 1fr); }
.pillar, .program, .day-item, .guide, .card {
  background: rgba(251, 246, 236, 0.72);
  border: 1px solid var(--line);
  padding: 1.1rem 1.15rem 1.2rem;
}
.pillar h3, .program h3, .day-item h3, .guide h3 { margin: 0.2rem 0 0.45rem; font-family: var(--serif); font-size: 1.55rem; font-weight: 500; }
.pillar p, .program p, .day-item p, .guide p, .card p { margin: 0; }
.word { display: block; margin-top: 0.8rem; color: var(--vermilion); font-family: var(--serif); }

.programs { grid-template-columns: 1.3fr 1fr 0.9fr; align-items: stretch; }
.program { display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; }
.program-tag { color: var(--indigo); font-size: 0.92rem; }
.program-accent { background: rgba(251, 246, 236, 0.92); color: var(--ink); border-left: 6px solid #6d432c; }
.program-accent .program-tag { color: var(--indigo); }

.day { grid-template-columns: repeat(4, 1fr); }
.day-item { border-top: 4px solid var(--indigo); }
.day-item:nth-child(2) { border-top-color: var(--ochre); }
.day-item:nth-child(3) { border-top-color: var(--vermilion); }
.day-item:nth-child(4) { border-top-color: var(--pine); }

.blog-tease { padding: 4rem 0 2rem; }
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.guide { text-decoration: none; display: flex; flex-direction: column; min-height: 240px; }
.guide:hover { border-color: var(--ink); }
.guide span, .card span { color: var(--vermilion); }
.guide h3 { font-size: 1.45rem; }
.guide em { margin-top: auto; font-style: normal; font-family: var(--serif); }

.visit { padding: 3rem 0 2rem; }
.visit-grid { align-items: start; }
.form {
  display: grid;
  gap: 0.8rem;
  background: var(--foam);
  border: 1px solid var(--ink);
  padding: 1.2rem;
}
.form label { display: grid; gap: 0.3rem; }
.form input, .form textarea {
  border: 1px solid var(--line);
  background: white;
  padding: 0.75rem 0.8rem;
  color: var(--ink);
}
.form button {
  border: 0;
  background: var(--indigo);
  color: var(--foam);
  min-height: 48px;
  cursor: pointer;
}
.form-note, .success { margin: 0; font-size: 0.95rem; }
.success { color: var(--pine); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.facts span { display: block; color: var(--indigo); }

.faq { padding-bottom: 3rem; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.35rem; }
.faq details p { max-width: var(--measure); }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.page-hero { width: min(1180px, calc(100% - 6vw)); margin: 2rem auto 0; }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); max-width: 16ch; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.4rem; }
.filters button {
  border: 1px solid var(--line);
  background: transparent;
  min-height: 44px;
  padding: 0 0.9rem;
  cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--indigo); color: var(--foam); border-color: var(--indigo); }
.cards { display: grid; gap: 0.8rem; }
.card { text-decoration: none; }
.card h2 { font-family: var(--serif); font-size: 2rem; margin: 0.3rem 0; max-width: 22ch; }
.empty { display: none; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-top: 2rem; }

.article { width: min(760px, calc(100% - 8vw)); margin: 2rem auto 3rem; }
.crumbs { font-size: 0.95rem; }
.crumbs a { color: var(--indigo); }
.article h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.meta { color: var(--indigo); }
.article h2 { font-size: 2rem; margin-top: 2rem; }
.article .aside {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--ink);
  background: var(--foam);
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 4vw 1.2rem;
    background: var(--foam);
    border-bottom: 1px solid var(--ink);
  }
  .nav.is-open { display: flex; }
  .hero, .chapter-grid, .visit-grid, .blog-layout, .pillars, .programs, .day, .guides, .principles, .facts {
    grid-template-columns: 1fr;
  }
  .hero { margin: 0; border-left: 0; border-right: 0; }
  .hero-sheet { border-left: 0; border-top: 1px solid var(--ink); }
  .hero-art { min-height: 52vh; }
  h1 { font-size: clamp(2.7rem, 12vw, 4rem); }
}

@media (max-width: 700px) {
  .bar { padding: 0.55rem 3vw; }
  .logo { width: 40px; height: 40px; }
  .mark { font-size: 1.05rem; }
  .hero-sheet { padding: 1.2rem; }
  .lede { font-size: 1.02rem; }
  .chapter, .band, .visit, .faq, .blog-tease, .footer, .page-hero { width: min(1180px, calc(100% - 8vw)); }
  .chapter h2, .visit h2, .faq h2, .blog-tease h2, .page-hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .pillar, .program, .day-item, .guide, .card { min-height: 0; }
  .program { min-height: 0; }
  .plate img { height: auto; max-height: 46vh; }
  .footer { flex-direction: column; }
  .footer-logo { width: 72px; height: 72px; }
  .plant { width: 92px; }
  .plant-a, .plant-c, .plant-e { left: -36px; }
  .plant-b, .plant-d, .plant-f { right: -32px; }
  .plant-c, .plant-d { top: 38vh; }
  .plant-e, .plant-f { bottom: 10vh; }
  .dock { right: 0; bottom: 0.35rem; }
  .dock > button { width: 44px; height: 44px; }
  .moth { width: 84px; height: 84px; right: 48px; bottom: 0.45rem; }
  .moth-flight { width: 84px; height: 84px; margin: 0; }
  .moth-bubble { display: none; }
  .chat, .a11y-panel { left: 0.4rem; right: 3.2rem; width: auto; }
  .chat { bottom: 9.2rem; }
  .a11y-panel { right: 0.4rem; bottom: 9.4rem; }
  .form input, .form textarea, .chat-form input { font-size: 16px; }
}

.text-link {
  border-bottom: 0;
  background: linear-gradient(var(--vermilion), var(--vermilion)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.35s var(--settle);
}
.text-link:hover { background-size: 100% 2px; }

.stamp, .bar-cta, .form button, .nav-toggle, .dock > button, .a11y-panel button, .filters button, .chat-quick button, .chat-form button {
  transition: filter 0.25s var(--settle);
}
.stamp:hover, .bar-cta:hover, .form button:hover, .dock > button:hover { filter: brightness(1.06); }
.filters button, .chat-quick button, .a11y-panel button, .chat-form button {
  background:
    radial-gradient(circle at 70% 0%, rgba(255, 255, 255, 0.55), transparent 46%),
    linear-gradient(165deg, #f3ecdf, #c9b79a);
  color: #3a2a1c;
  border: 1px solid #8d7460;
  border-radius: 999px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), 0 1px 0 #8d7460;
}

.mark { display: flex; align-items: center; gap: 0.65rem; }
.logo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.footer-logo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }

.garden { position: fixed; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.plant { position: absolute; width: min(240px, 22vw); transform-origin: bottom left; will-change: transform; }
.plant-a { left: -6vw; top: 8vh; width: min(220px, 20vw); }
.plant-b { right: -5vw; top: 14vh; width: min(210px, 19vw); transform-origin: bottom right; }
.plant-c { left: -8vw; top: 42vh; width: min(190px, 18vw); }
.plant-d { right: -7vw; top: 48vh; width: min(230px, 21vw); transform-origin: bottom right; }
.plant-e { left: -5vw; bottom: 6vh; width: min(200px, 18vw); }
.plant-f { right: -6vw; bottom: 2vh; width: min(250px, 22vw); transform-origin: bottom right; }
.firefly {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f6e7a1;
  box-shadow: 0 0 10px 4px rgba(246, 231, 161, 0.75);
  opacity: 0;
}
html.is-night .firefly { animation: firefly 5.5s ease-in-out infinite; }
@keyframes firefly {
  0%, 100% { opacity: 0; }
  35% { opacity: 0.85; }
  60% { opacity: 0.15; }
}

.dock {
  position: fixed;
  right: 0;
  bottom: 0.55rem;
  z-index: 36;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}
.dock > button {
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 8px 0 0 8px;
  border-right: 0;
  background: var(--foam);
  background-image: none;
  color: var(--ink);
  text-shadow: none;
  display: grid;
  place-items: center;
}
.dock > button svg { width: 30px; height: 30px; display: block; overflow: visible; }
.dock > button.dock-access {
  background: #5eb3e4;
  color: #fff;
  border-color: #2b7eae;
}
.dock > button.dock-access img { width: 32px; height: 32px; display: block; object-fit: contain; }
.dock > button, .a11y-panel button {
  min-height: 44px;
  padding: 0 0.8rem;
  cursor: pointer;
}
.dock > button[aria-pressed="true"] { background: var(--indigo); color: var(--foam); }
.a11y-panel {
  position: fixed;
  right: 11.2rem;
  left: auto;
  bottom: 0.55rem;
  z-index: 36;
  width: min(360px, calc(100vw - 2rem));
  max-height: min(72vh, 640px);
  overflow: auto;
  background: var(--foam);
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 1rem;
  display: none;
}
.a11y-panel.is-open { display: block; }
.a11y-panel h2 { font-family: var(--serif); font-size: 1.6rem; margin: 0 0 0.4rem; }
.a11y-panel fieldset { border: 0; margin: 0.8rem 0 0; padding: 0; display: grid; gap: 0.4rem; }
.a11y-panel legend { font-weight: 700; margin-bottom: 0.3rem; }
.ambiente { position: fixed; right: 11.2rem; bottom: 0.7rem; left: auto; z-index: 35; max-width: 16rem; background: var(--foam); border: 1px solid var(--line); padding: 0.35rem 0.6rem; }

html.a11y-text-down { font-size: 92%; }
html.a11y-large { font-size: 118%; }
html.a11y-larger { font-size: 136%; }
html.a11y-enhance { filter: saturate(1.45) contrast(1.08); }
html.a11y-calmcolor { filter: saturate(0.42); }
html.a11y-space body { letter-spacing: 0.045em; word-spacing: 0.14em; line-height: 1.9; }
html.a11y-lexend body, html.a11y-lexend h1, html.a11y-lexend h2, html.a11y-lexend h3 { font-family: Lexend, var(--sans); }
html.a11y-contrast { --paper: #161616; --paper-2: #161616; --foam: #161616; --ink: #fff8e8; --indigo: #ffe14a; --indigo-deep: #161616; --vermilion: #ffb4a2; }
html.a11y-soft { --ink: #4a433a; --indigo: #3d5270; --vermilion: #8d5348; }
html.a11y-gray { filter: grayscale(1); }
html.a11y-gray .dock, html.a11y-gray .a11y-panel, html.a11y-gray .moth, html.a11y-gray .chat { filter: none; }
html.a11y-links a { text-decoration: underline; outline: 2px solid var(--vermilion); outline-offset: 2px; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M4 2 L4 26 L10 20 L16 30 L20 28 L14 18 L22 18 Z' fill='black' stroke='white'/%3E%3C/svg%3E") 4 2, auto; }
html.a11y-guide::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  height: 3.4rem;
  top: var(--guide, 30vh);
  background: rgba(255, 214, 120, 0.28);
  border-block: 2px solid rgba(120, 80, 10, 0.35);
  pointer-events: none;
  z-index: 25;
}
html.a11y-calm .garden, html.a11y-motion .garden { display: none; }
html.a11y-motion .moth-flight img { animation: none; }
html.a11y-protanopia { filter: url(#protanopia); }
html.a11y-deuteranopia { filter: url(#deuteranopia); }
html.a11y-tritanopia { filter: url(#tritanopia); }

.moth {
  position: fixed;
  right: 52px;
  bottom: 0.55rem;
  z-index: 34;
  width: 112px;
  height: 112px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.moth-flight {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0;
}
.moth-flight img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: moth-rest 7s ease-in-out infinite;
}
@keyframes moth-rest {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.moth-bubble {
  position: absolute;
  right: calc(100% + 8px);
  bottom: 64px;
  width: max-content;
  max-width: 180px;
  background: var(--foam);
  border: 1px dashed var(--ink);
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
}

.chat {
  position: fixed;
  right: 0.6rem;
  bottom: 9.4rem;
  z-index: 30;
  width: min(360px, calc(100vw - 2rem));
  background: var(--foam);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  max-height: min(70vh, 520px);
}
.chat.is-open { display: flex; }
.chat-head, .chat-form { display: flex; gap: 0.6rem; align-items: center; padding: 0.8rem; }
.chat-head { border-bottom: 1px dashed var(--line); }
.chat-head img { width: 56px; height: 56px; object-fit: contain; background: transparent; }
.chat-head p { margin: 0; font-family: var(--serif); }
.chat-close { margin-left: auto; border: 0; background: transparent; min-width: 44px; min-height: 44px; cursor: pointer; }
.chat-log { overflow: auto; padding: 0.8rem; display: grid; gap: 0.5rem; }
.chat-message { padding: 0.55rem 0.7rem; background: white; border: 1px solid var(--line); }
.chat-message-user { background: var(--indigo); color: var(--foam); justify-self: end; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chat-quick button, .chat-form button {
  border: 1px solid var(--ink);
  background: transparent;
  min-height: 40px;
  cursor: pointer;
}
.chat-form { border-top: 1px dashed var(--line); }
.chat-form input { flex: 1; border: 1px solid var(--line); padding: 0.6rem; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 420ms cubic-bezier(0.4, 0, 1, 1) both cloth-away; }
::view-transition-new(root) { animation: 560ms var(--settle) both sew-in; }
@keyframes cloth-away {
  to { transform: translateY(-6%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .moth-flight img, .firefly { animation: none; }
  .garden { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
