/* Twilight Retreats style file
   Brand tokens pulled from the live site and logo:
   display/text: Oswald + Poppins (live Google fonts)
   accent #ee7f09 and hover #159591 (live Divi buttons)
   ink #111111, surface #fafafa, border #cccccc, teal wash #e8f5f4 (live CSS)
   brand green #47704c from the logo file (needed so the transparent mark reads on a solid header)
   type scale 1.25, spacing on an 8px base, radius 10px
*/

:root {
  --font-display: "Oswald", Helvetica, Arial, sans-serif;
  --font-text: "Poppins", Helvetica, Arial, sans-serif;

  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.563rem;
  --step-3: 1.953rem;
  --step-4: clamp(1.75rem, 1.35rem + 1.6vw, 2.441rem);
  --step-5: clamp(2.05rem, 1.45rem + 2.4vw, 3.052rem);

  --lh-text: 1.6;
  --lh-display: 1.15;

  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --s-8: 8rem;

  --ink: #111111;
  --muted: #333333;
  --faint: #999999;
  --surface: #fafafa;
  --surface-2: #e8f5f4;
  --brand: #47704c;
  --brand-ink: #ffffff;
  --border: #cccccc;
  --accent: #ee7f09;
  --accent-hover: #159591;
  --white: #ffffff;
  --focus: #175c90;

  --radius: 10px;
  --shadow: 0 0.5rem 1.5rem rgba(17, 17, 17, 0.08);
  --max: 72rem;
  --gutter: var(--s-3);
}

@media (min-width: 48rem) {
  :root {
    --gutter: var(--s-5);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: var(--lh-text);
  color: var(--ink);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

a {
  color: var(--brand);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
.nav-toggle-btn:focus-visible {
  outline: 0.15rem solid var(--focus);
  outline-offset: 0.15rem;
}

h1,
h2,
h3,
.site-logo {
  font-family: var(--font-display);
  line-height: var(--lh-display);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 var(--s-2);
}

h1 {
  font-size: var(--step-5);
}

h2 {
  font-size: var(--step-4);
}

h3 {
  font-size: var(--step-2);
}

p {
  margin: 0 0 var(--s-2);
  max-width: none;
}

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--brand);
  color: var(--brand-ink);
}

.site-header a {
  color: var(--brand-ink);
  text-decoration: none;
}

.site-header a:hover {
  color: var(--surface-2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: var(--s-2) 0;
}

.site-logo img {
  width: min(14rem, 62vw);
  height: auto;
  border-radius: 0;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: var(--s-1) var(--s-2);
  border: 0.125rem solid var(--brand-ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--brand-ink);
  font-family: var(--font-display);
  font-size: var(--step-0);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.site-nav {
  display: none;
  flex-direction: column;
  gap: var(--s-2);
  padding: 0 0 var(--s-3);
  font-family: var(--font-display);
  font-size: var(--step-0);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle:checked ~ .site-nav,
.nav-toggle:focus-visible ~ .site-nav {
  display: flex;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
}

@media (min-width: 64rem) {
  .header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
  }

  .header-inner {
    display: contents;
  }

  .nav-toggle-btn {
    display: none;
  }

  .site-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: var(--s-3) 0;
    gap: var(--s-3);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: var(--s-1) var(--s-3);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--step-0);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-hover);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 0.125rem var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-3);
}

/* Hero photo: clean, no text on it */
.hero-photo {
  background: var(--ink);
}

