/* Hallmark · shape: the shop after dark, from the lit window to the street · genre: editorial · theme: custom · job: visit · idea: "The page is the shop at night: the lit shopfront melts into the dark page, the shelves are read out by name, and the way in is the glowing entrance." · vibe: "Barabazar shopfront after dark, maroon and gold"
 * paper: oklch(17% 0.045 22) · accent: oklch(80% 0.11 80) · display: Abhaya Libre 700 (closest free match to the Canva post's face) · body: Figtree · hero: Banner, the night shopfront full-bleed fading into the page, headline and actions set over the fade · nav: logo, today's hours, one call button · footer: a darker well with the logo and the shop's details · imagery: photographs (the shop's own storefront only, edges faded into the page) · signature: the lit signboard and windows dissolving into the dark page
 * axes: dark/roman-serif/warm · posture: Committed (maroon night ground, one maroon field band, gold as the signal) · contrast: pass · fold: pass · brand: Khazana Sarees (Canva brand kit kAHT2lz2Bj0; maroon, cream and gold from the house-style post) · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R5 V5 · weakest: P, a shop page argues little; answered by letting the night shopfront set the whole page's light instead of boxed photos */
/* Hallmark · dismissed 58 · the shelves screen lists 39 product names the owner gave, one to three words each, each a WhatsApp link, counted as running copy */
/* Hallmark · waive 71 · .shelf is a two-column grid, h4 and ul share one row on one baseline · the family names are row labels beside their list, not heads above it */
/* Hallmark · waive 59 · the 1px gap is the promises strip sitting directly under the hero fade · the strip is the hero's footnote, not a section of its own */
/* Hallmark · waive 42 · nav holds the Khazana logo, today's hours and one call button, no link row · a one-page shop site needs only the call action up top */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- browser surfaces ---------- */
::selection { background: var(--color-gold); color: var(--color-accent-ink); }
html { scrollbar-color: var(--color-rule) var(--color-paper); caret-color: var(--color-gold); -webkit-tap-highlight-color: transparent; }
a, .btn { touch-action: manipulation; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 700; letter-spacing: var(--tracking-display); color: var(--color-ink); }
h1 { font-size: var(--text-display); line-height: 1.02; max-width: 17ch; }
h2 { font-size: var(--text-section); line-height: 1.06; max-width: 20ch; }
h3 { font-size: var(--text-title); line-height: 1.2; color: var(--color-gold); }
.lede { font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); max-width: 38ch; }
p { color: var(--color-ink-2); }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--color-ink); border-radius: var(--radius-card);
  font-weight: 600; font-size: var(--text-md); text-decoration: none; white-space: nowrap;
  color: var(--color-ink); background: transparent; cursor: pointer;
  transition: background-color var(--dur-short) ease, color var(--dur-short) ease, border-color var(--dur-short) ease, transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--color-ink); color: var(--color-paper); }
  .btn-primary:hover { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
}
.btn:active { transform: scale(0.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn-primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); }
.textlink { font-weight: 600; color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-gold); transition: color var(--dur-short) var(--ease-out); }
.textlink:hover { color: var(--color-gold); }
.textlink:active { color: var(--color-ink-2); }
.facts a, .footer a, .tel { color: var(--color-ink); text-decoration-color: var(--color-gold); }

/* ---------- nav ---------- */
.nav { position: relative; z-index: var(--z-raised); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: var(--nav-h); }
.nav-logo { display: block; flex-shrink: 0; }
.nav-logo img { width: 150px; height: auto; }
.nav-right { display: flex; align-items: center; gap: var(--space-lg); }
.nav-hours { font-size: var(--text-sm); color: var(--color-muted); white-space: nowrap; }

/* ---------- hero: the shopfront melts into the page ---------- */
.hero { position: relative; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--color-paper) 4%, transparent 48%); pointer-events: none; }
.hero-photo { margin: 0; }
.hero-photo img {
  width: 100%; height: clamp(440px, 84svh, 900px); object-fit: cover; object-position: center 22%;
  -webkit-mask-image: linear-gradient(to bottom, var(--color-ink) 50%, transparent 98%);
  mask-image: linear-gradient(to bottom, var(--color-ink) 50%, transparent 98%);
}
.hero-copy { position: absolute; inset: auto 0 0 0; z-index: var(--z-raised); }
.hero-copy .container { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: end; padding-bottom: var(--space-xl); }
.hero-copy h1 { text-shadow: 0 2px 24px var(--color-paper); }
.hero-side { display: grid; gap: var(--space-lg); }

