@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 400 500; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/dmsans.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Amiri"; src: url("/assets/fonts/amiri-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/assets/fonts/plexar-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/assets/fonts/plexar-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --cream: #FBF5EE;
  --sand: #F3EADF;
  --blush: #E9A6C0;
  --blush-ink: #C25B85; /* blush dark enough for large text on cream (3:1+) */
  --blush-light: #F3C6D6;
  --blush-pale: #FBE9EF;
  --butter: #F7E4A0;
  --butter-pale: #FDF6DC;
  --brass: #A07A3F;
  --plum: #5C1E3D;
  --ink: #3A1A2A;
  --muted: #6E4A5C;
  --white: #fff;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --radius: 22px;
  --shadow: 0 30px 60px -30px rgba(58, 26, 42, 0.45);
  --scallop: radial-gradient(circle at 50% 0, transparent 13px, #000 13.5px) 0 0 / 30px 100% repeat-x;
}
:lang(ar) {
  --serif: "Amiri", "Geeza Pro", serif;
  --sans: "IBM Plex Sans Arabic", "Geeza Pro", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: 76px; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
:lang(ar) body, body:lang(ar) { line-height: 1.85; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--plum); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.05; letter-spacing: -0.015em; margin: 0 0 0.45em; }
:lang(ar) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.35; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.kicker { font-weight: 800; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); margin-bottom: 1.1em; }
:lang(ar) .kicker { letter-spacing: 0; font-size: 0.95rem; font-weight: 700; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--plum); color: var(--white); padding: 10px 16px; border-radius: 999px; z-index: 10; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }
.star { width: 0.9em; height: 0.9em; fill: currentColor; flex: none; }

.wordmark { font: 800 1.05rem/1 "DM Sans", system-ui, sans-serif; letter-spacing: 0.34em; text-decoration: none; color: var(--plum); padding-inline-start: 0.34em; direction: ltr; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  background: var(--plum); color: var(--white); border: 0; border-radius: 999px;
  font: 700 1rem/1.2 var(--sans); padding: 17px 30px; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(92, 30, 61, 0.7); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(92, 30, 61, 0.8); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-sm { padding: 11px 18px; font-size: 0.9rem; box-shadow: none; }
.link { font-weight: 700; text-underline-offset: 5px; }

/* header */
.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter); background: color-mix(in srgb, var(--cream) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--brass) 18%, transparent);
}
.menu { display: flex; gap: clamp(14px, 2.2vw, 30px); }
.menu a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.menu a:hover { color: var(--plum); text-decoration: underline; text-underline-offset: 5px; }
.top-end { display: flex; align-items: center; gap: 14px; }
.langs { display: flex; gap: 2px; font-size: 0.85rem; }
.langs a, .lang-on { padding: 6px 9px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; }
.langs a:hover { color: var(--plum); background: var(--blush-pale); }
.lang-on { color: var(--plum); background: var(--sand); }
.langs [lang="ar"] { font-family: "Geeza Pro", "Noto Naskh Arabic", system-ui, sans-serif; font-size: 0.95rem; }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(24px, 5vw, 80px);
  padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(48px, 7vw, 96px); max-width: 1320px; margin: 0 auto;
}
.hero h1 { font-size: clamp(3.4rem, 9.5vw, 8rem); margin-bottom: 0.3em; }
:lang(ar) .hero h1 { font-size: clamp(3rem, 8vw, 6.4rem); }
.hero h1 .soft { display: block; font-style: italic; font-weight: 400; color: var(--blush-ink); font-size: 0.78em; line-height: 0.95; }
:lang(ar) .hero h1 .soft { font-style: normal; font-weight: 700; }
.lede { font-size: clamp(1.15rem, 1.8vw, 1.4rem); max-width: 32ch; }
.darija { font: italic 500 1.3rem/1.3 var(--serif); color: var(--blush-ink); }
:lang(ar) .darija { font-style: normal; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 28px; }
.arch { margin: 0; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; background: var(--sand); box-shadow: var(--shadow); outline: 1px solid color-mix(in srgb, var(--brass) 45%, transparent); outline-offset: 10px; }
.hero-media { aspect-ratio: 3 / 4; height: min(calc(100svh - 160px), 760px); width: auto; max-width: 100%; justify-self: center; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ribbon (always runs left to right; text inside keeps its own direction) */
.ribbon { background: var(--plum); color: var(--blush-light); overflow: hidden; padding: 14px 0; direction: ltr; }
.ribbon-track { display: flex; width: max-content; animation: slide 42s linear infinite; }
.ribbon span { display: inline-flex; align-items: center; gap: 48px; font: italic 500 1.15rem/1 var(--serif); padding-inline-end: 48px; white-space: nowrap; }
.ribbon span:lang(ar), :lang(ar) .ribbon span { font-style: normal; }
.ribbon .star { color: var(--butter); width: 14px; height: 14px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* manifesto */
.manifesto { max-width: 860px; margin: 0 auto; text-align: center; padding: clamp(64px, 9vw, 120px) var(--gutter); }
.manifesto h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.manifesto p:last-child { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin-inline: auto; }

/* scallop section edges */
.scallop-top { position: relative; }
.scallop-top::before { content: ""; position: absolute; inset-inline: 0; top: -14px; height: 15px; background: inherit; -webkit-mask: var(--scallop); mask: var(--scallop); transform: scaleY(-1); }

/* collection */
.collection { background: var(--blush-pale); padding: clamp(56px, 8vw, 110px) var(--gutter); }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; max-width: 1240px; margin: 0 auto; }
.product-media { width: 100%; max-width: 560px; justify-self: center; }
.frames { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sand); }
.frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.frame.on { opacity: 1; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.swatch { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; background: var(--white); font: 700 0.95rem/1 var(--sans); color: var(--ink); cursor: pointer; border: 2px solid transparent; }
.swatch[aria-pressed="true"] { border-color: var(--plum); }
.dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(58, 26, 42, 0.2); }
.tagline { font: italic 500 1.35rem/1.3 var(--serif); color: var(--plum); }
:lang(ar) .tagline { font-style: normal; }
.features { list-style: none; padding: 0; margin: 0 0 22px; }
.features li { padding-block: 13px; padding-inline-start: 32px; border-top: 1px dashed rgba(92, 30, 61, 0.25); position: relative; }
.features li::before { content: ""; position: absolute; inset-inline-start: 0; top: 18px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, var(--plum) 35%, var(--blush-light) 38%); }
.sizes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; }
.sizes span { padding: 4px 10px; border: 1px solid rgba(92, 30, 61, 0.3); border-radius: 8px; font-size: 0.9rem; font-weight: 600; }

