:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --paper-deep: #eeece5;
  --white: #fffefa;
  --ink: #202c30;
  --muted: #5a6668;
  --line: #d8d7d0;
  --blue: #17628e;
  --blue-dark: #124d70;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-user-select: none;
  user-select: none;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
input, textarea { -webkit-user-select: text; user-select: text; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid white;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--blue);
}

.container {
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.7rem 1rem;
  transform: translateY(-160%);
  background: var(--white);
  color: var(--ink);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
}
.brand picture, .brand img {
  width: 2.75rem;
  height: 2.75rem;
}
.brand img { object-fit: contain; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2rem);
}
.site-nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
  transition: color 180ms ease;
}
.site-nav a:hover { color: var(--blue); }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  background: currentColor;
  transition: transform 260ms var(--motion-ease), opacity 180ms ease;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: clamp(35rem, 78svh, 53rem);
  align-items: end;
  overflow: hidden;
  background: #344449;
  color: white;
}
.hero__image {
  position: absolute;
  z-index: -2;
  inset: 0;
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}
.hero::before, .hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
}
.hero::before {
  background: linear-gradient(90deg, rgb(13 27 33 / 76%) 0%, rgb(13 27 33 / 46%) 48%, rgb(13 27 33 / 12%) 100%),
              linear-gradient(0deg, rgb(13 27 33 / 46%), transparent 68%);
}
.hero::after {
  inset: -5%;
  background: url("../images/topography.svg") no-repeat 70% 48% / min(92rem, 110vw) auto;
  opacity: 0.24;
  mix-blend-mode: screen;
  animation: contour-drift 44s ease-in-out infinite alternate;
}
.hero.motion-paused::after { animation-play-state: paused; }
.hero__content {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 8rem);
}
.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}
.hero .eyebrow { color: #d5e5ee; }
.hero h1 {
  max-width: 11ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}
.hero__intro {
  max-width: 34rem;
  margin: 1.25rem 0 2rem;
  color: rgb(255 255 255 / 88%);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 220ms ease, border-color 220ms ease, transform 260ms var(--motion-ease), box-shadow 260ms ease;
}
.button--light {
  background: var(--white);
  color: var(--ink);
}
.button--light:hover { background: white; }
.button--outline {
  border-color: rgb(255 255 255 / 76%);
  color: white;
}
.button--outline:hover { background: rgb(255 255 255 / 12%); }
.hero__caption {
  position: absolute;
  right: max(1rem, calc((100vw - 76rem) / 2));
  bottom: 1rem;
  color: rgb(255 255 255 / 78%);
  font-size: 0.75rem;
}

.section { padding-block: clamp(4rem, 8vw, 7rem); }
.intro {
  background: var(--white);
  text-align: center;
}
.intro__inner { max-width: 48rem; }
.intro h2, .section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.15rem, 4.5vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.intro p:last-child {
  max-width: 36rem;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.08rem;
}
.section-heading {
  max-width: 44rem;
  margin: 0 0 2.75rem;
}
.section-heading > p:last-child {
  margin: 0.85rem 0 0;
  color: var(--muted);
}

.rooms { background: var(--paper); }
.rooms__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5.5rem);
}
.room-photo, .room-options { min-width: 0; }
.room-photo { margin: 0; }
.room-photo picture {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 4.25;
  background: var(--paper-deep);
}
.room-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 800ms var(--motion-ease);
}
.room-photo figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.room-option {
  padding-block: 1.2rem 1.35rem;
  border-top: 1px solid var(--line);
}
.room-option:last-of-type { border-bottom: 1px solid var(--line); }
.room-option__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}
.room-option__heading .eyebrow { margin-bottom: 0.25rem; }
.room-option h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
}
.room-option__heading > p {
  margin: 0 0 0.15rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}