/* ---------- hero entrance: the shop lights come up once on load ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo img { animation: lights-up 1400ms var(--ease-out) both; }
  .hero-copy h1 { animation: rise 700ms var(--ease-out) 250ms both; }
  .hero-side { animation: rise 700ms var(--ease-out) 380ms both; }
}
@keyframes lights-up { from { opacity: 0.35; transform: scale(1.035); filter: brightness(0.6); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- promises ---------- */
.promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: var(--rule-hair) solid var(--color-rule); }
.promises li { padding: var(--space-md) var(--space-md) var(--space-md) 0; color: var(--color-ink-2); font-size: var(--text-md); }
.promises li + li { padding-left: var(--space-md); border-left: var(--rule-hair) solid var(--color-rule); }

/* ---------- what we sell: the shelves read out by name ---------- */
.sell { padding-block: var(--section-gap); }
.sell-intro { display: grid; gap: var(--space-lg); margin-bottom: var(--space-2xl); }
.shelf-group { font-size: var(--text-3xl); color: var(--color-ink); margin-top: var(--space-2xl); padding-bottom: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-gold); }
.shelf { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--space-xl); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); align-items: baseline; }
.shelf h4 { margin: 0; font-family: var(--font-body); font-weight: 600; font-size: var(--text-md); color: var(--color-gold); }
.shelf ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--space-xl); }
.shelf a {
  display: inline-block; padding-block: var(--space-xs); font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl); line-height: 1.2; color: var(--color-ink); text-decoration: none; touch-action: manipulation;
  background-image: linear-gradient(var(--color-gold), var(--color-gold)), linear-gradient(color-mix(in oklab, var(--color-gold) 35%, transparent), color-mix(in oklab, var(--color-gold) 35%, transparent));
  background-repeat: no-repeat; background-position: 0 calc(100% - 6px), 0 calc(100% - 6px); background-size: 0% 1px, 100% 1px;
  transition: background-size 280ms var(--ease-out), color var(--dur-short) ease, transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .shelf a:hover { color: var(--color-gold); background-size: 100% 1px, 100% 1px; }
}
.shelf a:active { transform: scale(0.97); }
.shelf a:focus-visible, .textlink:focus-visible, .facts a:focus-visible, .footer a:focus-visible, .tel:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* ---------- story ---------- */
.story { padding-block: 0 var(--section-gap); }
.story .container { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: center; }
.story-year { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: calc(var(--text-display) * 2.2); line-height: 0.8; letter-spacing: var(--tracking-display); color: var(--color-gold); }
.story-copy { display: grid; gap: var(--space-lg); }

/* ---------- wholesale band ---------- */
.wholesale { position: relative; background: var(--color-field); padding-block: var(--section-gap-s); overflow: hidden; }
.wholesale .container { position: relative; z-index: var(--z-raised); display: grid; gap: var(--space-lg); justify-items: center; text-align: center; }
.wholesale h2 { font-size: var(--text-display-s); max-width: 18ch; }
.wholesale p { color: var(--color-field-muted); max-width: 46ch; }
.wholesale .btn:focus-visible, .wholesale a:focus-visible { outline-color: var(--color-focus-on-field); }
.paisley { position: absolute; width: 190px; height: auto; opacity: 0.6; pointer-events: none; }
.paisley-l { left: 0; top: 0; }
.paisley-r { right: 0; bottom: 0; transform: scale(-1, -1); }