/* bodies */
.bodies { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(56px, 8vw, 110px) var(--gutter); max-width: 1320px; margin: 0 auto; }
.looks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(16px, 2vw, 28px); }
.looks figure { margin: 0; }
.looks img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.looks figcaption { margin-top: 12px; font-size: 0.95rem; color: var(--muted); }

/* care */
.care { background: var(--plum); color: var(--cream); text-align: center; padding: clamp(64px, 9vw, 120px) var(--gutter); }
.care .kicker { color: var(--butter); }
.care h2 { color: var(--white); max-width: 22ch; margin-inline: auto; }
.care-list { list-style: none; padding: 0; margin: 48px auto 0; max-width: 1100px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.care-list li { padding: 32px 26px; border: 1px solid color-mix(in srgb, var(--butter) 35%, transparent); border-radius: 999px 999px var(--radius) var(--radius); }
.care-list .star { color: var(--butter); width: 26px; height: 26px; margin: 8px auto 14px; display: block; }
.care-list h3 { color: var(--white); }
.care-list p { color: var(--blush-light); margin: 0; }

/* gift */
.gift { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; background: var(--butter-pale); padding: clamp(56px, 8vw, 110px) var(--gutter); }
.gift figure { margin: 0; max-width: 520px; justify-self: center; }
.gift img { border-radius: var(--radius); box-shadow: var(--shadow); }
.gift-copy { max-width: 560px; }
.tip { padding-inline-start: 16px; border-inline-start: 3px solid var(--blush); }

/* join */
.join { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: start; background: var(--sand); padding: clamp(56px, 8vw, 110px) var(--gutter); }
.join-copy p:last-child { font-size: 1.15rem; color: var(--muted); max-width: 36ch; }
.join-form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); display: grid; gap: 18px; box-shadow: var(--shadow); }
.join-form > label { display: grid; gap: 8px; font-weight: 700; }
.opt { font-weight: 400; color: var(--muted); }
.join-form input[name="name"], .join-form input[name="contact"] {
  font: 400 1.05rem/1.3 var(--sans); padding: 15px 16px; border-radius: 14px; border: 1.5px solid rgba(92, 30, 61, 0.3); background: var(--cream); color: var(--ink); width: 100%;
}
:lang(ar) .join-form input[name="contact"] { text-align: right; }
.join-form input:focus { outline: 3px solid var(--blush); outline-offset: 1px; border-color: var(--plum); }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
legend { font-weight: 700; margin-bottom: 8px; padding: 0; width: 100%; }
.chip { position: relative; display: inline-flex; padding: 10px 18px; border-radius: 999px; border: 1.5px solid rgba(92, 30, 61, 0.3); background: var(--white); font-weight: 600; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip:has(input:checked) { background: var(--plum); color: var(--white); border-color: var(--plum); }
.chip:has(input:focus-visible) { outline: 3px solid var(--blush); outline-offset: 2px; }
.join-form > .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 0.95rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--plum); flex: none; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; }
.join-form .btn { justify-self: start; }
.status { min-height: 1.5em; margin: 0; font-weight: 700; }
.status.ok { color: #2F6B3F; }
.status.err { color: #A3243B; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gutter); }
.faq details { border-top: 1px solid rgba(92, 30, 61, 0.2); }
.faq details:last-of-type { border-bottom: 1px solid rgba(92, 30, 61, 0.2); }
.faq summary { cursor: pointer; list-style: none; padding-block: 22px; padding-inline-end: 40px; font: 600 1.25rem/1.35 var(--serif); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 18px; font: 400 1.6rem/1 system-ui, sans-serif; color: var(--plum); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; max-width: 64ch; }

/* footer */
.foot { text-align: center; padding: 56px var(--gutter) 40px; background: var(--blush-pale); }
.foot nav { display: flex; justify-content: center; gap: 24px; margin-bottom: 12px; }
.foot nav a { font-weight: 700; }
.foot p { color: var(--muted); margin-top: 14px; }
.small { font-size: 0.85rem; }

/* legal + 404 */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 90px) var(--gutter); }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.notfound > div { padding-block: 22px; border-bottom: 1px solid rgba(92, 30, 61, 0.15); }
.notfound h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

@media (max-width: 1060px) {
  .menu { display: none; }
}
@media (max-width: 900px) {
  .hero, .product, .gift, .join, .bodies { grid-template-columns: 1fr; }
  .hero-media { height: auto; max-width: 420px; width: 100%; }
  .care-list { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 560px) {
  .top { padding-inline: 14px; gap: 8px; }
  .top .btn-sm { display: none; }
  .hero-cta .btn, .join-form .btn { width: 100%; justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ribbon-track { animation: none; }
  .btn, .frame { transition: none; }
}
