/* ==========================================================================
   Luxury Retreats UK — "Heather & Slate"
   Oat paper, slate ink, heather as the signature colour, bracken for small
   details, loch blue-black for dark sections. The recurring motif is the
   arched window: every photograph of a place sits inside one.
   ========================================================================== */

:root {
  --paper: #f4efe6;
  --paper-deep: #ebe3d5;
  --card: #fbf8f2;
  --ink: #1e2428;
  --ink-2: #4a5156;
  --ink-3: #6b7278;
  --rule: #d8cebd;
  --rule-soft: #e6ddcf;

  --heather: #6b3857;
  --heather-deep: #4f2840;
  --heather-tint: #eee2e8;
  --bracken: #9a4e22;
  --bracken-bright: #d27a44;
  --lichen: #6f7c52;
  --loch: #1f3039;
  --loch-2: #2b414c;
  --mist: #b9c6ca;

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --container: 1240px;
  --gutter: 28px;
  --r: 6px;
  --shadow: 0 1px 2px rgba(30, 36, 40, .06), 0 12px 32px -12px rgba(30, 36, 40, .18);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .1 0 0 0 0 .08 0 0 0 .075 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 17px/1.65 var(--sans);
  color: var(--ink);
  background: var(--paper) var(--grain);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 .45em;
  color: var(--ink);
}
h1 em, h2 em, h3 em { font-style: italic; color: var(--heather); }
::selection { background: var(--heather); color: var(--paper); }
:focus-visible { outline: 2px solid var(--heather); outline-offset: 3px; border-radius: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; margin: 0 auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Editorial scaffolding ---------------------------------------------- */
.section { padding: 104px 0; }
.section--tight { padding: 56px 0; }
.section--deep { background: var(--paper-deep) var(--grain); }
.section--loch { background: var(--loch); color: var(--paper); }
.section--loch h2, .section--loch h3 { color: var(--paper); }

.kicker {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 12px;
  font: 500 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--bracken); margin-bottom: 18px;
}
.kicker::after { content: ''; width: 36px; height: 1px; background: currentColor; opacity: .6; }
.kicker b { font-weight: 500; color: var(--ink-3); }
.section--loch .kicker { color: var(--bracken-bright); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(34px, 4.2vw, 54px); max-width: 16ch; margin: 0; }
.section-head p { max-width: 42ch; color: var(--ink-2); margin: 0; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center h2 { max-width: 20ch; }

.meta {
  font: 400 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.lede { font-size: 20px; line-height: 1.55; color: var(--ink-2); }

.ornament { display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--rule); margin: 0 auto; }
.ornament::before, .ornament::after { content: ''; height: 1px; width: 80px; background: currentColor; }
.ornament svg { width: 18px; height: 22px; color: var(--bracken); }

/* The arch. Vertical radius is width/2 as a share of height: 40% for 4:5. */
.arch { border-radius: 50% 50% var(--r) var(--r) / 40% 40% var(--r) var(--r); overflow: hidden; }
.arch--wide { border-radius: 50% 50% var(--r) var(--r) / 24% 24% var(--r) var(--r); overflow: hidden; }
.circle { border-radius: 50%; overflow: hidden; }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 239, 230, .94);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner { display: flex; align-items: center; gap: 36px; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.brand svg { width: 26px; height: 31px; color: var(--heather); }
.brand__word { font: 400 23px/1 var(--serif); letter-spacing: -.01em; }
.brand__word i { font-style: italic; color: var(--heather); }
.brand__tag { display: block; font: 400 9.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }

.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.main-nav a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); position: relative; padding: 6px 0; }
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--heather); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); margin: 6px 0; transition: transform .2s; }

