/* ==========================================================================
   vitrine. Concept: one room, seen through several openings.

   DEPTH VOCABULARY (the only one this template may use):
     Aperture. The page is an opaque surface with holes cut in it. Behind that
     surface is ONE continuous field, and every opening shows a different part
     of the same field. Depth is the reader's inference that the thing behind
     the page keeps going where the page covers it.

   The mechanism is `background-attachment: fixed`. Because a fixed background
   is positioned against the viewport rather than against its own element, two
   separate openings on the same screen show two correctly aligned parts of one
   image. That alignment is the entire concept, and it is why the openings must
   never be given their own background position.

   Therefore, and without exception in this file:
     no border, outline, ring or rule is EVER drawn around an opening. A cut in
     a surface has no frame; the edge of the hole is the edge of the surface.
     If you outline an opening you have built a photo frame, which is banned
     in _shared/FORBIDDEN.md and is also the opposite of this idea.

   Also forbidden here: box-shadow of any kind, blur, and any second field.
   Two different images behind two openings on the same screen destroys the
   illusion the whole template is built on.

   Everything below leans on tokens.css. Leave the tokens at placeholder
   values in the template; a real build fills them from the client logo.
   ========================================================================== */

/* --- the field behind the surface ------------------------------------------
   In the template this is a broad tonal sweep, which stands in for a raking
   light across one wall. It is deliberately not decorative: it exists so the
   continuity between openings is visible before any photograph is dropped in.

   A real build replaces --field with the client's photograph:
     --field: url('../../img/room.jpg');
   and nothing else in this file changes. */
:root {
  --field: linear-gradient(107deg,
    var(--c-deep) 0%,
    #3a3d43 34%,
    #6e7278 58%,
    #3a3d43 78%,
    var(--c-deep) 100%);
  --aperture: 0;   /* the cut has no radius by default; variants set their own */
}

/* --- the opening -----------------------------------------------------------
   .cut is the signature motif and the only image container in the template.
   It carries the field itself, fixed to the viewport, so every opening on a
   screen is a window onto the same continuous thing. */
.cut {
  position: relative;
  overflow: hidden;
  background-image: var(--field);
  background-size: cover;
  background-position: center;
  border-radius: var(--aperture);
  /* no border. no outline. no shadow. ever. */
}
/* Fixed attachment is the mechanism, but mobile browsers handle it badly
   enough to cause visible jumping, so it is switched on only where it works.
   Below this width the openings still read as openings; they simply stop
   sharing one field, which is an acceptable degradation. */
@media (min-width: 900px) {
  .cut { background-attachment: fixed; }
}

/* Openings are shaped, and the shapes are a small fixed set. Three, chosen
   once. A page where every hole is a different silhouette is a pattern
   library, not a facade. */
.cut--arch { --aperture: 50vw 50vw 0 0 / 22rem 22rem 0 0; }
.cut--port { --aperture: 50%; }
.cut--slot { --aperture: 0; }

.cut--hero { aspect-ratio: 4 / 3; min-height: 340px; }
.cut--tall { aspect-ratio: 3 / 4; min-height: 360px; }
.cut--wide { aspect-ratio: 21 / 9; min-height: 260px; }
.cut--sq   { aspect-ratio: 1 / 1; }
@media (min-width: 900px) {
  .cut--hero { aspect-ratio: auto; height: 100%; min-height: 34rem; }
}

/* A real photograph goes inside and fills the opening. The clip is on the
   container, so the picture is cropped by the hole rather than sitting in a
   box that has been rounded. */
.cut img { width: 100%; height: 100%; object-fit: cover; }

/* The slot label, for empty openings. Inherited behaviour from base.css is
   for .shot; openings carry their own because they sit on the dark field. */
.cut[data-slot]::after {
  content: attr(data-slot);
  position: absolute; left: var(--s-3); bottom: var(--s-2);
  font: 400 var(--t-xs)/1 var(--f-mono);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-stock); opacity: 0.7;
}
.cut:has(img)[data-slot]::after { content: none; }

/* A row of openings. The gap between them is surface, which is the point:
   it is the wall, not a gutter. */
.cuts { display: grid; gap: var(--s-4); }
@media (min-width: 860px) {
  .cuts--2 { grid-template-columns: 1fr 1fr; }
  .cuts--3 { grid-template-columns: repeat(3, 1fr); }
  /* The signature pairing: two openings of different shape and size on one
     screen, so the shared field is unmistakable. */
  .cuts--pair { grid-template-columns: 1.35fr 1fr; align-items: end; }
}

