/* ==========================================================================
   Two Islands Tides and Trails Cottage
   Palette is drawn from the place itself: charcoal siding, red Adirondack
   chairs, Fundy red clay, spruce, and the blue of the bay at dusk.
   ========================================================================== */

:root {
  --paper: #f7f1e5;
  --paper-2: #efe6d4;
  --sand: #e2d4b9;
  --white: #fffdf8;
  --ink: #26241f;
  --ink-soft: #55504a;
  --char: #2b2927;
  --red: #b83a26;
  --red-dark: #962b1a;
  --clay: #a4533a;
  --spruce: #2e4a3d;
  --tide: #213850;
  --night: #121a28;
  --gold: #e3a54f;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Bradley Hand", cursive;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -22px rgba(38, 36, 31, 0.45);
  --shadow-soft: 0 6px 20px -12px rgba(38, 36, 31, 0.3);
  --header-h: 72px;
  --wrap: 1180px;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  font-variation-settings: "SOFT" 60;
}

h2 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem);
}

h3 {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem);
}

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--red-dark);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

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

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.icon {
  width: 1.35em;
  height: 1.35em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--white);
  color: var(--ink);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 0.9rem;
}

.lede {
  font-size: 1.16rem;
  color: var(--ink-soft);
}

.section {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}

.section-head {
  max-width: 44rem;
  margin: 0 auto clamp(2.2rem, 5vw, 3.6rem);
  text-align: center;
}

.section-head p:last-child {
  margin-bottom: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 50px;
  padding: 0.7em 1.5em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(150, 43, 26, 0.9);
}

