/* Kingdom Homes concept
   Design direction: Almanac. Ruled entries, running heads, tabular records,
   an index instead of a card grid. Palette from their logo and site CSS. */

:root{
  --ink:#0E1418;
  --ink-2:#161E23;
  --slate:#1D4354;          /* their header-bar color */
  --slate-deep:#143240;
  --gold:#C4983E;           /* logo gold */
  --gold-deep:#BA862A;      /* their link and button gold */
  --gold-light:#E9CD92;     /* lightened for text on dark grounds */
  --gold-ink:#8A6417;       /* deepened for gold text on the paper grounds */
  --paper:#F5F3ED;
  --paper-2:#EAE6DC;
  --paper-3:#DDD8CB;
  --body:#39424A;
  --mute:#626B72;
  --on-dark:#F2EFE8;
  --on-dark-mute:#C3CBD1;

  --rule-dark:rgba(255,255,255,.16);
  --rule-light:rgba(20,30,38,.16);

  --display:'Yrsa',Georgia,serif;
  --sans:'Be Vietnam Pro',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;

  --wrap:min(90%,1100px);
  --wrap-wide:min(92%,1320px);
  --nav-h:74px;
  --gutter:clamp(1.25rem,4vw,3rem);
  --band:clamp(4.5rem,9vw,8.5rem);
  --ease:cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--paper);color:var(--body);
  font-family:var(--sans);font-size:1.0625rem;line-height:1.65;
  font-weight:400;-webkit-font-smoothing:antialiased;overflow-x:hidden;
}
/* height:auto is load-bearing: the width/height attributes map to presentational
   hints, and a fixed height cancels every aspect-ratio declared further down. */
img{max-width:100%;height:auto;display:block}
a{color:inherit}
h1,h2,h3,h4{font-family:var(--display);font-weight:600;color:var(--ink);margin:0;
  letter-spacing:-.02em;line-height:1.08}