/* --- the surface ------------------------------------------------------------
   Everything that is not an opening is opaque. The surface has exactly two
   states, pale and dark, and no tints between them. */
.surface      { background: var(--c-stock); color: var(--c-ink); }
.surface--warm{ background: var(--c-stock-warm); color: var(--c-ink); }
.surface--deep{ background: var(--c-deep); color: var(--c-stock); }
.surface--deep .dim { color: currentColor; opacity: 0.74; }

a, button, input, textarea, select { border-radius: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
main:focus:not(:focus-visible) { outline: none; }

/* --- type -------------------------------------------------------------------
   The surface is quiet so the openings carry the page. Headings are set large
   and light, and nothing on the surface competes with a hole in it. */
h1, h2, h3 { font-weight: 400; letter-spacing: -0.018em; }
h4 { font-size: var(--t-lg); font-weight: 400; }

.tag {
  font: 400 var(--t-xs)/1.3 var(--f-mono);
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--c-ink-soft);
  margin: 0 0 var(--s-3);
  max-width: none;
}
.surface--deep .tag { color: currentColor; opacity: 0.7; }
.lede { font-size: var(--t-lg); line-height: 1.45; }
.dim { color: var(--c-ink-soft); }
.sm  { font-size: var(--t-sm); }
.plain-link { text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
.plain-link:hover { text-decoration-thickness: 2px; }

.rule { border: 0; border-top: 1px solid var(--c-rule); margin: var(--s-6) 0; }
.surface--deep .rule { border-top-color: rgba(255, 255, 255, 0.28); }

/* --- structure --------------------------------------------------------------- */
.band { padding-block: var(--s-7); }
.band--tight { padding-block: var(--s-5); }
.more { margin-top: var(--s-4); }

.cols { display: grid; gap: var(--s-5); }
@media (min-width: 880px) {
  .cols       { grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: start; }
  .cols--lead { grid-template-columns: 1.5fr 1fr; }
  .cols--trail{ grid-template-columns: 1fr 1.5fr; }
}

/* --- masthead ---------------------------------------------------------------- */
.mast {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5);
  max-width: var(--w-page); margin-inline: auto;
  padding: var(--s-4) var(--pad-x);
}
.brand { text-decoration: none; margin-right: auto; }
.brand__name {
  display: block;
  font-family: var(--f-display);
  font-size: var(--t-xl); line-height: 1; letter-spacing: -0.02em;
}
.brand__sub {
  display: block;
  font: 400 var(--t-xs)/1.3 var(--f-mono);
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--c-ink-soft); margin-top: var(--s-2);
}
.nav { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-4); }
.nav a {
  font: 400 var(--t-xs)/1 var(--f-body);
  text-transform: uppercase; letter-spacing: 0.16em;
  text-decoration: none; white-space: nowrap;
  padding-bottom: var(--s-1);
  border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--c-rule); }
.nav a[aria-current="page"] { border-bottom-color: var(--c-ink); }

/* --- hero ---------------------------------------------------------------------
   Words on the surface, an opening beside them. The heading never sits on top
   of the opening, because text over a hole is a hero image with an overlay,
   which is a different template and a worse one. */
.hero { padding-block: var(--s-6); }
.hero h1 { max-width: 16ch; margin-bottom: var(--s-4); }

/* --- the ledger of spaces ------------------------------------------------------
   Ruled entries, hairline only, with the capacity in its own column. */
.list { border-top: 1px solid var(--c-ink); }
.item {
  display: grid; gap: var(--s-2) var(--s-5);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--c-rule);
  text-decoration: none;
}
.item:hover .item__name, .item:focus-visible .item__name { text-decoration: underline; text-underline-offset: 0.16em; }
.item__meta {
  font: 400 var(--t-xs)/1.6 var(--f-mono);
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--c-ink-soft);
}
.item__name { font-family: var(--f-display); font-size: var(--t-xl); line-height: 1.15; }
.item p { margin: 0; font-size: var(--t-sm); color: var(--c-ink-soft); }
@media (min-width: 880px) {
  .item { grid-template-columns: 8rem minmax(0, 22rem) minmax(0, 1fr); align-items: baseline; }
}

