/* Mauritius Experiences — design system.
   Derived from the logo: a Didone italic ("experiences.") under wide geometric caps.
   So: high-contrast serif display, monochrome, sharp corners, thin rules, no shadows.
   Photography carries all of the colour. Light-only on purpose — this is a magazine. */

:root {
  --ink: #0e0e0e;
  --paper: #fff;
  --bone: #f4f2ef;
  --muted: #6d6d6d;
  --line: rgba(0, 0, 0, .14);
  --line-soft: rgba(0, 0, 0, .07);
  --accent: #0f5f59;          /* used sparingly: links, focus, hover only */
  --display: 'Bodoni Moda', 'Didot', 'Times New Roman', serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wrap: 1320px;
  --read: 66ch;
  --gut: clamp(1.25rem, 3vw, 2.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, .97rem + .12vw, 1.06rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-optical-sizing: none;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.005em;
  text-wrap: balance;
  margin: 0;
}

p { text-wrap: pretty; }

@view-transition { navigation: auto; }

::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--paper); padding: .75rem 1.25rem; }
.skip:focus { left: 0; }

/* Wide-tracked micro-type. Echoes the spacing of the MAURITIUS wordmark. */
.eyebrow, .chip, .btn, .nav a, .util a, .card-meta, .crumbs, .footer h4, .footer-base {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .69rem;
  font-weight: 500;
}

.eyebrow { color: var(--muted); margin: 0 0 1rem; }

/* ---------------------------------------------------------------- header */

.site-head { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }

.head-top {
  max-width: var(--wrap); margin: 0 auto;
  padding: 1.1rem var(--gut);
  display: flex; align-items: center; gap: 1.5rem;
}

.brand { display: block; flex: none; }
.brand img { width: 190px; height: auto; }

.util { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.util a { text-decoration: none; color: var(--muted); }
.util a:hover { color: var(--ink); }
.util svg { width: 17px; height: 17px; display: block; fill: currentColor; }

.head-nav { border-top: 1px solid var(--line-soft); }
.nav {
  max-width: var(--wrap); margin: 0 auto;
  padding: 0 var(--gut);
  display: flex; gap: 2.1rem; align-items: center;
}
.nav a { text-decoration: none; color: var(--muted); padding: .95rem 0; position: relative; }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px; background: var(--ink); transform: scaleX(0);
  transform-origin: left; transition: transform .25s ease;
}
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); }

.nav-toggle {
  display: none; margin-left: 1rem;
  background: none; border: 1px solid var(--line); padding: .5rem .8rem;
  font: inherit; text-transform: uppercase; letter-spacing: .16em; font-size: .69rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .brand img { width: 150px; }
  .nav-toggle { display: block; }
  .head-nav { display: none; }
  .site-head:has(.nav-toggle[aria-expanded='true']) .head-nav { display: block; }
  .nav { flex-direction: column; align-items: flex-start; gap: 0; padding-bottom: .75rem; }
  .nav a { width: 100%; padding: .85rem 0; border-bottom: 1px solid var(--line-soft); font-size: .8rem; }
}

/* ---------------------------------------------------------------- layout */

.section { padding: clamp(3.5rem, 7vw, 7rem) var(--gut); }
.section--bone { background: var(--bone); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--tight { padding-top: clamp(2rem, 3.5vw, 3.5rem); }
.section--rule { border-top: 1px solid var(--line); }
.section-inner { max-width: var(--wrap); margin: 0 auto; }

.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.sec-title { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem); }
.sec-sub { color: var(--muted); margin: 1rem 0 0; }
.section--ink .sec-sub { color: rgba(255, 255, 255, .66); }
.section--ink .eyebrow { color: rgba(255, 255, 255, .55); }

.btn {
  display: inline-block; padding: 1.05rem 2.2rem;
  text-decoration: none; border: 1px solid var(--ink); background: none;
  cursor: pointer; transition: background .22s ease, color .22s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: none; color: var(--ink); }
.btn--light { border-color: var(--paper); color: var(--paper); }
.btn--light:hover { background: var(--paper); color: var(--ink); }

/* ---------------------------------------------------------------- hero */