.btn--primary:hover {
  background: var(--red-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: currentColor;
  color: inherit;
  background: transparent;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
}

.btn--outline {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--sm {
  min-height: 42px;
  padding: 0.45em 1.15em;
  font-size: 0.95rem;
}

.btn .icon {
  width: 1.1em;
  height: 1.1em;
  stroke-width: 2;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  color: #fff;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.site-header.is-solid,
.page-plain .site-header {
  background: rgba(247, 241, 229, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(38, 36, 31, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.brand__mark {
  width: 46px;
  height: 31px;
  fill: currentColor;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.16rem;
  line-height: 1.05;
  font-variation-settings: "SOFT" 60;
}

.brand__name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 3px;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: clamp(1rem, 2vw, 1.8rem);
}

.nav a {
  position: relative;
  color: inherit;
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  padding: 0.4rem 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--paper);
  padding: calc(var(--header-h) + 1.5rem) 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow-y: auto;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a:not(.btn) {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--sand);
}

.mobile-nav .btn {
  margin-top: 1.6rem;
}

@media (max-width: 1020px) {
  .nav,
  .site-header .btn {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

.menu-open .site-header {
  background: var(--paper);
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: max(640px, 100vh);
  min-height: max(640px, 100svh);
  color: #fff;
  overflow: hidden;
  background: var(--tide);
}

.hero__media {
  /* Taller than the hero so the islands sit below the headline, in open water */
  position: absolute;
  inset: 0 0 auto 0;
  height: 138%;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(13, 24, 42, 0.74) 0%,
    rgba(13, 24, 42, 0.5) 34%,
    rgba(13, 24, 42, 0.12) 58%,
    rgba(13, 24, 42, 0) 70%
  );
}

.hero__content {
  padding-top: clamp(104px, 14vh, 160px);
  padding-bottom: 9rem;
  text-align: center;
}

.hero .eyebrow {
  color: #ffe2b8;
  text-shadow: 0 1px 12px rgba(13, 24, 42, 0.5);
}

.hero h1 {
  margin: 0 auto 1.1rem;
  max-width: 15em;
  font-size: clamp(2.55rem, 1.1rem + 5.6vw, 5.4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgba(13, 24, 42, 0.45);
}

.hero h1 .h1-place {
  display: block;
  margin-bottom: 0.5em;
  font-family: var(--font-hand);
  font-size: 0.5em;
  font-weight: 600;
  letter-spacing: 0;
  color: #ffe2b8;
  transform: rotate(-2deg);
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
}

.hero__sub {
  max-width: 34rem;
  margin: 0 auto 1.9rem;
  font-size: clamp(1.08rem, 0.95rem + 0.6vw, 1.3rem);
  line-height: 1.5;
  text-shadow: 0 1px 16px rgba(13, 24, 42, 0.6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.trust {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem 0.9rem;
  margin: 1.4rem 0 0;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: rgba(13, 24, 42, 0.42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-weight: 700;
  font-size: 0.93rem;
}

.trust li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.trust li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.stars {
  display: inline-flex;
  gap: 1px;
  color: var(--gold);
}

.stars .icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  stroke: none;
}

/* Tide line along the bottom of the hero */
.tideline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(46px, 7vw, 92px);
  overflow: hidden;
  pointer-events: none;
}

.tideline svg {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  height: 100%;
  max-width: none;
}

.tideline__back {
  opacity: 0.45;
  animation: tide 26s linear infinite reverse;
}

.tideline__front {
  animation: tide 17s linear infinite;
}

@keyframes tide {
  to {
    transform: translateX(-25%);
  }
}

/* Portrait screens get the fire pit photo, with the headline in the sky above it */
@media (max-aspect-ratio: 4/5) {
  .hero {
    min-height: max(600px, 100vh);
    min-height: max(600px, 100svh);
  }

  .hero__media {
    height: 100%;
  }

  .hero__media img {
    object-position: 50% 100%;
  }

  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(13, 24, 42, 0.78) 0%,
      rgba(13, 24, 42, 0.55) 30%,
      rgba(13, 24, 42, 0) 52%
    );
  }

  .hero__content {
    padding-top: calc(var(--header-h) + 1.4rem);
    padding-bottom: 0;
  }

  .hero__sub {
    margin-bottom: 1.3rem;
  }

  .hero__actions .btn--ghost {
    display: none;
  }

  .trust {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero .eyebrow {
    margin-bottom: 0.6rem;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .hero__sub {
    margin-bottom: 1.1rem;
  }
}

/* ---------- Quick facts ---------- */

.facts {
  position: relative;
  z-index: 2;
  margin-top: -1.2rem;
  padding-bottom: 0.5rem;
}

.facts__list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.facts__list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.1rem 0.6rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  text-align: center;
  line-height: 1.25;
}

.facts__list .icon {
  width: 1.7rem;
  height: 1.7rem;
  color: var(--clay);
}

.facts__list strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
}

.facts__list span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .facts__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .facts__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Welcome ---------- */

.welcome__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.photo-stack {
  position: relative;
  padding: 0 0 3.4rem 2.4rem;
}

.photo-stack__main img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.polaroid {
  background: var(--white);
  padding: 10px 10px 0;
  border-radius: 4px;
  box-shadow: var(--shadow);
  margin: 0;
}

.polaroid figcaption {
  padding: 0.3rem 0 0.45rem;
  font-family: var(--font-hand);
  font-size: 1.35rem;
  line-height: 1.1;
  text-align: center;
  color: var(--ink-soft);
}

.photo-stack .polaroid {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(42%, 230px);
  transform: rotate(-5deg);
}

.note {
  position: relative;
  display: inline-block;
  margin: 1.2rem 0 0;
  padding: 1.1rem 1.5rem 1rem;
  background: #fff8e2;
  border-radius: 3px;
  box-shadow: var(--shadow-soft);
  transform: rotate(-1.4deg);
  font-family: var(--font-hand);
  font-size: 1.7rem;
  line-height: 1.15;
  color: var(--tide);
}

.note::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 84px;
  height: 22px;
  background: rgba(227, 165, 79, 0.5);
  transform: translateX(-50%) rotate(-2deg);
}

.note cite {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.15rem;
  font-style: normal;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .welcome__grid {
    grid-template-columns: 1fr;
  }

  .photo-stack {
    padding-left: 1.4rem;
  }
}

/* ---------- A day on the tide ---------- */

.day {
  --day-bg: var(--paper-2);
  --day-ink: var(--ink);
  --day-soft: var(--ink-soft);
  --day-accent: var(--clay);
  position: relative;
  background: var(--day-bg);
  color: var(--day-ink);
  transition: background-color 1.1s ease, color 0.7s ease;
}

.day[data-phase="sunrise"] {
  --day-bg: #fbe2cc;
  --day-accent: #b9502c;
}

.day[data-phase="lowtide"] {
  --day-bg: #f3ead9;
  --day-accent: #a4533a;
}

.day[data-phase="afternoon"] {
  --day-bg: #e3eee2;
  --day-accent: #2e4a3d;
}

.day[data-phase="golden"] {
  --day-bg: #f7d99d;
  --day-accent: #8a4a10;
}

.day[data-phase="dusk"] {
  --day-bg: #34466b;
  --day-ink: #f7f1e5;
  --day-soft: #d6dcea;
  --day-accent: #f5bd77;
}

.day[data-phase="night"] {
  --day-bg: #111927;
  --day-ink: #eef1f6;
  --day-soft: #c2cad8;
  --day-accent: #f3d08f;
}

/* Stars come out at dusk */
.day::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s ease;
  background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 62%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 41% 31%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 74%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 69% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 83% 55%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 92% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 81%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 49% 92%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 76% 88%, #fff 50%, transparent 51%);
  background-size: 620px 520px;
}

.day[data-phase="dusk"]::before {
  opacity: 0.35;
}

.day[data-phase="night"]::before {
  opacity: 0.8;
}

.day .wrap {
  position: relative;
}

.day .eyebrow,
.day-step__time {
  color: var(--day-accent);
  transition: color 0.7s ease;
}

.day .section-head p {
  color: var(--day-soft);
  transition: color 0.7s ease;
}

.day__layout {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
}

.day__rail {
  position: relative;
}

.day__rail ol {
  position: sticky;
  top: calc(var(--header-h) + 14vh);
  margin: 0;
  padding: 0;
  list-style: none;
}

.day__rail li {
  position: relative;
  padding: 0 0 1.5rem 1.7rem;
}

.day__rail li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.9rem;
  bottom: -0.5rem;
  width: 2px;
  background: currentColor;
  opacity: 0.2;
}

.day__rail li:last-child::before {
  display: none;
}

.day__rail a {
  display: block;
  color: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  opacity: 0.55;
  transition: opacity 0.3s;
}

.day__rail a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--day-bg);
  transition: background-color 0.4s, transform 0.4s, box-shadow 0.4s;
}