/* --- the programme, as dated lines --------------------------------------------- */
.dates { margin: 0; border-top: 1px solid var(--c-rule); }
.dates div {
  display: grid; gap: var(--s-1) var(--s-4);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--c-rule);
  max-width: none;
}
.dates dt {
  font: 400 var(--t-xs)/1.6 var(--f-mono);
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--c-ink-soft);
}
.dates dd { margin: 0; font-family: var(--f-display); font-size: var(--t-lg); line-height: 1.25; }
.dates .note { font-family: var(--f-body); font-size: var(--t-sm); color: var(--c-ink-soft); }
@media (min-width: 760px) { .dates div { grid-template-columns: 11rem minmax(0, 1fr); align-items: baseline; } }
.surface--deep .dates div, .surface--deep .dates { border-color: rgba(255, 255, 255, 0.28); }
.surface--deep .dates dt, .surface--deep .dates .note { color: currentColor; opacity: 0.74; }

/* --- key and value ------------------------------------------------------------- */
.spec { margin: 0; }
.spec div {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--c-rule);
  max-width: var(--w-text);
}
.spec dt { font-weight: 600; }
.spec dd { margin: 0; color: var(--c-ink-soft); text-align: right; }
.surface--deep .spec div { border-bottom-color: rgba(255, 255, 255, 0.28); }
.surface--deep .spec dd { color: currentColor; opacity: 0.74; }

/* --- actions -------------------------------------------------------------------
   A plain block of ink. It inverts on hover. It does not lift and it does not
   round, because nothing on this surface does. */
.act {
  display: inline-block;
  padding: var(--s-3) var(--s-4);
  background: var(--c-ink); color: var(--c-stock);
  font: 400 var(--t-sm)/1 var(--f-body);
  text-transform: uppercase; letter-spacing: 0.14em;
  text-decoration: none;
  transition: background-color .15s linear, color .15s linear;
}
.act:hover, .act:focus-visible { background: var(--c-accent); color: var(--c-accent-ink); }
.act--pale { background: var(--c-stock); color: var(--c-ink); }
.act--pale:hover, .act--pale:focus-visible { background: var(--c-accent); color: var(--c-accent-ink); }
.act--line {
  background: transparent; color: inherit;
  border: 1px solid currentColor;
}
.act--line:hover, .act--line:focus-visible { background: var(--c-ink); color: var(--c-stock); border-color: var(--c-ink); }

/* --- quotation ------------------------------------------------------------------ */
.said {
  margin: var(--s-6) 0 var(--s-2);
  max-width: 46ch;
  font-family: var(--f-display);
  font-size: var(--t-xl); line-height: 1.35;
}
.said-by {
  font: 400 var(--t-xs)/1.6 var(--f-mono);
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--c-ink-soft);
}

/* --- FAQ. <details>, never JS tabs. --------------------------------------------- */
.faq { max-width: 46rem; border-top: 1px solid var(--c-ink); }
.faq details { border-bottom: 1px solid var(--c-rule); }
.faq summary {
  display: flex; justify-content: space-between; gap: var(--s-3); align-items: baseline;
  padding-block: var(--s-3);
  font-family: var(--f-display); font-size: var(--t-lg); line-height: 1.25;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 var(--t-lg)/1 var(--f-mono); color: var(--c-ink-soft); }
.faq details[open] summary::after { content: "\2013"; }
.faq details > :not(summary) { margin-bottom: var(--s-3); }

/* --- forms ----------------------------------------------------------------------- */
.form { max-width: 34rem; }
.field { display: block; margin-bottom: var(--s-4); }
.field > span {
  display: block;
  font: 400 var(--t-xs)/1.2 var(--f-mono);
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--c-ink-soft); margin-bottom: var(--s-2);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: var(--s-3);
  background: var(--c-stock); color: var(--c-ink);
  border: 1px solid var(--c-rule);
  border-bottom-color: var(--c-ink);
}
.field textarea { min-height: 9rem; resize: vertical; }
.form__note { font-size: var(--t-sm); color: var(--c-ink-soft); }

/* --- footer ------------------------------------------------------------------------ */
.foot { padding-block: var(--s-6); }
.foot__grid { display: grid; gap: var(--s-5); }
@media (min-width: 800px) { .foot__grid { grid-template-columns: 1.5fr 1fr 1fr; gap: var(--s-6); } }
.foot h2 { font-size: var(--t-lg); }
.foot__list { list-style: none; margin: 0; padding: 0; }
.foot__list li { padding-block: var(--s-1); font-size: var(--t-sm); }
.foot__legal {
  margin-top: var(--s-5); padding-top: var(--s-4);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-size: var(--t-sm); opacity: 0.74;
}
.foot__legal:last-child { margin-bottom: 0; }
.mt { margin-top: var(--s-5); }

