@font-face {
  font-family: Vazirmatn;
  src: url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn%5Bwght%5D.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("https://fonts.gstatic.com/s/outfit/v15/QGYvz_MVcBeNP4NJtEtq.woff2") format("woff2");
  font-style: normal;
  font-weight: 750 850;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #fff8e8;
  --muted: #ddceb3;
  --gold: #e9ca80;
  --surface: #2e271bef;
  --border: #b99a605c;
  --page: #211b11;
  --error: #ffd1c4;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  isolation: isolate;
  color: var(--ink);
  background: var(--page);
  font: 1rem/1.6 Vazirmatn, Tahoma, Arial, sans-serif;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, #261c116d, #20150eba 60%, #211b11ed),
    url("assets/moonlit-valley.webp") 36% center / cover no-repeat,
    #282116;
  filter: sepia(.88) saturate(.86);
  pointer-events: none;
  content: "";
}
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }
input, button, select { font: inherit; }
button { cursor: pointer; }
[lang="en"] { font-family: Outfit, system-ui, Arial, sans-serif; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.shell { width: min(100% - 3rem, 70rem); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 3;
  inset: .5rem auto auto .75rem;
  padding: .55rem .8rem;
  background: #e9ca80;
  color: #251a0b;
  transform: translateY(-170%);
}
.skip-link:focus { transform: none; }
.site-header {
  position: sticky;
  z-index: 2;
  top: 0;
  border-block-end: 1px solid var(--border);
  background: #211b12f2;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
  min-height: 4rem;
}
.brand { color: var(--gold); font-size: 1.35rem; font-weight: 850; }
nav { display: flex; flex-wrap: wrap; gap: .15rem .5rem; }
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: .4rem;
  border-radius: .4rem;
  color: var(--muted);
  font-weight: 750;
  text-decoration: none;
}
nav a:hover { background: #e9ca801a; color: var(--gold); }

main { padding-block: clamp(1.75rem, 5vw, 3.5rem) 4rem; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 5vw, 4rem);
  min-height: clamp(18rem, 28vw, 22rem);
  padding: clamp(1.6rem, 4.3vw, 3.35rem);
  border: 1px solid var(--border);
  border-radius: clamp(1rem, 2.2vw, 1.65rem);
  background: #2b2419dd;
}
.hero-eyebrow { color: var(--gold); font-size: .95rem; font-weight: 700; }
h1 {
  margin-block-start: .6rem;
  font-size: clamp(1.9rem, 3.9vw, 3.35rem);
  font-weight: 850;
  line-height: 1.29;
  text-wrap: balance;
}
h1 bdi { color: var(--gold); letter-spacing: -.045em; white-space: nowrap; }
.hero-description {
  max-width: 39ch;
  margin-block-start: .8rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.13rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-block-start: 1.35rem; }