.day__rail a:hover,
.day__rail a.is-active {
  opacity: 1;
}

.day__rail a.is-active::before {
  background: var(--day-accent);
  border-color: var(--day-accent);
  transform: scale(1.35);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--day-accent) 22%, transparent);
}

.day-step {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(1.4rem, 4vw, 3.4rem);
  align-items: center;
  padding: clamp(1.4rem, 4vw, 3rem) 0;
  scroll-margin-top: calc(var(--header-h) + 3rem);
}

.day-step:nth-child(even) .day-step__media {
  order: 2;
}

.day-step__media {
  margin: 0;
}

.day-step__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 24px 50px -26px rgba(0, 0, 0, 0.6);
}

.day-step--tall .day-step__media img {
  aspect-ratio: 4 / 5;
}

.day-step__time {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.6rem;
  font-family: var(--font-hand);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
}

.day-step__time .icon {
  width: 1.3rem;
  height: 1.3rem;
  stroke-width: 2;
}

.day-step p:not(.day-step__time) {
  color: var(--day-soft);
  transition: color 0.7s ease;
}

.day-step p:last-child {
  margin-bottom: 0;
}

.day a {
  color: inherit;
}

@media (max-width: 960px) {
  .day__layout {
    grid-template-columns: 1fr;
  }

  .day__rail {
    display: none;
  }
}

@media (max-width: 700px) {
  .day-step {
    grid-template-columns: 1fr;
    padding: 1.6rem 0;
  }

  .day-step:nth-child(even) .day-step__media {
    order: 0;
  }

  .day-step--tall .day-step__media img {
    aspect-ratio: 1 / 1;
  }
}

/* ---------- Rooms ---------- */

.rooms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}

.room {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.room--wide {
  grid-column: span 2;
}

.room__media {
  display: flex;
  flex: 1 1 auto;
  margin: 0;
  overflow: hidden;
}

.room__media picture {
  display: flex;
  flex: 1;
}

.room__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.room--wide .room__media img {
  aspect-ratio: 2 / 1;
}

.room:hover .room__media img {
  transform: scale(1.03);
}

.room__body {
  padding: 1.3rem 1.4rem 1.5rem;
}

.room__body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.sleeps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--sand);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
}