/* ==========================================================================
   Sanriq Tours build. Concept: "a line on the horizon".
   The logo is three strokes of flame rising over a horizon arc. The site
   keeps one motif from it: a thin horizon rule with a short ember segment,
   the sun sitting on the line. Nothing else is added to the vocabulary.
   ========================================================================== */

/* One field per page. It is set in a <style> block in each page's head
   (see build.py), not through a custom property: a url() inside a variable
   resolves against the stylesheet it is consumed in, which put every hero
   at assets/css/img/. */

/* The horizon rule. */
.rule--horizon {
  position: relative;
  border-top-color: var(--c-ink);
  margin: 0;
}
.rule--horizon::before {
  content: "";
  position: absolute; left: 0; top: -2px;
  width: 3.5rem; height: 3px;
  background: var(--c-accent);
}
.surface--deep .rule--horizon { border-top-color: rgba(255, 255, 255, 0.5); }

/* Things that rise above the line carry the ember: the current page in the
   nav, and the dates on the journeys list. */
.nav a[aria-current="page"] { border-bottom-color: var(--c-accent); border-bottom-width: 2px; }
.dates dt { color: var(--c-accent); font-weight: 500; }
.surface--deep .dates dt { color: var(--c-accent); opacity: 1; }

/* The logo in the masthead. */
.brand img { width: 132px; height: auto; }
@media (max-width: 480px) { .brand img { width: 108px; } }

/* Display face: Bodoni Moda wants a little more air than the template's
   default tracking. */
h1, h2, h3, .brand__name, .item__name, .dates dd, .said { letter-spacing: 0; }
h1 { font-weight: 400; }

/* Itinerary link with the file size beside it. */
.file { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-3); }
.file .sm { margin: 0; }

/* --- legibility pass, 2026-11-04 (reviewed as a 45+ reader) ----------------
   Bodoni Moda is a Didone: at weight 400 and the 96pt optical cut its hairlines
   drop out on 1x screens. Pin the optical size to the 48pt cut and go a weight
   up. Small uppercase labels come up a size and a weight. Secondary plum is
   darker (tokens). Ember on pale paper uses the text variant. The booker's
   facts (values, trip summaries, refund notes) go back to body size and ink. */
h1 { font-weight: 600; font-variation-settings: "opsz" 48; }
h2 { font-weight: 500; font-variation-settings: "opsz" 48; }
h3, .item__name, .said, .dates dd { font-weight: 500; }
body { -webkit-font-smoothing: auto; }

.tag, .item__meta, .dates dt, .said-by, .field > span, .brand__sub {
  font-weight: 500; letter-spacing: 0.12em;
}
.nav a {
  font-size: var(--t-sm);
  font-weight: 500; letter-spacing: 0.1em;
  padding-block: var(--s-2);
}
.nav a:hover { border-bottom-color: var(--c-ink-soft); }

.dates dt { color: var(--c-ember-text); }
.surface--deep .dates dt { color: var(--c-accent); }

.item p { font-size: var(--t-base); color: var(--c-ink); }
.spec dd { color: var(--c-ink); }
@media (max-width: 480px) { .spec dd { text-align: left; } }
.dates .note {
  display: block; margin-top: var(--s-1);
  font-size: var(--t-base); color: var(--c-ink);
}
.act { font-weight: 500; }
.act:hover, .act:focus-visible,
.act--pale:hover, .act--pale:focus-visible { background: var(--c-ember-text); color: #fff; }
.act--line:hover, .act--line:focus-visible { background: var(--c-ink); color: var(--c-stock); }

/* How booking works: a numbered, ruled sequence. Plain digits. */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1px solid var(--c-ink); max-width: 46rem; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--s-3);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--c-rule);
  max-width: none;
}
.steps li::before {
  content: counter(step);
  font-family: var(--f-display); font-size: var(--t-xl); line-height: 1;
  color: var(--c-ember-text);
}
.steps strong { display: block; font-weight: 600; }
.surface--deep .steps { border-top-color: rgba(255,255,255,0.5); }
.surface--deep .steps li { border-bottom-color: rgba(255,255,255,0.28); }

/* Contact: direct lines first on a phone, form second. */
@media (max-width: 879px) { .cols--direct > :first-child { order: 2; } }

