/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--c-ink);
  background: var(--c-cream);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  font-weight: 600;
  text-wrap: balance;
  margin-block: 0 var(--space-m);
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }

p { max-inline-size: var(--measure); }

a { color: inherit; }

img {
  max-inline-size: 100%;
  height: auto;
  display: block;
}

/* Layout helpers */
.container {
  inline-size: min(100% - 2 * var(--space-m), 1200px);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-pad);
}

/* For sections whose last child already carries bottom spacing (e.g. FAQ rows,
   or a divider that follows): trim the bottom padding so they don't stack. */
.section--tight-bottom {
  padding-block-end: calc(var(--section-pad) - var(--space-m));
}

/* Focus */
:focus-visible {
  outline: 3px solid var(--c-coral);
  outline-offset: 2px;
}

/* RTL: only mirror directional chevrons/arrows */
[dir="rtl"] .icon-dir {
  transform: scaleX(-1);
}

/* Skip link */
.skip-link {
  position: absolute;
  inset-inline-start: var(--space-m);
  inset-block-start: var(--space-m);
  padding: var(--space-s) var(--space-m);
  background: var(--c-coral);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  z-index: 9999;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ─── Signature utilities ───────────────────────────────────── */

/* Eyebrow: letter-spaced caps — echoes Simone's "GUESTHOUSE" treatment */
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .78rem;
  font-weight: 500;
  color: var(--c-muted);
  margin-block: 0 var(--space-s);
  display: block;
}

/* Eyebrow on dark surfaces (plum / coral band) needs a light tone */
.eyebrow--light { color: var(--c-gold); }
.eyebrow--cream { color: color-mix(in oklab, var(--c-cream) 78%, transparent); }

/* Framed image: a rounded-corner square, the repeated imagery device
   (client preference, replacing the earlier arch crop). Apply to a wrapper
   around an <Image>; the image fills the square and is cropped to cover. */
.arch-image {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: clamp(14px, 2vw, 22px);
  overflow: hidden;
  position: relative;
  background: var(--c-travertine);
}

/* The framed image must FILL the box, overriding Astro's constrained
   layout (responsiveStyles injects physical `height:auto`, so we must set the
   physical `height`, not just the logical `block-size`, to win). Handles both
   <Image> (img direct child) and <Picture> (picture > img). */
.arch-image > picture {
  display: block;
  block-size: 100%;
}

.arch-image img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
}

/* Per-language body font overrides */
:root:lang(zh) { --font-body: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif; }
:root:lang(ja) { --font-body: 'Hiragino Sans', 'Yu Gothic', 'Noto Sans CJK JP', sans-serif; }
:root:lang(ko) { --font-body: 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans CJK KR', sans-serif; }
:root:lang(ar) { --font-body: 'Noto Sans Arabic', sans-serif; }
:root:lang(he) { --font-body: 'Noto Sans Hebrew', sans-serif; }

/* Wide letter-spacing breaks complex scripts — tighten eyebrow tracking
   for CJK / RTL locales so labels stay legible. */
:lang(zh) .eyebrow, :lang(ja) .eyebrow, :lang(ko) .eyebrow,
:lang(ar) .eyebrow, :lang(he) .eyebrow { letter-spacing: .08em; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
