/* Maison Almas. Blush parchment, burgundy and gold from the brief. Gold is the one accent:
   it draws the mark, the ornament and the primary buttons, nothing else. */
:root {
  --parch: #F5ECE6;
  --burg: #3B111F;
  --gold: #C9A24A;
  --display: "Italiana", "Didot", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --gut: clamp(1rem, 4vw, 3.5rem);
  --max: 1180px;
  --kite: polygon(50% 0, 100% 34px, 100% 100%, 0 100%, 0 34px);

  --page: #F5ECE6;
  --head-bg: rgb(245 236 230 / .95);
  --head-ink: #3B111F;
  --head-line: rgb(59 17 31 / .14);
  --head-btn-bg: #3B111F;
  --head-btn-ink: #F5ECE6;
  --focus: #3B111F;

  /* rooms, light */
  --he-bg: #3B111F; --he-ink: #F5ECE6; --he-mu: #DCC6C0; --he-ac: #C9A24A; --he-bb: #C9A24A; --he-bi: #2A0B15;
  --ho-bg: #F5ECE6; --ho-ink: #3B111F; --ho-mu: #6B4850; --ho-ac: #745511; --ho-bb: #3B111F; --ho-bi: #F5ECE6;
  --ri-bg: #EAD5CF; --ri-ink: #3B111F; --ri-mu: #5E3B42; --ri-ac: #684C0E; --ri-bb: #3B111F; --ri-bi: #F5ECE6;
  --of-bg: #C9A24A; --of-ink: #2A0B15; --of-mu: #4A2416; --of-ac: #3B111F; --of-bb: #3B111F; --of-bi: #F5ECE6;
  --or-bg: #4A1828; --or-ink: #F5ECE6; --or-mu: #DCC4C0; --or-ac: #D9B661; --or-bb: #C9A24A; --or-bi: #2A0B15;
  --fo-bg: #250A13; --fo-ink: #F5ECE6; --fo-mu: #C9B2AE; --fo-ac: #C9A24A; --fo-bb: #C9A24A; --fo-bi: #250A13;

  /* facet cards inside the house room */
  --oud-bg: #3B111F; --oud-ink: #F5ECE6; --oud-mu: #DCC6C0; --oud-ac: #C9A24A;
  --fac-bg: #ECDAD3; --fac-ink: #3B111F; --fac-mu: #63434A; --fac-ac: #6A4E10;
  --ring: #A5812F;
}