p{margin:0 0 1.1em}
p:last-child{margin-bottom:0}
::selection{background:var(--gold);color:#12181c}

.wrap{width:var(--wrap);margin-inline:auto}
.wrap-wide{width:var(--wrap-wide);margin-inline:auto}
.band{padding-block:var(--band)}
.dark{background:var(--slate);color:var(--on-dark-mute)}
.dark h1,.dark h2,.dark h3,.dark h4{color:var(--on-dark)}
.ink{background:var(--ink);color:var(--on-dark-mute)}
.ink h2,.ink h3,.ink h4{color:var(--on-dark)}
.measure{max-width:68ch}

/* ---------- almanac running head ---------- */
.runhead{
  display:flex;align-items:baseline;gap:1rem;
  font-size:.6875rem;letter-spacing:.19em;text-transform:uppercase;
  font-weight:600;color:var(--gold-ink);
  padding-bottom:.65rem;margin-bottom:clamp(1.75rem,4vw,3rem);
  border-bottom:1px solid var(--rule-light);
}
.dark .runhead,.ink .runhead{color:var(--gold-light);border-bottom-color:var(--rule-dark)}
.runhead__folio{margin-left:auto;color:var(--mute);letter-spacing:.14em}
.dark .runhead__folio,.ink .runhead__folio{color:#A9B4BC}

/* ---------- nav ---------- */
.nav{
  position:fixed;inset:0 0 auto 0;z-index:120;height:var(--nav-h);
  background:var(--paper);border-bottom:1px solid var(--rule-light);
}
.nav__in{width:var(--wrap-wide);margin-inline:auto;height:100%;
  display:flex;align-items:center;gap:clamp(1rem,3vw,2.5rem)}
.nav__logo img{height:30px;width:auto;max-width:230px;object-fit:contain}
.nav__links{display:flex;gap:clamp(1rem,2.2vw,2rem);margin-left:auto;list-style:none;padding:0;margin-block:0}
.nav__links a{
  text-decoration:none;font-size:.8125rem;font-weight:500;letter-spacing:.06em;
  text-transform:uppercase;color:var(--ink);padding-block:.6rem;position:relative;
}
.nav__links a::after{content:"";position:absolute;left:0;right:100%;bottom:.25rem;
  height:1px;background:var(--gold-deep);transition:right .35s var(--ease)}
.nav__links a:hover::after,.nav__links a:focus-visible::after{right:0}
.nav__tel{
  display:inline-flex;align-items:center;gap:.5rem;text-decoration:none;
  font-size:.9375rem;font-weight:600;color:var(--ink);white-space:nowrap;
}
.nav__tel svg{width:15px;height:15px;stroke:var(--gold-deep);fill:none;stroke-width:1.6}
.nav__cta{display:none}
.burger{
  display:none;margin-left:auto;width:44px;height:44px;align-items:center;justify-content:center;
  background:none;border:1px solid var(--rule-light);border-radius:2px;cursor:pointer;padding:0;
}
.burger span{display:block;width:19px;height:1.5px;background:var(--ink);position:relative}
.burger span::before,.burger span::after{content:"";position:absolute;left:0;width:19px;height:1.5px;background:var(--ink)}
.burger span::before{top:-6px}.burger span::after{top:6px}

.drawer{
  position:fixed;inset:0;z-index:200;background:var(--slate);
  display:flex;flex-direction:column;padding:1.1rem var(--gutter) 2.5rem;
  opacity:0;visibility:hidden;transform:translateY(-8px);
  transition:opacity .3s var(--ease),transform .3s var(--ease),visibility .3s;
}
.drawer.is-open{opacity:1;visibility:visible;transform:none}
.drawer__top{display:flex;align-items:center;justify-content:flex-end;min-height:52px}
.drawer__close{
  width:44px;height:44px;display:flex;align-items:center;justify-content:center;
  background:none;border:1px solid var(--rule-dark);border-radius:2px;cursor:pointer;padding:0;
}
.drawer__close svg{width:18px;height:18px;stroke:var(--on-dark);stroke-width:1.6}
.drawer__links{list-style:none;margin:auto 0;padding:0;display:flex;flex-direction:column;gap:.35rem}
.drawer__links a{
  display:block;text-decoration:none;font-family:var(--display);font-size:clamp(1.75rem,8vw,2.4rem);
  color:var(--on-dark);padding:.35rem 0;border-bottom:1px solid var(--rule-dark);
}
.drawer__foot{display:flex;flex-direction:column;gap:.4rem;color:var(--on-dark-mute);font-size:.9375rem}
.drawer__foot a{color:var(--gold-light);text-decoration:none;font-weight:600}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;gap:.7rem;min-height:48px;
  padding:.85rem 1.5rem;border-radius:2px;text-decoration:none;
  font-size:.8125rem;font-weight:600;letter-spacing:.11em;text-transform:uppercase;
  border:1px solid var(--gold-deep);background:var(--gold-deep);color:#14181b;
  transition:background .3s var(--ease),color .3s var(--ease),border-color .3s var(--ease);
}
.btn:hover,.btn:focus-visible{background:var(--gold);border-color:var(--gold)}
.btn--ghost{background:transparent;color:var(--on-dark);border-color:var(--rule-dark)}
.btn--ghost:hover,.btn--ghost:focus-visible{background:transparent;border-color:var(--gold-light);color:var(--gold-light)}
.btn--ghost-dark{background:transparent;color:var(--ink);border-color:var(--rule-light)}
.btn--ghost-dark:hover,.btn--ghost-dark:focus-visible{background:transparent;border-color:var(--gold-deep);color:var(--gold-deep)}
.btn svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.8;flex:none}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px}

/* ---------- hero ---------- */
.hero{
  position:relative;padding-top:var(--nav-h);
  display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);
  min-height:100vh;min-height:100svh;
}
.hero__panel{
  background:var(--slate);color:var(--on-dark-mute);
  display:flex;flex-direction:column;justify-content:center;
  padding:clamp(2.75rem,5vw,4.5rem) clamp(1.5rem,5vw,4.5rem);
}
.hero__inner{max-width:34rem;margin-left:auto;width:100%}
.hero__kicker{
  display:flex;align-items:center;gap:.85rem;font-size:.6875rem;font-weight:600;
  letter-spacing:.2em;text-transform:uppercase;color:var(--gold-light);margin-bottom:1.5rem;
}
.hero__kicker::after{content:"";flex:1;height:1px;background:var(--rule-dark)}
.hero h1{
  color:var(--on-dark);font-size:clamp(2.5rem,5.1vw,4.15rem);line-height:1.02;
  letter-spacing:-.028em;font-weight:600;margin-bottom:1.4rem;
}
.hero h1 .gold{color:var(--gold-light)}
.hero__sub{font-size:clamp(1.0625rem,1.35vw,1.1875rem);line-height:1.6;max-width:32rem;margin-bottom:2.1rem}
.hero__cta{display:flex;flex-wrap:wrap;gap:.75rem;margin-bottom:2.5rem}
.hero__datum{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.15rem 1.75rem;
  border-top:1px solid var(--rule-dark);padding-top:1.15rem;
}
.hero__datum div{display:flex;justify-content:space-between;gap:1rem;padding-block:.3rem;
  font-size:.8125rem;border-bottom:1px dotted rgba(255,255,255,.18)}
