/* Story Stays */
:root {
  --ink: #1f303a;        /* book cover */
  --ink-2: #273540;
  --cream: #f3dfb2;      /* logo foil */
  --lav: #ddd7e4;        /* wall */
  --blush: #ece2e3;      /* table */
  --paper: #faf7f3;
  --leaf: #4a5a3a;
  --text: #2a3138;
  --muted: #5e646b;
  --line: rgba(31, 48, 58, .14);
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --fraktur: "UnifrakturMaguntia", "Old English Text MT", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 300 16px/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, .h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.01em; }
h3, .h3 { font-size: clamp(22px, 2.2vw, 28px); }
p { margin: 0 0 1.1em; }
.wrap { width: min(1180px, 100% - 48px); margin: 0 auto; }
.center { text-align: center; }
.fraktur { font-family: var(--fraktur); font-weight: 400; }
.eyebrow { font: 500 12px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--leaf); margin: 0 0 14px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 20; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; border: 1px solid var(--ink); background: var(--ink); color: var(--cream); font: 500 14px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border-radius: 2px; transition: background .2s, color .2s, transform .2s; }
.btn:hover { background: #142028; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--cream { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--cream:hover { background: #fff; }
.btn--small { min-height: 38px; padding: 9px 16px; font-size: 12px; }
.btn--block { width: 100%; }
.link { font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link:hover { color: var(--leaf); }

/* Nav */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px clamp(20px, 4vw, 48px); }
.nav__logo img { width: 168px; height: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); font-size: 14px; font-weight: 400; }
.nav__links a:not(.btn) { text-decoration: none; color: var(--ink); }
.nav__links a:not(.btn):hover { text-decoration: underline; text-underline-offset: 5px; }
.nav--dark .nav__links a:not(.btn) { color: #fff; }
.nav--dark .btn--small { background: var(--cream); color: var(--ink); border-color: var(--cream); }

/* Home hero */
.hero { position: relative; min-height: min(92vh, 900px); display: grid; align-items: end; background: var(--lav); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 40%; }
.hero__text { position: relative; justify-self: end; padding: 0 clamp(20px, 4vw, 72px) clamp(40px, 9vh, 96px) 0; width: min(470px, 33vw); }
.hero__text h1 { font-size: clamp(30px, 3.1vw, 48px); }
.hero__sub { font-size: 17px; color: var(--ink-2); max-width: 430px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__text .btn--ghost { background: rgba(250, 247, 243, .55); backdrop-filter: blur(4px); }

/* Table of contents */
.toc { padding: clamp(72px, 10vw, 120px) 0; }
.section-head { text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.chapter { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.chapter:nth-of-type(even) .chapter__img { order: 2; }
.chapter__img { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--blush); }
.chapter__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.chapter__img:hover img { transform: scale(1.03); }
.chapter__num { display: flex; align-items: baseline; gap: 12px; font: 500 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--leaf); margin-bottom: 16px; }
.chapter__num .fraktur { font-size: 34px; letter-spacing: 0; text-transform: none; color: var(--ink); line-height: .8; }
.chapter__num--light, .chapter__num--light .fraktur { color: var(--cream); }
.chapter h3 { font-size: clamp(28px, 3vw, 38px); }
.chapter h3 a { text-decoration: none; }
.chapter__meta { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.chapter__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 22px; }

/* Facts */
.facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li { padding: 12px 4px; text-align: center; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts li + li { border-left: 1px solid var(--line); }
.facts span { display: block; font: 400 24px/1.2 var(--serif); letter-spacing: 0; color: var(--ink); text-transform: none; }

/* Story */
.story { background: var(--blush); padding: clamp(72px, 10vw, 120px) 0; }
.story__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.story__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* CTA */
.cta { background: var(--ink); color: var(--cream); text-align: center; padding: clamp(72px, 10vw, 112px) 0; }
.cta h2 { color: var(--cream); margin-bottom: 28px; }
.cta__mark { font-size: 46px; margin: 0 0 10px; opacity: .85; }

/* Footer */
.foot { background: #172631; color: rgba(243, 223, 178, .85); padding: 64px 0 48px; }
.foot__inner { width: min(1180px, 100% - 48px); margin: 0 auto; text-align: center; }
.foot__logo { width: 190px; height: auto; margin: 0 auto 14px; }
.foot__tag { font-size: 14px; margin-bottom: 26px; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; font-size: 14px; margin-bottom: 26px; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.foot__small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin: 0; }

/* Property pages */
.prop-hero { position: relative; min-height: min(78vh, 760px); display: grid; align-items: end; background: var(--ink); overflow: hidden; }
.prop-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prop-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 38, 49, .55) 0%, rgba(23, 38, 49, 0) 28%, rgba(23, 38, 49, 0) 45%, rgba(23, 38, 49, .78) 100%); }
.prop-hero__text { position: relative; z-index: 1; color: #fff; padding: 0 clamp(20px, 6vw, 88px) clamp(32px, 6vh, 64px); }
.prop-hero__text h1 { color: #fff; margin-bottom: 8px; }
.prop-hero__text p { margin: 0; font-size: 15px; letter-spacing: .04em; }
.prop-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 88px); padding: clamp(56px, 8vw, 96px) 0; align-items: start; }
.lede { font: 400 clamp(21px, 2vw, 25px)/1.5 var(--serif); color: var(--ink); margin-bottom: 1.2em; }
.prop-intro__main h2 { margin-top: 1.6em; }
.booking { position: sticky; top: 24px; background: #fff; border: 1px solid var(--line); padding: 30px; }
.booking .h3 { font-size: 22px; }
.notes { margin: 20px 0 24px; padding-left: 18px; font-size: 14px; color: var(--muted); }
.notes li { margin-bottom: 6px; }
.booking__small { font-size: 13px; color: var(--muted); margin: 14px 0 0; text-align: center; }
.permit { font-size: 12px; letter-spacing: .08em; color: var(--muted); text-align: center; margin: 10px 0 0; }
.gallery-wrap { background: var(--blush); padding: clamp(56px, 8vw, 96px) 0; }
.gallery-wrap .h3 { margin-bottom: 32px; }
.gallery { columns: 3 280px; column-gap: 14px; }
.gallery__item { display: block; margin: 0 0 14px; break-inside: avoid; overflow: hidden; cursor: zoom-in; }
.gallery__item img { width: 100%; height: auto; transition: transform .5s ease, opacity .3s; }
.gallery__item:hover img { transform: scale(1.03); }
.next { padding: 56px 0; text-align: center; }
.next__link { display: inline-flex; align-items: baseline; gap: 14px; font: 400 clamp(26px, 3vw, 38px)/1.2 var(--serif); color: var(--ink); text-decoration: none; }
.next__link .fraktur { font-size: 1.2em; }
.next__link:hover { color: var(--leaf); }

/* Lightbox */
.lightbox { border: 0; padding: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(15, 24, 30, .94); }
.lightbox::backdrop { background: rgba(15, 24, 30, .94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__img { max-width: min(92vw, 1600px); max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--cream); font: 300 48px/1 var(--sans); cursor: pointer; padding: 12px 18px; }
.lightbox__close { top: 10px; right: 14px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }

/* 404 */
.notfound { min-height: 70vh; display: grid; align-items: center; padding: 140px 0 80px; }
.notfound__mark { font-size: 90px; color: var(--ink); margin: 0; }

/* Small screens */
@media (max-width: 860px) {
  .nav { padding: 16px 20px; }
  .nav--home { position: relative; background: var(--paper); }
  .nav__logo img { width: 128px; }
  .nav__links a:not(.btn) { display: none; }
  .hero { min-height: 0; display: block; }
  .hero__img { position: relative; height: 58vh; min-height: 360px; object-position: 46% 45%; }
  .hero__text { padding: 32px 22px 48px; background: var(--blush); width: auto; justify-self: stretch; }
  .chapter, .story__grid, .prop-intro { grid-template-columns: 1fr; }
  .chapter:nth-of-type(even) .chapter__img { order: 0; }
  .booking { position: static; }
  .prop-hero { min-height: 70vh; }
  .facts span { font-size: 20px; }
}
.hero .eyebrow { color: var(--ink); }

/* Hero: stack image and text when the screen is too narrow or too tall for the text to sit beside the book */
@media (max-width: 1100px), (max-aspect-ratio: 3/2) {
  .nav--home { position: relative; background: var(--paper); }
  .hero { min-height: 0; display: block; }
  .hero__img { position: relative; height: min(64vh, 640px); min-height: 360px; object-position: 46% 45%; }
  .hero__text { width: auto; justify-self: stretch; padding: clamp(32px, 5vw, 56px) clamp(22px, 6vw, 88px) clamp(44px, 6vw, 64px); background: var(--blush); }
  .hero__text h1 { font-size: clamp(30px, 4.4vw, 46px); max-width: 640px; }
}