/* ==========================================================================
   Photography pass, 2026-11-04. The aperture mechanism (shaped openings on a
   viewport-fixed field) was dropped at the client's request: the shapes read
   as odd crops and the fixed field looked like the pictures were switching as
   the page scrolled. Pictures now sit open, as plain rectangles, several of
   them bleeding to the viewport edge. These rules override the .cut block
   above; the earlier rules are left in place so the file still reads.
   ========================================================================== */
.cut, .cut--arch, .cut--port, .cut--slot { --aperture: 0; border-radius: 0; }
.cut { background-image: none; background: var(--c-stock-warm); }
@media (min-width: 900px) { .cut { background-attachment: scroll; } }
.cut img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cut--hero { aspect-ratio: 4 / 3; min-height: 0; }
@media (min-width: 900px) {
  .cut--hero { aspect-ratio: auto; height: 100%; min-height: 30rem; }
  /* the hero picture runs out to the right edge of the page frame */
  .hero .cut--hero { margin-right: calc(var(--pad-x) * -1); }
}
.cut--wide { aspect-ratio: 16 / 9; min-height: 0; }
.cut--sq   { aspect-ratio: 1 / 1; }
.cut--tall { aspect-ratio: 3 / 4; min-height: 0; }
.cuts--pair { align-items: stretch; }

/* A picture the full width of the viewport. One per page at most. */
.bleed { width: 100vw; margin-left: calc(50% - 50vw); background: var(--c-stock-warm); }
.bleed img { width: 100%; height: clamp(300px, 56vh, 680px); object-fit: cover; display: block; }
.bleed figcaption, .cap {
  max-width: var(--w-page); margin: var(--s-2) auto 0; padding-inline: var(--pad-x);
  font: 400 var(--t-sm)/1.5 var(--f-body); color: var(--c-ink-soft);
}

/* Destination tiles: a picture, a name, a line. Linked. */
.tiles { display: grid; gap: var(--s-4); list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .tiles--two { grid-template-columns: 1fr 1fr; } }
.tile { max-width: none; }
.tile a { display: block; text-decoration: none; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--c-stock-warm); }
.tile__name { display: block; margin-top: var(--s-3); font-family: var(--f-display); font-size: var(--t-xl); font-weight: 500; line-height: 1.15; }
.tile__line { display: block; margin-top: var(--s-1); color: var(--c-ink-soft); font-size: var(--t-sm); }
.tile a:hover .tile__name, .tile a:focus-visible .tile__name { text-decoration: underline; text-underline-offset: 0.16em; }

/* A strip of smaller pictures, four across. */
.strip { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
@media (min-width: 800px) { .strip { grid-template-columns: repeat(4, 1fr); } }
.strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: var(--c-stock-warm); }
.strip figure { margin: 0; max-width: none; }
.strip figcaption { margin-top: var(--s-2); font-size: var(--t-sm); color: var(--c-ink-soft); }

/* Credits list */
.credits { margin: 0; border-top: 1px solid var(--c-ink); max-width: 46rem; }
.credits div { padding-block: var(--s-3); border-bottom: 1px solid var(--c-rule); max-width: none; }
.credits dt { font-weight: 600; }
.credits dd { margin: 0; color: var(--c-ink-soft); font-size: var(--t-sm); }

/* ==========================================================================
   Photo pass, 2026-11-10 (Tariq: "more pictures and abridged content").
   The itinerary is a set of day cards: a .tile without the link. One picture,
   a "Day n" tag, the day title, a short caption, meals and hotel in a dim line.
   ========================================================================== */
.days__region { margin: var(--s-5) 0 var(--s-3); font-size: var(--t-xl); }
.days { display: grid; gap: var(--s-5) var(--s-4); list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .days { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .days { grid-template-columns: repeat(3, 1fr); } }
.day { max-width: none; }
.day img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--c-stock-warm); }
.day__tag {
  display: block; margin-top: var(--s-3);
  font: 500 var(--t-xs)/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--c-ember-text);
}
.day__name { display: block; margin-top: var(--s-1); font-family: var(--f-display); font-size: var(--t-lg); font-weight: 500; line-height: 1.2; }
.day__cap { display: block; margin-top: var(--s-2); }
.day__meta { display: block; margin-top: var(--s-2); font-size: var(--t-sm); color: var(--c-ink-soft); }

/* Terms and the booking steps sit in closed <details>; the steps lose their own top rule inside one. */
.faq .steps { border-top: 0; }
.faq--terms { margin-top: var(--s-3); }