.hero__datum dt{color:#A9B4BC;margin:0}
.hero__datum dd{margin:0;color:var(--on-dark);font-weight:500;text-align:right;font-variant-numeric:tabular-nums}
.hero__media{position:relative;overflow:hidden;background:var(--ink)}
.hero__media img{width:100%;height:100%;object-fit:cover;object-position:center 62%}
.hero__stamp{
  position:absolute;left:0;bottom:0;max-width:100%;
  background:var(--ink);color:var(--on-dark-mute);
  padding:.7rem 1.1rem;font-size:.6875rem;letter-spacing:.15em;text-transform:uppercase;font-weight:600;
  border-top:1px solid var(--gold-deep);
}

/* ---------- record ---------- */
.record{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(2rem,5vw,4.5rem);align-items:start}
.record h2{font-size:clamp(2rem,3.6vw,3rem);margin-bottom:1.4rem}
.record__portrait{position:relative;background:var(--ink);border-radius:2px;overflow:hidden}
.record__portrait img{width:100%;height:auto}
.record__cap{
  padding:.85rem 1.1rem;background:var(--ink);color:var(--on-dark-mute);
  font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;font-weight:600;
  border-top:1px solid var(--gold-deep);
}
.ledger{margin:clamp(2.5rem,5vw,4rem) 0 0;padding:0;border-top:1px solid var(--rule-light);
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 clamp(2rem,5vw,4rem)}
.ledger div{display:flex;align-items:baseline;gap:.75rem;padding-block:.95rem;border-bottom:1px solid var(--rule-light)}
.ledger dt{margin:0;font-size:.75rem;letter-spacing:.13em;text-transform:uppercase;font-weight:600;color:var(--mute);white-space:nowrap}
.ledger .lead{flex:1;border-bottom:1px dotted var(--paper-3);transform:translateY(-.25em)}
.ledger dd{margin:0;font-family:var(--display);font-size:1.125rem;font-weight:600;color:var(--ink);
  text-align:right;font-variant-numeric:tabular-nums}

/* ---------- ruled entries ---------- */
.entries{border-top:1px solid var(--rule-dark)}
.entry{
  display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);
  gap:clamp(1.5rem,4vw,3.5rem);align-items:center;
  padding-block:clamp(2rem,4vw,3.25rem);border-bottom:1px solid var(--rule-dark);
}
.entry:nth-child(even){grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr)}
.entry:nth-child(even) .entry__media{order:2}
.entry__media img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:2px}
.entry h3{font-size:clamp(1.5rem,2.4vw,2.05rem);margin-bottom:.7rem}
.entry__tag{font-size:.6875rem;letter-spacing:.2em;text-transform:uppercase;font-weight:600;
  color:var(--gold-light);display:block;margin-bottom:.7rem}
.entry p{max-width:52ch}

/* ---------- plan index ---------- */
.index{display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);gap:clamp(1.75rem,4vw,3.5rem);align-items:start}
.index__list{list-style:none;margin:0;padding:0;border-top:1px solid var(--rule-light)}
.index__list li{border-bottom:1px solid var(--rule-light)}
.index__btn{
  width:100%;display:flex;align-items:baseline;gap:.85rem;background:none;border:0;
  padding:.95rem .35rem;cursor:pointer;text-align:left;font-family:var(--display);
  font-size:1.1875rem;font-weight:500;color:var(--ink);transition:color .25s var(--ease);
  min-height:48px;
}
.index__btn:hover{color:var(--gold-ink)}
.index__btn .lead{flex:1;border-bottom:1px dotted var(--paper-3);transform:translateY(-.3em)}
.index__btn .no{font-family:var(--sans);font-size:.75rem;font-weight:600;color:var(--mute);
  font-variant-numeric:tabular-nums;letter-spacing:.08em}