:root[data-theme="dark"] {
  --page: #1E080F;
  --head-bg: rgb(30 8 15 / .95);
  --head-ink: #F3E6DE;
  --head-line: rgb(243 230 222 / .12);
  --head-btn-bg: #D4B061;
  --head-btn-ink: #1E080F;
  --focus: #E6C77A;

  --he-bg: #1E080F; --he-ink: #F3E6DE; --he-mu: #CDB3AD; --he-ac: #D4B061; --he-bb: #D4B061; --he-bi: #1E080F;
  --ho-bg: #2A1118; --ho-ink: #F3E6DE; --ho-mu: #CDB5AE; --ho-ac: #D4B061; --ho-bb: #D4B061; --ho-bi: #1E080F;
  --ri-bg: #181012; --ri-ink: #F0E4DD; --ri-mu: #C2ABA6; --ri-ac: #D4B061; --ri-bb: #D4B061; --ri-bi: #1E080F;
  --of-bg: #B8923F; --of-ink: #22080F; --of-mu: #3E1C10; --of-ac: #22080F; --of-bb: #22080F; --of-bi: #F3E6DE;
  --or-bg: #3B111F; --or-ink: #F3E6DE; --or-mu: #D6BEB8; --or-ac: #D9B661; --or-bb: #D4B061; --or-bi: #1E080F;
  --fo-bg: #120508; --fo-ink: #F0E4DD; --fo-mu: #B9A39F; --fo-ac: #D4B061; --fo-bb: #D4B061; --fo-bi: #120508;

  --oud-bg: #4A1828; --oud-ink: #F3E6DE; --oud-mu: #D6BEB8; --oud-ac: #D9B661;
  --fac-bg: #351820; --fac-ink: #F3E6DE; --fac-mu: #CDB5AE; --fac-ac: #D4B061;
  --ring: #D4B061;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--head-ink);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: .01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 30; padding: .75rem 1rem; background: var(--burg); color: var(--parch); }
.skip:focus { top: 1rem; }

main > section, .site-foot { background: var(--s-bg); color: var(--s-ink); }
main > section :focus-visible, .site-foot :focus-visible { outline-color: var(--s-ink); }
.s-hero   { --s-bg: var(--he-bg); --s-ink: var(--he-ink); --s-mu: var(--he-mu); --s-ac: var(--he-ac); --s-bb: var(--he-bb); --s-bi: var(--he-bi); }
.s-house  { --s-bg: var(--ho-bg); --s-ink: var(--ho-ink); --s-mu: var(--ho-mu); --s-ac: var(--ho-ac); --s-bb: var(--ho-bb); --s-bi: var(--ho-bi); }
.s-ritual { --s-bg: var(--ri-bg); --s-ink: var(--ri-ink); --s-mu: var(--ri-mu); --s-ac: var(--ri-ac); --s-bb: var(--ri-bb); --s-bi: var(--ri-bi); }
.s-offer  { --s-bg: var(--of-bg); --s-ink: var(--of-ink); --s-mu: var(--of-mu); --s-ac: var(--of-ac); --s-bb: var(--of-bb); --s-bi: var(--of-bi); }
.s-order  { --s-bg: var(--or-bg); --s-ink: var(--or-ink); --s-mu: var(--or-mu); --s-ac: var(--or-ac); --s-bb: var(--or-bb); --s-bi: var(--or-bi); }
.site-foot{ --s-bg: var(--fo-bg); --s-ink: var(--fo-ink); --s-mu: var(--fo-mu); --s-ac: var(--fo-ac); --s-bb: var(--fo-bb); --s-bi: var(--fo-bi); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .5rem var(--gut);
  background: var(--head-bg);
  color: var(--head-ink);
  border-bottom: 1px solid var(--head-line);
}
.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: .04em;
  white-space: nowrap;
}
.brand-mark { width: 22px; height: 32px; fill: var(--ring); color: var(--ring); }
.nav-wide { display: none; gap: 2rem; margin-left: auto; }
.nav-wide a, .nav-menu nav a {
  min-height: 44px; display: inline-flex; align-items: center;
  text-decoration: none; font-size: .9375rem; letter-spacing: .02em;
}
.nav-wide a:hover { text-decoration: underline; text-underline-offset: .4em; text-decoration-thickness: 1px; }
.head-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }

.theme-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--head-line);
  background: transparent; color: inherit; cursor: pointer;
  clip-path: none;
  border-radius: 50%;
}
.theme-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.theme-btn .moon { display: none; fill: currentColor; stroke: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
.theme-btn:focus-visible { outline-color: var(--focus); }

.nav-menu { position: relative; }
.nav-menu summary {
  list-style: none; cursor: pointer;
  min-height: 44px; padding: 0 1rem;
  display: inline-flex; align-items: center;
  border: 1px solid var(--head-line);
  font-size: .9375rem; letter-spacing: .02em;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu nav {
  position: absolute; right: 0; top: calc(100% + .5rem);
  min-width: 14rem; padding: .5rem 1.25rem;
  display: grid;
  background: var(--page);
  border: 1px solid var(--head-line);
  box-shadow: 0 18px 40px rgb(30 8 15 / .2);
}
.nav-menu nav a + a { border-top: 1px solid var(--head-line); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 1.9rem;
  background: var(--s-bb); color: var(--s-bi);
  font-family: var(--sans); font-weight: 500; font-size: .9375rem; letter-spacing: .06em;
  text-decoration: none; white-space: nowrap;
  border-radius: 0;
  transition: transform .2s ease, box-shadow .25s ease;
}
.btn:hover { box-shadow: 0 0 0 1px var(--s-bg), 0 0 0 2px var(--s-bb); }
.btn:active { transform: translateY(1px); }
.site-head .btn { background: var(--head-btn-bg); color: var(--head-btn-ink); min-height: 44px; padding: 0 1.2rem; font-size: .875rem; }
.site-head .btn-head { display: none; }

/* ---------- hero: a crest, set on the centre line ---------- */
.s-hero {
  position: relative;
  display: grid; justify-items: center; text-align: center;
  padding: clamp(3rem, 7vw, 5.5rem) var(--gut) clamp(4.5rem, 9vw, 7rem);
}
.crest { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); width: min(100%, 34rem); }
.crest-line {
  flex: 1; height: 12px;
  background: var(--s-ac);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M0 5.6h104v.8H0Z M112 1 117 6 112 11 107 6Z'/%3E%3C/svg%3E") right center / 100% 12px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M0 5.6h104v.8H0Z M112 1 117 6 112 11 107 6Z'/%3E%3C/svg%3E") right center / 100% 12px no-repeat;
}
.crest-line:last-child { transform: scaleX(-1); }
.hero-mark { width: clamp(84px, 12vw, 120px); height: auto; overflow: visible; }
.hero-mark .cap, .hero-mark .core { fill: var(--s-ac); }
.hero-mark .outline { fill: none; stroke: var(--s-ac); stroke-width: 7; stroke-linejoin: round; }
.hero-name {
  margin-top: 1.4rem;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: .32em;
  padding-left: .32em;
  color: var(--s-ac);
}
.s-hero h1 {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5.2rem);
  line-height: 1.04;
  max-width: 15ch;
}
.s-hero .lede { margin-top: 1.5rem; max-width: 34rem; color: var(--s-mu); font-size: clamp(1.05rem, 1rem + .25vw, 1.2rem); font-weight: 300; }
.s-hero .btn { margin-top: 2.25rem; }
.frieze {
  position: absolute; left: 0; right: 0; bottom: 1.5rem;
  height: 14px;
  background: var(--s-ac);
  opacity: .55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 14'%3E%3Cpath d='M18 1 23 6 18 13 13 6Z M0 6.6h10v.8H0Z M26 6.6h10v.8H26Z'/%3E%3C/svg%3E") center / 36px 14px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 14'%3E%3Cpath d='M18 1 23 6 18 13 13 6Z M0 6.6h10v.8H0Z M26 6.6h10v.8H26Z'/%3E%3C/svg%3E") center / 36px 14px repeat-x;
}