.rate-list { margin: 0.9rem 0 0; }
.rate-list > div {
  display: flex;
  flex-wrap: wrap;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.4rem;
  border-top: 1px solid rgb(216 215 208 / 72%);
}
.rate-list dt { flex: 1 1 8rem; min-width: 0; color: var(--muted); font-size: 0.94rem; }
.rate-list dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.35rem;
  margin: 0 0 0 auto;
}
.rate-list strong {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-variant-numeric: tabular-nums;
}
.rate-list dd span { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.room-note {
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.5rem;
  color: var(--blue);
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
.text-link span, .contact-row a span, .contact-primary span:last-child {
  display: inline-block;
  transition: transform 260ms var(--motion-ease);
}
.amenities {
  display: grid;
  grid-template-columns: minmax(9rem, 0.7fr) 2fr;
  align-items: start;
  gap: 1rem 2rem;
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.amenities h3 {
  margin: 0.45rem 0 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}
.amenities ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1rem;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}
.amenities li { padding: 0.25rem 0; }

.landmarks { background: var(--paper-deep); }
.landmark-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 5vw, 5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.landmark-list li {
  display: flex;
  flex-wrap: wrap;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.5rem;
  border-top: 1px solid #cfcec7;
}
.landmark-list li span:first-child { font-family: var(--serif); font-size: 1.15rem; }
.landmark-list li span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}

.contact { background: var(--white); }
.contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(2rem, 7vw, 6rem);
}
.contact-primary {
  display: flex;
  flex-wrap: wrap;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  background: var(--blue);
  color: white;
  font-size: 1.05rem;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 220ms ease, transform 260ms var(--motion-ease), box-shadow 260ms ease;
}
.contact-primary:hover { background: var(--blue-dark); }
.contact-primary__label {
  display: block;
  margin-right: auto;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.86;
}
.contact-row {
  display: grid;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.contact-row h3 {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.contact-row p { margin: 0; }
.contact-row a {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}
.contact-form {
  display: grid;
  gap: 0.65rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 300ms ease, box-shadow 300ms ease;
}
.contact-form:focus-within {
  border-color: #b0c5d0;
  box-shadow: 0 10px 30px rgb(20 58 75 / 6%);
}
.contact-form h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
}
.form-intro { margin: -0.3rem 0 0.5rem; color: var(--muted); font-size: 0.9rem; }
.contact-form label { margin-top: 0.3rem; font-size: 0.9rem; font-weight: 650; }
.contact-form label span { color: var(--blue); }
.contact-form label .optional { color: var(--muted); font-weight: 400; }
.contact-form input, .contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #bcbdb7;
  border-radius: 1px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 180ms ease;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible {
  border-color: var(--blue);
  outline-color: var(--blue);
}
.button--blue { margin-top: 0.55rem; background: var(--blue); color: white; }
.button--blue:hover { background: var(--blue-dark); }
.button--blue:disabled { cursor: wait; opacity: 0.7; }
.form-status { min-height: 1.6em; margin: 0; color: var(--blue-dark); font-size: 0.92rem; }
.form-status.is-error { color: #a12828; }

.site-footer {
  padding-block: 1.5rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-footer p { margin: 0; color: var(--muted); font-size: 0.84rem; }
.site-footer .brand { font-size: 0.95rem; }
.site-footer .brand picture, .site-footer .brand img { width: 2.25rem; height: 2.25rem; }

.motion-reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 700ms var(--motion-ease), transform 700ms var(--motion-ease);
}
.motion-reveal.is-visible { opacity: 1; transform: none; }
.motion-reveal:focus-within { opacity: 1; transform: none; transition: none; }

@keyframes header-enter {
  from { opacity: 0; transform: translate3d(0, -10px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-image-enter {
  from { opacity: 0.65; transform: scale(1.055); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes hero-copy-enter {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes contour-drift {
  from { transform: translate3d(-2%, -1%, 0) rotate(-0.6deg) scale(1.02); }
  to { transform: translate3d(2%, 1%, 0) rotate(0.6deg) scale(1.055); }
}

@media (prefers-reduced-motion: no-preference) {
  .site-header__inner { animation: header-enter 600ms var(--motion-ease) both; }
  .hero__image img { animation: hero-image-enter 1600ms var(--motion-ease) both; }
  .hero__content > * { animation: hero-copy-enter 800ms var(--motion-ease) both; }
  .hero__content > :nth-child(1) { animation-delay: 90ms; }
  .hero__content > :nth-child(2) { animation-delay: 170ms; }
  .hero__content > :nth-child(3) { animation-delay: 290ms; }
  .hero__content > :nth-child(4) { animation-delay: 410ms; }
  .hero__caption { animation: hero-copy-enter 700ms var(--motion-ease) 620ms both; }
}

@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .hero__image {
    inset: -1.25rem 0;
    transform: translate3d(0, var(--hero-depth, 0px), 0);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .button:hover, .contact-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgb(20 58 75 / 14%);
  }
  .room-photo:hover img { transform: scale(1.035); }
  .text-link:hover span, .contact-row a:hover span, .contact-primary:hover span:last-child { transform: translateX(3px); }
}
.button:active, .contact-primary:active { transform: translateY(0); box-shadow: none; }

@media (min-width: 761px) and (hover: hover) {
  .site-nav a::after {
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;
    height: 1px;
    background: currentColor;
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 260ms var(--motion-ease);
  }
  .site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
}

@media (max-width: 760px) {
  .menu-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    border: 1px solid var(--line);
    border-top: 0;
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 220ms ease, transform 260ms var(--motion-ease), visibility 0s linear 260ms;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition-delay: 0s;
  }
  .site-nav a { min-height: 48px; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .rooms__layout, .contact__layout { grid-template-columns: minmax(0, 1fr); }
  .room-photo picture { aspect-ratio: 4 / 3; }
  .room-photo { max-width: 44rem; }
  .landmark-list { grid-template-columns: minmax(0, 1fr); }
  .motion-reveal { transform: translate3d(0, 16px, 0); transition-duration: 600ms; }
}

@media (max-width: 520px) {
  .intro h2, .section-heading h2 { font-size: clamp(1.75rem, 8vw, 2.15rem); }
  .brand { gap: 0.55rem; font-size: 0.98rem; }
  .brand picture, .brand img { width: 2.5rem; height: 2.5rem; }
  .hero { min-height: min(40rem, 82svh); }
  .hero h1 { font-size: clamp(2.4rem, 12vw, 3rem); }
  .hero__image img { object-position: 54% center; }
  .hero::before {
    background: linear-gradient(90deg, rgb(13 27 33 / 69%), rgb(13 27 33 / 16%)),
                linear-gradient(0deg, rgb(13 27 33 / 52%), transparent 72%);
  }
  .hero::after { background-position: 58% 50%; background-size: 48rem auto; }
  .hero__content { padding-block: 4rem 5.5rem; }
  .hero__caption { right: 1rem; }
  .hero__actions { align-items: stretch; flex-direction: column; max-width: 20rem; }
  .section { padding-block: 3.75rem; }
  .section-heading { margin-bottom: 2rem; }
  .room-option__heading { align-items: start; flex-direction: column; gap: 0.35rem; }
  .room-option__heading > p { text-align: left; }
  .amenities { grid-template-columns: 1fr; gap: 0.7rem; margin-top: 2.5rem; }
  .amenities ul { grid-template-columns: minmax(0, 1fr); gap: 0.4rem 0.7rem; font-size: 0.92rem; }
  .site-footer__inner { align-items: flex-start; flex-direction: column; gap: 0.8rem; }
}

@media (max-width: 360px) {
  .container { width: min(100% - 1.5rem, 76rem); }
  .rate-list > div { gap: 0.35rem; }
  .rate-list dt { font-size: 0.85rem; }
  .rate-list dd { gap: 0.2rem; }
  .rate-list dd span { font-size: 0.72rem; }
  .landmark-list li span:first-child { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motion-reveal { opacity: 1; transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
