:root {
  --ink: #1b241c;
  --ink-soft: #3e493f;
  --sand: #f4f0e7;
  --sand-deep: #e6dccb;
  --paper: #fbf9f5;
  --pine: #1b2a22;
  --brass: #6f5634;
  --line: rgba(27, 36, 28, 0.14);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --header: 4.25rem;
  --measure: 38rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 360;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 20;
}

.skip:focus {
  top: 0.75rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
  padding: 0.75rem 1.25rem;
  color: #f7f4ee;
  background: linear-gradient(to bottom, rgba(16, 24, 19, 0.72), rgba(16, 24, 19, 0));
}

.site-header.is-solid {
  background: rgba(251, 249, 245, 0.94);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.nav-toggle {
  display: none;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #f7f4ee;
  background: var(--pine);
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(16, 24, 19, 0.82) 0%, rgba(16, 24, 19, 0.28) 46%, rgba(16, 24, 19, 0.22) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 6.5rem 1.25rem 3rem;
  max-width: 46rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 560;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #e4d3b4;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 460;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.6rem);
  max-width: 11ch;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.55rem;
}

.lede {
  max-width: 36rem;
  font-size: 1.2rem;
}

.button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.85rem 1.2rem;
  background: var(--sand);
  color: var(--ink);
  text-decoration: none;
  border: 0;
  font: inherit;
  font-weight: 560;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  background: #fff;
}

.button-dark {
  background: var(--pine);
  color: #f7f4ee;
}

.button-dark:hover,
.button-dark:focus-visible {
  background: #31483c;
}

.facts {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}

.facts dl {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin: 0 auto;
  max-width: 72rem;
  padding: 0 1.5rem;
}

.facts div {
  padding: 1.35rem 0;
}

.facts dt {
  color: var(--brass);
  font-size: 0.72rem;
  font-weight: 560;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.facts dd {
  margin: 0.2rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  line-height: 1.15;
  white-space: nowrap;
}

.apartment,
.gallery,
.peninsula,
.enquire {
  max-width: 76rem;
  margin: 0 auto;
  padding: 5rem 1.25rem;
}

.apartment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 3rem;
  align-items: center;
}

.apartment p {
  max-width: var(--measure);
}

.spec {
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.spec li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.apartment-figure {
  margin: 0;
}

.apartment-figure img {
  width: 100%;
  height: auto;
}

.apartment-figure figcaption,
.shot span,
.lightbox figcaption {
  margin-top: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.gallery {
  padding-top: 1rem;
}

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

.shot {
  grid-column: span 2;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  align-self: start;
}

.shot.wide {
  grid-column: span 4;
}

.shot.portrait {
  grid-column: span 2;
}

.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--sand-deep);
}

.shot.portrait img {
  aspect-ratio: 3 / 4;
}

.shot:focus-visible img,
.shot:hover img {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
}

.place-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.place-grid article {
  padding: 1.4rem 1.3rem 1.5rem;
  background: var(--sand);
}

.place-grid p {
  margin: 0;
}

.enquire {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
}

.enquire-address {
  color: var(--brass);
  font-weight: 560;
}

.enquiry-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.4rem;
  background: var(--sand);
}

.availability {
  display: grid;
  gap: 0.75rem;
}

.availability-bar,
.availability-nav,
.availability-legend {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.availability-bar {
  justify-content: space-between;
}

.availability-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 560;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.availability-nav button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}

.availability-nav button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.availability-months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.month {
  min-width: 0;
}

.month-title {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 560;
}

.weekday-row,
.day-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.2rem;
}