/* ---------- the house: three facets, oud given the most room ---------- */
.s-house { padding: clamp(4.5rem, 9vw, 8rem) var(--gut); }
.s-house h2 { font-size: clamp(2.3rem, 1.6rem + 3vw, 4rem); line-height: 1.05; max-width: 12ch; }
.house-grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}
.facet {
  clip-path: var(--kite);
  padding: 4.25rem clamp(1.5rem, 3vw, 2.5rem) 2.25rem;
  background: var(--fac-bg); color: var(--fac-ink);
  display: grid; align-content: start; gap: .9rem;
}
.facet p { color: var(--fac-mu); max-width: 34rem; }
.facet h3 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); line-height: 1.1; }
.glyph { width: 30px; height: 40px; fill: var(--fac-ac); color: var(--fac-ac); }
.facet-oud { background: var(--oud-bg); color: var(--oud-ink); }
.facet-oud p { color: var(--oud-mu); font-size: 1.125rem; }
.facet-oud .glyph { fill: var(--oud-ac); color: var(--oud-ac); width: 44px; height: 58px; }
.facet-oud h3 { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.6rem); }
.facet-oud :focus-visible { outline-color: var(--oud-ink); }

/* ---------- layering ritual ---------- */
.s-ritual {
  padding: clamp(4.5rem, 9vw, 7.5rem) var(--gut);
  display: grid; gap: 3rem;
  grid-template-columns: minmax(0, 1fr);
}
.s-ritual h2 { font-size: clamp(2.3rem, 1.6rem + 3vw, 4rem); line-height: 1.05; }
.ritual-copy > p { margin-top: 1.25rem; max-width: 32rem; color: var(--s-mu); }
.layers { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
.layers li { display: grid; grid-template-columns: 28px 1fr; gap: 1rem; align-items: start; }
.layers svg { width: 24px; height: 32px; fill: var(--s-ac); color: var(--s-ac); }
.layers h3 { font-family: var(--sans); font-weight: 500; font-size: 1.0625rem; letter-spacing: .02em; }
.layers p { color: var(--s-mu); }
.ritual-figure { width: min(100%, 360px); justify-self: center; height: auto; }
.ritual-figure path { stroke-linejoin: round; }
.ring-outer { fill: none; stroke: var(--ring); stroke-width: 1.2; stroke-dasharray: 3 4; }
.ring-mid { fill: none; stroke: var(--ring); stroke-width: 6; }
.ring-core { fill: var(--ring); }

/* ---------- the list: a printed card on a gold room ---------- */
.s-offer { padding: clamp(4rem, 8vw, 7rem) var(--gut); display: grid; justify-items: center; }
.menu-card {
  position: relative;
  width: min(100%, 54rem);
  padding: clamp(2.75rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4.5rem);
  border: 1px solid var(--s-ink);
  outline: 1px solid var(--s-ink);
  outline-offset: -8px;
  text-align: center;
}
.corner {
  position: absolute; width: 14px; height: 18px;
  background: var(--s-ink);
  clip-path: polygon(50% 0, 100% 40%, 50% 100%, 0 40%);
}
.tl { top: -9px; left: -7px; } .tr { top: -9px; right: -7px; }
.bl { bottom: -9px; left: -7px; } .br { bottom: -9px; right: -7px; }
.s-offer h2 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem); line-height: 1.05; }
.menu {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  display: grid; gap: 1.75rem 3rem;
  grid-template-columns: minmax(0, 1fr);
}
.menu div { display: grid; gap: .25rem; }
.menu dt { font-family: var(--display); font-size: 1.7rem; line-height: 1.15; }
.menu dd { margin: 0; color: var(--s-mu); font-size: 1rem; }
.menu-note { margin-top: 2.5rem; font-weight: 500; letter-spacing: .04em; }

