:root {
  --linen: #f6f1ea;
  --sand: #e9dfd1;
  --sage: #a9b8a3;
  --sage-deep: #56664f;
  --clay: #c39a7e;
  --mist: #b9c9cc;
  --ink: #2e332c;
  --muted: #6c6f66;
  --card: rgba(255, 252, 247, 0.72);
  --line: rgba(46, 51, 44, 0.12);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --radius: 22px;
  --shadow: 0 18px 50px -28px rgba(46, 51, 44, 0.35);
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--linen);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sage-deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); }
h1 em { color: var(--sage-deep); font-style: italic; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; border-radius: 6px; }

/* ---------- Ambient background ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(180deg, #f7f2eb 0%, #f1ebe2 55%, #ece6dc 100%); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.b1 { width: 46vmax; height: 46vmax; background: var(--sage); top: -16vmax; left: -12vmax; animation: drift1 38s ease-in-out infinite alternate; }
.b2 { width: 38vmax; height: 38vmax; background: var(--clay); top: 20vh; right: -14vmax; opacity: .35; animation: drift2 46s ease-in-out infinite alternate; }
.b3 { width: 34vmax; height: 34vmax; background: var(--mist); bottom: -12vmax; left: 18vw; opacity: .5; animation: drift3 52s ease-in-out infinite alternate; }
.b4 { width: 22vmax; height: 22vmax; background: #e8d6b9; top: 40vh; left: 35vw; opacity: .45; animation: breathe 18s ease-in-out infinite; }
@keyframes drift1 { to { transform: translate(14vw, 10vh) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-12vw, 14vh) scale(.94); } }
@keyframes drift3 { to { transform: translate(10vw, -12vh) scale(1.1); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .35; } 50% { transform: scale(1.25); opacity: .55; } }
.waves { position: absolute; bottom: 0; left: 0; width: 200%; height: 34vh; opacity: .5; }
.wave { fill: rgba(169, 184, 163, .22); }
.w1 { animation: tide 30s linear infinite; }
.w2 { fill: rgba(185, 201, 204, .22); animation: tide 44s linear infinite reverse; }
@keyframes tide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .blob, .wave { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem clamp(1rem, 4vw, 3rem);
  background: rgba(246, 241, 234, .7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.3rem; }
.brand svg { width: 28px; height: 28px; color: var(--sage-deep); }
nav { display: flex; gap: clamp(.6rem, 2vw, 1.6rem); align-items: center; flex-wrap: wrap; }
nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
nav a:hover { color: var(--sage-deep); }
.nav-cta { padding: .45rem .95rem; border: 1px solid var(--sage-deep); border-radius: 999px; }
nav .edition-toggle { padding: .45rem .95rem; border-radius: 999px; background: #17150f; color: #e2c98f; font-size: .85rem; letter-spacing: .04em; transition: box-shadow .4s ease; }
nav .edition-toggle:hover { color: #f3e2b5; box-shadow: 0 0 0 1px #c8a764, 0 10px 30px -12px rgba(200, 167, 100, .7); }

/* ---------- Layout ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0 0; }
.section-head { max-width: 640px; margin-bottom: 1.8rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; color: var(--sage-deep); margin: 0 0 .6rem; }

.hero { padding: clamp(4rem, 11vw, 8rem) 0 1rem; max-width: 820px; }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: #4b5047; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2.4rem; }
.stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 2.2rem; }
.stats strong { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 500; }
.stats span { color: var(--muted); font-size: .9rem; }
.demo-note { margin-top: 2rem; font-size: .8rem; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: inherit; font-size: .98rem; cursor: pointer; text-decoration: none;
  padding: .75rem 1.35rem; border-radius: 999px; border: 1px solid var(--sage-deep);
  background: var(--sage-deep); color: #fbf8f3;
  transition: background .4s ease, transform .4s ease, box-shadow .4s ease;
}
.btn:hover { background: #47553f; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:disabled { opacity: .55; cursor: progress; transform: none; }
.btn.ghost { background: transparent; color: var(--sage-deep); }
.btn.ghost:hover { background: rgba(86, 102, 79, .08); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(10px); box-shadow: var(--shadow);
}

/* ---------- Journal ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.chip { font: inherit; font-size: .9rem; padding: .4rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.5); color: var(--ink); cursor: pointer; transition: all .3s ease; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--linen); border-color: var(--ink); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.2rem; }
.post { display: flex; flex-direction: column; overflow: hidden; text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 0; transition: transform .5s ease, box-shadow .5s ease; }
.post:hover { transform: translateY(-3px); }
.post-art { height: 150px; position: relative; overflow: hidden; }
.post-art::after { content: ""; position: absolute; left: 50%; bottom: -30%; width: 48%; height: 110%; transform: translateX(-50%); border-radius: 999px 999px 0 0; background: rgba(255, 252, 247, .5); }
.art-interiors { background: linear-gradient(135deg, #e7d9c4, #c9b79c); }
.art-real-estate { background: linear-gradient(135deg, #cfd8cb, #93a48d); }
.art-travel { background: linear-gradient(135deg, #d5e0e1, #a2b6ba); }
.post-body { padding: 1.1rem 1.3rem 1.4rem; }
.post-meta { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.post h3 { margin: .35rem 0 .4rem; }
.post p { margin: 0; color: #50554c; font-size: .95rem; }

dialog { border: none; border-radius: var(--radius); padding: 0; max-width: 620px; width: calc(100% - 2rem); background: #fbf8f3; color: var(--ink); box-shadow: 0 40px 100px -40px rgba(0,0,0,.45); }
dialog::backdrop { background: rgba(46, 51, 44, .35); backdrop-filter: blur(4px); }
dialog article { padding: clamp(1.5rem, 4vw, 2.5rem); }
dialog p { color: #464b43; }

/* ---------- Homes ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.listings { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.listing { padding: 1.4rem; }
.listing .price { font-family: var(--serif); font-size: 1.6rem; margin: .2rem 0; }
.listing .facts { font-size: .9rem; color: var(--muted); }
.listing blockquote { margin: .9rem 0 0; padding-left: .9rem; border-left: 2px solid var(--sage); font-style: italic; color: #4b5047; font-size: .95rem; }
.badge { display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; background: rgba(169, 184, 163, .35); color: var(--sage-deep); }
.badge.pending { background: rgba(195, 154, 126, .25); color: #8a5c3d; }
.guide { padding: 1.5rem 1.6rem; background: rgba(86, 102, 79, .08); border-radius: var(--radius); border: 1px solid var(--line); }
.guide ol { padding-left: 1.2rem; margin: .5rem 0 1rem; }
.guide li { margin: .3rem 0; }

/* ---------- Travel ---------- */
.trips { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem; }
.trip { padding: 1.3rem; }
.swatches { display: flex; gap: .35rem; margin-bottom: 1rem; }
.swatches span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); }
.trip .season { font-size: .8rem; color: var(--muted); margin: 0; }
.trip .lesson { font-family: var(--serif); font-style: italic; font-size: 1.1rem; margin: .6rem 0 0; }

