/* M&S Cabina — site-wide aura: hygge / Scandinavian.
   Warm linen, soft serif headings, stacked curved "sheets" instead of hard section edges,
   warm photo grading, a whisper of grain, and gentle reveals. Brand teal / sand / red stay as accents. */

:root {
  --neu-bg: #F4EEE4;            /* linen */
  --neu-light: #FFFDF8;
  --neu-dark: #D9CDBA;          /* warm shadow */
  --ink: #0A2533;
  --ink-soft: #44555C;
  --teal: #006A67;
  --teal-bright: #12BAB5;
  --teal-tint: #D6E9E2;         /* sage */
  --sage-deep: #B9D4C8;
  --sand: #D4A336;
  --sand-tint: #FBF1DA;
  --red: #DE2920;
  --red-hover: #C0221A;
  --error: #B3201A;
  --field-edge: #6B7C80;        /* ≥3:1 on linen, for form-control boundaries */
  --glass: rgba(255, 250, 242, 0.62);
  --glass-strong: rgba(255, 250, 242, 0.88);
  --glass-edge: rgba(255, 255, 255, 0.85);
  --warm-shadow: 0 20px 56px rgba(110, 82, 44, 0.13);
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sheet-lap: 1.75rem;
}

html { background: var(--neu-bg); }
body { background-color: var(--neu-bg); }
.bg-white { background-color: #FFFCF7; }

/* A whisper of linen grain over the whole page (below the fixed header) */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .32 0 0 0 0 .2 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media print { body::after { display: none; } }

/* Soft serif headings */
h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 0;
  font-weight: 600 !important;
  letter-spacing: -.015em;
}
h1 .italic, h2 .italic, h3 .italic { font-style: normal; }
header a[href="index.html"] span,
footer a[href="index.html"] span {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 0;
  font-weight: 600 !important;
  letter-spacing: -.01em;
}

/* Header and footer: curved edges instead of straight cuts */
header.fixed { border-bottom-left-radius: 1.75rem; border-bottom-right-radius: 1.75rem; }

/* Stacked sheets: each section slides over the one above with a soft curved lip */
main > div > section + section,
main > section + section {
  position: relative;
  margin-top: calc(var(--sheet-lap) * -1);
  border-radius: 2.75rem 2.75rem 0 0 / 2rem 2rem 0 0;
  border-top-width: 0 !important;
}
footer {
  position: relative;
  margin-top: calc(var(--sheet-lap) * -1);
  border-radius: 2.75rem 2.75rem 0 0 / 2rem 2rem 0 0;
}
.msc-wave ~ footer { margin-top: 0; border-radius: 0; }

/* Warm photo grading (not map tiles or markers) */
main img:not(.leaflet-tile):not(.leaflet-marker-icon):not(.leaflet-marker-shadow) {
  filter: saturate(.97) sepia(.07) contrast(.98);
}

/* Gentle reveal on scroll (added by site.js; off for reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .aura-reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
  .aura-reveal.aura-in { opacity: 1; transform: none; }
}

/* Soft focus ring that matches the palette */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--teal); outline-offset: 3px;
}
