/* HALEWILD · shared styles */
:root {
  --bg: #0A1C21; --bg2: #0F2B31; --deep: #061316; --panel: #11323A;
  --ink: #F3F1EA; --ink2: rgba(243, 241, 234, .76); --ink3: rgba(243, 241, 234, .6);
  --line: rgba(232, 240, 238, .16); --line2: rgba(232, 240, 238, .3);
  --gold: #E9A65A; --sage: #A9C2BD; --ember: #C8683A;
  --sans: 'Inter Tight', 'Inter', system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --pad: clamp(16px, 2.8vw, 40px); --max: 1440px; --ease: cubic-bezier(.2, .7, .2, 1);
  --tempo: 1; /* set from the breath: 1 = default, larger = slower page */
  --top: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 99px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type */
h1, h2, h3 { font-weight: 700; margin: 0; letter-spacing: -.045em; line-height: .98; }
h1 { font-size: clamp(44px, 7vw, 112px); }
h2 { font-size: clamp(38px, 5.2vw, 84px); }
h3 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -.035em; line-height: 1.05; }
.k { font: 500 11.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.k::before { content: ''; width: 9px; height: 9px; border: 1.5px solid currentColor; border-radius: 50%; flex: none; }
.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--ink2); max-width: 32em; margin: 20px 0 0; letter-spacing: -.01em; }
.num { font-variant-numeric: tabular-nums; }
.credit { position: absolute; right: 10px; bottom: 8px; margin: 0; font: 400 10.5px/1.3 var(--sans); color: rgba(255, 255, 255, .86); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); z-index: 3; pointer-events: none; }
.media { position: relative; overflow: hidden; background: var(--panel); }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 26px 0 28px; border-radius: 99px; background: var(--ink); color: var(--bg); border: 0; font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; text-decoration: none; cursor: pointer; transition: transform .4s var(--ease), background .3s; }
.btn::after { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 2px solid currentColor; transition: transform .5s var(--ease); }
.btn:hover { background: #fff; }
.btn:hover::after { transform: scale(1.5); }
.btn.dark { background: var(--panel); color: var(--ink); }
.btn.dark:hover { background: #164049; }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.btn.line:hover { background: rgba(255, 255, 255, .06); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line2); padding-bottom: 3px; transition: border-color .3s; }
.link:hover { border-color: var(--gold); }

/* header: one hairline row of cells */
.top { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--top); display: grid; grid-template-columns: 240px 1fr auto; border-bottom: 1px solid var(--line); transition: background .4s, backdrop-filter .4s; }
.top.solid { background: rgba(8, 24, 28, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.top > * { display: flex; align-items: center; padding: 0 var(--pad); }
.logo { border-right: 1px solid var(--line); text-decoration: none; gap: 10px; font-weight: 800; font-size: 23px; letter-spacing: -.055em; }
.logo svg { width: 26px; height: 26px; flex: none; }
.nav { justify-content: flex-end; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: -.01em; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--gold); }
.t-r { border-left: 1px solid var(--line); gap: 14px; }
.t-r .btn { min-height: 42px; padding: 0 18px 0 20px; font-size: 14.5px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line2); border-radius: 99px; height: 40px; padding: 0 16px; font-weight: 600; cursor: pointer; }
/* the breath line: a hairline under the header that pulses at your tempo once you have breathed with the page */
.breath-line { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--gold); transform-origin: 50% 50%; transform: scaleX(0); opacity: 0; pointer-events: none; padding: 0; }
html.tuned .breath-line { opacity: .85; animation: bl var(--cycle, 10s) ease-in-out infinite; }
@keyframes bl { 0%, 100% { transform: scaleX(.04); } 45% { transform: scaleX(1); } }
.tempo-pill { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 90; display: none; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 99px; background: rgba(8, 24, 28, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line2); font: 500 12px/1 var(--mono); letter-spacing: .04em; }
html.tuned .tempo-pill { display: flex; }
.tempo-pill i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); animation: tp var(--cycle, 10s) ease-in-out infinite; }
@keyframes tp { 0%, 100% { transform: scale(.5); } 45% { transform: scale(1.3); } }
.tempo-pill button { background: none; border: 1px solid var(--line2); border-radius: 99px; padding: 6px 12px; font: inherit; cursor: pointer; }
.tempo-pill button:hover { border-color: var(--gold); }