.hero-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .42rem 1.05rem;
  border: 1px solid #c9a961;
  border-radius: .75rem;
  background: #d6b66f;
  color: #261e12;
  font-weight: 800;
  text-decoration: none;
}
.hero-actions a:hover { background: #e3c484; }
.hero-address { min-width: 0; text-align: center; }
.address-copy {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .65rem;
  width: 100%;
  min-height: 10.5rem;
  padding: 1.15rem .65rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: #211b12;
  color: var(--gold);
}
.address-copy:hover { border-color: #b69c62; background: #342919; }
.address-copy bdi {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -.025em;
  user-select: text;
}
#copy-hint { color: var(--muted); font-size: .95rem; }
.copy-result { min-block-size: 1.6em; margin-block-start: .2rem; color: var(--gold); font-size: .85rem; }
.catalog-message { margin-block-start: 1.25rem; color: var(--muted); }
.catalog-message:empty { display: none; }
#reload-catalog { margin-block-start: .6rem; }
.catalog-section { margin-block-start: clamp(1.7rem, 4vw, 3rem); scroll-margin-block-start: 5rem; }
.catalog-section h2 { margin-block-end: .8rem; font-size: clamp(1.45rem, 3vw, 2rem); }
.catalog-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.catalog-pair .products { grid-template-columns: minmax(0, 1fr); }
.products:empty { display: none; }
.product {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: .75rem;
  min-width: 0;
  padding: clamp(1rem, 2.6vw, 1.5rem);
  border: 1px solid var(--border);
  border-radius: .95rem;
  background: var(--surface);
}
.product h3 { font-size: 1.24rem; line-height: 1.35; overflow-wrap: anywhere; }
.product-grant { color: var(--muted); overflow-wrap: anywhere; }
.product-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  width: 100%;
  margin-block-start: auto;
  padding-block-start: .65rem;
  border-block-start: 1px solid var(--border);
}
.product-price { color: var(--gold); font-weight: 760; }
.gold-button, .quiet-button {
  min-height: 2.75rem;
  padding: .45rem .8rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  font-weight: 770;
}
.gold-button { background: #ddba70; color: #261c0d; }
.gold-button:hover { background: #edce91; }
.quiet-button { border-color: var(--border); background: #3c2f1e; color: var(--ink); }
.quiet-button:hover { background: #514027; }
button:disabled { opacity: .6; cursor: wait; }

.checkout {
  width: min(calc(100% - 1.25rem), 34rem);
  max-height: calc(100% - 1.25rem);
  padding: clamp(.9rem, 4vw, 1.65rem);
  overflow: auto;
  border: 1px solid #bd9b64;
  border-radius: 1rem;
  background: #2b2418;
  color: var(--ink);
}
.checkout::backdrop { background: #100b07d9; }
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: .6rem;
  padding-block-end: 1rem;
  border-block-end: 1px solid var(--border);
}
.dialog-top h2 { font-size: clamp(1.2rem, 3vw, 1.55rem); }
#order-form, #order-panel { margin-block-start: 1rem; }
#order-form label { display: block; margin-block-end: .35rem; font-weight: 750; }
.checkout-field { margin-block-end: .75rem; }
.checkout-field input, .checkout-field select {
  width: 100%;
  min-height: 2.75rem;
  padding: .35rem .65rem;
  border: 1px solid #ad925e;
  border-radius: .5rem;
  background: #1f190f;
  color: var(--ink);
}
.field-hint { margin-block: .5rem .85rem; color: var(--muted); font-size: .9rem; }
.checkout-note { margin-block-start: .85rem; }
.checkout-price { margin-block-end: .75rem; }
.order-data {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: .55rem;
}
.order-data > div {
  padding: .55rem .7rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: #211b12;
}
.order-data dt { color: var(--muted); font-size: .9rem; }
.order-data dd { margin-block-start: .2rem; overflow-wrap: anywhere; }
.order-steps {
  display: grid;
  gap: .3rem;
  margin-block: 1rem;
  padding-inline-start: 1.55rem;
  color: var(--muted);
}
.order-steps [data-complete] { color: var(--gold); font-weight: 750; }
.order-steps [aria-current="step"] { color: var(--ink); }
.order-status { color: var(--ink); font-weight: 740; }
.order-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-block-start: .8rem; }
.order-error:not(:empty) { margin-block-start: .75rem; color: var(--error); }
@media (max-width: 49rem) {
  .shell { width: min(100% - 2rem, 39rem); }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .address-copy { min-height: 7.5rem; }
}
@media (max-width: 31rem) {
  .products, .catalog-pair, .order-data { grid-template-columns: minmax(0, 1fr); }
  .catalog-pair { gap: 0; }
  .header-inner { min-height: 3.75rem; gap: .25rem; }
  .brand { font-size: 1rem; }
  nav { gap: 0 .15rem; }
  nav a { padding-inline: .21rem; font-size: .88rem; }
}
@media (forced-colors: active) {
  body::before { display: none; }
  .gold-button, .quiet-button, .checkout { border: 1px solid CanvasText; }
}