.index__btn[aria-current="true"]{color:var(--gold-ink)}
.index__btn[aria-current="true"] .no{color:var(--gold-ink)}
.index__pane{position:relative;border-radius:2px;overflow:hidden;background:var(--paper-2);aspect-ratio:16/10}
.index__pane img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  opacity:0;transition:opacity .55s var(--ease)}
.index__pane img.is-on{opacity:1}
.index__cap{
  margin-top:.9rem;display:flex;justify-content:space-between;gap:1rem;align-items:baseline;
  font-size:.8125rem;color:var(--mute);border-top:1px solid var(--rule-light);padding-top:.7rem;
}
.index__cap strong{font-family:var(--display);font-size:1.0625rem;color:var(--ink);font-weight:600}

/* ---------- rooms strip ---------- */
.rooms{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;background:var(--ink);
}
.rooms img{width:100%;height:clamp(13rem,20vw,20rem);object-fit:cover}

/* ---------- split feature ---------- */
.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;align-items:stretch}
.split__media{position:relative;min-height:clamp(18rem,40vw,34rem);overflow:hidden}
.split__media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.split__body{padding:clamp(2.5rem,5vw,4.5rem) clamp(1.5rem,5vw,4rem);display:flex;flex-direction:column;justify-content:center}
.split__body h2{font-size:clamp(1.9rem,3.2vw,2.7rem);margin-bottom:1.2rem}
.split__body .inner{max-width:34rem}
.costs{list-style:none;margin:1.6rem 0 2rem;padding:0;border-top:1px solid var(--rule-dark)}
.costs li{display:flex;gap:1rem;padding-block:.85rem;border-bottom:1px solid var(--rule-dark);font-size:.9375rem}
.costs .no{font-size:.75rem;font-weight:700;letter-spacing:.1em;color:var(--gold-light);
  font-variant-numeric:tabular-nums;padding-top:.2rem}

/* ---------- price ---------- */
.price{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(2rem,5vw,4.5rem);align-items:center}
.price h2{font-size:clamp(1.9rem,3.2vw,2.7rem);margin-bottom:1.2rem}
.price__steps{list-style:none;margin:0;padding:0;border-top:1px solid var(--rule-light)}
.price__steps li{padding-block:1.05rem;border-bottom:1px solid var(--rule-light)}
.price__steps h3{font-size:1.125rem;margin-bottom:.3rem}
.price__steps p{font-size:.9375rem;color:var(--mute);margin:0}

/* ---------- reviews ---------- */
.review-lead{
  border-left:1px solid var(--gold-deep);padding-left:clamp(1.25rem,3vw,2.25rem);
  max-width:60ch;margin-bottom:clamp(2.5rem,5vw,3.75rem);
}
.review-lead p{font-family:var(--display);font-size:clamp(1.125rem,1.8vw,1.375rem);
  line-height:1.5;color:var(--on-dark)}
.review-lead cite{display:block;margin-top:1.1rem;font-style:normal;font-size:.75rem;
  letter-spacing:.18em;text-transform:uppercase;font-weight:600;color:var(--gold-light)}
.reviews{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr));
  gap:0 clamp(2rem,4vw,3.5rem);border-top:1px solid var(--rule-dark)}
.reviews blockquote{margin:0;padding-block:1.65rem;border-bottom:1px solid var(--rule-dark)}
.reviews p{font-size:.9375rem;line-height:1.6}
.reviews cite{display:block;margin-top:.9rem;font-style:normal;font-size:.75rem;
  letter-spacing:.18em;text-transform:uppercase;font-weight:600;color:var(--gold-light)}

/* ---------- closing ---------- */
.close{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(2rem,5vw,4.5rem);align-items:end}
.close h2{font-size:clamp(2rem,3.8vw,3.1rem);margin-bottom:1.1rem}
.contact{list-style:none;margin:0;padding:0;border-top:1px solid var(--rule-dark)}
.contact li{display:flex;justify-content:space-between;gap:1.5rem;padding-block:.95rem;
  border-bottom:1px solid var(--rule-dark);font-size:.9375rem;flex-wrap:wrap}
