/* Mirastra Hotels — shared styles
   System: typography spec + color v2.2 (screen ladder) + collateral v2.2.
   Mobile-first: base rules are the phone layout; one structural breakpoint at 64rem. */

@font-face{font-family:'Tiempos Text';src:url('fonts/tiempos-text-regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Tiempos Text';src:url('fonts/tiempos-text-regular-italic.woff2') format('woff2');font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:'Tiempos Text';src:url('fonts/tiempos-text-semibold.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:'Soehne';src:url('fonts/soehne-buch.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Soehne';src:url('fonts/soehne-halbfett.woff2') format('woff2');font-weight:600;font-display:swap}

/* ── Tokens. Screen ladder only: this site is never printed (collateral §3.1.1) ── */
:root{
  --paper:#fafafa; --surface:#f2f2f2; --surface-2:#ebebeb; --rule:#e0e0e0; --rule-strong:#757575;
  --ink:#1a1a1a; --ink-2:#383838; --ink-3:#545454; --ink-inverse:#ffffff;
  --accent-200:#baded6; --accent-500:#2e6b5e; --accent-600:#225349; --accent-700:#183f36;
  --spark:#cf3043; --spark-deep:#a12130;

  --serif:'Tiempos Text',Georgia,'Times New Roman',serif;
  --sans:'Soehne',-apple-system,'Segoe UI',system-ui,sans-serif;

  --fs-display:clamp(2.5rem, 1rem + 5vw, 3.5rem);   /* 40 → 56, the locked ceiling */
  --fs-h2:clamp(1.75rem, 1.2rem + 1.6vw, 2.25rem);   /* 28 → 36 */
  --fs-lead:1.375rem;                                /* 22 */
  --fs-body:1.125rem;                                /* 18 */

  --gutter:clamp(1.25rem, 0.5rem + 3vw, 4rem);
  --space-section:clamp(4rem, 2rem + 4vw, 8rem);
  --shell:80rem;
  --measure:65ch;
  --radius:4px;
}

*{box-sizing:border-box}
html{font-size:100%;-webkit-text-size-adjust:100%;scroll-behavior:auto}
body{margin:0;background:var(--paper);color:var(--ink);font:400 var(--fs-body)/1.6 var(--serif);
  font-synthesis:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
strong,b{font-weight:600}
img{max-width:100%;display:block}
a{color:var(--accent-700);text-underline-offset:3px;text-decoration-thickness:1px}
p{margin:0 0 1em}
:focus-visible{outline:2px solid var(--accent-700);outline-offset:3px}
.skip{position:absolute;left:-999px;top:0}
.skip:focus{left:var(--gutter);top:12px;background:var(--paper);padding:8px 12px;z-index:10}

/* ── Page shell + margin rail ───────────────────────────────────────────── */
.shell{max-width:var(--shell);margin:0 auto;padding:0 var(--gutter)}
.sec{padding-block:var(--space-section) 0}
.row{display:grid;grid-template-columns:1fr;row-gap:.9rem}
.rail{font:600 .75rem/1.4 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3)}
.main{min-width:0}
.prose{max-width:var(--measure)}
@media (min-width:64rem){
  /* The page's one deliberate grid break: labels hang in a left rail beside the argument */
  .row{grid-template-columns:13rem minmax(0,1fr);column-gap:clamp(2.5rem,5vw,5rem)}
  .rail{padding-top:.55rem}
  .rail span{position:sticky;top:1.5rem;display:block}
}

h1,h2,h3{margin:0;color:var(--ink);text-wrap:balance;overflow-wrap:break-word} /* break a word only if it can't fit (large text on small phones) */
p,li{text-wrap:pretty}
.statement{text-wrap:balance}
h2{font:600 var(--fs-h2)/1.15 var(--serif);letter-spacing:-.01em;margin-bottom:1.25rem;max-width:24ch}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:.8rem 1.5rem;
  font:600 1rem/1 var(--sans);letter-spacing:.005em;text-decoration:none;border-radius:var(--radius);
  background:var(--accent-500);color:var(--ink-inverse);transition:background-color 150ms ease-out}
.btn:hover{background:var(--accent-600)}
.btn--sm{min-height:44px;padding:.65rem 1rem;font-size:.875rem}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-head .shell{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem 1rem;padding-block:1rem}
.wordmark{font:600 1.25rem/1 var(--sans);letter-spacing:.005em;color:var(--ink);text-decoration:none}
.nav{display:flex;align-items:center;gap:1.75rem}
.nav a:not(.btn){display:none;font:400 .9375rem/1 var(--sans);color:var(--ink-2);text-decoration:none}
.nav a:not(.btn):hover{color:var(--ink);text-decoration:underline}
@media (min-width:64rem){.nav a:not(.btn){display:inline}}

/* ── 1 · Hero ───────────────────────────────────────────────────────────── */
.hero{padding-block:clamp(3rem,1.5rem + 6vw,7rem) 0}
.eyebrow{font:600 .75rem/1.4 var(--sans);letter-spacing:.12em;text-transform:uppercase;
  color:var(--accent-700);margin:0 0 1.25rem}
.hero h1{font:400 var(--fs-display)/1.06 var(--serif);letter-spacing:-.02em;max-width:19ch;margin-bottom:1.5rem}
.lead{font-size:var(--fs-lead);line-height:1.45;color:var(--ink-2);max-width:38em;margin-bottom:2rem}
.cta-block .btn{width:100%}
.cta-note{font:400 .9375rem/1.5 var(--sans);color:var(--ink-3);margin:.85rem 0 0;max-width:34em}
@media (min-width:40rem){.cta-block .btn{width:auto}}

/* ── 2 · Statement break ────────────────────────────────────────────────── */
.statement{font:400 clamp(1.75rem,1.1rem + 2.2vw,2.5rem)/1.15 var(--serif);letter-spacing:-.015em;
  margin:2.5rem 0}

/* ── 3 · Deliverables — the one grid, because all three are the same kind of thing ── */
.receive-label{font:600 1rem/1.4 var(--sans);margin:2rem 0 1rem}
.deliverables{list-style:none;margin:0 0 2rem;padding:0;display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(15rem,100%),1fr));gap:1.5rem 2rem}
.deliverables li{border-top:1px solid var(--rule-strong);padding-top:1rem;font-size:1rem;line-height:1.55;color:var(--ink-2)}
.deliverables strong{display:block;font:600 1rem/1.35 var(--sans);color:var(--ink);margin-bottom:.4rem}