/* --- Buttons, tags, chips, stamps --------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: 500 14.5px/1 var(--sans); letter-spacing: .01em; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--heather); color: var(--paper); }
.btn-primary:hover { background: var(--heather-deep); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--heather); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--bracken-bright); color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }
.nav-cta { flex-shrink: 0; }

/* Luggage tag: pointed left end with a punched hole. */
.tag {
  position: relative; display: inline-flex; align-items: center;
  padding: 7px 12px 7px 22px;
  font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  background: var(--card); color: var(--ink);
  clip-path: polygon(9px 0, 100% 0, 100% 100%, 9px 100%, 0 50%);
  box-shadow: var(--shadow);
}
.tag::before {
  content: ''; position: absolute; left: 9px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px;
  border-radius: 50%; background: var(--paper-deep); box-shadow: inset 0 0 0 1px var(--rule);
}
.tag--heather { background: var(--heather); color: var(--paper); }
.tag--heather::before { background: var(--heather-deep); box-shadow: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--card); font-size: 14px; color: var(--ink-2);
  transition: border-color .2s, color .2s, background .2s;
}
.chip small { font: 400 11px var(--mono); color: var(--ink-3); }
.chip:hover { border-color: var(--heather); color: var(--heather); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip.is-active small { color: var(--mist); }

.stars { color: var(--bracken); letter-spacing: 2px; font-size: 12px; }
.price { font: 500 16px/1.2 var(--sans); color: var(--ink); white-space: nowrap; }
.price small { font: 400 12px var(--sans); color: var(--ink-3); }
.seasonal {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--lichen);
}
.seasonal::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Passport stamp. */
.stamp {
  width: 150px; height: 150px; border-radius: 50%;
  border: 2px solid var(--bracken); box-shadow: inset 0 0 0 5px var(--card), inset 0 0 0 6.5px var(--bracken);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  color: var(--bracken); transform: rotate(-9deg); opacity: .92; padding: 18px;
}
.stamp__top, .stamp__bottom { font: 500 8.5px/1.3 var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.stamp__country { font: 500 19px/1.05 var(--serif); font-style: italic; margin: 6px 0; letter-spacing: -.01em; }

/* --- Forms --------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .label { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=search], input[type=url],
input[type=password], input[type=datetime-local], select, textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--card); color: var(--ink); font: 400 15.5px/1.4 var(--sans);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--heather); box-shadow: 0 0 0 3px var(--heather-tint); }
textarea { resize: vertical; min-height: 150px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234a5156' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.alert { padding: 15px 18px; border-radius: var(--r); margin-bottom: 24px; font-size: 15px; border: 1px solid; }
.alert-success { background: #eef1e6; color: #3f4a2a; border-color: #cbd3b6; }
.alert-error { background: #f6e9e6; color: #7a2e22; border-color: #e5c2ba; }

/* --- Home: hero ---------------------------------------------------------- */
.hero { padding: 64px 0 96px; position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(46px, 6.3vw, 90px); font-weight: 350; line-height: .98; letter-spacing: -.028em; margin-bottom: 26px; }
.hero .lede { max-width: 34ch; margin-bottom: 34px; }
.hero-search {
  display: flex; align-items: center; gap: 8px; max-width: 520px; padding: 7px 7px 7px 20px;
  background: var(--card); border: 1px solid var(--rule); border-radius: 999px; box-shadow: var(--shadow);
}
.hero-search svg { width: 18px; height: 18px; color: var(--ink-3); flex-shrink: 0; }
.hero-search input { border: 0; background: transparent; padding: 10px 4px; box-shadow: none; font-size: 16px; }
.hero-search input:focus { box-shadow: none; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 34px; }
.hero-stats div { font: 400 12px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.hero-stats strong { display: block; font: 400 34px/1 var(--serif); letter-spacing: -.02em; color: var(--ink); text-transform: none; margin-bottom: 4px; }

.hero__art { position: relative; justify-self: end; width: 100%; max-width: 500px; }
.hero__arch { aspect-ratio: 4 / 5; box-shadow: var(--shadow); background: var(--paper-deep); }
.hero__arch img { width: 100%; height: 100%; object-fit: cover; }
.hero__inset {
  position: absolute; left: -64px; bottom: 56px; width: 168px; aspect-ratio: 1;
  border: 7px solid var(--paper); box-shadow: var(--shadow); background: var(--paper-deep);
}
.hero__inset img { width: 100%; height: 100%; object-fit: cover; }
.hero__caption {
  margin: 18px 0 0 auto; max-width: 340px; text-align: right;
  font-size: 13px; line-height: 1.45; color: var(--ink-2);
}
.hero__caption a { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink); border-bottom: 1px solid var(--rule); }
.hero__caption a:hover { color: var(--heather); border-color: var(--heather); }
.hero__caption small { display: block; font-size: 10.5px; color: var(--ink-3); margin-top: 4px; }
.hero__sun {
  position: absolute; right: -40px; top: -30px; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--bracken-bright), var(--bracken));
  opacity: .9; z-index: -1;
}

