:root {
  --site-font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ink: #444e58;
  --accent: #205f87;
  --sky: #779fb9;
  --purple: #4b3852;
  --paper: #f7f6f3;
  --page-width: min(100vw, 1366px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--site-font); line-height: 1.5; }
button, input, textarea, select { font: inherit; }
img { display: block; width: 100%; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { width: 100%; max-width: 1366px; height: calc(var(--page-width) * .093704); margin: 0 auto; padding: 0 2.12%; display: flex; align-items: center; background: #fff; position: relative; z-index: 20; }
.brand { width: calc(var(--page-width) * .065398); height: calc(var(--page-width) * .050757); flex: 0 0 calc(var(--page-width) * .065398); }
.brand img { height: 100%; object-fit: contain; }
.primary-nav { margin-left: 6.45%; margin-right: 4%; flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; white-space: nowrap; }
.primary-nav a { color: #444e58; font-size: clamp(15px,1.55vw,21px); font-weight: 400; text-decoration: none; }
.primary-nav a:hover, .primary-nav a:focus-visible, .primary-nav .active { color: var(--accent); }
.menu-toggle { display: none; margin-left: auto; padding: 10px; border: 0; background: transparent; }
.menu-toggle > span:not(.sr-only) { display: block; width: 25px; height: 2px; margin: 5px 0; background: var(--ink); }

.retreats-hero { width: 100%; max-width: 1366px; min-height: clamp(470px,48vw,655px); margin: 0 auto; position: relative; display: grid; place-items: center; color: #fff; background: url("assets/retreats.jpg") center 47% / cover no-repeat; }
.retreats-hero__shade { position: absolute; inset: 0; background: linear-gradient(rgba(28,48,61,.2),rgba(28,48,61,.5)); }
.retreats-hero__content { position: relative; width: 90%; text-align: center; }
.retreats-hero__content p, .eyebrow { margin: 0 0 14px; color: #b6d5e6; font-size: 14px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.retreats-hero h1 { margin: 0; font-size: clamp(54px,7.5vw,102px); line-height: 1; font-weight: 500; letter-spacing: -.025em; }
.retreats-hero span { display: block; margin-top: 18px; font-size: clamp(16px,1.7vw,23px); }

.retreats-intro { width: min(84%,1020px); margin: 0 auto; padding: 92px 0 74px; text-align: center; }
.retreats-intro .eyebrow, .personal-retreat .eyebrow { color: var(--accent); }
.retreats-intro h2, .personal-retreat h2 { margin: 0 0 24px; color: var(--ink); font-size: clamp(38px,4.6vw,63px); line-height: 1.05; font-weight: 500; }
.retreats-intro > p:last-child { max-width: 790px; margin: 0 auto; font-size: clamp(17px,1.5vw,21px); }

.retreat-grid { width: min(89%,1210px); margin: 0 auto; padding: 0 0 110px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; }
.retreat-card { min-width: 0; overflow: hidden; background: #fff; box-shadow: 0 14px 34px rgba(37,58,70,.09); transition: transform 180ms ease, box-shadow 180ms ease; }
.retreat-card:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(37,58,70,.15); }
.retreat-card img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }
.retreat-card__copy { min-height: 255px; padding: 28px 27px 30px; display: flex; flex-direction: column; }
.retreat-card time { color: var(--accent); font-size: 14px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.retreat-card h2 { margin: 14px 0 16px; font-size: clamp(23px,2vw,29px); line-height: 1.08; font-weight: 500; }
.retreat-card p { margin: 0 0 24px; color: #5f6870; font-size: 15px; }
.retreat-card a { margin-top: auto; color: var(--accent); font-weight: 500; text-underline-offset: 4px; }

.personal-retreat { width: 100%; max-width: 1366px; margin: 0 auto; padding: 86px 9%; display: grid; grid-template-columns: 1.6fr .6fr; align-items: center; gap: 70px; color: #fff; background: var(--purple); }
.personal-retreat h2 { color: #fff; }
.personal-retreat p:not(.eyebrow) { max-width: 720px; margin: 0; font-size: 18px; }
.personal-retreat > a, .event-actions a, .event-actions button { display: inline-block; padding: 14px 24px; border: 1px solid currentColor; border-radius: 99px; font: inherit; text-align: center; text-decoration: none; cursor: pointer; }

.event-hero { width: 100%; max-width: 1366px; min-height: clamp(500px,56vw,765px); margin: 0 auto; position: relative; display: flex; align-items: flex-end; background-position: center; background-size: cover; }
.event-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(20,36,47,.08),rgba(20,36,47,.78)); }
.event-hero__copy { position: relative; z-index: 1; width: min(88%,1120px); margin: 0 auto; padding: 0 0 72px; color: #fff; }
.event-hero__copy time { color: #c8e3f1; font-size: 15px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.event-hero h1 { max-width: 980px; margin: 16px 0 0; font-size: clamp(46px,6vw,82px); line-height: 1; font-weight: 500; }
.event-body { width: min(86%,920px); margin: 0 auto; padding: 92px 0 112px; }
.event-body .eyebrow { color: var(--accent); }
.event-body h2 { margin: 0 0 30px; font-size: clamp(34px,4vw,52px); line-height: 1.12; font-weight: 500; text-wrap: balance; }
.event-body p { margin: 0 0 28px; font-size: clamp(17px,1.5vw,21px); line-height: 1.72; text-wrap: pretty; }
.event-facts { margin: 54px 0 60px; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid #cbd5da; border-bottom: 1px solid #cbd5da; }
.event-facts div { padding: 25px 22px; border-left: 1px solid #cbd5da; }
.event-facts div:first-child { border-left: 0; }
.event-facts span { display: block; margin-bottom: 7px; color: var(--accent); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.event-facts strong { font-weight: 500; }
.event-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }
.event-actions button:first-child { color: #fff; background: var(--sky); border-color: var(--sky); }
.back-link { display: inline-block; margin-bottom: 38px; color: var(--accent); text-underline-offset: 4px; }
.event-source-details { margin-top: 80px; padding-top: 76px; border-top: 1px solid #cbd5da; }
.event-source-details > .eyebrow { margin-bottom: 46px; }
.event-source-details h2 { margin: 72px 0 28px; font-size: clamp(32px,3.7vw,50px); line-height: 1.14; font-weight: 600; }
.event-source-details h3 { margin: 58px 0 24px; color: var(--accent); font-size: clamp(25px,2.6vw,35px); line-height: 1.2; font-weight: 600; text-wrap: balance; }
.event-source-details h4 { margin: 46px 0 20px; font-size: clamp(20px,2vw,27px); line-height: 1.25; font-weight: 600; text-wrap: balance; }
.event-source-details p { margin-bottom: 30px; line-height: 1.76; white-space: pre-line; }
.event-source-details ul, .event-source-details ol { margin: 0 0 36px; padding-left: 30px; font-size: clamp(17px,1.5vw,21px); line-height: 1.68; }
.event-source-details li { margin: 11px 0; padding-left: 4px; }
.event-source-details .event-list-context { margin-bottom: 14px; }
.event-source-details .event-inline-list + .event-list-context { margin-top: -8px; }
.event-source-image { width: 100%; aspect-ratio: 4 / 3; margin: 60px 0; padding: 0; overflow: hidden; border-radius: 12px; background: #e8edf0; }
.event-source-image img { width: 100%; height: 100%; margin: 0; object-fit: cover; object-position: center; }
.event-table-wrap { max-width: 100%; margin: 46px 0 58px; overflow-x: auto; }
.event-table-wrap table { width: 100%; border-collapse: collapse; background: #fff; }
.event-table-wrap th, .event-table-wrap td { min-width: 150px; padding: 17px 18px; border: 1px solid #cbd5da; line-height: 1.55; text-align: left; vertical-align: top; }
.event-table-wrap th { color: #fff; background: var(--purple); font-weight: 500; }
.event-update-note { margin-top: 65px !important; padding: 24px; border-left: 4px solid var(--sky); background: #eef3f5; font-size: 16px !important; }
.site-footer { max-width: 1366px; margin: 0 auto; padding: 45px 6%; display: flex; justify-content: space-between; gap: 25px; color: #fff; background: #33424d; }
.site-footer p { margin: 0; }

@media (max-width: 900px) {
  .site-header { height: 82px; padding: 0 22px; }
  .brand { width: 59px; height: 48px; flex-basis: 59px; }
  .menu-toggle { display: block; }
  .primary-nav { position: absolute; left: 0; right: 0; top: 82px; display: none; margin: 0; padding: 22px; background: rgba(255,255,255,.98); box-shadow: 0 14px 24px rgba(33,57,74,.12); }
  .primary-nav.open { display: grid; gap: 14px; }
  .primary-nav a { font-size: 19px; }
  .retreat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .personal-retreat { grid-template-columns: 1fr; gap: 34px; }
  .personal-retreat > a { width: fit-content; }
}

@media (max-width: 620px) {
  .retreats-hero { min-height: 470px; }
  .retreats-intro { width: 86%; padding: 68px 0 55px; }
  .retreat-grid { width: 86%; grid-template-columns: 1fr; gap: 24px; padding-bottom: 75px; }
  .retreat-card__copy { min-height: 0; }
  .personal-retreat { padding: 65px 7%; }
  .event-hero { min-height: 590px; }
  .event-hero__copy { padding-bottom: 48px; }
  .event-body { width: 86%; padding: 68px 0 84px; }
  .event-facts { grid-template-columns: 1fr; }
  .event-facts div, .event-facts div:first-child { border: 0; border-top: 1px solid #cbd5da; }
  .event-facts div:first-child { border-top: 0; }
  .event-actions { display: grid; }
  .event-body p { margin-bottom: 24px; line-height: 1.66; }
  .event-facts { margin: 42px 0 48px; }
  .event-source-details { margin-top: 58px; padding-top: 54px; }
  .event-source-details > .eyebrow { margin-bottom: 34px; }
  .event-source-details h2 { margin: 52px 0 22px; }
  .event-source-details h3 { margin: 42px 0 18px; }
  .event-source-details h4 { margin: 34px 0 16px; }
  .event-source-details p { margin-bottom: 24px; line-height: 1.68; }
  .event-source-details ul, .event-source-details ol { margin-bottom: 28px; padding-left: 24px; line-height: 1.62; }
  .event-source-details li { margin: 8px 0; }
  .event-source-image { margin: 38px 0; }
  .event-table-wrap { margin: 34px 0 42px; }
  .site-footer { flex-direction: column; }
}
