:root {
  --paper: #f3eee4;
  --paper-deep: #e6dfd1;
  --card: #fffdf8;
  --ink: #1b2822;
  --muted: #4d5b53;
  --green: #1e4638;
  --green-dark: #143028;
  --green-soft: #e5efe9;
  --copper: #8d4b28;
  --copper-dark: #70391c;
  --line: #ddd4c4;
  --focus: #8d4b28;
  --header-h: 4.5rem;
  --max: 70rem;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--copper);
}

a:hover {
  color: var(--copper-dark);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--card);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  z-index: 20;
}

.skip:focus {
  top: 0.75rem;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--green-dark);
  color: #f7f3ea;
  border-bottom: 4px solid var(--copper);
}

.header-bar,
.nav-inner,
.wrap,
.site-footer .wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.brand strong {
  display: block;
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

.brand small {
  display: block;
  color: #d9cbb8;
  font-size: 0.85rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-phone {
  color: #f7f3ea;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.btn {
  display: inline-block;
  background: var(--copper);
  color: #fffaf5;
  text-decoration: none;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
}

.btn:hover {
  background: var(--copper-dark);
  color: #fffaf5;
}

.btn.secondary {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}

.btn.secondary:hover {
  background: var(--green);
  color: #f7f3ea;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: #f7f3ea;
  border: 1px solid #d9cbb8;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font: inherit;
  font-weight: 600;
}

.site-nav {
  background: var(--green);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.15rem 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
}

.nav-list a {
  color: #f7f3ea;
  text-decoration: none;
  display: inline-block;
  padding: 0.45rem 0.7rem;
  border-radius: 0.35rem;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.menu {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: calc(100% - 0.35rem);
  left: 0;
  min-width: 18rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.55rem 0.4rem 0.4rem;
  box-shadow: 0 10px 30px rgba(20, 48, 40, 0.12);
  z-index: 30;
}

.submenu a {
  display: block;
  color: var(--ink);
  padding: 0.4rem 0.6rem;
}

.submenu a:hover,
.submenu a[aria-current="page"] {
  background: var(--green-soft);
  color: var(--green-dark);
}

.menu:hover > .submenu,
.menu:focus-within > .submenu {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0 2rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--copper);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.2;
  color: var(--green-dark);
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  margin: 0 0 0.8rem;
}

h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.35rem;
  margin: 1.6rem 0 0.4rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--muted);
  margin-top: 0;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.portrait {
  justify-self: end;
  width: min(100%, 22rem);
  border-radius: 1.2rem;
  object-fit: contain;
  background: #fff;
  border: 6px solid #fff;
  box-shadow: 0 16px 40px rgba(20, 48, 40, 0.15);
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem 1.4rem;
}

.section {
  padding: 1rem 0 2.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1.1rem 1.15rem 1.2rem;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}

.card:hover {
  border-color: #c9b49a;
  color: inherit;
}

.card h2,
.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.page-hero {
  padding: 2.2rem 0 0.5rem;
}

.prose {
  width: min(44rem, 100%);
  padding-bottom: 2.5rem;
}

.prose p,
.prose li {
  color: var(--ink);
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.diagram {
  margin: 1.25rem 0 1.6rem;
}

.diagram img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
}

.diagram figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.wrap-right {
  float: right;
  width: min(16rem, 46%);
  margin: 0.15rem 0 0.6rem 1rem;
}

.wrap-right img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
}

.wrap-right figcaption {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.prose h2 {
  clear: both;
}

.prose a img {
  display: block;
  width: 100%;
  max-width: 728px;
  height: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  font-size: 1rem;
  min-width: 34rem;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--green);
  color: #f7f3ea;
  font-weight: 600;
}

.phase-table th:first-child,
.phase-table td:first-child {
  width: 14rem;
  white-space: nowrap;
}

.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0.4rem 0 1.4rem;
}

.founders figure {
  margin: 0;
}

.founders img {
  display: block;
  width: 100%;
  height: 18rem;
  object-fit: cover;
  object-position: center 18%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
}

.founders img.portrait-head {
  object-position: center 32%;
}

.founders figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.point-pair {
  display: grid;
  grid-template-columns: 1.72fr 1fr;
  gap: 0.75rem;
  align-items: end;
  width: min(22rem, 100%);
  margin: 0.6rem auto 1.4rem;
}

.point-pair figure {
  margin: 0;
}

.point-pair img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
}

.point-pair figcaption {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.timeline {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0.2rem 0 0.2rem 0;
  border-left: 3px solid var(--green);
}

.timeline li {
  position: relative;
  margin: 0 0 1.05rem;
  padding: 0 0 0 1.15rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -0.48rem;
  top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--copper);
  border: 2px solid var(--paper);
}

.timeline strong {
  display: block;
  color: var(--green-dark);
  font-family: var(--serif);
  font-weight: 560;
}

.reading-list {
  list-style: none;
  padding: 0;
}

.reading-list li {
  margin: 0.55rem 0;
}

.note {
  color: var(--muted);
}

.study-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
}

.study-list li + li {
  margin-top: 0.65rem;
}

.study-open {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--card);
  color: var(--green);
  font: inherit;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.study-open:hover,
