/* Atelier Rose des Sables: her palette (aubergine, buttermilk, garnet, brass, powder blue) and type
   (Cormorant Garamond + Space Grotesk), self-hosted. */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap; src: url(/assets/fonts/cormorant-garamond-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300; font-display: swap; src: url(/assets/fonts/cormorant-garamond-latin-300-italic.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/cormorant-garamond-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/assets/fonts/space-grotesk-latin-wght-normal.woff2) format("woff2"); }

:root {
  --plum: #3c1629;
  --plum-2: #4d1d35;
  --butter: #fff0b3;
  --cream: #fffbe6;
  --garnet: #8e1b2d;
  --pop: #c8203c;
  --brass: #d5b261;
  --brass-deep: #8a6a22;
  --powder: #aec8e0;
  --ink-soft: #6b3a52;
  --line: rgba(60, 22, 41, .18);
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--butter); color: var(--plum); font: 400 16px/1.7 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
em { font-style: italic; }
h1, h2, h3, p, figure, blockquote, ul, dl, dd { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--pop); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--plum); color: var(--butter); padding: .7rem 1rem; border-radius: 2px; }
.skip:focus { top: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.muted { opacity: .75; font-weight: 400; text-transform: none; letter-spacing: 0; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* Type */
.label { font: 500 11px/1.4 var(--body); letter-spacing: .26em; text-transform: uppercase; color: var(--garnet); margin-bottom: 1rem; }
.label--brass { color: var(--brass); }
.label--center { text-align: center; }
.h2 { font: 300 clamp(2.4rem, 5.2vw, 4.2rem)/1.02 var(--display); letter-spacing: -.01em; margin-bottom: 1.6rem; }
.h2 em { font-weight: 400; color: var(--garnet); }
.h2--center { text-align: center; }
.h3 { font: 500 1.45rem/1.2 var(--display); margin: .2rem 0 .8rem; }
.lead { font: 300 1.55rem/1.4 var(--display); margin-bottom: 1.2rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 46px; padding: .8rem 1.5rem;
  font: 500 11px/1 var(--body); letter-spacing: .25em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: 2px; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn--small { min-height: 38px; padding: .6rem 1rem; }
.btn--block { width: 100%; }
.btn--plum, .btn--small { background: var(--plum); color: var(--butter); }
.btn--plum:hover, .btn--small:hover { background: var(--garnet); }
.btn--garnet { background: var(--garnet); color: var(--butter); }
.btn--garnet:hover { background: var(--plum); }
.btn--butter { background: var(--butter); color: var(--plum); }
.btn--butter:hover { background: var(--brass); }
.btn--ghost-light { background: transparent; color: var(--butter); border-color: rgba(255, 240, 179, .5); letter-spacing: .14em; }
.btn--ghost-light:hover { border-color: var(--brass); color: var(--brass); }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 240, 179, .92); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.top__in { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand__small { font: 500 9.5px/1 var(--body); letter-spacing: .38em; text-transform: uppercase; color: var(--garnet); margin-bottom: .3rem; }
.brand__name { font: 300 1.65rem/1 var(--display); }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) { font: 500 11px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; padding: .5rem 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.nav a:not(.btn):hover { background-size: 100% 1px; }
.menu-btn { display: none; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; color: var(--plum); }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 22px; height: 1.5px; background: currentColor; margin: auto; position: relative; transition: transform .3s var(--ease), opacity .2s; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -7px; }
.menu-btn__bars::after { top: 7px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero: a placemat on a plum, rose-textured table */
.hero {
  position: relative; color: var(--butter); overflow: hidden;
  background: linear-gradient(rgba(60, 22, 41, .82), rgba(60, 22, 41, .82)), url(/assets/img/plum.webp) center / 800px repeat, var(--plum);
}
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 160px 40px rgba(248, 201, 107, .12); }
.hero__table { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 4vw, 3.5rem); padding: clamp(2.5rem, 7vw, 5.5rem) 1.25rem; }
.hero__cutlery { width: 56px; height: auto; flex: none; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .45)); opacity: .95; }
.hero__cutlery--r { transform: scaleX(-1); }
.placemat { position: relative; width: min(100%, 560px); background: rgba(60, 22, 41, .55); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); border-radius: 3px; animation: settle 1.4s var(--ease) both; }
.placemat__edge { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); pointer-events: none; }
.placemat__edge rect { fill: none; stroke: var(--brass); stroke-width: .35; vector-effect: non-scaling-stroke; stroke-dasharray: 1 0; }
.placemat::before { content: ""; position: absolute; inset: 18px; border: 1px dashed rgba(213, 178, 97, .45); border-radius: 2px; pointer-events: none; }
.placemat__in { position: relative; padding: clamp(3rem, 7vw, 4.5rem) clamp(1.75rem, 6vw, 4rem); text-align: center; }
.hero__title { font: 300 clamp(2.7rem, 8vw, 4.4rem)/.95 var(--display); margin: .4rem 0 1rem; }
.hero__title span { display: block; }
.hero__motto { font: 300 clamp(1.35rem, 3vw, 1.7rem)/1.2 var(--display); color: var(--brass); margin-bottom: 1rem; }
.hero__lede { font-size: .92rem; line-height: 1.7; max-width: 30ch; margin: 0 auto 1.8rem; opacity: .92; }
.wl { max-width: 340px; margin: 0 auto; }
.wl__who { border: 0; padding: 0; margin: .9rem 0 1rem; text-align: left; }
.wl__who legend { padding: 0; margin-bottom: .55rem; font-size: 11px; }
.wl__who .label { display: inline; margin: 0; font-size: 10px; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.chip { position: relative; display: block; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: .45rem .5rem; border: 1px solid rgba(255, 240, 179, .35); border-radius: 2px; font-size: 11.5px; line-height: 1.25; text-align: center; transition: background .2s, border-color .2s, color .2s; }
.chip:hover span { border-color: var(--brass); }
.chip input:checked + span { background: var(--butter); color: var(--plum); border-color: var(--butter); }
.chip input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.wl__note { font-size: 11.5px; line-height: 1.6; margin-top: .9rem; opacity: .85; }
.wl__done { padding: .5rem 0; outline: none; }
.wl__done p { margin-bottom: 1.2rem; }
.hero__done-title { font: 300 2.1rem/1.1 var(--display); color: var(--brass); }

/* Fields */
.field { width: 100%; min-height: 48px; padding: .8rem .95rem; font: 400 16px/1.4 var(--body); color: var(--plum); background: var(--cream); border: 1px solid rgba(60, 22, 41, .28); border-radius: 2px; transition: border-color .2s, box-shadow .2s; }
.field:focus { outline: none; border-color: var(--garnet); box-shadow: 0 0 0 3px rgba(142, 27, 45, .18); }
.field[aria-invalid="true"] { border-color: var(--pop); }
.field--dark { background: transparent; color: var(--butter); border-color: rgba(255, 240, 179, .45); }
.field--dark::placeholder { color: rgba(255, 240, 179, .7); }
.field--dark:focus { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(213, 178, 97, .25); }
textarea.field { resize: vertical; min-height: 150px; }
select.field { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--plum) 50%), linear-gradient(135deg, var(--plum) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.form-msg { min-height: 1.4em; margin-top: .8rem; font-size: .9rem; outline: none; }
.form-msg.is-error { color: var(--pop); }
.hero .form-msg.is-error { color: #ffb3bf; }
.err { min-height: 0; font-size: .82rem; color: var(--pop); margin-top: .3rem; }
.err:empty { display: none; }

/* Story */
.story { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.story__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.story__img { position: sticky; top: 100px; }
.story__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px 2px 2px; box-shadow: 0 30px 50px -30px rgba(60, 22, 41, .6); }
.story__text > p:not(.label):not(.lead):not(.signature) { margin-bottom: 1.1rem; color: #4a2033; }
.pull { margin: 2.2rem 0; padding: 1.4rem 0; border-block: 1px solid var(--line); }
.pull p { font: 300 italic clamp(2rem, 4vw, 2.8rem)/1.1 var(--display); color: var(--garnet); text-align: center; }
.signature { font: 400 italic 2rem/1 var(--display); color: var(--garnet); margin-top: 1.6rem; }

/* Values */
.values { background: linear-gradient(rgba(174, 200, 224, .72), rgba(174, 200, 224, .72)), url(/assets/img/paper.webp) 0 0 / 600px repeat, var(--powder); padding: clamp(4rem, 9vw, 7rem) 0; }
.values__in { position: relative; background: var(--cream); padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem); box-shadow: 0 30px 60px -35px rgba(60, 22, 41, .45); }
.values__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.values__list li { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.values__num { display: block; font: 300 italic 1.4rem/1 var(--display); color: var(--brass-deep); margin-bottom: .8rem; }
.values__list p { font-size: .95rem; color: #4a2033; }

/* Collections */
.collections { padding: clamp(4.5rem, 10vw, 8rem) 0; background: var(--cream); }
.sets { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 3rem; }
.set { display: flex; flex-direction: column; background: var(--butter); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.set:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(60, 22, 41, .45); }
.set__img { aspect-ratio: 1; overflow: hidden; background: #fff; }
.set__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.set:hover .set__img img { transform: scale(1.04); }
.set__body { padding: clamp(1.5rem, 4vw, 2.4rem); display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.set__name { font: 300 clamp(2rem, 3.5vw, 2.6rem)/1 var(--display); }
.set__meta { font: 500 11px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--garnet); }
.set__body > p:not(.set__meta) { font-size: .95rem; color: #4a2033; }
.set__list { display: flex; flex-wrap: wrap; gap: .4rem; }
.set__list li { font-size: 12px; padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 99px; }
.set .btn { align-self: flex-start; margin-top: auto; }

/* Artisans */
.artisans { color: var(--butter); padding: clamp(4.5rem, 10vw, 8rem) 0; background: linear-gradient(rgba(60, 22, 41, .9), rgba(60, 22, 41, .9)), url(/assets/img/plum.webp) center / 800px repeat, var(--plum); }
.artisans .h2 em { color: var(--brass); }
.artisans__intro { max-width: 52ch; margin: 0 auto; text-align: center; opacity: .9; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: 3.5rem; }
.person { text-align: center; }
.person__img { width: min(220px, 70%); aspect-ratio: 1; object-fit: cover; margin: 0 auto 1.5rem; border-radius: 50%; border: 1px solid var(--brass); padding: 6px; }
.person__name { font: 300 1.9rem/1.1 var(--display); margin-bottom: .6rem; }
.person .label { margin-bottom: 1.1rem; }
.person > p:not(.label) { font-size: .93rem; opacity: .9; }
.person__quote { margin-top: 1.3rem; padding-top: 1.3rem; border-top: 1px solid rgba(213, 178, 97, .35); }
.person__quote p { font: 300 italic 1.35rem/1.35 var(--display); color: var(--brass); }

/* Gallery */
.gallery { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 19vw, 250px); gap: .8rem; margin-top: 3rem; }
.grid__item--tall { grid-row: span 2; }
.grid__item--wide { grid-column: span 3; }
.grid a { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 2px; background: var(--plum); }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .4s; }
.grid a:hover img { transform: scale(1.05); opacity: .92; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(94vw, 1100px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(30, 10, 20, .88); }
.lightbox img { max-width: 100%; max-height: 88vh; margin: auto; border-radius: 2px; }
.lightbox__close { position: fixed; top: 14px; right: 18px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--butter); color: var(--plum); font-size: 1.8rem; line-height: 1; cursor: pointer; }

/* Contact */
.contact { padding: clamp(4.5rem, 10vw, 8rem) 0; background: linear-gradient(rgba(174, 200, 224, .72), rgba(174, 200, 224, .72)), url(/assets/img/paper.webp) 0 0 / 600px repeat, var(--powder); }
.contact__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact .h2 em { color: var(--garnet); }
.facts { margin-top: 2.2rem; display: grid; gap: 1.2rem; }
.facts dt { font: 500 11px/1 var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--garnet); margin-bottom: .45rem; }
.facts dd { font: 300 1.45rem/1.3 var(--display); overflow-wrap: anywhere; }
.facts a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.cform { background: var(--cream); padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: 2px; box-shadow: 0 30px 60px -35px rgba(60, 22, 41, .45); }
.cform__row { margin-bottom: 1.15rem; }
.cform label { display: block; font: 500 11px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; margin-bottom: .55rem; }
.cform .muted { font-size: 11px; }
.cform .form-msg.is-ok { font: 300 italic 1.35rem/1.3 var(--display); color: var(--garnet); }

/* Footer */
.foot { background: var(--plum); color: var(--butter); padding: clamp(3.5rem, 8vw, 5.5rem) 0 2rem; }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 2.5rem; }
.foot__brand { font: 300 2.3rem/1 var(--display); margin-bottom: .9rem; }
.foot__tag { font: 300 1.2rem/1.3 var(--display); color: var(--brass); }
.foot ul { display: grid; gap: .6rem; font-size: .92rem; }
.foot a { text-decoration: none; overflow-wrap: anywhere; }
.foot a:hover { color: var(--brass); }
.foot__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 240, 179, .18); font-size: .82rem; opacity: .8; }
.foot__base em { font-family: var(--display); font-size: 1.1rem; }

/* Motion */
@keyframes settle { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .story__grid, .contact__grid { grid-template-columns: 1fr; }
  .story__img { position: static; max-width: 460px; }
  .values__list, .people { grid-template-columns: 1fr; }
  .people { gap: 3.5rem; max-width: 520px; margin-inline: auto; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid__item--wide, .grid__item--m-wide { grid-column: span 2; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.5rem; background: var(--butter); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(60, 22, 41, .4); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav a:not(.btn) { padding: 1.05rem 0; border-bottom: 1px solid var(--line); background: none; font-size: 12px; }
  .nav .btn { margin-top: 1.2rem; min-height: 48px; }
  .sets { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .hero__cutlery { display: none; }
  .hero__table { padding: 1.25rem .75rem 2.5rem; }
  .placemat::before { inset: 12px; }
  .placemat__edge { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
  .grid { grid-auto-rows: 160px; gap: .5rem; }
  .foot__grid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .chips { grid-template-columns: 1fr; }
}

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; }