/* ---------- Booking ---------- */
.booking { display: grid; gap: 1.4rem; padding: clamp(1.3rem, 3vw, 2rem); }
fieldset { border: none; padding: 0; margin: 0; }
legend { font-family: var(--serif); font-size: 1.15rem; margin-bottom: .8rem; }
.services, .addons { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.option { position: relative; display: block; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.55); cursor: pointer; transition: border-color .3s ease, background .3s ease; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option:has(input:checked) { border-color: var(--sage-deep); background: rgba(169, 184, 163, .2); }
.option:has(input:focus-visible) { outline: 2px solid var(--sage-deep); outline-offset: 2px; }
.option strong { display: block; }
.option .opt-price { float: right; font-family: var(--serif); }
.option .opt-detail { font-size: .87rem; color: var(--muted); display: block; margin-top: .25rem; }
.when { display: grid; gap: .8rem; }
.times { display: flex; flex-wrap: wrap; gap: .5rem; }
.times .option { padding: .5rem 1rem; border-radius: 999px; }
label { display: grid; gap: .35rem; font-size: .92rem; }
input[type="date"], input[type="email"], input:not([type]), .chat-form input {
  font: inherit; padding: .7rem .9rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.75); color: var(--ink); max-width: 100%;
}
.you { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem; }
.you legend { grid-column: 1 / -1; }
.summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.summary strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; margin-left: .4rem; }
.form-error { margin: 0; color: #9a3d2c; background: rgba(154, 61, 44, .08); padding: .7rem 1rem; border-radius: 12px; }
.confirmation { padding: clamp(1.5rem, 4vw, 2.4rem); background: rgba(169, 184, 163, .2); border: 1px solid var(--sage); border-radius: var(--radius); animation: fadeUp .8s ease both; }
.confirmation ul { list-style: none; padding: 0; margin: 1rem 0; }
.confirmation li { display: flex; justify-content: space-between; padding: .4rem 0; border-bottom: 1px dashed var(--line); }
.confirmation .total { display: flex; justify-content: space-between; font-size: 1.1rem; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Words + letter ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.quote { padding: 1.4rem; font-family: var(--serif); font-size: 1.1rem; font-style: italic; }
.quote footer { font-family: var(--sans); font-style: normal; font-size: .85rem; color: var(--muted); margin-top: .8rem; }
.letter { text-align: center; max-width: 560px; margin: 0 auto; padding-bottom: 5rem; }
.letter-form { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.letter-form input { font: inherit; padding: .75rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.75); min-width: 240px; }

.site-footer { text-align: center; padding: 2rem 1rem 6rem; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer .credit { font-size: .75rem; margin-top: .4rem; }

/* ---------- Chat ---------- */
.chat-launch {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 30;
  display: flex; align-items: center; gap: .5rem; font: inherit; font-size: .95rem; cursor: pointer;
  padding: .8rem 1.15rem; border-radius: 999px; border: none; background: var(--ink); color: var(--linen); box-shadow: var(--shadow);
}
.chat-launch svg { width: 20px; height: 20px; }
.chat {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 40; width: min(390px, calc(100vw - 2rem)); max-height: min(640px, calc(100vh - 2.4rem));
  display: flex; flex-direction: column; gap: .6rem; padding: 1rem 1.1rem;
  background: rgba(251, 248, 243, .96); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 80px -30px rgba(0,0,0,.4); backdrop-filter: blur(12px);
}
.chat-gateway { padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.chat-gateway p { margin: .3rem 0 0; font-size: .8rem; }
.switch { display: flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .9rem; grid-template-columns: none; }
.switch input { position: absolute; opacity: 0; }
.switch-track { width: 40px; height: 22px; border-radius: 999px; background: var(--sage-deep); position: relative; transition: background .3s; flex: none; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .3s; }
.switch input:checked + .switch-track { background: var(--clay); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--sage-deep); outline-offset: 2px; }
.switch input:disabled + .switch-track { opacity: .5; }
.chat-head { display: flex; justify-content: space-between; align-items: center; }
.chat-head h2 { font-size: 1.3rem; margin: 0; }
.chat-intro { margin: 0; font-size: .8rem; }
.icon-btn { font-size: 1.5rem; line-height: 1; border: none; background: none; cursor: pointer; color: var(--ink); padding: .2rem .5rem; }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; min-height: 160px; padding: .2rem; }
.msg { padding: .6rem .85rem; border-radius: 14px; font-size: .92rem; max-width: 88%; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; background: var(--ink); color: var(--linen); }
.msg.bot { align-self: flex-start; background: rgba(169, 184, 163, .28); }
.msg.err { align-self: flex-start; background: rgba(154, 61, 44, .1); color: #8a3627; }
.msg.pending { opacity: .7; font-style: italic; }
.msg .tag { display: block; font-size: .7rem; opacity: .7; margin-top: .3rem; }
.chat-form { display: flex; gap: .5rem; }
.chat-form input { flex: 1; min-width: 0; }
.chat-form .btn { padding: .6rem 1rem; }
.link-btn { font: inherit; font-size: .8rem; background: none; border: none; color: var(--sage-deep); text-decoration: underline; cursor: pointer; align-self: flex-start; padding: 0; }
.link-btn:disabled { opacity: .5; cursor: progress; }

@media (min-width: 900px) {
  .split { grid-template-columns: 2fr 1fr; align-items: start; }
  .split .section-head { grid-column: 1 / -1; }
  .listings { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  nav a:not(.nav-cta):not(.edition-toggle) { display: none; }
  .site-header { flex-wrap: wrap; }
  nav .nav-cta, nav .edition-toggle { font-size: .8rem; padding: .4rem .75rem; }
  .chat-launch span { display: none; }
  .chat { right: .6rem; left: .6rem; bottom: .6rem; width: auto; }
}