.hero { position: relative; min-height: clamp(500px, 78vh, 780px); display: grid; align-items: end; color: var(--paper); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .18) 30%, rgba(0, 0, 0, .88) 100%);
}
.hero-inner { position: relative; max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 0 var(--gut) clamp(3rem, 6vw, 5rem); }
.hero .eyebrow { color: rgba(255, 255, 255, .8); }
.hero-title { font-size: clamp(2.6rem, 1.3rem + 5vw, 5.4rem); max-width: 15ch; font-weight: 500; text-shadow: 0 2px 30px rgba(0, 0, 0, .45); }
.hero-sub { max-width: 50ch; margin: 1.4rem 0 2.2rem; color: rgba(255, 255, 255, .84); font-size: 1.05rem; }
.hero--compact { min-height: clamp(340px, 48vh, 480px); }
.hero--compact .hero-title { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); max-width: 20ch; }
.hero-sub { text-shadow: 0 1px 18px rgba(0, 0, 0, .5); }

/* ---------------------------------------------------------------- cards */

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.75rem); content-visibility: auto; contain-intrinsic-size: 600px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* No border, no radius, no shadow. A rule under the image and air around it. */
.card { display: flex; flex-direction: column; text-decoration: none; }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bone); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .6, .2, 1); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 1.25rem 0 0; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.card-title { font-size: 1.4rem; transition: color .2s ease; }
.card:hover .card-title { color: var(--accent); }
.card-excerpt { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.65; }
.card-meta { margin: auto 0 0; padding-top: 1rem; color: var(--muted); display: flex; gap: .55rem; align-items: center; border-top: 1px solid var(--line-soft); }

.chip { display: inline-block; color: var(--accent); text-decoration: none; }
.chip--alt { color: var(--muted); }

.intro-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }

.autohide:not(:has(.card, details, .ig-tile)) { display: none; }

/* category strip */
.catstrip { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cat-card { position: relative; display: grid; align-items: end; min-height: 260px; text-decoration: none; color: var(--paper); background: var(--ink); overflow: hidden; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: transform .7s cubic-bezier(.2, .6, .2, 1), opacity .35s ease; }
.cat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 25%, rgba(0, 0, 0, .88) 100%); }
.cat-card:hover img { transform: scale(1.05); opacity: 1; }
.cat-card span {
  position: relative; z-index: 1; padding: 1.4rem;
  font-family: var(--display); font-size: 1.35rem; font-weight: 500;
  text-shadow: 0 1px 16px rgba(0, 0, 0, .6);
}
@media (max-width: 640px) {
  .catstrip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border: 0; gap: 1rem; background: none; scrollbar-width: none; }
  .catstrip::-webkit-scrollbar { display: none; }
  .cat-card { flex: 0 0 66%; scroll-snap-align: start; }
}

/* ---------------------------------------------------------------- article */

.progress { position: fixed; top: 0; left: 0; height: 2px; z-index: 60; width: 100%; transform-origin: 0 50%; background: var(--ink); animation: grow linear both; animation-timeline: scroll(root block); }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@supports not (animation-timeline: scroll()) { .progress { display: none; } }

.crumbs { color: var(--muted); padding: 1.75rem 0 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.post-head { max-width: 24ch; margin: 0 auto; padding: clamp(2.5rem, 5vw, 4.5rem) var(--gut) 2rem; text-align: center; }
.post-head { max-width: none; }
.post-head > * { max-width: 26ch; margin-inline: auto; }
.post-title { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4rem); font-weight: 500; margin: 1.2rem auto; }
.post-lede { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.post-meta { color: var(--muted); margin: 1.6rem auto 0; display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; max-width: none; }

.post-hero { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.post-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.prose { max-width: var(--read); margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) var(--gut); }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.5em; }
.prose h2 { font-size: 1.85rem; margin-top: 2.5em; }
.prose h3 { font-size: 1.35rem; margin-top: 2em; }
.prose a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .55em; }
.prose blockquote {
  margin: 2.2em 0; padding: 0 0 0 1.6em; border-left: 1px solid var(--ink);
  font-family: var(--display); font-size: 1.45rem; line-height: 1.35; font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.prose th, .prose td { text-align: left; padding: .8em .9em; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; }

/* The fact box. Plain, dense, quotable — this is what AI answers lift. */
.facts { max-width: var(--read); margin: 0 auto; padding: 0 var(--gut); }
.facts-inner { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: .5rem 0; display: grid; grid-template-columns: minmax(9.5rem, auto) 1fr; }
.facts dt { font-size: .69rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); padding: .85rem 1.5rem .85rem 0; border-bottom: 1px solid var(--line-soft); }
.facts dd { margin: 0; font-size: .95rem; padding: .85rem 0; border-bottom: 1px solid var(--line-soft); }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }
@media (max-width: 540px) {
  .facts-inner { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; border: 0; }
  .facts dd { padding-top: .2rem; }
}

