/* Meralune Estate 1.0.2 — original StaticTemplates design system */
:root {
  --chalk: #f1eee6;
  --cream: #fbf8f1;
  --olive: #4d5841;
  --leaf: #73806a;
  --clay: #bd654b;
  --plum: #4e2c38;
  --sky: #b9ccc6;
  --ink: #242723;
  --quiet: #6f736b;
  --rule: rgba(36, 39, 35, .18);
  --display: "Arial Narrow", "Aptos Display", "Helvetica Neue", Arial, sans-serif;
  --body: Aptos, "Segoe UI", system-ui, sans-serif;
  --accent: "Iowan Old Style", Georgia, serif;
  --pad: clamp(1.1rem, 3vw, 3.2rem);
  --flow: clamp(4.8rem, 10vw, 10rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--body);
  font-size: clamp(1rem, .97rem + .16vw, 1.12rem);
  line-height: 1.7;
}
body.is-locked { overflow: hidden; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
p { margin: 0 0 1.3rem; }
h1, h2, h3, h4 { margin: 0 0 1rem; color: var(--ink); font-family: var(--display); line-height: .96; font-weight: 520; }
h1 { font-size: clamp(3.2rem, 10vw, 9.5rem); letter-spacing: -.065em; }
h2 { font-size: clamp(2.5rem, 6.2vw, 6rem); letter-spacing: -.055em; }
h3 { font-size: clamp(1.5rem, 2.6vw, 2.6rem); letter-spacing: -.035em; }

.skip { position: fixed; left: 1rem; top: -5rem; z-index: 200; background: #fff; padding: .8rem 1rem; }
.skip:focus { top: 1rem; }
.wrap { width: min(1480px, calc(100% - 2 * var(--pad))); margin-inline: auto; }
.measure { max-width: 760px; }
.flow { padding-block: var(--flow); }
.paper { background: var(--chalk); }
.botanical { background: var(--olive); color: #fff; }
.botanical h2, .botanical h3 { color: #fff; }
.clay-field { background: var(--clay); color: #fff; }
.clay-field h2, .clay-field h3 { color: #fff; }
.overline { display: block; margin-bottom: 1.2rem; color: var(--clay); font-size: .76rem; font-weight: 760; letter-spacing: .16em; text-transform: uppercase; }
.botanical .overline, .clay-field .overline { color: #f5d7ca; }
.intro { font-family: var(--accent); font-size: clamp(1.3rem, 2.1vw, 2rem); line-height: 1.45; }
.micro { color: var(--quiet); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.action { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 3.35rem; padding: .75rem 1.35rem; border: 0; border-radius: 100vmax; background: var(--clay); color: #fff; font-weight: 730; transition: transform .22s, background .22s; }
.action::after { content: "↗"; font-size: 1.05rem; }
.action:hover { transform: translateY(-2px); background: var(--plum); }
.action--pale { background: var(--cream); color: var(--ink); }
.action--quiet { background: transparent; border: 1px solid currentColor; color: inherit; }
.action:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Centered masthead with full-screen editorial navigation */
.masthead { position: relative; z-index: 60; background: var(--cream); border-bottom: 1px solid var(--rule); }
.home .masthead { position: absolute; inset: 0 0 auto; background: linear-gradient(rgba(22,27,22,.68), rgba(22,27,22,.16)); color: #fff; border-color: rgba(255,255,255,.38); text-shadow: 0 1px 12px rgba(0,0,0,.3); }
.mast-row { min-height: 86px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.menu-trigger { justify-self: start; display: inline-flex; align-items: center; gap: .75rem; border: 0; background: transparent; color: inherit; font-weight: 720; cursor: pointer; }
.menu-trigger i, .menu-trigger i::before { display: block; width: 27px; height: 1px; background: currentColor; content: ""; }
.menu-trigger i::before { transform: translateY(7px); }
.wordmark { text-align: center; font-family: var(--display); font-weight: 650; font-size: 1.18rem; letter-spacing: .22em; text-transform: uppercase; }
.wordmark span { display: block; font-size: .6rem; letter-spacing: .3em; margin-top: .25rem; }
.visit-link { justify-self: end; font-size: .85rem; font-weight: 720; border-bottom: 1px solid currentColor; }
.nav-panel { position: fixed; inset: 0; z-index: 100; padding: var(--pad); background: var(--plum); color: #fff; opacity: 0; visibility: hidden; transform: translateY(-2rem); transition: .28s ease; overflow: auto; }
.nav-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(3rem, 8vw, 8rem); }
.nav-close { width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.nav-map { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem, 6vw, 7rem); }
.nav-primary a { display: block; width: fit-content; font-family: var(--display); font-size: clamp(2.3rem, 6vw, 5.8rem); line-height: 1; letter-spacing: -.05em; margin-bottom: .35rem; }
.nav-primary a:hover { color: #f0b9a8; }
.nav-group strong { display: block; margin-bottom: 1.25rem; color: #f0b9a8; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
.nav-group a { display: block; margin: .55rem 0; }

/* Home: immersive place-first narrative */
.arrival { min-height: 92vh; position: relative; display: grid; align-items: end; color: #fff; overflow: hidden; }
.arrival > img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.arrival::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,25,20,.48), rgba(20,25,20,.1) 36%, rgba(20,25,20,.78)); }
.arrival-copy { position: relative; z-index: 1; padding-block: 10rem 3rem; }
.arrival h1 { color: #fff; max-width: 1250px; text-transform: uppercase; text-shadow: 0 2px 22px rgba(0,0,0,.2); }
.arrival .overline, .arrival-line { text-shadow: 0 1px 14px rgba(0,0,0,.48); }
.arrival .overline { font-weight: 820; }
.arrival-line { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.arrival-line p { max-width: 460px; font-size: 1.12rem; font-weight: 560; }
.arrival-index { writing-mode: vertical-rl; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.place-note { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 8vw, 10rem); align-items: start; }
.place-note h2 { max-width: 900px; }
.place-note .aside-copy { padding-top: 1rem; }
.image-weave { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: clamp(1.25rem, 3.5vw, 3.5rem); }
.image-weave .portrait { aspect-ratio: 4 / 5; object-fit: cover; }
.image-weave .landscape { aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 2.5rem; }
.image-weave figcaption { margin-top: .8rem; color: var(--quiet); font-size: .8rem; }
.route { margin-top: clamp(3.5rem, 6vw, 5.5rem); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); }
.route a { position: relative; padding: 1.25rem 1rem 1.25rem 0; border-right: 1px solid var(--rule); }
.route a:last-child { border: 0; }
.route small { display: block; color: var(--clay); font-weight: 760; }
.route strong { font-family: var(--display); font-size: clamp(1.25rem, 2vw, 2rem); }

.panorama { min-height: 76vh; display: grid; place-items: center; position: relative; overflow: hidden; color: #fff; }
.panorama img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.panorama::after { content: ""; position: absolute; inset: 0; background: rgba(52,54,45,.34); }
.panorama-copy { position: relative; z-index: 1; width: min(900px, calc(100% - 2rem)); text-align: center; }
.panorama h2 { color: #fff; }

.setting-list { display: grid; gap: 0; }
.setting-row { display: grid; grid-template-columns: .65fr 1.35fr .55fr; gap: 2rem; align-items: center; padding: 2rem 0; border-top: 1px solid var(--rule); }
.setting-row:last-child { border-bottom: 1px solid var(--rule); }
.setting-row .num { color: var(--clay); font-size: .78rem; }
.setting-row h3 { margin: 0; }
.setting-row p { margin: 0; color: var(--quiet); }
.setting-row:hover h3 { color: var(--clay); }

.story-ribbon { overflow: hidden; }
.stories { display: grid; grid-template-columns: 1.25fr .72fr .9fr; gap: 1rem; align-items: start; }
.story-tile { position: relative; }
.story-tile:nth-child(2) { margin-top: 9rem; }
.story-tile img { aspect-ratio: 4/5; object-fit: cover; }
.story-tile h3 { margin-top: 1rem; }
.story-tile p { color: var(--quiet); }
.ink-quote { font-family: var(--accent); font-size: clamp(1.7rem, 3.5vw, 3.4rem); line-height: 1.35; }

/* Interior chapter pages */
.chapter-head { padding: clamp(5rem, 11vw, 10rem) 0 3rem; background: var(--chalk); border-bottom: 1px solid var(--rule); }
.chapter-code { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; gap: 2rem; }
.chapter-code .micro { padding-top: .6rem; }
.chapter-code h1 { font-size: clamp(3.4rem, 9vw, 8.8rem); max-width: 1200px; overflow-wrap: anywhere; }
.chapter-deck { margin-left: 33.333%; max-width: 720px; font-family: var(--accent); font-size: clamp(1.3rem, 2.2vw, 2rem); }
.editorial-split { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(2rem, 8vw, 9rem); align-items: start; }
.editorial-split.reverse { grid-template-columns: 1.25fr .75fr; }
.editorial-split .sticky { position: sticky; top: 2rem; }
.bleed-image { min-height: 70vh; object-fit: cover; }
.caption { margin-top: .65rem; font-size: .8rem; color: var(--quiet); }

.chapter-stack { counter-reset: chapter; }
.chapter-item { counter-increment: chapter; display: grid; grid-template-columns: 5rem 1fr 1.1fr; gap: 2rem; padding: 3rem 0; border-top: 1px solid var(--rule); }
.chapter-item::before { content: counter(chapter, decimal-leading-zero); color: var(--clay); font-weight: 760; }
.chapter-item h3 { margin: 0; }
.detail-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.detail-pills span { padding: .45rem .8rem; border: 1px solid var(--rule); border-radius: 100vmax; font-size: .78rem; }

.property-map { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; align-items: start; }
.property-map figure { margin: 0; }
.property-map figure:nth-child(1) { grid-column: 1 / 8; }
.property-map figure:nth-child(2) { grid-column: 9 / 13; margin-top: 10rem; }
.property-map figure:nth-child(3) { grid-column: 3 / 10; margin-top: 3rem; }
.property-map img { aspect-ratio: 4/3; object-fit: cover; }

.season-strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.season { min-height: 320px; padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--rule); }
.season:nth-child(1) { background: #d9dfcf; }
.season:nth-child(2) { background: #e9d7b8; }
.season:nth-child(3) { background: #c57658; color: #fff; }
.season:nth-child(4) { background: #aebbb7; }
.season h3 { color: inherit; }

.collection-list { border-top: 1px solid var(--rule); }
.collection { display: grid; grid-template-columns: .8fr 1.2fr .7fr; gap: 2rem; padding: 2.5rem 0; border-bottom: 1px solid var(--rule); }
.collection h3 { margin: 0; }
.collection .from { text-align: right; }

.vendor-cloud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.vendor { min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.5rem; background: var(--chalk); border-radius: 50% 50% 1.5rem 1.5rem / 18% 18% 1.5rem 1.5rem; }
.vendor:nth-child(even) { background: #dbe2d5; }
.vendor strong { color: var(--clay); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }

.mosaic { columns: 3 280px; column-gap: 1rem; }
.mosaic figure { break-inside: avoid; margin: 0 0 1rem; position: relative; overflow: hidden; }
.mosaic img { transition: transform .4s; }
.mosaic figure:hover img { transform: scale(1.025); }
.mosaic figcaption { position: absolute; inset: auto 0 0; padding: 3rem 1rem 1rem; color: #fff; background: linear-gradient(transparent, rgba(20,25,20,.65)); }

.journal-list { border-top: 1px solid var(--rule); }
.journal-item { display: grid; grid-template-columns: .55fr 1.35fr .7fr; gap: 2rem; align-items: baseline; padding: 2rem 0; border-bottom: 1px solid var(--rule); }
.journal-item h2, .journal-item h3 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 3.4rem); }
.journal-item:hover h2, .journal-item:hover h3 { color: var(--clay); }
.prose { width: min(760px, calc(100% - 2 * var(--pad))); margin-inline: auto; }
.prose h2 { margin-top: 3rem; font-size: clamp(2rem, 4vw, 3.8rem); }
.prose h3 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.article-callout { margin: 3rem 0; padding: 2.5rem clamp(1.5rem, 5vw, 4rem); background: var(--sky); font-family: var(--accent); font-size: 1.4rem; }

.faq-stack { border-top: 1px solid var(--rule); }
.faq-entry { border-bottom: 1px solid var(--rule); }
.faq-question { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1.4rem 0; border: 0; background: transparent; text-align: left; cursor: pointer; font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 2.3rem); }
.faq-answer { display: none; max-width: 760px; padding: 0 3rem 1.5rem 0; }
.faq-entry.is-expanded .faq-answer { display: block; }
.faq-entry.is-expanded .faq-question b { transform: rotate(45deg); }

.form-story { display: grid; grid-template-columns: .68fr 1.32fr; gap: clamp(2rem, 8vw, 9rem); }
.form-shell { padding: clamp(1.3rem, 4vw, 3.5rem); background: #fff; border-radius: 2rem 2rem 2rem .25rem; }
.form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-control { display: grid; gap: .4rem; }
.form-control.wide { grid-column: 1 / -1; }
.form-control label { font-size: .82rem; font-weight: 730; }
.form-control input, .form-control select, .form-control textarea { width: 100%; min-height: 3.2rem; border: 0; border-bottom: 1px solid #8f938b; background: transparent; padding: .7rem .2rem; color: var(--ink); }
.form-control textarea { min-height: 8rem; resize: vertical; }
.demo-success { display: none; margin-top: 1rem; padding: 1rem; background: #dbe5dc; }
.contact-lines { list-style: none; padding: 0; margin: 2rem 0; }
.contact-lines li { padding: .9rem 0; border-top: 1px solid var(--rule); }

/* Large, airy footer — distinct from multi-column hospitality footers */
.site-end { padding: clamp(4rem, 9vw, 9rem) 0 1.5rem; background: var(--sky); }
.end-lead { display: grid; grid-template-columns: 1.35fr .65fr; gap: 2rem; align-items: end; padding-bottom: 4rem; }
.end-lead h2 { margin: 0; font-size: clamp(3.5rem, 10vw, 9rem); text-transform: uppercase; }
.end-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.end-links a { display: block; margin: .4rem 0; }
.end-links strong { display: block; margin-bottom: 1rem; color: var(--plum); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.end-foot { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: .76rem; }
.maker a { text-decoration: underline; text-underline-offset: .2em; }

.not-found { min-height: 72vh; display: grid; place-items: center; text-align: center; padding: 4rem var(--pad); }
.not-found .code { font-family: var(--display); font-size: clamp(8rem, 26vw, 24rem); line-height: .7; color: var(--clay); letter-spacing: -.1em; }

@media (max-width: 940px) {
  .nav-map, .place-note, .editorial-split, .editorial-split.reverse, .form-story, .end-lead { grid-template-columns: 1fr; }
  .nav-map { gap: 2.5rem; }
  .nav-primary a { font-size: clamp(2.2rem, 9vw, 4rem); }
  .place-note .aside-copy { max-width: 680px; }
  .route { grid-template-columns: 1fr 1fr; }
  .route a:nth-child(2) { border-right: 0; }
  .stories { grid-template-columns: 1fr 1fr; }
  .stories .story-tile:last-child { grid-column: 1 / -1; }
  .editorial-split .sticky { position: static; }
  .chapter-deck { margin-left: 0; }
  .chapter-item { grid-template-columns: 3rem 1fr; }
  .chapter-item > div:last-child { grid-column: 2; }
  .season-strip { grid-template-columns: 1fr 1fr; }
  .vendor-cloud { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .mast-row { min-height: 72px; }
  .menu-trigger span { position: absolute; width: 1px; height: 1px; overflow: hidden; }
  .visit-link { font-size: .75rem; }
  .wordmark { font-size: .9rem; }
  .arrival { min-height: 80vh; }
  .arrival h1 { font-size: clamp(3.1rem, 18vw, 6rem); }
  .arrival-line { display: block; }
  .arrival-index { display: none; }
  .image-weave { grid-template-columns: 1fr; }
  .image-weave .landscape { margin: 0; }
  .route, .season-strip, .vendor-cloud, .form-fields, .end-links { grid-template-columns: 1fr; }
  .route a { border-right: 0; border-bottom: 1px solid var(--rule); }
  .setting-row { grid-template-columns: 2.5rem 1fr; }
  .setting-row p { grid-column: 2; }
  .stories { display: block; }
  .story-tile, .story-tile:nth-child(2) { margin: 0 0 3rem; }
  .chapter-code { grid-template-columns: 1fr; }
  .chapter-code h1 { font-size: clamp(2.8rem, 14vw, 5rem); }
  .chapter-item { grid-template-columns: 2rem 1fr; gap: 1rem; }
  .property-map { display: block; }
  .property-map figure, .property-map figure:nth-child(2), .property-map figure:nth-child(3) { margin: 0 0 2rem; }
  .collection, .journal-item { grid-template-columns: 1fr; gap: .65rem; }
  .collection .from { text-align: left; }
  .article-callout { margin-inline: 0; }
  .end-foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
