/* =========================================================
   MURAAGO: Landing page
   Style: "Maison" direction, recoloured to match the Muraago logo
   (the logo is the source of truth for colour).
   ========================================================= */

/* Self-hosted fonts (SIL Open Font License 1.1, see assets/fonts/OFL-*.txt).
   Variable fonts, Latin subset, from Google Fonts. */
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 400; font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url("../assets/fonts/jost-latin.woff2") format("woff2");
}

:root {
  /* Sampled from the Muraago logo artwork */
  --emerald-deep: #0E261A;   /* logo background, centre/dark */
  --emerald:      #132B1E;   /* logo background, mid */
  --emerald-lite: #1E3A2D;   /* logo background, light corner */
  --gold:         #C9974A;   /* between logo golds #BD8838 / #D6A24F */
  --gold-hi:      #D6A24F;   /* logo highlight gold */

  /* Maison neutrals */
  --bone:  #F5F0E6;
  --bone-2:#EFE8DA;
  --line:  #E3DACA;
  --ink:   #1D1B17;
  --muted: #6E665A;
  --on-emerald: #EDE6D6;
  --on-emerald-muted: #CFC6B2;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;
  --pad-x: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------- shared ---------- */
.eyebrow {
  font: 400 11px/1.4 var(--sans);
  letter-spacing: .32em;
  text-transform: uppercase;
}
.link {
  font: 400 11.5px/1 var(--sans);
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 6px;
  transition: opacity .4s;
}
.link:hover { opacity: .7; }

/* Gold hairline with a small diamond, echoing the ornament under the logo */
.rule {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--gold);
}
.rule::before, .rule::after {
  content: ""; width: 84px; height: 1px; background: currentColor; opacity: .7;
}
.rule i {
  width: 7px; height: 7px; border: 1px solid currentColor;
  transform: rotate(45deg); display: block;
}

/* ---------- header ---------- */
.nav {
  position: absolute; z-index: 10; top: 0; left: 0; right: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 26px var(--pad-x);
  color: var(--on-emerald);
  font: 400 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
}
.nav a { text-decoration: none; transition: color .3s; }
.nav a:hover { color: var(--gold-hi); }
.nav .l a { margin-right: 28px; }
.nav .r { text-align: right; }
.nav .r a { margin-left: 28px; }
.wordmark {
  font: 500 20px/1 var(--serif); letter-spacing: .42em; padding-left: .42em;
  color: var(--gold-hi); text-align: center;
}
@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr; }
  .nav .l, .nav .r { display: none; }
}