/* --- Home: country ribbon ------------------------------------------------ */
.ribbon { background: var(--loch); color: var(--paper); overflow: hidden; border-block: 1px solid var(--loch-2); }
.ribbon__track { display: flex; width: max-content; animation: ribbon 90s linear infinite; }
.ribbon:hover .ribbon__track, .ribbon:focus-within .ribbon__track { animation-play-state: paused; }
.ribbon a {
  display: inline-flex; align-items: baseline; gap: 10px; padding: 20px 28px;
  font: italic 400 22px/1 var(--serif); white-space: nowrap; color: var(--paper);
}
.ribbon a small { font: normal 400 11px var(--mono); color: var(--mist); letter-spacing: .08em; }
.ribbon a:hover { color: var(--bracken-bright); }
.ribbon a + a::before { content: '◠'; font-style: normal; color: var(--bracken-bright); margin-right: 28px; font-size: 16px; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* --- Retreat cards ------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 36px; }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 28px; }
.card { display: flex; flex-direction: column; color: var(--ink); }
.card__media { position: relative; }
.card__frame { aspect-ratio: 4 / 5; background: var(--paper-deep); }
.card__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card__frame img { transform: scale(1.05); }
.card__media .tag { position: absolute; left: 14px; bottom: -13px; }
.card__body { padding-top: 28px; display: flex; flex-direction: column; flex: 1; }
.card__body .meta { margin-bottom: 8px; }
.card__title { font-size: 25px; line-height: 1.12; margin: 0 0 10px; transition: color .2s; }
.card:hover .card__title { color: var(--heather); }
.card__summary { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin-bottom: 18px; }
.card__foot {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.card-grid--4 .card__title { font-size: 21px; }
.card-grid--4 .card__summary { display: none; }

/* --- Home: character circles -------------------------------------------- */
.characters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 32px; }
.character { text-align: center; color: var(--ink); }
.character__img { aspect-ratio: 1; margin: 0 auto 18px; width: 82%; background: var(--paper-deep); position: relative; }
.character__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.character__img::after { content: ''; position: absolute; inset: 8px; border-radius: 50%; border: 1px solid rgba(244, 239, 230, .55); }
.character:hover img { transform: scale(1.07); }
.character h3 { font-size: 22px; margin: 0 0 4px; }
.character:hover h3 { color: var(--heather); }