.sleeps li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.3rem;
  background: var(--paper);
  line-height: 1.3;
}

.sleeps .icon {
  width: 1.8rem;
  height: 1.8rem;
  color: var(--clay);
}

.sleeps strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.sleeps span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .rooms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .rooms,
  .sleeps {
    grid-template-columns: 1fr;
  }

  .room--wide {
    grid-column: auto;
  }

  .room--wide .room__media img {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- Amenities ---------- */

.amenities {
  background: var(--paper-2);
}

.amenity-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

@media (min-width: 1000px) {
  .amenity-groups {
    grid-template-columns: repeat(6, 1fr);
  }

  .amenity-group {
    grid-column: span 2;
  }

  .amenity-group:nth-child(n + 4) {
    grid-column: span 3;
  }

  .amenity-group:nth-child(n + 4) .checks {
    columns: 2;
    column-gap: 1.6rem;
  }

  .amenity-group:nth-child(n + 4) .checks li {
    break-inside: avoid;
  }
}

.amenity-group {
  padding: 1.6rem 1.6rem 1.7rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.amenity-group h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.amenity-group h3 .icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.55rem;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--clay);
}

.checks li {
  position: relative;
  padding: 0.28rem 0 0.28rem 1.7rem;
  font-size: 0.99rem;
  line-height: 1.45;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.72rem;
  width: 0.8rem;
  height: 0.42rem;
  border-left: 2px solid var(--spruce);
  border-bottom: 2px solid var(--spruce);
  transform: rotate(-45deg);
}

.center-cta {
  margin-top: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

/* ---------- Tides ---------- */

.tides {
  position: relative;
  background: var(--tide);
  color: #eef2f7;
}

.tides h2 {
  color: #fff;
}

.tides .eyebrow {
  color: #f5bd77;
}

.tides a {
  color: #ffd9a3;
}

.tides__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.tide-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.8rem 0;
}

.tide-stats li {
  padding-top: 0.9rem;
  border-top: 2px solid rgba(245, 189, 119, 0.6);
  font-size: 0.93rem;
  line-height: 1.35;
  color: #cfd8e6;
}

.tide-stats strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: 500;
  line-height: 1;
  color: #fff;
}

.callout {
  display: flex;
  gap: 0.9rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.99rem;
  line-height: 1.5;
}

.callout .icon {
  margin-top: 0.15rem;
  color: #f5bd77;
}

.callout p {
  margin: 0;
}

.tide-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  align-items: start;
}

.tide-pair figure {
  position: relative;
  margin: 0;
}

.tide-pair figure:last-child {
  margin-top: 2.6rem;
}

.tide-pair img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}

.tide-pair figure:first-child img {
  object-position: 12% 50%;
}

.tide-pair figcaption {
  margin-top: 0.7rem;
  font-size: 0.93rem;
  line-height: 1.4;
  color: #cfd8e6;
}

.tide-pair figcaption strong {
  display: block;
  font-family: var(--font-hand);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.1;
  color: #ffd9a3;
}

@media (max-width: 900px) {
  .tides__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .tide-stats {
    grid-template-columns: 1fr;
  }

  .tide-stats li {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
  }

  .tide-stats strong {
    min-width: 5.4rem;
  }
}

/* ---------- Gallery ---------- */

.gallery {
  columns: 3 260px;
  column-gap: 14px;
}

.gallery a {
  position: relative;
  display: block;
  margin-bottom: 14px;
  border-radius: 14px;
  overflow: hidden;
  break-inside: avoid;
  background: var(--sand);
}

.gallery img {
  width: 100%;
  transition: transform 0.7s ease, filter 0.4s;
}

.gallery a:hover img,
.gallery a:focus-visible img {
  transform: scale(1.04);
  filter: brightness(1.05);
}

@media (max-width: 620px) {
  .gallery {
    columns: 2;
    column-gap: 9px;
  }

  .gallery a {
    margin-bottom: 9px;
    border-radius: 10px;
  }
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 14, 21, 0.96);
  color: #fff;
}

