/* ============================================================
   MIRAGE STAYS — miragestays.co.uk (coming soon)
   Vanilla CSS, no JavaScript. Mobile-first. British English.
   Tokens are copied from sites/mirage-stays/css/styles.css —
   keep the palette and font identical to the main site.
   ============================================================ */

@font-face{
  font-family:"Manrope";
  font-style:normal;
  font-weight:200 800;
  font-display:swap;
  src:url("../fonts/manrope-variable.woff2") format("woff2");
}

:root{
  /* Brand palette (locked — same values as miragestays.ae) */
  --sand:       #eae1dd;
  --brown:      #653f28;
  --bark:       #39271e;
  --olive:      #626b2e;
  --paper:      #f6f1ed;
  --olive-deep: #515824;

  --ink:       var(--bark);
  --ink-soft:  color-mix(in oklch, var(--bark) 72%, var(--sand));
  --line:      color-mix(in oklch, var(--bark) 18%, transparent);

  --font:"Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ONE content width for header, content and footer (Large-Screen Rule) */
  --maxw:   1440px;
  --gutter: clamp(20px, 5vw, 64px);
  /* Distance from the screen edge to the content edge at any width.
     100cqi = width of .page without the scrollbar (100vw is the fallback). */
  --edge: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));

  --ease: cubic-bezier(.22,.61,.36,1);
}
@supports (width:1cqi){
  :root{ --edge: max(var(--gutter), calc((100cqi - var(--maxw)) / 2 + var(--gutter))); }
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0;
  font-family:var(--font);
  font-weight:400;
  line-height:1.5;
  background:var(--sand);          /* same canvas as the main site */
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
h1,p{ margin:0; }
:focus-visible{ outline:3px solid var(--olive); outline-offset:3px; border-radius:2px; }

.skip-link{
  position:absolute; left:var(--gutter); top:-100px; z-index:10;
  background:var(--bark); color:var(--sand); padding:.7em 1em; font-weight:700; border-radius:4px;
}
.skip-link:focus{ top:12px; }

/* ---------- page frame: fills one screen, content sits low like the main site's hero ---------- */
.page{
  container-type:inline-size;
  min-height:100vh;
  min-height:100svh;
  display:grid;
  grid-template-rows:auto 1fr auto;
}

.site-header{ padding:clamp(1.4rem, 3.2vh, 2.2rem) var(--edge) 0; }
.brand{ display:inline-block; }
.brand img{ width:148px; height:auto; }

.intro{
  display:flex; align-items:flex-end;
  padding:clamp(3rem, 9vh, 6rem) var(--edge) clamp(2.4rem, 6vh, 4rem);
}
.intro h1{
  font-size:clamp(2.7rem, 1.2rem + 6.4vw, 7.25rem);
  font-weight:800; letter-spacing:-.04em; line-height:1.02;
  max-width:13ch; text-wrap:balance;
}
.intro__text{
  margin-top:clamp(1.4rem, 3vh, 2.2rem);
  max-width:34rem;
  font-size:clamp(1.08rem, 1rem + .45vw, 1.32rem); line-height:1.6;
  color:var(--ink-soft); text-wrap:pretty;
}
.intro__actions{ margin-top:clamp(1.8rem, 4vh, 2.6rem); display:flex; flex-wrap:wrap; gap:.9rem 1rem; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.6em;
  padding:1.02em 1.7em; font-size:.95rem; font-weight:700; letter-spacing:.01em;
  background:var(--olive); color:var(--paper); border:1.5px solid var(--olive); border-radius:4px;
  transition:background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover{ background:var(--olive-deep); border-color:var(--olive-deep); }
.btn--ghost{ background:transparent; color:var(--bark); border-color:color-mix(in oklch, var(--bark) 32%, transparent); }
.btn--ghost:hover{ background:var(--bark); color:var(--sand); border-color:var(--bark); }

.site-footer{ padding:0 var(--edge) clamp(1.2rem, 3vh, 1.8rem); }
.footer-inner{
  border-top:1px solid var(--line); padding-top:1.1rem;
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:.4rem 2rem;
  font-size:.875rem; color:var(--ink-soft);
}

/* ---------- photo (home page only: .page--photo) ----------
   Phone/tablet: a wide band between the text and the footer.
   Desktop: a full-height column on the right, running to the screen edge;
   header, text and footer share the left column and the same left/right edges. */
.photo{ position:relative; overflow:hidden; background:var(--bark); margin-bottom:clamp(1.2rem, 3vh, 1.8rem); }
/* The image is taken out of the flow so its own height never stretches the page. */
.photo img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:60% 50%; }
.page--photo{ grid-template-rows:auto auto minmax(260px, 1fr) auto; }
.page--photo .intro{ padding-block:clamp(2.2rem, 6vh, 3.5rem); }

@media (min-width:768px){
  .page--photo{
    grid-template-columns:minmax(0, 1fr) minmax(0, 44%);
    grid-template-rows:auto 1fr auto;
  }
  .page--photo .site-header{ grid-column:1; grid-row:1; padding-inline-end:var(--gutter); }
  .page--photo .intro{ grid-column:1; grid-row:2; padding-inline-end:var(--gutter); padding-block:clamp(3rem, 9vh, 6rem) clamp(2.4rem, 6vh, 4rem); }
  .page--photo .site-footer{ grid-column:1; grid-row:3; padding-inline-end:var(--gutter); }
  .page--photo .photo{ grid-column:2; grid-row:1 / -1; margin-bottom:0; }
  .page--photo .photo img{ object-position:28% 50%; }
  .page--photo .intro h1{ font-size:clamp(2.7rem, 1rem + 4.6vw, 6.25rem); }
}

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