@media (max-width: 1080px) {
  .top { grid-template-columns: 1fr auto; }
  .logo { border-right: 0; }
  .nav { position: fixed; inset: var(--top) 0 0; z-index: 99; background: var(--deep); flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 0; padding: 12px var(--pad) 40px; transform: translateY(-110%); visibility: hidden; transition: transform .5s var(--ease), visibility .5s; }
  .nav.open { transform: none; visibility: visible; }
  .nav a { font-size: 36px; font-weight: 700; letter-spacing: -.045em; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu-btn { display: inline-block; }
  .top.menu-open { background: var(--deep); }
}
@media (max-width: 560px) {
  .t-r .btn { display: none; }
  .top > * { padding: 0 16px; }
}

/* hairline grid of retreat rows (shared by home and the retreats page) */
.rows { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.rrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(16px, 2.2vw, 36px); padding: clamp(20px, 2.6vw, 40px) var(--pad); border-bottom: 1px solid var(--line); text-decoration: none; position: relative; }
.rrow:nth-child(odd) { border-right: 1px solid var(--line); }
.rrow h3 { font-size: clamp(24px, 2.2vw, 34px); }
.rrow .from { margin: 12px 0 0; color: var(--ink3); font-size: 15px; }
.rrow .from b { color: var(--ink); font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.rrow dl { margin: 22px 0 0; display: grid; gap: 7px; font-size: 14px; }
.rrow dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 7px; }
.rrow dt { color: var(--ink3); }
.rrow dd { margin: 0; text-align: right; }
.rrow .seats-low { color: var(--gold); font-weight: 600; }
.rrow .go { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 20px; border-radius: 99px; background: var(--panel); font-weight: 600; font-size: 15px; transition: background .3s; }
.rrow .go::after { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 2px solid currentColor; }
.rrow:hover .go { background: var(--ink); color: var(--bg); }
.rrow .ph { position: relative; overflow: hidden; aspect-ratio: 4 / 4.3; background: var(--panel); }
.rrow .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.rrow:hover .ph img { transform: scale(1.05); }
.rrow .tag { position: absolute; left: 10px; top: 10px; z-index: 2; background: rgba(6, 19, 22, .72); border-radius: 99px; padding: 6px 11px; font: 500 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
@media (max-width: 900px) {
  .rows { grid-template-columns: 1fr; }
  .rrow:nth-child(odd) { border-right: 0; }
}
@media (max-width: 520px) {
  .rrow { grid-template-columns: 1fr; }
  .rrow .ph { order: -1; aspect-ratio: 16 / 11; }
}

/* reveals: only elements registered by site.js are hidden */
.rv-wait { opacity: 0; transform: translateY(28px); transition: opacity calc(1s * var(--tempo)) var(--ease), transform calc(1.2s * var(--tempo)) var(--ease); }
.rv-wait.in { opacity: 1; transform: none; }

/* footer */
.ft { position: relative; border-top: 1px solid var(--line); background: var(--deep); }
.ft-media { height: clamp(320px, 52vw, 640px); }
.ft-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 19, 22, 0) 30%, var(--deep) 100%); }
.ft-word { position: absolute; left: var(--pad); right: var(--pad); bottom: 2vw; z-index: 2; margin: 0; font-weight: 800; font-size: clamp(64px, 17vw, 280px); letter-spacing: -.07em; line-height: .8; }
.ft-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; border-top: 1px solid var(--line); }
.ft-in > div { padding: 40px var(--pad) 48px; border-right: 1px solid var(--line); }
.ft-in > div:last-child { border-right: 0; }
.ft h4 { font: 500 11.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); margin: 0 0 16px; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ft ul a { text-decoration: none; font-weight: 500; }
.ft ul a:hover { color: var(--gold); }
.ft-addr { color: var(--ink2); margin: 14px 0 0; max-width: 26em; font-size: 15px; }
.ft-note { border-top: 1px solid var(--line); padding: 26px var(--pad) 90px; display: flex; flex-wrap: wrap; gap: 10px 40px; justify-content: space-between; color: var(--ink3); font-size: 13.5px; }
.ft-note p { margin: 0; max-width: 60em; }
.ft-note a { color: var(--ink); }
@media (max-width: 900px) {
  .ft-in { grid-template-columns: 1fr 1fr; }
  .ft-in > div { border-bottom: 1px solid var(--line); }
  .ft-in > div:nth-child(2n) { border-right: 0; }
}
@media (max-width: 520px) {
  .ft-in { grid-template-columns: 1fr; }
  .ft-in > div { border-right: 0; padding: 28px 16px; }
}

html.rm *, html.rm *::before, html.rm *::after { animation: none !important; transition: none !important; }