/* ── 4 · Exhibit — the record itself, with the correction marked ─────────── */
.exhibit{margin:2rem 0;max-width:46rem}
.exhibit .cap{font:600 .6875rem/1.3 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3);
  border-bottom:1px solid var(--rule-strong);padding-bottom:.5rem}
.ledger{width:100%;border-collapse:collapse;font:400 .9375rem/1.35 var(--sans);font-variant-numeric:tabular-nums}
.ledger th{font:600 .6875rem/1.3 var(--sans);letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3);
  text-align:left;padding:.65rem .75rem .5rem 0;border-bottom:1px solid var(--rule)}
.ledger td{padding:.8rem .75rem .8rem 0;border-bottom:1px solid var(--rule);vertical-align:baseline}
.ledger tr:last-child td{border-bottom:1px solid var(--rule-strong)}
.ledger .fix td{background:#fff}
.redact{display:inline-block;width:4.2em;height:.8em;background:var(--rule);vertical-align:-1px}
.was{color:var(--ink-3);text-decoration:line-through;text-decoration-color:var(--spark);text-decoration-thickness:2px;margin-right:.5rem}
.now{font-weight:600;text-decoration:none}
/* Spark: "notable", never "wrong" — the page's one spark moment (collateral §3.4) */
.tag{display:inline-flex;align-items:center;gap:.4rem;margin-left:.5rem;font:600 .625rem/1 var(--sans);
  letter-spacing:.12em;text-transform:uppercase;color:var(--spark-deep);border:1px solid var(--spark);
  padding:.2rem .4rem;white-space:nowrap;vertical-align:1px}
.tag::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--spark)}
@media (max-width:30rem){.ledger .hide-sm{display:none}}
/* Phones: the table may never be wider than its column (Safari keeps the tag inline and
   overflowed the screen). Fixed layout + the tag on its own line under the corrected value. */
.ledger{table-layout:fixed}
.ledger th:first-child,.ledger td:first-child{width:6.5rem}
.ledger td{overflow-wrap:anywhere}
.ledger .was,.ledger .now{display:inline-block} /* wrap as whole values, never mid-word */
@media (max-width:40rem){
  .ledger th:first-child,.ledger td:first-child{width:5.5rem}
  .ledger .tag{display:flex;width:max-content;max-width:100%;margin:.45rem 0 0;letter-spacing:.08em}
}

/* ── 5 · Ongoing work — numbered, two-up when there is room ─────────────── */
.ongoing{list-style:none;margin:2rem 0 0;padding:0;display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(20rem,100%),1fr));gap:2.25rem 3rem}
.ongoing li{border-top:1px solid var(--rule);padding-top:1rem}
.ongoing .num{display:block;font:600 .75rem/1 var(--sans);letter-spacing:.08em;color:var(--ink-3);
  font-variant-numeric:tabular-nums;margin-bottom:.75rem}