/* --- Home: near and far -------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.split__panel { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 44px; display: grid; grid-template-columns: 170px 1fr; gap: 36px; align-items: start; }
.split__panel .arch { aspect-ratio: 4 / 5; background: var(--paper-deep); }
.split__panel .arch img { width: 100%; height: 100%; object-fit: cover; }
.split__panel h3 { font-size: 32px; margin-bottom: 6px; }
.split__panel > div > p { color: var(--ink-2); font-size: 15.5px; }
.counts { list-style: none; margin: 18px 0 24px; padding: 0; }
.counts li { border-bottom: 1px dotted var(--rule); }
.counts a { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; font-size: 16px; }
.counts a:hover { color: var(--heather); }
.counts small { font: 400 12px var(--mono); color: var(--ink-3); }

/* --- Journal teasers ----------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 36px; }
.post-card { display: flex; flex-direction: column; color: var(--ink); }
.post-card__img { aspect-ratio: 3 / 2; border-radius: var(--r); overflow: hidden; background: var(--paper-deep); margin-bottom: 20px; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card h3 { font-size: 25px; line-height: 1.15; margin: 8px 0 10px; }
.post-card:hover h3 { color: var(--heather); }
.post-card p { font-size: 15px; color: var(--ink-2); }

.post-lead { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; color: var(--ink); margin-bottom: 88px; }
.post-lead__img { aspect-ratio: 5 / 4; background: var(--paper-deep); }
.post-lead__img img { width: 100%; height: 100%; object-fit: cover; }
.post-lead h2 { font-size: clamp(34px, 3.8vw, 52px); margin: 10px 0 16px; }
.post-lead:hover h2 { color: var(--heather); }
.post-lead p { font-size: 18px; color: var(--ink-2); }

/* --- CTA band ------------------------------------------------------------ */
.cta-band { background: var(--heather) var(--grain); color: var(--paper); padding: 96px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: var(--paper); font-size: clamp(36px, 5vw, 64px); font-weight: 350; max-width: 18ch; margin: 0 auto 18px; }
.cta-band h2 em { color: var(--bracken-bright); }
.cta-band p { color: rgba(244, 239, 230, .78); max-width: 50ch; margin: 0 auto 32px; }
.cta-band .arch-outline { position: absolute; width: 300px; height: 380px; border: 1.5px solid rgba(244, 239, 230, .14); border-radius: 150px 150px 0 0; bottom: -40px; }
.cta-band .arch-outline--l { left: 6%; }
.cta-band .arch-outline--r { right: 6%; height: 300px; width: 240px; }

/* --- Listings ------------------------------------------------------------ */
.page-head { padding: 72px 0 44px; }
.page-head h1 { font-size: clamp(42px, 5.4vw, 74px); font-weight: 350; letter-spacing: -.025em; margin-bottom: 14px; }
.page-head .lede { max-width: 56ch; }
.breadcrumb { font: 400 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--heather); }
.breadcrumb span { margin: 0 8px; color: var(--rule); }

.filter-panel {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 16px; align-items: end;
  padding: 22px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r);
  position: relative; margin-bottom: 22px;
}
/* Perforated edge, like a ticket stub. */
.filter-panel::after {
  content: ''; position: absolute; left: 22px; right: 22px; bottom: -1px; height: 1px;
  background-image: linear-gradient(90deg, var(--rule) 55%, transparent 0); background-size: 10px 1px;
}
.filter-panel .btn { height: 48px; }
.filter-panel input, .filter-panel select { height: 48px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 30px 0 40px; flex-wrap: wrap; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 80px; }
.pager a, .pager span.pager__gap { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; font: 400 14px var(--mono); border-radius: 999px; }
.pager a { border: 1px solid var(--rule); background: var(--card); }
.pager a:hover { border-color: var(--heather); color: var(--heather); }
.pager .is-current { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pager .is-current:hover { color: var(--paper); }
.pager__gap { color: var(--ink-3); }

.empty-state { text-align: center; padding: 64px 24px; color: var(--ink-2); border: 1px dashed var(--rule); border-radius: var(--r); }
.empty-state a { color: var(--heather); text-decoration: underline; }

/* --- Retreat detail ------------------------------------------------------ */
.retreat-head { padding: 56px 0 36px; }
.retreat-head__grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.retreat-head h1 { font-size: clamp(42px, 5.6vw, 80px); font-weight: 350; letter-spacing: -.028em; margin-bottom: 14px; }
.retreat-head .tagline { font: italic 400 clamp(19px, 2vw, 25px)/1.35 var(--serif); color: var(--ink-2); max-width: 40ch; margin-bottom: 22px; }
.retreat-head__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }

.figure { margin: 0; }
.figure__frame { aspect-ratio: 16 / 8; background: var(--paper-deep); }
.figure__frame img { width: 100%; height: 100%; object-fit: cover; }
figcaption, .credit { font-size: 11.5px; line-height: 1.45; color: var(--ink-3); margin-top: 10px; }

.gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 12px; margin: 14px 0 0; }
.gallery__item { position: relative; display: block; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--paper-deep); cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .3s; }
.gallery__item:hover img { transform: scale(1.04); filter: brightness(1.05); }
.gallery--feature .gallery__item:first-child { grid-column: span 2; aspect-ratio: auto; }
.gallery__more {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(31, 48, 57, .55); color: var(--paper); font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase;
}
.gallery-note { font-size: 11.5px; color: var(--ink-3); margin-top: 10px; }

