/* Parsomash catalogue site. Mobile first; 760px and 1080px breakpoints. */

@font-face { font-family: "Mikhak"; src: url(fonts/mikhak.woff2) format("woff2"); font-weight: 300 600; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(fonts/cormorant.woff2) format("woff2"); font-weight: 300 600; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(fonts/cormorant-italic.woff2) format("woff2"); font-weight: 300 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(fonts/manrope.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --bg: #f7f5f1;
  --surface: #efebe5;
  --plate: #e7e2dc;
  --text: #171513;
  --text-2: #3a352f;
  --muted: #6b635a;
  --line: #ddd7ce;
  --gold: #a88b5c;
  --gold-ink: #7a5f36;
  --night: #121110;
  --on-night: #f3efe9;
  --on-night-2: #a8a095;
  --gold-soft: #cbb183;
  --line-night: rgb(243 239 233 / .14);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fa: "Mikhak", Tahoma, "Segoe UI", sans-serif;
  --gutter: 20px;
  --max: 1240px;
  --section: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Sorena: the dark, warm pages of the catalogue. */
.dark {
  --bg: #17100c;
  --surface: #1f1712;
  --plate: #2a1f18;
  --text: #f1e9df;
  --text-2: #d3c6b6;
  --muted: #a99a87;
  --line: rgb(209 177 122 / .2);
  --gold: #c9a66b;
  --gold-ink: #d6b67e;
  --night: #0f0a07;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
}

/* Fonts follow the nearest lang attribute: Mikhak for Persian, Cormorant Garamond and Manrope for English. */
:root, [lang="en"] { --display: var(--serif); --body: var(--sans); }
[lang="fa"] { --display: var(--fa); --body: var(--fa); }
[lang] { font-family: var(--body); }
body:lang(fa) { line-height: 2; }

h1, h2, h3, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }
p { text-wrap: pretty; }

h1, h2, h3 { font-family: var(--display); font-weight: 300; line-height: 1.12; text-wrap: balance; }
:is(h1, h2, h3):lang(fa) { line-height: 1.5; }

:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }

.skip { position: absolute; top: -80px; inset-inline-start: 12px; z-index: 100; padding: 12px 18px; background: var(--text); color: var(--bg); }
.skip:focus { top: 12px; }

.icon { width: 18px; height: 18px; flex: none; }

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 14px;
  font: 600 .6875rem/1.6 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.eyebrow:lang(fa), .eyebrow :lang(fa) { font: 500 .875rem/1.6 var(--fa); letter-spacing: 0; text-transform: none; }
.eyebrow span + span::before { content: "·"; margin-inline-end: 10px; }

/* ---------- Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  font: 600 .6875rem/1.2 var(--sans);
  letter-spacing: .15em;
  text-transform: uppercase;
  transition: background-color .25s, color .25s, border-color .25s;
}

.btn:lang(fa) { font: 500 .9375rem/1.2 var(--fa); letter-spacing: 0; text-transform: none; }
.btn--solid { background: var(--text); color: var(--bg); }
.btn--solid:hover { opacity: .88; }
.btn--line { border-color: currentColor; }
.btn--line:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--gold { background: var(--gold-soft); color: #171513; }
.btn--gold:hover { background: #d9c39b; }
.btn--ghost { border-color: rgb(243 239 233 / .4); color: var(--on-night); }
.btn--ghost:hover { border-color: var(--on-night); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions .btn { flex: 1 1 auto; }

/* ---------- Header */

.header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }

.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; }

.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; line-height: 1; }
.brand__en { margin-inline-end: -.26em; font: 500 1rem/1 var(--serif); letter-spacing: .26em; text-transform: uppercase; }
.brand__fa { font: 400 .6875rem/1 var(--fa); color: var(--muted); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px; font-size: .875rem; }
.nav a:lang(en) { font: 600 .6875rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.nav a[aria-current] { color: var(--gold-ink); }
.nav a:hover { color: var(--gold-ink); }

.nav__wa { width: 44px; justify-content: center; padding: 0 !important; }
.nav__wa .icon { width: 22px; height: 22px; }
.nav__wa span { display: none; }

/* ---------- Footer */

.footer { padding-block: 40px calc(32px + env(safe-area-inset-bottom)); background: var(--night); color: var(--on-night-2); font-size: .875rem; }
.footer__grid { display: grid; gap: 24px; }
.footer .brand { align-items: flex-start; color: var(--on-night); }
.footer .brand__fa { color: var(--on-night-2); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a:hover { color: var(--on-night); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-night); }

/* ---------- Sections */

.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.section--surface { background: var(--surface); }
.section.section--surface, .section.night, .section--surface + .section, .night + .section { padding-top: var(--section); }

.h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.h2:lang(fa) { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 500; }
.lead { margin-top: 18px; max-width: 64ch; color: var(--text-2); font-size: 1.0625rem; }
.lead:lang(fa) { font-size: 1rem; }
.lead + .lead { margin-top: 12px; }

.rule { width: 56px; height: 1px; margin-top: 22px; background: var(--gold); border: 0; }

/* Figures */
.figs { display: grid; gap: 14px; margin-top: 32px; }
.fig { margin: 0; }
.fig a { display: block; overflow: hidden; background: var(--plate); }
.fig img { width: 100%; transition: transform 1.2s var(--ease); }
.fig a:hover img { transform: scale(1.025); }
.fig figcaption { margin-top: 10px; font-size: .8125rem; color: var(--muted); }
.fig--cover img { aspect-ratio: 4 / 5; object-fit: cover; }
.fig--wide img { aspect-ratio: 16 / 10; object-fit: cover; }

/* Lists and tables */
.ticks { display: grid; gap: 12px; margin-top: 28px; }
.ticks li { display: flex; gap: 14px; color: var(--text-2); }
.ticks li::before { content: ""; flex: none; width: 18px; height: 1px; margin-top: 1em; background: var(--gold); }

.specs { margin-top: 32px; border-top: 1px solid var(--line); }
.specs > div { display: grid; gap: 2px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 600; color: var(--gold-ink); }
.specs dt:lang(fa) { font-weight: 500; }
.specs dd { color: var(--text-2); }

.quote { margin-top: 40px; padding: 32px 28px; background: var(--night); color: var(--on-night); }
.quote p { font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); line-height: 1.8; }
.quote footer { margin-top: 10px; font-size: .875rem; color: var(--gold-soft); }

