/* Dark Retreat Portugal, in the Cave of the Heart house style */

@font-face { font-family: "Assistant"; src: url("fonts/assistant-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Assistant"; src: url("fonts/assistant-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Assistant"; src: url("fonts/assistant-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Assistant"; src: url("fonts/assistant-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Cave of the Heart brand colours */
  --gold: #E5C344;
  --cream: #FBF6E3;
  --white: #FFFFFF;
  --charcoal: #393236;
  --charcoal-deep: #2a2427;
  --muted: #6e6569;
  --line: rgba(57, 50, 54, .14);

  --measure: 40rem;
  --wide: 68rem;
  --radius: 10px;
  --font: "Assistant", Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem 1rem; z-index: 10; }

.wrap { max-width: var(--wide); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: var(--measure); margin: 0 auto; }

/* ---------- header ---------- */
.site-head { background: var(--white); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.1rem; }
.brand { text-decoration: none; font-size: 1.35rem; font-weight: 600; letter-spacing: .01em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.6rem; font-size: 1.05rem; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: .75rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600; font-size: 1.05rem; line-height: 1.3;
  text-decoration: none;
  background: var(--gold); color: var(--charcoal);
  border: 2px solid var(--gold);
}
.btn:hover { background: #d9b52f; border-color: #d9b52f; }
.btn.dark { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.btn.dark:hover { background: var(--charcoal-deep); }
.btn.outline { background: transparent; color: inherit; border-color: currentColor; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem 1rem; margin-top: 1.8rem; }

/* ---------- hero ---------- */
.hero { background: var(--charcoal); color: var(--white); text-align: center; }
.hero .wrap { padding-block: clamp(3.5rem, 8vw, 6rem); display: grid; justify-items: center; }
.hero h1 { font-weight: 300; font-size: clamp(2.6rem, 6.5vw, 4.4rem); line-height: 1.08; letter-spacing: .02em; margin: 2rem 0 1rem; }
.hero .lede { font-size: clamp(1.2rem, 2.3vw, 1.45rem); font-weight: 300; max-width: 32rem; margin: 0; color: #e9e3e6; }
.hero .place { font-size: .95rem; letter-spacing: .04em; color: var(--gold); margin: 1.6rem 0 0; }
.hero.page h1 { margin-top: 0; }

/* ---------- sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.section.white { background: var(--white); }
.section.cream { background: var(--cream); }
.section.dark { background: var(--charcoal); color: var(--white); }
h2 { font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.5rem); line-height: 1.15; margin: 0 0 1.1rem; }
h3 { font-weight: 600; font-size: 1.3rem; margin: 2rem 0 .3rem; }
.rule { width: 3.5rem; height: 3px; background: var(--gold); border: 0; margin: 0 0 1.4rem; }
p { margin: 0 0 1.05em; }
.signature { font-weight: 600; margin-top: 1.6rem; }
blockquote { margin: 2rem 0; padding: 1.2rem 1.5rem; background: var(--cream); border-radius: var(--radius); font-size: 1.2rem; font-weight: 300; }
blockquote footer { font-size: 1rem; font-weight: 600; margin-top: .6rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 780px) { .split { grid-template-columns: 1fr; } }

/* ---------- photographs ---------- */
.photo { margin: 0; }
.photo img, .photo .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.photo.tall img, .photo.tall .ph { aspect-ratio: 4 / 5; }
.photo.wide img, .photo.wide .ph { aspect-ratio: 16 / 7; }
.photo .ph { display: none; place-content: center; text-align: center; padding: 1.5rem; background: #efe7cc; color: var(--muted); font-size: 1rem; line-height: 1.45; }
.section.dark .photo .ph, .hero .photo .ph { background: #4a4246; color: #cfc7cb; }
.photo .ph strong { display: block; font-weight: 600; }
.photo.missing img { display: none; }
.photo.missing .ph { display: grid; }
.photo figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; }
.section.dark .photo figcaption { color: #cfc7cb; }
.hero .photo { width: min(18rem, 72vw); }

/* ---------- Cave of the Heart band ---------- */
.cave { text-align: center; }
.cave .narrow { display: grid; justify-items: center; }
.cave-logo { display: inline-block; margin-bottom: 1.8rem; text-decoration: none; }
.cave-logo img { height: 90px; width: auto; }
.cave-logo .wordmark { display: none; line-height: 1.05; text-align: center; }
.cave-logo.missing img { display: none; }
.cave-logo.missing .wordmark { display: block; }
.wordmark .small { display: block; font-size: .85rem; letter-spacing: .32em; font-weight: 300; }
.wordmark .big { display: block; font-size: 2.2rem; letter-spacing: .12em; font-weight: 600; }
.wordmark .sub { display: block; font-size: 1rem; font-weight: 300; font-style: italic; color: var(--gold); }

/* ---------- contact ---------- */
.contact { list-style: none; margin: 1.2rem 0 0; padding: 1.4rem 1.6rem; background: var(--cream); border-radius: var(--radius); }
.contact li { padding: .3rem 0; display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; }
.contact .label { font-weight: 600; }

/* ---------- footer ---------- */
.site-foot { background: var(--charcoal-deep); color: #e9e3e6; font-size: 1rem; }
.site-foot .wrap { padding-block: 2.6rem; display: flex; flex-wrap: wrap; gap: 1.2rem 3rem; justify-content: space-between; }
.site-foot p { margin: 0; }
.site-foot a { color: var(--white); }
.site-foot .col { display: grid; gap: .3rem; }
.site-foot strong { color: var(--gold); font-weight: 600; }

.todo { background: rgba(229,195,68,.35); border-radius: 3px; padding: 0 .3em; font-size: .9rem; }

/* guidance choices */
.choices { max-width: 52rem; margin: 2.2rem auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.choice { background: var(--white); border-radius: var(--radius); padding: 1.6rem 1.7rem 1.8rem; display: flex; flex-direction: column; align-items: flex-start; }
.choice h3 { margin: 0 0 .4rem; }
.choice p { flex: 1; }
@media (max-width: 680px) { .choices { grid-template-columns: 1fr; } }

/* logo and photo crops */
.cave-logo img { height: 150px; width: auto; }
.photo img[src*="serra-de-monchique-view"] { object-position: 50% 62%; }
.photo img[src*="karuna-retreat-center-sunset"] { object-position: 47% 50%; }
.hero .photo img { object-position: 50% 50%; }

/* hero: the candle photograph sits in the darkness */
.hero.home { background: #000000; }
.hero.home .wrap { padding-block: 0 clamp(3rem, 7vw, 5rem); }
.hero.home .photo { width: min(64rem, 100%); }
.hero.home .photo img {
  aspect-ratio: 3 / 2; border-radius: 0; object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, transparent 100%);
}
.hero.home h1 { margin-top: -3.5rem; position: relative; }
@media (max-width: 600px) { .hero.home h1 { margin-top: -1rem; } }
.hero.home .lede { max-width: none; }
/* let width/height attributes reserve space without distorting the crop */
.photo img, .cave-logo img { height: auto; }
.cave-logo img { height: 150px; width: auto; }