/* ---------- order ---------- */
.s-order {
  padding: clamp(4.5rem, 9vw, 8rem) var(--gut);
  display: grid; gap: 2.5rem;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
}
.order-mark { width: 96px; height: 138px; fill: var(--s-ac); color: var(--s-ac); }
.s-order h2 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.4rem); line-height: 1.04; }
.order-copy > p { margin-top: 1.25rem; max-width: 34rem; color: var(--s-mu); }
.order-copy blockquote {
  margin: 2rem 0 2.25rem;
  padding: 1.1rem 0;
  border-top: 1px solid rgb(217 182 97 / .5);
  border-bottom: 1px solid rgb(217 182 97 / .5);
  max-width: 34rem;
}
.order-copy blockquote p { font-family: var(--display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.25; }
.order-copy blockquote p::before { content: "\201C"; }
.order-copy blockquote p::after { content: "\201D"; }

/* ---------- footer ---------- */
.site-foot { padding: 3rem var(--gut) 2.5rem; display: grid; gap: 1.5rem; }
.foot-brand { display: flex; gap: 1rem; align-items: center; }
.foot-mark { width: 28px; height: 40px; fill: var(--s-ac); color: var(--s-ac); flex: none; }
.foot-name { font-family: var(--display); font-size: 1.5rem; letter-spacing: .04em; }
.foot-brand p:not(.foot-name) { color: var(--s-mu); font-size: .9375rem; }
.foot-link { min-height: 44px; display: inline-flex; align-items: center; justify-self: start; text-underline-offset: .3em; }
.credit { font-size: .8125rem; color: var(--s-mu); }
.credit a { color: var(--s-ink); text-underline-offset: .25em; }

/* ---------- tablet ---------- */
@media (min-width: 700px) {
  .house-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facet-oud { grid-column: 1 / -1; padding-top: 5rem; }
  .menu { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: left; }
  .s-ritual { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); column-gap: 2.5rem; align-items: center; }
  .ritual-figure { order: -1; }
  .s-order { grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
  .order-mark { width: 120px; height: 172px; }
  .site-foot { grid-template-columns: 1fr auto; align-items: center; }
  .credit { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px solid rgb(201 162 74 / .25); }
}

/* ---------- desktop ---------- */
@media (min-width: 1080px) {
  .nav-wide { display: flex; }
  .nav-wide + .head-actions { margin-left: 0; }
  .nav-menu { display: none; }
  .site-head .btn-head { display: inline-flex; }
  .s-house, .s-ritual, .s-order {
    padding-left: max(var(--gut), calc((100vw - var(--max)) / 2));
    padding-right: max(var(--gut), calc((100vw - var(--max)) / 2));
  }
  .house-grid { grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; }
  .facet-oud { grid-column: 1; grid-row: 1 / span 2; padding: 6rem 3.25rem 3.25rem; align-content: end; min-height: 34rem; }
  .s-house h2 { margin-left: 0; }
  .s-ritual { column-gap: 5rem; }
  .ritual-figure { width: min(100%, 440px); }
  .order-mark { width: 150px; height: 214px; }
}

/* ---------- signature motion: the mark draws itself once, then the inner stone sets ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-mark .outline { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s .2s cubic-bezier(.5,0,.2,1) forwards; }
  .hero-mark .core { animation: set .7s 1.5s ease-out both; transform-origin: 50px 74px; }
  .hero-mark .cap { animation: set .6s 1.1s ease-out both; }
  .crest-line { animation: reach 1.2s .3s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes set { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
  @keyframes reach { from { opacity: 0; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