.study-open:focus-visible {
  border-color: var(--copper);
  color: var(--copper-dark);
}

.study-dialog {
  width: min(36rem, calc(100% - 2rem));
  max-height: min(32rem, calc(100% - 2rem));
  overflow: auto;
  margin: auto;
  padding: 1.25rem 1.35rem 1.45rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  color: var(--ink);
}

.study-dialog::backdrop {
  background: rgba(20, 48, 40, 0.55);
}

.study-dialog h3 {
  margin: 0 2.5rem 0.35rem 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--green-dark);
}

.study-cite {
  margin: 0 0 0.8rem;
  color: var(--copper-dark);
  font-size: 0.95rem;
  font-weight: 700;
}

.study-close {
  float: right;
  border: 0;
  background: transparent;
  color: var(--copper-dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.study-topics {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.study-topic {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fffdf8;
  padding: 0 0.35rem;
}

.study-topic summary {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 0.65rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--green-dark);
}

.study-topic summary::-webkit-details-marker {
  display: none;
}

.study-topic summary::before {
  content: "+";
  flex: none;
  width: 1.1rem;
  color: var(--copper);
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.study-topic[open] summary::before {
  content: "\2212";
}

.study-topic summary:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
  border-radius: 0.4rem;
}

.study-topic-name {
  flex: 1;
}

.study-count {
  flex: none;
  color: var(--copper-dark);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
}

.prose .study-topic .study-list {
  margin: 0;
  padding: 0 0.55rem 0.9rem 2.15rem;
}

.study-topic .study-open {
  background: var(--paper, #f3eee4);
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto 3rem;
}

.photo-grid figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  overflow: hidden;
}

.photo-grid img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper);
}

.photo-grid figcaption {
  padding: 0.75rem 0.9rem 0.85rem;
  color: var(--muted);
}

.headline-photo {
  display: block;
  width: min(26rem, calc(100% - 2rem));
  height: auto;
  margin: 0.2rem auto 1.5rem;
  border-radius: 1rem;
}

.booking {
  padding-bottom: 2.5rem;
}

.booking iframe {
  display: block;
  width: 100%;
  max-width: 750px;
  min-height: 720px;
  margin: 0 auto;
  border: 0;
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 3rem;
}

.map-frame {
  width: 100%;
  min-height: 18rem;
  border: 0;
  border-radius: 0.9rem;
  background: var(--paper-deep);
}

form {
  display: grid;
  gap: 0.85rem;
}

label {
  display: grid;
  gap: 0.25rem;
  font-weight: 600;
}

input,
textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfc4b2;
  border-radius: 0.5rem;
  padding: 0.6rem 0.7rem;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

.notice {
  background: var(--green-soft);
  border: 1px solid #b7d0c4;
  border-radius: 0.7rem;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
}

.notice.error {
  background: #f8ebe4;
  border-color: #e2c2b2;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.visit-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.visit-list li + li {
  margin-top: 0.35rem;
}

.video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 1rem 0 1.5rem;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0.7rem;
}

.site-footer {
  background: var(--green-dark);
  color: #f3ece2;
  padding: 2rem 0 1.4rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer a {
  color: #f3d7c4;
}

.site-footer h2 {
  color: #f7f3ea;
  font-size: 1.15rem;
  margin-top: 0;
}

.site-footer p,
.site-footer li {
  color: #e6dccf;
}

.fine-print {
  width: min(var(--max), calc(100% - 2rem));
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #d9cbb8;
  font-size: 0.95rem;
}

.sitemap-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.protocol {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto 3rem;
}

.protocol h2 {
  margin-top: 1.8rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 0.5rem 0 1.5rem;
}

.protocol table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  font-size: 1rem;
  min-width: 36rem;
}

.protocol th,
.protocol td {
  border: 1px solid var(--line);
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.protocol th {
  background: var(--green);
  color: #f7f3ea;
  font-weight: 600;
}

.protocol tr:nth-child(even) td {
  background: #faf7f1;
}

.protocol td.num,
.protocol th.num {
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .brand strong {
    font-size: 1rem;
  }

  .brand small,
  .header-phone,
  .header-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  h1 {
    font-size: 1.7rem;
  }

  .hero,
  .split,
  .hero > *,
  .split > * {
    min-width: 0;
    max-width: 100%;
  }

  .site-nav {
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    padding-bottom: 0.8rem;
  }

  .submenu {
    display: block;
    position: static;
    min-width: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 0.3rem 0.8rem;
  }

  .submenu a {
    color: #f7f3ea;
    padding: 0.3rem 0.7rem;
  }

  .submenu a:hover,
  .submenu a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }

  .hero,
  .split,
  .card-grid,
  .footer-grid,
  .photo-grid,
  .founders,
  .sitemap-groups {
    grid-template-columns: 1fr;
  }

  .portrait {
    justify-self: start;
    width: min(100%, 18rem);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1.05rem;
  }

  .header-bar,
  .nav-inner,
  .wrap,
  .protocol,
  .site-footer .wrap,
  .photo-grid {
    width: min(var(--max), calc(100% - 1.25rem));
  }
}