.contact span{font-size:.75rem;letter-spacing:.14em;text-transform:uppercase;font-weight:600;
  color:#A9B4BC}
.contact a{color:var(--gold-light);text-decoration:none;font-weight:500;word-break:break-word}
.contact a:hover{text-decoration:underline}

/* ---------- footer ---------- */
.foot{background:var(--ink);color:var(--on-dark-mute);padding-block:clamp(3rem,6vw,4.5rem) 2rem}
.foot__grid{display:grid;grid-template-columns:minmax(0,1.3fr) repeat(2,minmax(0,.85fr));
  gap:clamp(2rem,4vw,3.5rem);padding-bottom:2.5rem;border-bottom:1px solid var(--rule-dark)}
.foot__mark{width:76px;height:auto;margin-bottom:1.2rem}
.foot p{font-size:.9375rem;max-width:42ch}
.foot h4{font-size:.75rem;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-light);
  font-family:var(--sans);font-weight:600;margin-bottom:1rem}
.foot ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.55rem;font-size:.9375rem}
.foot a{color:var(--on-dark-mute);text-decoration:none}
.foot a:hover{color:var(--gold-light)}
.foot__base{display:flex;flex-wrap:wrap;gap:.75rem 2rem;padding-top:1.6rem;font-size:.8125rem;opacity:.8}

/* ---------- 404 ---------- */
.err{min-height:calc(100vh - var(--nav-h));min-height:calc(100svh - var(--nav-h));
  display:flex;align-items:center;padding-block:clamp(4rem,10vw,8rem)}
.err__code{font-family:var(--display);font-size:clamp(6rem,20vw,15rem);line-height:.85;
  color:rgba(233,205,146,.16);letter-spacing:-.04em;margin-bottom:1.5rem}
.err h1{font-size:clamp(2rem,4.5vw,3.25rem);color:var(--on-dark);margin-bottom:1.1rem}
.err p{max-width:46ch;margin-bottom:2rem}

/* ---------- motion ---------- */
.js .rise{opacity:0;transform:translateY(18px)}
@media (prefers-reduced-motion:reduce){
  .js .rise{opacity:1;transform:none}
  *{animation-duration:.001ms!important;transition-duration:.001ms!important}
}

/* ---------- responsive ---------- */
@media (max-width:1080px){
  .nav__links{display:none}
  .nav__tel{display:none}
  .burger{display:flex}
  .record,.index,.price,.close{grid-template-columns:minmax(0,1fr)}
  .ledger{grid-template-columns:minmax(0,1fr)}
  .split{grid-template-columns:minmax(0,1fr)}
  .split__media{min-height:clamp(15rem,55vw,22rem)}
  .foot__grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .record__portrait{max-width:26rem}
}
@media (max-width:860px){
  .hero{grid-template-columns:minmax(0,1fr);min-height:0}
  .hero__panel{padding-block:clamp(2.5rem,9vw,4rem)}
  .hero__inner{margin-left:0;max-width:none}
  .hero__media{min-height:clamp(16rem,60vw,26rem)}
  .hero__datum{grid-template-columns:minmax(0,1fr)}
  .entry,.entry:nth-child(even){grid-template-columns:minmax(0,1fr);gap:1.5rem}
  .entry:nth-child(even) .entry__media{order:0}
  .rooms{grid-template-columns:repeat(2,minmax(0,1fr))}
  .index__pane{order:-1}
}
/* Touch targets: every tappable line in the footer, contact list and drawer
   gets a 44px box on small screens. */
@media (max-width:1080px){
  .foot ul a,.contact a,.drawer__foot a{
    display:inline-flex;align-items:center;min-height:44px;
  }
  .foot ul{gap:0}
  .contact li{padding-block:.35rem}
}
@media (max-width:560px){
  .foot__grid{grid-template-columns:minmax(0,1fr)}
  .reviews{grid-template-columns:minmax(0,1fr)}
  .btn{width:100%;justify-content:center}
  .hero__cta .btn{width:100%}
}