.weekday {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.day,
.day-blank {
  aspect-ratio: 1;
  min-height: 1.9rem;
}

.day {
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  padding: 0;
  cursor: pointer;
}

.day:hover:not(:disabled),
.day:focus-visible {
  background: var(--sand-deep);
}

.day.is-past {
  color: rgba(27, 36, 28, 0.28);
  cursor: default;
}

.day.is-booked,
.day.is-booked:disabled {
  background: #ead8d2;
  color: #7a2e24;
  text-decoration: line-through;
  cursor: not-allowed;
}

.day.is-in-range {
  background: var(--sand-deep);
}

.day.is-chosen,
.day.is-chosen:hover {
  background: var(--pine);
  color: #f7f4ee;
  text-decoration: none;
}

.availability-legend {
  flex-wrap: wrap;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.availability-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.key {
  width: 0.85rem;
  height: 0.85rem;
  display: inline-block;
  background: var(--paper);
  border: 1px solid var(--line);
}

.key-booked {
  background: #ead8d2;
  border-color: transparent;
}

.key-chosen {
  background: var(--pine);
  border-color: transparent;
}

.booked-stays ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.booked-stays li {
  margin: 0.15rem 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

label {
  font-size: 0.82rem;
  font-weight: 560;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  padding: 0.7rem 0.75rem;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

.form-status {
  margin: 0;
  min-height: 1.4em;
}

.form-status.is-error {
  color: #7a2e24;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  padding: 2rem 1.25rem 2.5rem;
  background: var(--pine);
  color: #e7e1d6;
}

.site-footer p {
  margin: 0.2rem 0;
}

.site-footer a {
  color: inherit;
}

.admin {
  max-width: 40rem;
  margin: 0 auto;
  padding: calc(var(--header) + 2rem) 1.25rem 4rem;
}

.admin h1 {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 560;
  line-height: 1.15;
}

.admin-panel {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.form-note {
  margin: 0;
  color: var(--ink-soft);
}

.stay-list {
  list-style: none;
  margin: 0.5rem 0 1rem;
  padding: 0;
}

.stay-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}

.stay-list button,
.enquiry-actions button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}

.stay-list button:disabled,
.enquiry-actions button:disabled {
  opacity: 0.5;
  cursor: default;
}

.enquiry-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.enquiry-list li {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.enquiry-list p {
  margin: 0.25rem 0;
  white-space: pre-wrap;
}

.enquiry-list small {
  color: var(--ink-soft);
}

.enquiry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.enquiry-actions button[hidden] {
  display: none;
}

.conversation {
  display: grid;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.conversation article {
  border: 1px solid var(--line);
  padding: 0.55rem 0.75rem;
  max-height: 16rem;
  overflow: auto;
}

.conversation article.is-out {
  background: var(--paper);
  margin-left: 1.5rem;
}

.conversation article p {
  margin: 0.3rem 0 0;
  white-space: pre-wrap;
}

.reply-form {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.reply-form textarea {
  font: inherit;
  min-height: 5rem;
  padding: 0.5rem;
  border: 1px solid var(--line);
}

.lightbox {
  width: min(1100px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  border: 0;
  padding: 1rem 3.5rem 1.25rem;
  background: var(--pine);
  color: #f7f4ee;
}

.lightbox::backdrop {
  background: rgba(16, 22, 18, 0.82);
}

.lightbox figure {
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: calc(100vh - 8rem);
  object-fit: contain;
  margin: 0 auto;
}

.lightbox figcaption {
  color: #e7e1d6;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  background: transparent;
  color: #f7f4ee;
  font: inherit;
  cursor: pointer;
}

.lightbox-close {
  top: 0.8rem;
  right: 0.9rem;
}

.lightbox-nav.prev {
  left: 0.4rem;
  top: 50%;
}

.lightbox-nav.next {
  right: 0.4rem;
  top: 50%;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.4rem 1.25rem 1rem;
    background: var(--paper);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0;
    border-top: 1px solid var(--line);
  }

  .apartment,
  .place-grid,
  .enquire,
  .field-row,
  .availability-months {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shot,
  .shot.wide,
  .shot.portrait {
    grid-column: span 1;
  }

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

  .apartment,
  .gallery,
  .peninsula,
  .enquire {
    padding: 3.2rem 1.25rem;
  }
}

@media (max-width: 900px) {
  .facts dl {
    gap: 1.15rem;
  }

  .facts dd {
    font-size: 1.2rem;
  }
}

@media (max-width: 640px) {
  .facts dl {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .facts div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.8rem 0;
    border-top: 1px solid var(--line);
  }

  .facts div:first-child {
    border-top: 0;
  }

  .facts dd {
    margin: 0;
    white-space: nowrap;
    font-size: 1.35rem;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 0.92rem;
    line-height: 1.15;
  }

  .gallery-grid,
  .shot.wide {
    grid-template-columns: 1fr;
  }

  .shot,
  .shot.wide,
  .shot.portrait {
    grid-column: auto;
  }
}

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