.retreat-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 80px; align-items: start; padding: 72px 0 40px; }
.prose { font-size: 18px; line-height: 1.75; color: var(--ink); }
.prose:not(.no-dropcap) > p:first-of-type::first-letter, .dropcap::first-letter {
  float: left; font: 400 82px/.8 var(--serif); color: var(--heather); margin: 8px 12px 0 0;
}
.prose h2 { font-size: 32px; margin: 1.6em 0 .55em; }
.prose h3 { font-size: 24px; margin: 1.4em 0 .5em; }
.prose a { color: var(--heather); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--bracken); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--bracken); }
.detail-block + .detail-block { margin-top: 56px; }
.detail-block > h2 { font-size: 30px; }

.amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.amenities li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--rule-soft); font-size: 15.5px; color: var(--ink-2); }
.amenities li::before {
  content: ''; position: absolute; left: 0; top: 17px; width: 13px; height: 15px;
  border: 1.5px solid var(--bracken); border-bottom: 0; border-radius: 7px 7px 0 0;
}

.booking { position: sticky; top: 104px; }
.booking__card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 30px; box-shadow: var(--shadow); }
.booking__card .label { display: block; margin-bottom: 10px; }
.booking__price { font: 400 40px/1 var(--serif); letter-spacing: -.02em; margin-bottom: 6px; }
.booking__unit { font-size: 14px; color: var(--ink-3); margin-bottom: 20px; }
.booking__note { font-size: 13.5px; color: var(--ink-2); background: var(--paper); border-left: 2px solid var(--lichen); padding: 11px 14px; margin: 0 0 20px; border-radius: 0 var(--r) var(--r) 0; }
.booking__site { display: block; text-align: center; margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.booking__site:hover { color: var(--heather); }
.booking__fine { font-size: 12px; color: var(--ink-3); margin: 18px 0 0; line-height: 1.5; }
.booking .stamp { margin: 34px auto 0; }

.mentions { list-style: none; padding: 0; margin: 0; }
.mentions li { border-top: 1px solid var(--rule); }
.mentions a { display: block; padding: 16px 0; font: 400 20px/1.25 var(--serif); }
.mentions a:hover { color: var(--heather); }

/* --- Lightbox ------------------------------------------------------------ */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(20, 29, 34, .94); display: none; align-items: center; justify-content: center; padding: 56px 72px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: var(--r); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox__caption { color: var(--mist); font-size: 12.5px; text-align: center; max-width: 80ch; }
.lightbox__count { font: 400 12px var(--mono); letter-spacing: .12em; color: var(--mist); }
.lightbox button {
  position: absolute; background: rgba(244, 239, 230, .08); border: 1px solid rgba(244, 239, 230, .2); color: var(--paper);
  width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.lightbox button:hover { background: rgba(244, 239, 230, .2); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 18px; top: 50%; margin-top: -25px; }
.lightbox__next { right: 18px; top: 50%; margin-top: -25px; }

/* --- Journal article ----------------------------------------------------- */
.article-head { padding: 64px 0 40px; text-align: center; }
.article-head h1 { font-size: clamp(40px, 5.6vw, 78px); font-weight: 350; letter-spacing: -.028em; max-width: 18ch; margin: 0 auto 22px; }
.article-head .dek { font: italic 400 clamp(19px, 2.1vw, 25px)/1.45 var(--serif); color: var(--ink-2); max-width: 44ch; margin: 0 auto 26px; }
.article-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; }
.article-hero { max-width: 1100px; margin: 0 auto; }
.article-body { max-width: 700px; margin: 0 auto; padding: 64px 0 24px; }
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 56px -120px; }
.photo-strip .gallery__item { aspect-ratio: 4 / 5; }
.photo-strip .gallery__item:nth-child(2) { transform: translateY(28px); }
.photo-strip-note { max-width: 700px; margin: -20px auto 40px; font-size: 11.5px; color: var(--ink-3); text-align: center; }
.article-end { text-align: center; margin: 48px 0 0; }