.hero-photo img,
.hero-photo picture,
.split-photo img,
.split-photo picture,
.gallery img {
  width: 100%;
  border-radius: 0;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (min-width: 48rem) {
  .hero-photo img {
    aspect-ratio: 16 / 9;
    max-height: 70vh;
  }
}

.panel {
  background: var(--surface);
  padding: var(--s-5) 0;
}

.panel-brand {
  background: var(--brand);
  color: var(--brand-ink);
}

.panel-brand a {
  color: var(--brand-ink);
}

.panel-teal {
  background: var(--surface-2);
}

.panel-ink {
  background: var(--ink);
  color: var(--white);
}

.lede {
  font-size: var(--step-1);
  color: var(--muted);
}

.price {
  font-family: var(--font-display);
  font-size: var(--step-2);
  letter-spacing: 0.03em;
  margin: 0 0 var(--s-2);
}

/* Split photo + copy */
.split {
  display: grid;
  gap: 0;
}

.split-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
}

.split-copy {
  padding: var(--s-5) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface);
}

.split-copy .inner {
  width: 100%;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
  }

  .split.alt {
    grid-template-columns: 1fr 1.15fr;
  }

  .split.alt .split-photo {
    order: 2;
  }

  .split-photo img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 28rem;
  }

  .split-copy {
    padding: var(--s-6);
  }
}

/* Lists */
.rate-list,
.plain-list {
  list-style: none;
  margin: 0 0 var(--s-3);
  padding: 0;
}

.rate-list li,
.plain-list li {
  padding: var(--s-2) 0;
  border-top: 0.0625rem solid var(--border);
}

.rate-list li:last-child,
.plain-list li:last-child {
  border-bottom: 0.0625rem solid var(--border);
}

.rate-list a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.rate-list a:hover {
  color: var(--accent-hover);
}

.note {
  color: var(--muted);
  font-size: var(--step-0);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
  padding: var(--s-4) 0 var(--s-6);
}

.gallery .cell {
  margin: 0;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery .cell:first-child {
  grid-column: 1 / -1;
}

.gallery .cell:first-child img {
  aspect-ratio: 16 / 10;
}

@media (min-width: 48rem) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery .cell:first-child {
    grid-column: 1 / -1;
  }
}

/* Quotes */
.quotes {
  display: grid;
  gap: var(--s-4);
}

@media (min-width: 56rem) {
  .quotes {
    grid-template-columns: 1fr;
  }
}

.quote {
  padding: 0 0 var(--s-4);
  border-bottom: 0.0625rem solid var(--border);
}

.quote:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.quote p {
  font-size: var(--step-1);
}

.quote cite {
  font-style: normal;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Contact people */
.people {
  display: grid;
  gap: var(--s-3);
}

@media (min-width: 48rem) {
  .people {
    grid-template-columns: repeat(3, 1fr);
  }
}

.person {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--s-3);
  box-shadow: var(--shadow);
}

.person h3 {
  margin-bottom: var(--s-1);
}

.person p {
  margin-bottom: var(--s-1);
}

.contact-actions a {
  display: inline-block;
  margin-right: var(--s-2);
}

/* Footer */
.site-footer {
  background: var(--brand);
  color: var(--brand-ink);
  padding: var(--s-6) 0 var(--s-4);
}

.site-footer a {
  color: var(--brand-ink);
}

.footer-grid {
  display: grid;
  gap: var(--s-4);
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.fineprint {
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 0.0625rem solid rgba(255, 255, 255, 0.25);
  color: var(--surface-2);
  font-size: var(--step-0);
}

.tagline {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Article sections on destination page */
.article {
  padding: var(--s-5) 0;
}

.article + .band-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
}

.stack-tight > * + * {
  margin-top: var(--s-2);
}

.skip {
  position: absolute;
  left: var(--s-2);
  top: -3rem;
  background: var(--white);
  color: var(--ink);
  padding: var(--s-1) var(--s-2);
  z-index: 10;
}

.skip:focus {
  top: var(--s-2);
}

.related {
  display: grid;
  gap: var(--s-4);
}

@media (min-width: 48rem) {
  .related {
    grid-template-columns: 1fr 1fr;
  }
}

.related a {
  text-decoration: none;
  color: inherit;
}

.related img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: var(--s-2);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.spaced-top { margin-top: var(--s-4); }