.note { margin-top: 32px; padding: 26px 24px; border: 1px solid var(--line); background: var(--surface); }
.note h3 { font-size: 1.25rem; font-weight: 500; color: var(--gold-ink); }
.note p { margin-top: 10px; color: var(--text-2); }

/* ---------- Collection cover (Elise and Sorena) */

.cover__media { display: block; position: relative; overflow: hidden; background: var(--plate); }
.dark .cover { padding-top: 20px; }
.cover__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cover__body { padding-block: 32px 8px; }
.cover__title { font-size: clamp(2.125rem, 1.4rem + 3.6vw, 4.5rem); }
.cover__title:lang(fa) { font-size: clamp(1.875rem, 1.3rem + 2.8vw, 3.5rem); font-weight: 500; line-height: 1.45; }
.cover__sub { margin-top: 14px; max-width: 52ch; font-size: 1.0625rem; color: var(--text-2); }
.cover__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-size: .9375rem; color: var(--text-2); }
.cover__facts li { display: flex; align-items: center; gap: 10px; }
.cover__facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.cover .actions { margin-top: 28px; }
.cover__badge { margin-top: 18px; font-size: .8125rem; color: var(--muted); }

/* ---------- Trade and contact (dark blocks) */

.night { background: var(--night); color: var(--on-night); }
.night .eyebrow { color: var(--gold-soft); }
.night .lead, .night .ticks li { color: var(--on-night-2); }
.night .ticks li::before { background: var(--gold-soft); }
.night .specs { border-color: var(--line-night); }
.night .specs > div { border-color: var(--line-night); }
.night .specs dt { color: var(--gold-soft); }
.night .specs dd { color: var(--on-night); }

.reach { display: grid; gap: 28px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line-night); }
.reach__phone { font: 400 clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem)/1.2 var(--serif); font-variant-numeric: lining-nums; letter-spacing: .02em; }
.reach__phone a:hover { color: var(--gold-soft); }
.reach__label { margin-top: 6px; font-size: .875rem; color: var(--on-night-2); }
.closing { margin-top: 48px; text-align: center; }
.closing p:first-child { font-size: clamp(1.125rem, 1rem + .8vw, 1.625rem); }
.closing p + p { margin-top: 6px; font-size: .875rem; color: var(--gold-soft); }

/* ---------- Home */

.intro { padding-block: 56px 40px; text-align: center; }
.intro .eyebrow { justify-content: center; }
.intro h1 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3.25rem); font-weight: 400; line-height: 1.5; }
.intro p { margin: 12px auto 0; max-width: 56ch; color: var(--text-2); }
.intro p:lang(en) { font-size: .9375rem; color: var(--muted); }

.collections { display: grid; gap: 40px; padding-bottom: var(--section); }
.collection { display: flex; flex-direction: column; }
.collection__media { display: block; overflow: hidden; background: var(--plate); }
.collection__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.4s var(--ease); }
.collection:hover .collection__media img { transform: scale(1.03); }
.collection__body { padding-top: 22px; }
.collection__title { font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); }
.collection__title:lang(fa) { font-size: clamp(1.5rem, 1.3rem + 1vw, 2.125rem); font-weight: 500; }
.collection__text { margin-top: 10px; max-width: 46ch; color: var(--text-2); }
.collection .actions { margin-top: 22px; }

