/* =========================================================================
   Villa Johannes - base.css
   Design tokens, reset, and base typography.
   Concept: "Contemporary Nature Hospitality" - light, calm, photography-led.
   ========================================================================= */

@import url("../fonts/fonts.6cf639554341.css");

:root {
  /* ---- Colour (light dominates; forest selective; clay a small accent) ---- */
  --bg: #f4f1eb;
  --surface: #fbf9f4;
  --surface-alt: #eae5db;
  --text: #252724;
  --text-soft: #585c52;
  --forest: #263b30;
  --forest-deep: #1f3227;
  --green: #667565;
  --stone: #a39b8e;
  --clay: #a05e45;
  /* Deep burgundy / wine accent - the homepage redesign's primary accent
     (buttons, hairline dividers, room numbers, links, map marker). Kept as a
     separate token so the existing terracotta --clay on other pages is
     untouched until those pages are redesigned. */
  --wine: #7c2233;
  --wine-deep: #64182a;
  --on-dark: #f1eee7;
  --on-dark-soft: #c3cabd;
  --line: rgba(37, 39, 36, 0.12);
  --line-strong: rgba(37, 39, 36, 0.22);
  --line-on-dark: rgba(241, 238, 231, 0.18);

  /* ---- Typography ---- */
  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Editorial serif for the homepage's display headings. A high-quality
     system serif stack (no external CDN - GDPR): Iowan/Palatino on Apple &
     Windows, Georgia everywhere else. Scoped to homepage heading classes so
     the sans-serif headings on other pages stay unchanged. */
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino,
    "Book Antiqua", Georgia, "Times New Roman", serif;

  /* ---- Spacing scale ---- */
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --section: clamp(3.75rem, 8vw, 7rem);
  /* Page gutter, shared by every container so all sections align:
     ~21px at 375, ~36px at 768, ~54px at 1280, ~77px at 1920. */
  --gutter: clamp(1.25rem, 0.5rem + 3.6vw, 6.25rem);
  /* Rhythm between the hero composition and the section that follows:
     ~66px mobile, ~95px tablet, ~140px laptop, 160px large desktop. */
  --section-lead: clamp(4rem, 2.5rem + 7vw, 10rem);

  /* ---- Header height (used by the fixed header + homepage hero offset) ----
     --logo-box is the logo element's square box. Because the asset is ~50%
     transparent padding, the visible wordmark is about 89% of this wide and
     50% of it tall (118 -> ~105x59, 136 -> ~121x68, 150 -> ~133x75). */
  --header-h: 64px;
  --logo-box: 118px;

  /* ---- Containers. max-width includes the gutter, since .container applies the
     gutter as padding. --container-wide therefore yields ~1700px of content on a
     1920px screen, which is the shared page grid for the homepage and footer. */
  --container: 1180px;
  --container-wide: 1850px;
  --container-narrow: 720px;

  /* ---- Radius ---- */
  --r-sm: 4px;
  --r: 8px;
  --r-lg: 14px;
  --r-xl: 22px;

  /* ---- Effects ---- */
  --shadow: 0 20px 45px -28px rgba(30, 40, 32, 0.4);
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
/* <picture> is only a source-selection wrapper. Taking it out of the box tree
   means the <img> keeps sizing against .media / .hm-hero__figure exactly as it
   did before responsive sources were added. */
picture {
  display: contents;
}

/* Safety net for inline SVG. An <svg> with a viewBox but no width/height has no
   intrinsic size, so it expands to fill its container - a 24x12 arrow icon can
   render 1305x653 that way and wreck a whole section. Defaulting to the current
   text size means a mis-scoped or renamed icon degrades to icon size instead.
   Every deliberate icon sets its own width/height and overrides this. */
svg {
  width: 1em;
  height: 1em;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  cursor: pointer;
}

/* ---- Headings ---- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 1.35rem + 2.6vw, 3.3rem);
}
h2 {
  font-size: clamp(1.65rem, 1.2rem + 1.6vw, 2.35rem);
}
h3 {
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1.1em;
}

/* Shared text helpers */
.lead {
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.28rem);
  line-height: 1.6;
  color: var(--text-soft);
}

.measure {
  max-width: 60ch;
}
.measure-tight {
  max-width: 46ch;
}

.text-soft {
  color: var(--text-soft);
}

::selection {
  background: var(--forest);
  color: var(--on-dark);
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Screen-reader only */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  background: var(--forest);
  color: var(--on-dark);
  padding: 0.75rem 1.1rem;
  border-radius: 0 0 var(--r) 0;
}
.skip-link:focus {
  left: 0;
}

/* Phones: 64px left the logo's visible wordmark (59px tall inside the 118px
   box) with barely 2px of air above and below. A 76px bar with a 128px box
   renders the wordmark at ~114x64 - noticeably more legible, still with 6px of
   clearance - without touching the tablet or desktop bar. */
@media (max-width: 767.98px) {
  :root {
    --header-h: 76px;
    --logo-box: 128px;
  }
}
/* The taller bar arrives with the desktop navigation (see layout.css). */
@media (min-width: 1100px) {
  :root {
    --header-h: 88px;
    --logo-box: 132px;
  }
}
@media (min-width: 1600px) {
  :root {
    --logo-box: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