.ongoing h3{font:600 1.1875rem/1.3 var(--serif);margin-bottom:.6rem}
.ongoing p{font-size:1rem;line-height:1.6;color:var(--ink-2)}

/* ── 6 · About — Sidebar primitive: photo + introduction ─────────────────── */
.about{display:flex;flex-wrap:wrap;gap:2rem 3rem;align-items:flex-start}
.about>.portrait{flex:2 1 14rem}
.about>.prose{flex:3 1 20rem;min-width:0}
.portrait{max-width:24rem;aspect-ratio:4/5;border-radius:var(--radius);overflow:hidden;background:var(--surface)}
.portrait img{width:100%;height:100%;object-fit:cover}
.portrait--placeholder{display:flex;align-items:flex-end;padding:1rem;border:1px solid var(--rule);
  font:600 .6875rem/1.3 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3)}
/* Sidebar primitive: side by side only when both fit; otherwise the photo stacks above, capped at 24rem */

/* ── 7 · Questions ──────────────────────────────────────────────────────── */
.faq{max-width:var(--measure)}
.faq h3{font:600 1.0625rem/1.4 var(--sans);margin:2rem 0 .5rem}
.faq h3:first-child{margin-top:0}
.faq p{color:var(--ink-2)}

/* ── 8 · Terminal CTA band — full-bleed, the page's one colour fill (§4.7.2) ── */
.band{background:var(--accent-600);color:var(--ink-inverse);margin-top:var(--space-section);
  padding-block:clamp(3.5rem,2rem + 5vw,6.5rem)}
.band .rail{color:var(--accent-200)}
.band h2{color:var(--ink-inverse);max-width:22ch}
.band p{color:var(--ink-inverse);max-width:var(--measure)}
.mark{color:var(--accent-200);font-style:italic}   /* §6 — one per asset, on the closer */
.btn--inverse{background:var(--ink-inverse);color:var(--ink)}
.btn--inverse:hover{background:var(--surface)}
.band .cta-block{margin-top:2rem}
.band .email{font:400 1rem/1.5 var(--sans);margin:1.25rem 0 0}
.band .email a{color:var(--ink-inverse)}
.band :focus-visible{outline-color:var(--ink-inverse)}

/* ── 9 · Footer ─────────────────────────────────────────────────────────── */
.site-foot{padding-block:2rem 2.5rem}
.site-foot .shell{display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;justify-content:space-between;
  font:400 .8125rem/1.5 var(--sans);color:var(--ink-3)}
.site-foot a{color:var(--ink-3)}

/* ── Booking page ───────────────────────────────────────────────────────── */
.book-intro h1{font:400 var(--fs-display)/1.06 var(--serif);letter-spacing:-.02em;margin-bottom:1.5rem}
.book-intro .prose > p:not(.eyebrow):not(.book-meta){font-size:1.1875rem;color:var(--ink-2)}
.book-meta{font:600 .9375rem/1.4 var(--sans);color:var(--ink);border-top:1px solid var(--rule);
  padding-top:1rem;margin-top:1.75rem}
.book-cal{padding-top:clamp(2.5rem,1.5rem + 3vw,4.5rem)}
.book-cal h2{margin-bottom:1rem}
.embed-status{font:400 1rem/1.5 var(--sans);color:var(--ink-3);margin:0 0 1rem;min-height:1.5em}
.embed-status--done{min-height:0;margin:0}
.embed-status--fail{color:var(--ink);background:var(--surface);border-left:0;padding:1rem 1.125rem;max-width:var(--measure)}
/* Width 100% of the column; Cal's inline embed sizes the iframe's height itself.
   No fixed height and no overflow:scroll, so there is never a scroll box inside the page. */
.embed-wrap{width:100%;min-height:36rem}
.embed-wrap[hidden]{display:none}
.help{font:400 1rem/1.5 var(--sans);color:var(--ink-2);margin-top:2rem;padding-top:1.25rem;
  border-top:1px solid var(--rule);max-width:var(--measure)}
.help p{margin:0 0 .4rem}

/* ── Confirmation page ──────────────────────────────────────────────────── */
.confirm{padding-block:clamp(3rem,1.5rem + 6vw,7rem) var(--space-section)}
.confirm h1{font:400 var(--fs-display)/1.06 var(--serif);letter-spacing:-.02em;max-width:16ch;margin-bottom:1.75rem}
.confirm .back{display:inline-block;margin-top:1.5rem;font:600 1rem/1.4 var(--sans)}