/* --- Atlas ---------------------------------------------------------------- */
.atlas-index { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.continent { padding: 72px 0; border-top: 1px solid var(--rule); }
.continent:first-of-type { border-top: 0; }
.continent__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; margin-bottom: 40px; }
.continent__head h2 { font-size: clamp(34px, 4vw, 52px); margin: 0; }
.continent__head .meta { text-align: right; }
.country-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 22px; }
.country { color: var(--ink); }
.country .arch { aspect-ratio: 4 / 5; margin-bottom: 14px; background: var(--paper-deep); }
.country img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.country:hover img { transform: scale(1.06); }
.country h3 { font-size: 21px; margin: 0 0 2px; }
.country:hover h3 { color: var(--heather); }

/* --- About / contact ----------------------------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-block: 1px solid var(--rule); }
.stat-card { padding: 34px 20px; text-align: center; border-right: 1px solid var(--rule); }
.stat-card:last-child { border-right: 0; }
.stat-card__num { display: block; font: 350 58px/1 var(--serif); letter-spacing: -.03em; color: var(--heather); }
.stat-card__label { display: block; margin-top: 12px; font: 400 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.value-card { background: var(--card); padding: 40px; }
.value-card .meta { color: var(--bracken); }
.value-card h3 { font-size: 26px; margin: 12px 0 10px; }
.value-card p { color: var(--ink-2); margin: 0; }
.form-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 44px; box-shadow: var(--shadow); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.contact-aside h2 { font-size: 40px; }
.contact-aside p { color: var(--ink-2); }
.contact-aside .arch { aspect-ratio: 4 / 5; max-width: 300px; margin-top: 32px; background: var(--paper-deep); }
.contact-aside .arch img { width: 100%; height: 100%; object-fit: cover; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--loch); color: var(--mist); position: relative; overflow: hidden; }
.site-footer a:hover { color: var(--paper); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding: 88px 0 56px; }
.footer__brand .brand { color: var(--paper); }
.footer__brand .brand svg { color: var(--bracken-bright); }
.footer__brand .brand__tag { color: var(--mist); }
.footer__brand .brand__word i { color: var(--bracken-bright); }
.footer__brand p { margin-top: 22px; max-width: 34ch; font-size: 15px; line-height: 1.6; }
.footer__col h4 { font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--bracken-bright); margin-bottom: 18px; }
.footer__col a { display: block; font-size: 15px; padding: 5px 0; }
.footer__big {
  font: italic 350 clamp(60px, 13vw, 190px)/.8 var(--serif); letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(185, 198, 202, .22);
  white-space: nowrap; margin: 0; padding-bottom: 28px; user-select: none; text-align: center; overflow: hidden;
}
.footer__bottom { border-top: 1px solid var(--loch-2); padding: 22px 0 30px; font-size: 13px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__credits { max-width: 70ch; font-size: 12px; opacity: .75; }

/* --- Admin ---------------------------------------------------------------- */
.admin-body { background: var(--paper-deep); }
.admin-header { background: var(--loch); color: var(--paper); padding: 0 32px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.admin-header .brand { color: var(--paper); font: 400 20px var(--serif); }
.admin-header .brand span { color: var(--bracken-bright); font-style: italic; }
.admin-header nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.admin-header nav a { font-size: 13.5px; color: var(--mist); }
.admin-header nav a:hover { color: var(--paper); }
.admin-wrap { max-width: 1180px; margin: 0 auto; padding: 40px 24px 80px; }
.admin-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 30px; margin-bottom: 24px; }
.admin-card h3 { font-size: 22px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--rule-soft); font-size: 14px; vertical-align: top; }
.admin-table th { font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); background: var(--paper); }
.admin-table tr:hover td { background: var(--paper); }
.status-badge { font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.status-badge.published { background: #e6ecd9; color: #3f4a2a; }
.status-badge.draft { background: var(--paper-deep); color: var(--ink-3); }
.admin-actions { display: flex; gap: 14px; white-space: nowrap; }
.admin-actions a { font-size: 13.5px; color: var(--heather); }
.admin-actions a.danger { color: #9b3322; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; }
.admin-toolbar h2 { margin: 0; font-size: 34px; }
.admin-wrap .filter-panel { grid-template-columns: 2fr 1fr 1fr auto; }
.admin-help { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--loch) var(--grain); padding: 24px; }
.login-card { background: var(--card); padding: 48px; width: 100%; max-width: 400px; border-radius: var(--r); box-shadow: var(--shadow); }
.login-card .brand { justify-content: center; margin-bottom: 28px; color: var(--ink); font: 400 26px var(--serif); display: flex; }
.login-card .brand span { color: var(--heather); font-style: italic; }
.thumb-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.thumb-row img { width: 92px; height: 92px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--rule); }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .card-grid--4, .country-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .characters { grid-template-columns: repeat(4, 1fr); gap: 36px 20px; }
  .retreat-body { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
  .photo-strip { margin-inline: 0; }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .split__panel { grid-template-columns: 1fr; }
  .split__panel .arch { max-width: 200px; }
}

@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .site-header__inner { height: 66px; gap: 16px; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .main-nav {
    position: fixed; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 20px;
    transform: translateY(-110%); opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .25s ease;
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 15px 0; border-bottom: 1px solid var(--rule-soft); font-size: 17px; }
  .main-nav a::after { display: none; }
  .main-nav .nav-mobile-cta { display: flex; margin-top: 18px; border: 0; }

  .section { padding: 72px 0; }
  .hero { padding: 36px 0 88px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__art { justify-self: center; max-width: 380px; }
  .hero__inset { left: -20px; width: 120px; bottom: 40px; }
  .hero__sun { width: 110px; height: 110px; right: -20px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 22px; }
  .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .characters { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-lead { grid-template-columns: 1fr; gap: 28px; margin-bottom: 64px; }
  .filter-panel { grid-template-columns: 1fr 1fr; }
  .filter-panel .btn { grid-column: 1 / -1; }
  .retreat-head__grid { grid-template-columns: 1fr; }
  .retreat-head .stamp { display: none; }
  .retreat-body { grid-template-columns: 1fr; padding-top: 48px; }
  .booking { position: static; }
  .gallery { --cols: 3 !important; }
  .figure__frame { aspect-ratio: 4 / 3; }
  .arch--wide { border-radius: 50% 50% var(--r) var(--r) / 18% 18% var(--r) var(--r); }
  .country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2) { border-right: 0; }
  .stat-card:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .value-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-aside .arch { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .footer__top { grid-template-columns: 1fr 1fr; padding-top: 64px; }
  .lightbox { padding: 64px 12px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; margin-top: 0; }
  .lightbox__prev { left: calc(50% - 62px); }
  .lightbox__next { right: calc(50% - 62px); }
  .admin-header { height: auto; padding: 14px 20px; flex-direction: column; align-items: flex-start; }
  .admin-wrap .filter-panel { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .kicker::after { display: none; }
  .kicker { font-size: 11px; letter-spacing: .12em; }
  .brand__tag { display: none; }
  .card-grid, .card-grid--4, .post-grid { grid-template-columns: 1fr; }
  .hero-stats strong { font-size: 28px; }
  .hero__caption { position: static; text-align: left; margin-top: 18px; max-width: none; }
  .filter-panel { grid-template-columns: 1fr; }
  .gallery { --cols: 2 !important; }
  .gallery .gallery__item:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
  .amenities { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .photo-strip .gallery__item:nth-child(2) { transform: none; }
  .photo-strip .gallery__item:nth-child(3) { display: none; }
  .prose { font-size: 17px; }
  .prose:not(.no-dropcap) > p:first-of-type::first-letter { font-size: 64px; }
  .footer__top { grid-template-columns: 1fr; }
  .continent__head { grid-template-columns: 1fr; }
  .continent__head .meta { text-align: left; }
  .split__panel { padding: 28px; }
}

@media (min-width: 901px) {
  .main-nav .nav-mobile-cta { display: none; }
}

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