.lightbox::backdrop {
  background: rgba(10, 14, 21, 0.96);
}

.lightbox__stage {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  padding: 3.6rem 1rem 1.2rem;
}

.lightbox__figure {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin: 0;
}

.lightbox__figure picture {
  display: contents;
}

.lightbox__figure img {
  max-width: min(100%, 1500px);
  max-height: calc(100vh - 8.5rem);
  max-height: calc(100dvh - 8.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox__caption {
  max-width: 46rem;
  margin: 0.9rem auto 0;
  text-align: center;
  font-size: 0.95rem;
  color: #d6dcea;
}

.lightbox__count {
  position: absolute;
  top: 1.1rem;
  left: 1.2rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: #d6dcea;
}

.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}

.lightbox button:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox button .icon {
  width: 1.4rem;
  height: 1.4rem;
  stroke-width: 2.2;
}

.lightbox__close {
  top: 0.6rem;
  right: 0.8rem;
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__prev {
  left: 0.8rem;
}

.lightbox__next {
  right: 0.8rem;
}

/* ---------- Guests ---------- */

.guests {
  background: var(--paper-2);
}

.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.2rem 2.4rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.rating__score {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rating__score strong {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 2.5rem + 4vw, 5.4rem);
  font-weight: 500;
  line-height: 1;
}

.rating__score .stars {
  display: flex;
  margin-bottom: 0.3rem;
  font-size: 1.5rem;
}

.rating__label {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  font-size: 0.94rem;
}

.badges .icon {
  color: var(--clay);
}

.themes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.theme {
  padding: 1.7rem 1.6rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.theme h3 {
  font-family: var(--font-hand);
  font-size: 1.95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--clay);
}

.theme p {
  margin: 0;
  color: var(--ink-soft);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: clamp(1.6rem, 3vw, 2.4rem) 0 0;
}

.chips li {
  padding: 0.3rem 0.9rem;
  border: 1.5px solid var(--sand);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.chips li:first-child {
  border: 0;
  padding-left: 0;
  font-weight: 800;
  color: var(--ink);
}

@media (max-width: 820px) {
  .themes {
    grid-template-columns: 1fr;
  }
}

/* ---------- Hosts ---------- */

.hosts__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hosts__photo {
  margin: 0;
  transform: rotate(-2.5deg);
  max-width: 400px;
  justify-self: center;
}

.hosts__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin: 1.4rem 0 0;
  font-weight: 700;
  font-size: 0.96rem;
}

.hosts__meta li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hosts__meta .icon {
  color: var(--clay);
}

.signature {
  margin: 0.4rem 0 0;
  font-family: var(--font-hand);
  font-size: 2.1rem;
  line-height: 1.1;
  color: var(--tide);
}

@media (max-width: 820px) {
  .hosts__grid {
    grid-template-columns: 1fr;
  }

  .hosts__photo {
    max-width: 300px;
  }
}

/* ---------- Location ---------- */

.location {
  background: var(--white);
}

.location__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.drives {
  margin: 1.6rem 0;
  border-top: 1px solid var(--sand);
}

.drives li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--sand);
}

.drives span {
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.drives strong {
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
}

.map {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  margin: 0;
}

.map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--paper-2);
}

.map figcaption {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .location__grid {
    grid-template-columns: 1fr;
  }

  .map {
    position: static;
  }
}

/* ---------- Good to know + FAQ ---------- */

.know__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 1.6rem);
}

.know-card {
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.know-card h3 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.know-card h3 .icon {
  color: var(--clay);
}

.know-card li {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--paper-2);
  line-height: 1.45;
}

.know-card li .icon {
  margin-top: 0.12rem;
  color: var(--spruce);
}

@media (max-width: 820px) {
  .know__grid {
    grid-template-columns: 1fr;
  }
}

.faq {
  max-width: 50rem;
  margin-inline: auto;
}

.faq details {
  border-bottom: 1px solid var(--sand);
}

.faq details:first-of-type {
  border-top: 1px solid var(--sand);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0.2rem;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  color: var(--clay);
  transition: transform 0.3s;
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
}