/* ---------- hero: the logo is the centrepiece ---------- */
.hero {
  position: relative;
  min-height: min(100vh, 980px); min-height: min(100svh, 980px);
  display: grid; place-items: center; text-align: center;
  padding: 110px var(--pad-x) 70px;
  color: var(--on-emerald);
  /* Same lighting as the logo artwork (sampled): centre #142C20, edges #112A1E→#051B12,
     soft light from the top-left. Centred on the logo so its edges meet matching tones. */
  background:
    radial-gradient(ellipse 60% 55% at 46% 40%, rgba(28,54,41,.55) 0%, rgba(28,54,41,0) 70%),
    radial-gradient(ellipse 70% 65% at 50% 42%, #142C20 0%, #10281C 35%, #08201A 60%, #03170F 100%);
  overflow: hidden;
}
.hero-logo {
  width: min(780px, 94vw); height: auto;
  margin: 0 auto;
  /* Soft oval fade (no straight edges) so the JPEG's baked-in background melts away.
     Tuned so the horse, wordmark and diamond ornament stay fully visible. */
  -webkit-mask-image: radial-gradient(ellipse 54% 54% at 50% 50%, #000 72%, transparent 100%);
          mask-image: radial-gradient(ellipse 54% 54% at 50% 50%, #000 72%, transparent 100%);
  animation: rise 1.6s cubic-bezier(.2,.7,.2,1) both;
}
.hero-tagline {
  font: italic 300 clamp(22px, 2.6vw, 32px)/1.3 var(--serif);
  color: var(--on-emerald);
  margin: 8px 0 30px;
  animation: rise 1.6s .25s cubic-bezier(.2,.7,.2,1) both;
}
.hero .link { color: var(--gold-hi); animation: rise 1.6s .45s cubic-bezier(.2,.7,.2,1) both; display: inline-block; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Promise ---------- */
.promise { text-align: center; padding: clamp(80px, 12vw, 130px) var(--pad-x); }
.promise p {
  font: 300 clamp(26px, 3.4vw, 42px)/1.3 var(--serif);
  max-width: 880px; margin: 28px auto 0;
}

/* ---------- Four families ---------- */
.families {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) { .families { grid-template-columns: repeat(2, 1fr); } }
.fam { background: var(--bone); text-align: center; padding: 38px 18px 34px; transition: background .5s; position: relative; }
.fam:hover { background: var(--bone-2); }
.fam img {
  width: 80%; margin: 0 auto 20px; aspect-ratio: 1; object-fit: contain;
  mix-blend-mode: multiply; transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.fam:hover img { transform: scale(1.05); }
.fam h3 { margin: 0; font: 400 11.5px var(--sans); letter-spacing: .3em; text-transform: uppercase; }
.fam p { margin: 6px 0 0; font: italic 300 16px var(--serif); color: var(--muted); }

/* ---------- The Maison ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; background: var(--emerald); color: var(--on-emerald); }
@media (max-width: 760px) { .story { grid-template-columns: 1fr; } }
.story-img { position: relative; min-height: 440px; }
.story-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.story .txt { padding: clamp(44px, 6vw, 96px); align-self: center; }
.story h2 { font: 300 clamp(30px, 3.6vw, 46px)/1.12 var(--serif); margin: 0 0 24px; }
.story ol { list-style: none; padding: 0; margin: 0; }
.story li {
  padding: 15px 0;
  border-top: 1px solid rgba(237,230,214,.18); font-size: 15px; color: var(--on-emerald-muted);
}

/* ---------- Worn: lifestyle gallery ---------- */
.worn { text-align: center; padding: clamp(80px, 11vw, 120px) 0 0; }
.worn h2 { font: 300 clamp(30px, 3.6vw, 46px)/1.12 var(--serif); margin: 28px var(--pad-x) clamp(40px, 5vw, 56px); }
.worn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
@media (max-width: 760px) { .worn-grid { grid-template-columns: repeat(2, 1fr); } }
.worn-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Contact ---------- */
.contact { padding: clamp(80px, 11vw, 120px) var(--pad-x); text-align: center; }
.contact h2 { font: 300 clamp(32px, 4vw, 50px)/1.1 var(--serif); margin: 28px 0 46px; }
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  max-width: 1040px; margin: 0 auto; background: var(--line); border: 1px solid var(--line);
}
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--bone); padding: 38px 26px; }
.card .eyebrow { color: var(--muted); font-size: 10.5px; }
.card .val { font: 400 20px/1.45 var(--serif); margin: 12px 0 18px; }
.card .val a { text-decoration: none; }
.card .link { color: var(--emerald-lite); font-size: 10.5px; }

/* ---------- footer ---------- */
.foot {
  background: var(--emerald-deep); color: var(--on-emerald-muted);
  text-align: center; padding: 56px var(--pad-x) 46px;
}
.foot .wordmark { font-size: 18px; margin-bottom: 8px; }
.foot .sub { font: 400 9.5px var(--sans); letter-spacing: .5em; color: var(--gold); margin-bottom: 24px; }
.foot p { margin: 4px 0; font-size: 12px; letter-spacing: .08em; }
.foot .rule { margin: 26px 0; }
.foot .small { font-size: 11px; opacity: .7; }


/* ---------- accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