/* ---------- visit: the entrance melts in from the right ---------- */
.visit { position: relative; padding-top: var(--section-gap); }
.visit-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: center; }
.visit-left { display: grid; gap: var(--space-xl); position: relative; z-index: var(--z-raised); }
.facts { margin: 0; display: grid; }
.facts div { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.facts dt { font-weight: 600; color: var(--color-gold); }
.facts dd { margin: 0; color: var(--color-ink-2); }
.entrance { margin: 0; }
.entrance img {
  width: 112%; margin-inline: -6%; max-width: none; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% center;
  -webkit-mask-image: linear-gradient(to right, transparent, var(--color-ink) 22%, var(--color-ink) 80%, transparent), linear-gradient(to bottom, transparent, var(--color-ink) 16%, var(--color-ink) 78%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, var(--color-ink) 22%, var(--color-ink) 80%, transparent), linear-gradient(to bottom, transparent, var(--color-ink) 16%, var(--color-ink) 78%, transparent);
  mask-composite: intersect;
}
.visit-bottom { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); margin-top: var(--space-3xl); padding-bottom: var(--section-gap-s); align-items: start; }
.map { width: 100%; aspect-ratio: 16 / 10; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-2); display: block; }
.visit-notes { display: grid; gap: var(--space-xl); }
.visit-notes > div { display: grid; gap: var(--space-sm); justify-items: start; }

/* ---------- footer ---------- */
.footer { background: var(--color-paper-3); color: var(--color-ink); padding-block: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-lg); }
.footer img { width: 132px; height: auto; }
.footer address { font-style: normal; font-size: var(--text-sm); color: var(--color-muted); line-height: 1.6; }

/* ---------- legal pages and 404 ---------- */
.legal { display: grid; gap: var(--space-md); max-width: 46rem; padding-block: var(--space-2xl) var(--section-gap-s); }
.legal h1 { font-size: var(--text-section); max-width: none; }
.legal h2 { max-width: none; font-size: var(--text-title); color: var(--color-gold); margin-top: var(--space-xl); }
.legal p, .legal li { max-width: 68ch; }
.legal ul { display: grid; gap: var(--space-sm); padding-left: var(--space-lg); color: var(--color-ink-2); }
.legal strong { color: var(--color-ink); }
.legal a:not(.btn) { color: var(--color-ink); text-decoration-color: var(--color-gold); }
.legal a:not(.btn):hover { color: var(--color-gold); }
.legal a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.legal-date { font-size: var(--text-sm); color: var(--color-muted); }
.footer-links { display: flex; gap: var(--space-lg); font-size: var(--text-sm); }
.footer-links a { display: inline-block; padding-block: var(--space-xs); color: var(--color-ink); text-decoration-color: var(--color-gold); }
.footer-links a:hover { color: var(--color-gold); }

/* ---------- phone bar ---------- */
.phonebar { display: none; }

@media (max-width: 60rem) {
  .hero::after { display: none; }
  .hero-copy { position: relative; margin-top: calc(var(--space-4xl) * -1); }
  .hero-copy .container, .story .container, .visit-top, .visit-bottom { grid-template-columns: minmax(0, 1fr); }
  .hero-photo img { height: auto; aspect-ratio: 4 / 3; object-position: center 15%; }
  .entrance { order: -1; }
  .entrance img { width: 100%; margin-inline: 0; }
  .paisley { width: 110px; opacity: 0.45; }
  .story-year { font-size: calc(var(--text-display) * 1.6); }
}
@media (max-width: 40rem) {
  .nav .btn { display: none; }
  .nav-logo img { width: 128px; }
  .hero-photo img { aspect-ratio: 2000 / 1325; }
  .hero-copy { margin-top: calc(var(--space-2xl) * -1); }
  .shelf { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .shelf a { font-size: var(--text-xl); }
  .promises { grid-template-columns: minmax(0, 1fr); }
  .promises li + li { border-left: 0; padding-left: 0; border-top: var(--rule-hair) solid var(--color-rule); }
  .promises li { padding-block: var(--space-sm); }
  .footer { padding-bottom: calc(var(--space-2xl) + 56px); }
  .phonebar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky); background: var(--color-field); border-top: var(--rule-hair) solid var(--color-rule); }
  .phonebar { padding-bottom: env(safe-area-inset-bottom); }
  .phonebar a { display: flex; align-items: center; justify-content: center; min-height: 56px; color: var(--color-field-ink); font-weight: 600; text-decoration: none; }
  .phonebar a + a { border-left: var(--rule-hair) solid var(--color-rule); }
  .phonebar a:last-child { background: var(--color-accent); color: var(--color-accent-ink); }
  .phonebar a { transition: transform 160ms var(--ease-out); }
  .phonebar a:active { transform: scale(0.97); }
  .phonebar a:focus-visible { outline: 2px solid var(--color-focus-on-field); outline-offset: -4px; }
}