.contact { padding-block: var(--section); }
.contact__grid { display: grid; gap: 40px; }
.contact__title { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
.contact__list > div { display: grid; gap: 2px; padding-block: 14px; border-top: 1px solid var(--line-night); }
.contact__list dt { font-size: .8125rem; color: var(--gold-soft); }
.contact__list dd a:hover { color: var(--gold-soft); }
.contact .actions { margin-top: 28px; }

/* ---------- Sorena */

.dark .header { background: var(--bg); }
.dark .cover__title { font-size: clamp(3.5rem, 1.8rem + 8vw, 8.5rem); font-weight: 300; letter-spacing: .14em; margin-inline-end: -.14em; text-transform: uppercase; line-height: 1; }
.dark .cover__kicker { margin-top: 10px; font: 600 .75rem/1.6 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-ink); }
.dark .cover__media img { aspect-ratio: 8 / 5; }
.dark .h2 { font-weight: 300; }
.dark .fig a { background: var(--plate); }

.tagline { margin-top: 28px; font: 600 .75rem/1.6 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold-ink); }

.row { display: grid; gap: 28px; align-items: center; }
.row + .row { margin-top: 56px; }
.row__text h3 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); }
.row__text p { margin-top: 14px; color: var(--text-2); }
.row__text p + p { margin-top: 12px; }

.stories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 12px; margin-top: 32px; }
.stories .fig img { aspect-ratio: 1; object-fit: cover; }
.stories figcaption { color: var(--text); font: 400 1.0625rem/1.35 var(--serif); }
.stories figcaption small { display: block; margin-top: 2px; font: .75rem/1.4 var(--sans); color: var(--muted); }

.details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 40px; }
.details-pair { grid-template-columns: 1fr 1fr; max-width: 760px; margin-top: 48px; }
.rows { margin-top: 40px; }
.subhead { margin-top: 72px; }
.details .fig img { aspect-ratio: 1; object-fit: cover; }

.row__lead { font: 400 1.25rem/1.55 var(--serif); color: var(--text); }
.row__text p + p { margin-top: 12px; }
.reach-actions { margin-top: 32px; }
.details--natural { align-items: start; }
.details--natural .fig img { aspect-ratio: auto; }
h2 em { font-style: italic; }

/* ---------- Mobile order bar and image viewer */

.orderbar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--bg);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .35s var(--ease), visibility 0s .35s;
}

.orderbar.is-visible { transform: none; visibility: visible; transition: transform .35s var(--ease); }
.orderbar p { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .9375rem; }
.orderbar .btn { flex: none; min-height: 44px; padding-inline: 18px; }

.viewer { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: #0c0a08; }
.viewer::backdrop { background: #0c0a08; }
.viewer img { width: 100%; height: 100%; object-fit: contain; padding: 56px 8px; }
.viewer button { position: absolute; top: 8px; inset-inline-end: 8px; display: grid; place-items: center; width: 48px; height: 48px; color: #f3efe9; }
.viewer .icon { width: 26px; height: 26px; }

/* ---------- Small phones */

@media (max-width: 374px) {
  :root { --gutter: 16px; }
  .header__bar { gap: 6px; }
  .brand__en { margin-inline-end: -.18em; font-size: .875rem; letter-spacing: .18em; }
  .nav { gap: 0; }
  .nav a { padding-inline: 6px; }
  .nav__wa { width: 40px; }
}

/* ---------- Tablet */

@media (min-width: 760px) {
  :root { --gutter: 32px; --section: 96px; }

  .actions .btn { flex: 0 1 auto; }
  .figs--2 { grid-template-columns: 1fr 1fr; }
  .figs--3 { grid-template-columns: repeat(3, 1fr); }
  .specs > div { grid-template-columns: 180px 1fr; gap: 24px; }
  .cover__media img { aspect-ratio: 16 / 9; }
  .dark .cover__media img { aspect-ratio: auto; }
  .collections { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stories { grid-template-columns: repeat(3, 1fr); gap: 32px 20px; }
  .details { grid-template-columns: repeat(4, 1fr); }
  .reach { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr auto; align-items: center; }

  .nav { gap: 10px; }
  .nav__wa { width: auto; gap: 8px; margin-inline-start: 6px; padding-inline: 16px !important; border: 1px solid var(--line); }
  .nav__wa .icon { width: 16px; height: 16px; }
  .nav__wa span { display: inline; }
}

/* ---------- Desktop */

@media (min-width: 1080px) {
  :root { --section: 120px; }

  .header__bar { height: 76px; }
  .brand__en { font-size: 1.1875rem; }

  .split { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
  .split .figs { margin-top: 0; }
  .split--flip > :first-child { order: 2; }
  .sticky { position: sticky; top: 108px; }

  .cover__media img { aspect-ratio: auto; height: min(72vh, 52vw); }
  .dark .cover__media img { height: auto; }
  .cover__body { display: grid; grid-template-columns: 7fr 5fr; gap: 0 48px; align-items: end; padding-block: 48px 0; }
  .cover__body > .eyebrow { grid-column: 1 / -1; }
  .cover__side .cover__sub:first-child { margin-top: 0; }
  .dark .cover__body { grid-template-columns: 1fr 1fr; }

  .row { grid-template-columns: 1fr 1fr; gap: 64px; }
  .row--flip .row__media { order: 2; }
  .row--wide { grid-template-columns: 7fr 5fr; }

  .orderbar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
