:root {
  color-scheme: dark;
  --ink: #100d0c;
  --panel: #271c16;
  --cream: #f6ebdb;
  --muted: #d8c8b5;
  --gold: #d6b47c;
  --line: #a687554f;
  --body-font: "Segoe UI", Tahoma, Arial, sans-serif;
  --display-font: "Arabic Typesetting", "Traditional Arabic", "Noto Naskh Arabic", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--cream); background: var(--ink); font: 1rem/1.8 var(--body-font); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
img { display: block; }
h1, h2, h3, p { margin: 0; }
section[id] { scroll-margin-top: 1rem; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.4em; height: 1.4em; flex: none; }
.frame { width: min(100% - 96px, 1280px); margin-inline: auto; }

.header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(2rem, 5vw, 5.5rem);
  min-height: 68px;
  padding: 0 clamp(24px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font: 2.5rem/1 var(--display-font); white-space: nowrap; }
.brand-mark { width: 20px; height: 20px; color: var(--gold); }
.navigation { display: flex; gap: clamp(1.2rem, 4vw, 3.5rem); color: var(--muted); }
.navigation a:hover, .navigation a:focus-visible { color: var(--gold); }
.menu-toggle { display: none; }

.hero {
  display: grid;
  grid-template-columns: .96fr 1.04fr;
  grid-template-areas: "copy portrait";
  min-height: clamp(365px, 37vw, 560px);
  background: radial-gradient(ellipse at 35% 40%, #241810, var(--ink) 76%);
  overflow: hidden;
}
.hero-portrait { grid-area: portrait; position: relative; display: grid; align-items: end; min-width: 0; overflow: hidden; }
.hero-art { position: relative; width: 100%; aspect-ratio: 620 / 474; overflow: hidden; }
.hero-art img { position: absolute; left: -55.16%; top: 0; width: 247.74%; max-width: none; height: auto; }
.hero-art::after { position: absolute; inset: 0; content: ""; background: linear-gradient(270deg, var(--ink), transparent 22%), linear-gradient(0deg, var(--ink), transparent 20%); }
.hero-copy {
  grid-area: copy;
  display: grid;
  justify-items: start;
  align-content: center;
  padding: 2.25rem clamp(24px, 5vw, 78px) 2.4rem clamp(12px, 2vw, 34px);
  text-align: right;
}
.hero h1 { font: clamp(3.7rem, 8.1vw, 8.5rem)/.84 var(--display-font); margin-block: .25rem .85rem; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-copy p { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.26rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.2rem; }
.hero-actions .button { min-width: 170px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  min-height: 46px;
  padding: .4rem .9rem;
  border: 1px solid var(--gold);
  border-radius: 3px;
  font-weight: 650;
  cursor: pointer;
  text-align: center;
  transition: background-color .24s ease, color .24s ease, transform .24s ease;
}
.button:hover { transform: translateY(-2px); }
.primary { background: var(--gold); color: var(--ink); }
.primary:hover { background: #edcc94; }
.outline { background: transparent; color: var(--cream); }
.outline .icon { color: var(--gold); }
.outline:hover { background: #d6b47c20; }

.collection { padding-block: 1.6rem 2.6rem; }
.section-heading { display: flex; align-items: center; gap: clamp(.7rem, 3vw, 2.1rem); margin-bottom: 1rem; }
.section-heading::after { content: ""; flex: 1; height: 1px; background: var(--line); order: 1; }
.section-heading h2, .info h2, .contact h2 { font: clamp(2.5rem, 4vw, 3.75rem)/1 var(--display-font); }
.text-link { order: 2; color: var(--gold); white-space: nowrap; text-decoration: underline; text-underline-offset: .35rem; }
.gallery {
  --card-gap: clamp(10px, 1.5vw, 20px);
  display: flex;
  gap: var(--card-gap);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  overscroll-behavior-x: contain;
  scroll-behavior: auto;
  padding-bottom: .45rem;
}
.product {
  display: grid;
  grid-template-rows: auto 1fr;
  flex: 0 0 calc((100% - 2 * var(--card-gap)) / 3);
  min-width: 0;
  padding: 4px;
  border: 1px solid #ae8e5d;
  border-radius: 8px;
  background: #100d0c;
}
.product-photo { aspect-ratio: 4 / 5; display: block; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #332922; }
.product-photo img { display: block; position: absolute; max-width: none; }
.product-photo:focus-visible, .product-order:focus-visible { outline-offset: -3px; }
.gallery-controls { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.gallery-controls[hidden] { display: none; }
.gallery-controls button { min-height: 44px; border: 1px solid var(--line); border-radius: 3px; background: transparent; padding: .2rem .95rem; color: var(--cream); cursor: pointer; }
.gallery-controls button:hover { background: var(--panel); border-color: var(--gold); }
.gallery-motion { min-inline-size: 8.5rem; }
.product-info { display: grid; justify-items: center; text-align: center; align-items: center; gap: .45rem; padding: .7rem .3rem .45rem; }
.product-info h3 { font-size: clamp(.98rem, 1.5vw, 1.16rem); font-weight: 550; }
.product-order { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: .32rem; padding: .2rem .55rem; border: 1px solid #ae8e5d; border-radius: 5px; color: var(--gold); font-size: .92rem; }
.product-order:hover span { text-decoration: underline; }

.info { background: transparent; }
.info-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 5vw, 80px); padding-block: 1.8rem; }
.info h2 { font-size: clamp(2.25rem, 3.4vw, 3.2rem); margin-bottom: .45rem; }
.info p, .steps ol { color: var(--muted); }
.steps h2 { display: flex; gap: 1rem; align-items: center; }
.steps h2::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.steps ol { padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: flex; gap: .4rem; align-items: flex-start; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border: 1px solid var(--gold); color: var(--gold); border-radius: 50%; font-size: .85rem; flex: none; }
.contact { text-align: center; padding-block: 2rem 2.45rem; }
.contact p { color: var(--muted); margin-block: .55rem .9rem; }
.order-form { display: grid; justify-items: center; gap: .25rem; }
.order-form label { color: var(--muted); }
.order-form-row { display: flex; justify-content: center; gap: .55rem; }
.order-form input { width: 6.4rem; min-height: 46px; background: #1c1511; color: var(--cream); border: 1px solid var(--line); border-radius: 3px; padding: .35rem .5rem; text-align: center; }
.order-form input::placeholder { color: #c5b39e; }
.footer { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.35rem 1.6rem; }
.store-link { display: inline-flex; gap: .65rem; align-items: center; }
.store-link .icon, .socials .icon { color: var(--gold); }
.store-link bdi { display: block; font-size: .97rem; color: var(--gold); }
.socials { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.2rem; list-style: none; margin: 0; padding: 0; }
.socials a, .socials span { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; white-space: nowrap; }
.socials span[aria-disabled] { color: var(--muted); }
.store-link:hover bdi, .socials a:hover { text-decoration: underline; text-underline-offset: .3rem; }

.hero-copy { animation: settle .8s both; }
.hero-art { animation: portrait-in 1.25s both; }
.in-view { animation: settle .62s both; }
@keyframes settle { from { transform: translateY(12px); opacity: .68; } to { transform: translateY(0); opacity: 1; } }
@keyframes portrait-in { from { transform: scale(1.05); opacity: .8; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 980px) {
  .frame { width: min(100% - 56px, 1280px); }
  .product-info { align-content: center; }
}

@media (max-width: 700px) {
  .frame { width: calc(100% - 32px); }
  .header { min-height: 60px; padding-inline: 16px; justify-content: space-between; gap: .5rem; }
  .brand { font-size: 2.15rem; }
  .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; background: transparent; border: 1px solid var(--line); color: var(--gold); border-radius: 3px; }
  .navigation { display: none; position: absolute; inset: 100% 0 auto; background: #1c1511; padding: .25rem 1rem; border-bottom: 1px solid var(--line); }
  .navigation.open { display: grid; gap: 0; }
  .navigation a { padding-block: .55rem; }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "portrait" "copy"; }
  .hero-art { width: min(100%, 520px); margin-inline: auto; }
  .hero-copy { justify-items: center; text-align: center; padding: .3rem .85rem 1.6rem; }
  .hero h1 { font-size: clamp(2.85rem, 11.4vw, 5.1rem); margin-bottom: .65rem; }
  .hero h1 br { display: none; }
  .hero-actions { display: grid; width: min(100%, 280px); margin-top: .8rem; }
  .collection { padding-block: 1.2rem 1.65rem; }
  .section-heading { gap: .55rem; }
  .section-heading h2 { font-size: 2.4rem; }
  .text-link { font-size: .92rem; }
  .gallery { --card-gap: 8px; }
  .product { flex-basis: calc((100% - var(--card-gap)) / 2); }
  .product-info { padding: .5rem .08rem .25rem; }
  .product-info h3 { font-size: .91rem; }
  .product-order { font-size: .87rem; line-height: 1.25; padding-inline: .28rem; }
  .product-order .icon { width: 1.2em; height: 1.2em; }
  .info-grid { grid-template-columns: minmax(0, 1fr); gap: .95rem; text-align: center; padding-block: 1.2rem; }
  .steps { border-top: 1px solid var(--line); padding: .95rem 0 0; }
  .steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; list-style: none; padding: 0; }
  .steps li { justify-content: center; align-items: center; flex-direction: column; border-inline-start: 1px solid var(--line); padding: 0 .2rem; }
  .steps li:first-child { border-inline-start: 0; }
  .contact { padding-block: 1.4rem 1.65rem; }
  .footer { flex-direction: column; text-align: center; gap: .65rem; }
  .socials { justify-content: center; column-gap: .7rem; }
  .socials a, .socials span { font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}