/* ---------------------------------------------------------------- faq */

.faq { max-width: var(--read); margin: 0 auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--display); font-size: 1.3rem; padding: 1.4rem 2.5rem 1.4rem 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: .25rem; top: 50%; translate: 0 -50%; font-family: var(--body); font-size: 1.3rem; font-weight: 300; transition: rotate .25s ease; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 0 1.5rem; color: var(--muted); max-width: 60ch; }

/* ---------------------------------------------------------------- instagram */

.ig { text-align: center; }
.ig-mark { width: 62px; margin: 0 auto 1.75rem; }
.ig-handle { font-family: var(--display); font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); margin: 0 0 1.75rem; }
.ig-handle a { text-decoration: none; }
.ig-handle a:hover { color: var(--accent); }

/* ---------------------------------------------------------------- newsletter */

.nl { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 4vw, 4.5rem); align-items: center; max-width: var(--wrap); margin: 0 auto; }
@media (max-width: 860px) { .nl { grid-template-columns: 1fr; } }
.nl-title { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem); font-weight: 500; }
.nl-blurb { color: rgba(255, 255, 255, .68); margin: 1rem 0 0; }
.nl-row { display: flex; gap: 0; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.nl-row input { flex: 1; min-width: 0; padding: 1rem 0; border: 0; background: none; color: var(--paper); font: inherit; font-size: .98rem; }
.nl-row input::placeholder { color: rgba(255, 255, 255, .4); }
.nl-row button { border: 0; background: none; color: var(--paper); padding: 1rem 0 1rem 1.5rem; cursor: pointer; font-family: var(--body); text-transform: uppercase; letter-spacing: .16em; font-size: .69rem; font-weight: 500; white-space: nowrap; }
.nl-row button:hover { color: rgba(255, 255, 255, .6); }
.nl-hp { position: absolute; left: -9999px; }
.nl-msg { margin: 1rem 0 0; font-size: .88rem; }
.nl-msg[data-ok] { color: #9fd9d2; }
.nl-msg[data-err] { color: #f0a99a; }
.nl-note { font-size: .76rem; color: rgba(255, 255, 255, .45); margin: 1.1rem 0 0; letter-spacing: 0; text-transform: none; }
.nl-note a { color: inherit; }

.lead-form input, .lead-form textarea { width: 100%; padding: .9rem 0; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; font-size: .98rem; }
.lead-form input:focus, .lead-form textarea:focus { outline: 0; border-bottom-color: var(--ink); }

/* ---------------------------------------------------------------- footer */

.footer { background: var(--ink); color: rgba(255, 255, 255, .62); padding: clamp(3.5rem, 6vw, 6rem) var(--gut) 2.5rem; font-size: .9rem; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer-logo { width: 200px; margin-bottom: 1.5rem; }
.footer h4 { color: var(--paper); margin: 0 0 1.2rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--paper); }
.footer-social { display: flex; gap: 1.1rem; margin-top: 1.5rem; }
.footer-social svg { width: 19px; height: 19px; fill: currentColor; display: block; }
.footer-base { max-width: var(--wrap); margin: 3.5rem auto 0; padding-top: 1.75rem; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: rgba(255, 255, 255, .45); }

/* Blog drip. .card is display:flex, which beats the UA rule for [hidden], so it needs
   saying explicitly or a scheduled post would still show. */
[hidden] { display: none !important; }
.drip-notice { max-width: var(--read); margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) var(--gut); text-align: center; color: var(--muted); }

/* ---------------------------------------------------------------- reveal */

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 20%; }
  @keyframes rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
}