.faq details > div {
  padding: 0 0.2rem 1.3rem;
  color: var(--ink-soft);
}

.faq details > div p:last-child {
  margin-bottom: 0;
}

/* ---------- Closing call to action ---------- */

.cta {
  position: relative;
  background: var(--night);
  color: #eef1f6;
  overflow: hidden;
}

.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.cta h2 {
  color: #fff;
  font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.8rem);
}

.cta .eyebrow {
  color: #f3d08f;
}

.cta p {
  color: #c2cad8;
  max-width: 32rem;
}

.cta__photo {
  margin: 0;
}

.cta__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 200px 200px var(--radius) var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}

.cta__small {
  margin-top: 1.1rem;
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .cta__grid {
    grid-template-columns: 1fr;
  }

  .cta__photo {
    max-width: 340px;
    order: -1;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--char);
  color: #d9d2c4;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: 0.96rem;
}

.site-footer a {
  color: #f2ebdc;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 2.5fr));
  gap: 2.5rem;
}

.site-footer .brand {
  color: #fff;
  margin-bottom: 1rem;
}

.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a79f90;
  margin-bottom: 0.9rem;
}

.site-footer li {
  padding: 0.22rem 0;
}

.site-footer li a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  color: #a79f90;
}

.site-footer__legal p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Mobile booking bar ---------- */

.book-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 253, 248, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 -6px 24px -14px rgba(38, 36, 31, 0.5);
  transform: translateY(110%);
  transition: transform 0.35s ease;
}

.book-bar.is-visible {
  transform: none;
}

.book-bar p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.25;
  color: var(--ink-soft);
}

.book-bar p strong {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.98rem;
  color: var(--ink);
}

.book-bar .stars {
  font-size: 0.85rem;
}

@media (max-width: 1020px) {
  .book-bar {
    display: flex;
  }

  body.has-book-bar {
    padding-bottom: 76px;
  }
}

/* ---------- Area guide page ---------- */

.page-hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(4rem, 9vw, 7rem);
  color: #fff;
  background: var(--tide);
  overflow: hidden;
}

.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero__media picture {
  display: block;
  height: 100%;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13, 24, 42, 0.5), rgba(13, 24, 42, 0.72));
}

.page-hero h1 {
  max-width: 14em;
  font-size: clamp(2.3rem, 1.2rem + 4.4vw, 4.2rem);
  font-weight: 500;
}

.page-hero .eyebrow {
  color: #ffe2b8;
}

.page-hero p {
  max-width: 38rem;
  font-size: 1.15rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.crumbs a {
  color: #fff;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.4rem;
  opacity: 0.7;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.8rem;
}

.toc a {
  padding: 0.45rem 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 0.93rem;
  text-decoration: none;
}

.toc a:hover {
  background: #fff;
  color: var(--tide);
}

.guide-section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.guide-section:nth-of-type(even) {
  background: var(--paper-2);
}

.guide-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.guide-head--text {
  grid-template-columns: minmax(0, 46rem);
}

.guide-head figure {
  margin: 0;
}

.guide-head img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.drive-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--tide);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.drive-tag .icon {
  width: 1rem;
  height: 1rem;
  stroke-width: 2;
}

.places {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.place {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 1.6rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.place h3 {
  font-size: 1.32rem;
  margin-bottom: 0.3rem;
}

.place__time {
  margin: 0 0 0.7rem;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
}

.place p {
  color: var(--ink-soft);
  font-size: 1rem;
}

.place p:last-child {
  margin-bottom: 0;
}

.place__link {
  margin-top: auto;
  font-weight: 800;
  font-size: 0.95rem;
}

.tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem 2rem;
}

.tips li {
  display: flex;
  gap: 0.8rem;
  line-height: 1.5;
}

.tips .icon {
  margin-top: 0.15rem;
  color: var(--clay);
}

@media (max-width: 820px) {
  .guide-head {
    grid-template-columns: 1fr;
  }
}

/* ---------- 404 ---------- */

.lost {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  text-align: center;
}

.lost h1 {
  font-size: clamp(2.4rem, 1.5rem + 4vw, 4rem);
}

/* ---------- Motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .book-bar,
  .tideline,
  .map {
    display: none;
  }
}
