@font-face {
  font-family: Vazir;
  src: url("/media/vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Naskh;
  src: url("/media/naskh.ttf");
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  --bg: #f8f7f2;
  --fg: #202c26;
  --muted: #58665e;
  --accent: #254d3d;
  --soft: #e8ebe2;
  --border: #d5d9ce;
  --paper: #fffefa;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    16px/1.75 Vazir,
    Tahoma,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
summary,
select {
  cursor: pointer;
}
h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.45;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ad653f;
  outline-offset: 3px;
}
.wrap {
  width: min(1320px, 90%);
  margin-inline: auto;
}
.inner,
.reading {
  padding-block: 44px 82px;
  min-height: 62vh;
}
.reading {
  max-width: 790px;
}
.reading p,
.pagetitle p,
.sheet p,
.empty p,
.about p,
.callout p,
.designgrid p {
  color: var(--muted);
}
.reading h2 {
  margin: 28px 0 12px;
}
.reading .btn {
  margin-top: 25px;
}
button {
  background: none;
  border: 0;
}
.skip {
  position: absolute;
  z-index: 20;
  top: -100px;
  right: 1rem;
  background: white;
  padding: 10px;
}
.skip:focus {
  top: 4px;
}
#head {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.headrow,
.headtools,
.brand,
.topnav,
.bag,
.actions,
.btn,
.textlink,
.icon,
.families,
.eyebrow,
.channels,
.contactline b,
.chips,
.tools > div,
.thumbs,
.choices,
.choices span,
.colorindex,
.adminrow > div:last-child,
.check,
.over {
  display: flex;
  align-items: center;
}
.headrow {
  min-height: 80px;
  gap: 4%;
  justify-content: space-between;
}
.topnav {
  gap: clamp(15px, 2.2vw, 35px);
  margin-inline-end: auto;
  font-size: 14px;
}
.topnav a {
  padding: 15px 0;
}
.topnav a[aria-current="page"],
.textlink:hover,
.under:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.brand {
  gap: 9px;
  line-height: 1;
}
.brand img {
  width: 39px;
  height: 39px;
}
.brand b {
  font-size: 31px;
  letter-spacing: -2px;
  font-weight: 850;
}
.headtools {
  gap: 5px;
}
.icon {
  width: 44px;
  height: 44px;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.icon:hover,
.mini:hover {
  background: var(--soft);
}
.bag {
  border: 1px solid var(--border);
  border-radius: 5px;
  gap: 9px;
  min-height: 43px;
  padding: 0 13px;
  font-size: 13px;
  margin-inline-start: 9px;
}
.bag b {
  font-weight: 650;
  min-width: 22px;
  text-align: center;
  background: var(--soft);
  border-radius: 4px;
}
.menu {
  display: none;
}
.cover {
  display: grid;
  grid-template-columns: 0.91fr 1.09fr;
  margin-top: 34px;
  min-height: 460px;
  border: 1px solid var(--border);
  background: #f0f0e7;
}
.covercopy {
  padding: clamp(25px, 4.1vw, 66px);
  align-self: center;
}
.cover h1,
.swatchcover h1 {
  font-size: clamp(50px, 5.2vw, 87px);
  font-weight: 850;
  line-height: 1.28;
  letter-spacing: -3.3px;
  max-width: 8em;
  text-wrap: balance;
}
.covercopy > p {
  color: #48554b;
  max-width: 420px;
  margin: 17px 0 27px;
  line-height: 1.95;
}
.eyebrow,
.over {
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
}
.eyebrow {
  gap: 9px;
  margin-bottom: 18px;
}
.eyebrow i {
  height: 1px;
  width: 30px;
  background: var(--accent);
}
.actions {
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  justify-content: center;
  gap: 14px;
  min-height: 46px;
  padding: 9px 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 650;
  width: fit-content;
  transition:
    background 0.15s,
    transform 0.16s;
}
.primary {
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
}
.primary:hover {
  filter: brightness(1.12);
}
.line {
  border: 1px solid var(--border);
  background: var(--paper);
}
.quiet {
  padding-inline: 4px;
}
.btn:active,
.icon:active {
  transform: scale(0.97);
}
.cover-motto {
  display: grid;
  gap: 2px;
  padding-block-start: clamp(10px, 1.5vw, 18px);
  border-block-start: 1px solid #cbd0c2;
}
.cover-motto strong {
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 750;
  color: var(--accent);
}
.cover-motto span {
  font-size: 14px;
  color: var(--muted);
}
figure,
.pimage {
  position: relative;
  overflow: hidden;
}
.coverart > img,
.swatchcover img,
.catcover img,
.about img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.coverart > img {
  object-position: 50% 52%;
}
.sample {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 550;
  background: #fffef3eb;
  color: #303b31;
  padding: 2px 8px;
  border-radius: 3px;
  pointer-events: none;
}
.coverart .sample {
  right: auto;
  left: 15px;
  top: 15px;
}
.figlabel {
  position: absolute;
  bottom: 20px;
  right: 20px;
  left: 20px;
  background: #fffef3f0;
  color: #333b31;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  font-size: 12px;
}
.figlabel b {
  font: 10px/1.5 monospace;
  letter-spacing: 1.8px;
}
.homecat {
  padding-top: 56px;
}
.sectionhead,
.tools,
.cardbottom,
.adminrow,
.contactline,
.inqtop,
.credits,
.adminbanner,
.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.sectionhead {
  margin-bottom: 20px;
}
.sectionhead h2,
.callout h2 {
  font-size: clamp(25px, 2.4vw, 39px);
  font-weight: 730;
  letter-spacing: -1px;
}
.over {
  margin-bottom: 3px;
}
.textlink {
  font-weight: 650;
  font-size: 14px;
  gap: 8px;
}
.families {
  gap: 7px;
  flex-wrap: wrap;
  margin: 12px 0 22px;
}
.families a,
.chips a {
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 6px 13px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  min-height: 38px;
}
.families .chosen,
.sel {
  background: var(--soft) !important;
}
.productgrid,
.catgrid,
.designgrid {
  display: grid;
  gap: 21px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.pcard {
  min-width: 0;
}
.pimage {
  aspect-ratio: 1.43;
  background: var(--soft);
  border-radius: 3px;
}
.pimage img,
.catgrid img,
.designshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pimage > a {
  display: block;
  height: 100%;
}
.pimage img {
  transition: transform 0.24s ease-out;
}
.pimage > a:hover img {
  transform: scale(1.025);
}
.fav {
  position: absolute;
  left: 9px;
  top: 9px;
  background: var(--paper);
}
.fav.on svg,
[aria-pressed="true"] svg {
  fill: currentColor;
  color: var(--accent);
}
.pcopy {
  padding: 13px 1px 4px;
}
.pcopy h3 {
  font-size: 19px;
  letter-spacing: -0.5px;
}
.pcopy p,
.pcopy .over {
  font-size: 12px;
  color: var(--muted);
}
.pcopy p {
  margin-top: 4px;
}
.pcopy p span {
  margin-inline: 3px;
}
.cardbottom {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}
.cardbottom a {
  font-size: 12px;
}
.callout {
  padding: 30px 36px;
  background: var(--soft);
  margin-block: 55px;
}
.callout h2 {
  font-size: 25px;
}
.callout .btn {
  flex-shrink: 0;
}
#foot {
  border-top: 1px solid var(--border);
  background: #eaece4;
}
.footrow {
  padding: 36px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}
.footrow nav,
.mobilenav {
  display: grid;
  gap: 7px;
  font-size: 14px;
}
.footrow p,
.credits {
  color: var(--muted);
  font-size: 12px;
}
.footrow p {
  margin-top: 16px;
}
.credits {
  border-top: 1px solid #c9cec2;
  padding: 13px 0;
}
.pagetitle {
  margin-bottom: 30px;
}
.pagetitle h1,
.detail h1,
.adminbanner h1 {
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 780;
  letter-spacing: -1.8px;
}
.pagetitle p {
  margin: 9px 0 0;
  max-width: 720px;
}
.cataloglayout {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 30px;
}
.cataloglayout .productgrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.filterbox,
.sheet,
.inqrow,
.metrics article {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 5px;
}
.filterbox > summary {
  font-weight: 750;
}
.filterbox > summary svg {
  vertical-align: middle;
}
.filters,
.editform,
.sheet,
.field {
  display: grid;
  align-content: start;
  gap: 14px;
}
.filters {
  margin-top: 20px;
}
.field {
  gap: 5px;
  font-size: 14px;
  font-weight: 550;
}
.field input:not([type="checkbox"]),
.field select,
.field textarea,
.searchbar input,
.tools select,
.reading textarea,
dialog textarea {
  width: 100%;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--paper);
  min-height: 44px;
  font-weight: 420;
}
.field textarea {
  min-height: 83px;
  resize: vertical;
}
.under {
  font-size: 13px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-align: start;
  width: fit-content;
}
.tools {
  min-height: 44px;
  margin-bottom: 18px;
}
.tools > div {
  gap: 3px;
}
.tools label {
  font-size: 13px;
}
.tools select {
  width: auto;
}
.cataloglayout > section {
  min-width: 0;
}
.chips {
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 13px;
  max-width: 100%;
}
.chips a {
  background: var(--soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.chips .chip-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.chips .chip-x {
  flex: none;
}
.empty {
  text-align: center;
  padding: 48px 20px;
  background: var(--paper);
  border: 1px dashed var(--border);
  border-radius: 5px;
}
.empty p {
  margin: 10px 0 20px;
}
.empty .btn {
  margin: auto;
}
.catcover,
.about,
.swatchcover {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.catcover {
  background: var(--soft);
  margin-bottom: 30px;
  min-height: 170px;
}
.catcover > div {
  align-self: center;
  padding: 24px;
}
.catcover .pagetitle {
  margin: 0;
}
.catgrid,
.designgrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.catgrid figure {
  aspect-ratio: 1.6;
}
.catgrid h2,
.designgrid h2 {
  margin-top: 12px;
}
.catgrid p,
.designgrid small,
.hint,
.adminrow small {
  font-size: 13px;
  color: var(--muted);
}
.catgrid b {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  color: var(--accent);
}
.crumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5%;
  margin-bottom: 65px;
}
.detail h1 {
  font-size: clamp(30px, 3.5vw, 49px);
}
.stock {
  display: inline-block;
  margin: 8px 0 14px;
  background: var(--soft);
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 12px;
}
.specs > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.specs dt {
  color: var(--muted);
}
.specs dd {
  font-weight: 650;
}
.gallery figure {
  height: clamp(370px, 40vw, 580px);
  background: var(--soft);
}
.gallery figure > img,
.about figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.zoom {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--paper);
}
.thumbs {
  gap: 5px;
  margin-top: 8px;
}
.thumbs img,
.mediaThumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
}
.thumbs button {
  padding: 2px;
}
.lightbox {
  display: block;
  width: 100%;
  max-height: 67vh;
  object-fit: contain;
}
.choices,
.colorindex,
.channels {
  gap: 7px;
  flex-wrap: wrap;
}
.choices label {
  position: relative;
  cursor: pointer;
}
.choices input {
  position: absolute;
  opacity: 0;
}
.choices span,
.colorindex a,
.channels button {
  border: 1px solid var(--border);
  border-radius: 4px;
  gap: 6px;
  padding: 8px 10px;
  font-size: 13px;
  min-height: 44px;
}
.choices input:checked + span,
.channels button:hover {
  border-color: var(--accent);
  background: var(--soft);
}
.choices input:focus-visible + span {
  outline: 3px solid var(--accent);
}
.choices input:disabled + span {
  opacity: 0.5;
  text-decoration: line-through;
}
.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #0003;
  display: inline-block;
  flex-shrink: 0;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 22px 0 12px;
}
legend {
  font-weight: 650;
  margin-bottom: 8px;
}
.detail .actions {
  margin: 16px 0;
}
.two,
.inqgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.inqgrid {
  grid-template-columns: 1.3fr 1fr;
  align-items: start;
  gap: 25px;
}
.inqrow {
  display: grid;
  gap: 12px;
  margin-bottom: 15px;
}
.inqtop small,
.adminrow small,
.designgrid small {
  display: block;
}
.inqtop small {
  color: var(--muted);
}
.channels button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 650;
}
.full {
  width: 100%;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    14px/2 Vazir,
    sans-serif;
  background: var(--soft);
  padding: 14px;
}
.ref {
  display: block;
  font: 600 26px monospace;
}
.contactline {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.contactline b {
  gap: 8px;
}
.contactline span {
  font-size: 13px;
}
.about {
  min-height: 400px;
  align-items: center;
}
.about figure {
  height: 400px;
}
.stepline {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.stepline > span {
  color: var(--accent);
  font-size: 24px;
}
.stepline h2 {
  margin: 0 0 6px;
  font-size: 20px;
}
.qa {
  border-block-end: 1px solid var(--border);
  padding: 18px 0;
}
.qa summary {
  font-weight: 650;
}
.qa p {
  margin: 10px 0;
}
.adminbanner {
  margin-bottom: 22px;
}
.adminlayout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
}
.adminlayout nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.adminlayout nav a {
  padding: 9px 12px;
  border-radius: 4px;
}
.adminlayout section > h2 {
  margin-bottom: 15px;
}
.adminrow {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.adminrow > div:last-child {
  gap: 5px;
}
.mini {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 7px 12px;
  min-height: 44px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.metrics b,
.metrics span {
  display: block;
}
.metrics b {
  font-size: 29px;
}
.editform {
  clear: both;
}
.check {
  gap: 7px;
}
.designgrid article {
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--paper);
}
.designgrid .btn {
  margin: 15px 0 0;
}
.designshot {
  aspect-ratio: 1.6;
  object-position: top;
}
.designgrid small {
  margin-top: 8px;
}
.designgrid + p {
  margin-top: 18px;
}
.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--paper);
  padding: 5px 10px;
}
.searchbar input {
  border: 0;
  flex: 1;
}
.searchbar button {
  padding: 7px 12px;
  background: var(--accent);
  color: white;
  border-radius: 3px;
}
.ledgerhome,
.swatchhome {
  padding-block: 44px 64px;
}
.ledgerhome .searchbar {
  max-width: 660px;
}
.ledgerhome .btn {
  margin-top: 20px;
}
.ledgerrow {
  display: grid;
  grid-template-columns: 2fr 1fr 1.1fr 0.5fr 18px;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  border-bottom: 1px solid var(--border);
}
.legend {
  background: var(--soft);
  font-size: 12px;
  color: var(--muted);
}
a.ledgerrow:hover {
  background: var(--soft);
}
[data-style="ledger"] {
  --bg: #f8fafb;
  --accent: #203e5e;
  --soft: #e4ebf1;
  --fg: #182934;
  --border: #cbd6df;
  --muted: #4d5d6c;
}
[data-style="ledger"] .detail {
  grid-template-columns: 1.35fr 0.65fr;
}
[data-style="ledger"] .gallery figure {
  height: 320px;
}
[data-style="ledger"] .specs {
  border-top: 3px solid var(--accent);
}
[data-style="swatch"] {
  --accent: #91462e;
  --soft: #f2e6dc;
  --bg: #fbf6ed;
  --fg: #382c28;
  --border: #dbcabe;
  --muted: #675852;
}
[data-style="swatch"] h1,
[data-style="swatch"] h2,
[data-style="swatch"] .brand b {
  font-family: Naskh, Vazir, sans-serif;
  letter-spacing: -1px;
}
.swatchcover {
  background: var(--soft);
  min-height: 350px;
  gap: 0;
}
.swatchcover > div {
  padding: 44px;
  align-self: center;
}
.swatchcover h1 {
  font-size: clamp(39px, 4vw, 65px);
}
.swatchcover p {
  margin: 8px 0 18px;
}
.swatchcover figure img {
  object-position: 50% 42%;
}
.colorindex {
  margin: 20px 0 30px;
}
.colorindex a {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--paper);
}
.colorindex .dot {
  border-radius: 3px;
  width: 26px;
  height: 26px;
}
[data-style="swatch"] .pimage {
  aspect-ratio: 1;
}
[data-style="swatch"] .detail .gallery {
  grid-column: 1;
  grid-row: 1;
}
[data-style="swatch"] .detail .choices .dot {
  width: 25px;
  height: 25px;
  border-radius: 2px;
}
dialog {
  position: fixed;
  border: none;
  border-radius: 9px;
  box-shadow: 0 20px 70px #10191030;
  padding: 26px;
  background: var(--paper);
  color: var(--fg);
  width: min(570px, 92vw);
  max-height: 88dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #16251dde;
}
dialog .closer {
  float: left;
  margin: -8px 0 3px -8px;
}
dialog h2 {
  font-size: 22px;
  margin-bottom: 16px;
}
dialog p {
  margin: 12px 0 18px;
}
dialog .sample {
  position: static;
}
.mobilenav a {
  padding: 8px;
}
#notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #223a2e;
  color: #fff;
  padding: 8px 16px;
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  font-size: 13px;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
#notice.show {
  opacity: 1;
  transform: translateX(-50%);
}
@media (max-width: 1000px) {
  .wrap {
    width: 93%;
  }
  .cataloglayout {
    grid-template-columns: 195px 1fr;
    gap: 17px;
  }
  .cataloglayout .productgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topnav {
    gap: 14px;
  }
  .covercopy {
    padding: 30px;
  }
  .cover h1 {
    font-size: 54px;
  }
  .cover {
    min-height: 417px;
  }
  .productgrid {
    gap: 14px;
  }
  .headrow {
    gap: 15px;
  }
  .pcopy h3 {
    font-size: 17px;
  }
}
@media (max-width: 759px) {
  .wrap {
    width: calc(100% - 34px);
  }
  .topnav,
  .favlink {
    display: none;
  }
  .menu {
    display: flex;
  }
  .headrow {
    min-height: 64px;
  }
  .brand img {
    width: 31px;
    height: 31px;
  }
  .brand b {
    font-size: 25px;
  }
  .headtools {
    gap: 0;
  }
  .bag {
    margin: 0;
    padding: 0 8px;
    min-height: 40px;
    gap: 5px;
  }
  .headtools > .icon {
    width: 40px;
  }
  .bag span {
    font-size: 12px;
  }
  .cover {
    display: flex;
    flex-direction: column;
    margin-top: 17px;
    min-height: 0;
  }
  .covercopy {
    padding: 24px;
    width: 100%;
  }
  .cover h1 {
    font-size: 46px;
    line-height: 1.35;
    max-width: 100%;
    letter-spacing: -2px;
  }
  .covercopy > p {
    font-size: 14px;
    margin: 10px 0 17px;
  }
  .eyebrow {
    font-size: 11px;
    margin-bottom: 10px;
  }
  .coverart {
    height: 210px;
  }
  .figlabel {
    bottom: 12px;
    left: 12px;
    right: 12px;
  }
  .homecat {
    padding-top: 32px;
  }
  .sectionhead {
    margin-bottom: 15px;
  }
  .textlink {
    font-size: 12px;
  }
  .productgrid,
  .cataloglayout .productgrid,
  .catgrid,
  .designgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }
  .pcopy {
    padding-top: 8px;
  }
  .pcopy h3 {
    font-size: 16px;
  }
  .pcopy p {
    font-size: 11px;
  }
  .cardbottom {
    display: block;
  }
  .cardbottom a {
    margin-top: 4px;
  }
  .fav {
    width: 35px;
    height: 35px;
    top: 5px;
    left: 5px;
  }
  .sample {
    top: 5px;
    right: 5px;
    font-size: 9px;
    padding: 1px 5px;
  }
  .families {
    gap: 4px;
    margin: 10px 0 14px;
  }
  .families a {
    padding: 4px 10px;
    font-size: 12px;
  }
  .families svg {
    display: none;
  }
  .callout,
  .adminbanner {
    align-items: flex-start;
    flex-direction: column;
  }
  .callout {
    padding: 20px;
    margin-block: 30px;
  }
  .footrow {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 23px 0;
  }
  .footrow > div {
    grid-column: 1/-1;
  }
  .credits {
    align-items: flex-start;
  }
  .inner,
  .reading,
  .ledgerhome,
  .swatchhome {
    padding-block: 24px 45px;
  }
  .pagetitle {
    margin-bottom: 21px;
  }
  .pagetitle p {
    font-size: 14px;
  }
  .cataloglayout,
  .detail,
  [data-style="ledger"] .detail,
  .inqgrid,
  .about,
  .swatchcover,
  .adminlayout {
    grid-template-columns: 1fr;
  }
  .cataloglayout,
  .inqgrid {
    gap: 17px;
  }
  .filterbox {
    padding: 12px 15px;
  }
  .tools {
    gap: 4px;
  }
  .tools label {
    font-size: 11px;
  }
  .tools select {
    max-width: 90px;
    padding: 6px;
  }
  .catcover {
    grid-template-columns: 1.1fr 1fr;
    gap: 8px;
    min-height: 125px;
  }
  .catcover > div {
    padding: 12px;
  }
  .catgrid,
  .designgrid {
    grid-template-columns: 1fr;
  }
  .catgrid figure {
    aspect-ratio: 2.3;
  }
  .detail {
    display: flex !important;
    flex-direction: column-reverse;
    gap: 20px;
    margin-bottom: 35px;
  }
  .gallery figure,
  [data-style="ledger"] .gallery figure {
    height: 230px;
  }
  .about figure {
    height: 250px;
  }
  .footrow nav {
    font-size: 13px;
  }
  .two {
    gap: 9px;
  }
  .ledgerrow {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2px 9px;
    padding: 11px 6px;
    font-size: 13px;
  }
  .legend {
    display: none;
  }
  .ledgerrow strong {
    grid-column: 1/-1;
    font-size: 16px;
  }
  .ledgerrow span[data-unit]:after {
    content: " " attr(data-unit);
    font-size: 10px;
    color: var(--muted);
  }
  .ledgerrow svg {
    display: none;
  }
  .swatchcover > div {
    padding: 24px;
  }
  .swatchcover figure {
    height: 220px;
  }
  .adminlayout nav {
    flex-flow: row wrap;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
  }
  .adminlayout nav a {
    font-size: 13px;
    padding: 6px 9px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .adminrow {
    gap: 6px;
  }
  .adminrow > div:last-child {
    flex-wrap: wrap;
  }
  .mini {
    padding: 5px 8px;
  }
  .pimage {
    aspect-ratio: 1.15;
  }
  .ref {
    font-size: 22px;
  }
  .inner h1 {
    line-height: 1.6;
  }
  .sheet,
  .inqrow {
    padding: 16px;
  }
}
@media (max-width: 370px) {
  .wrap {
    width: calc(100% - 22px);
  }
  .bag span {
    display: none;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .cover h1 {
    font-size: 41px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}
.coverart video {
  height: 100%;
  width: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}
.coverart:has(video) .figlabel {
  top: 12px;
  bottom: auto;
}
.figlabel > span + span {
  color: #5b665e;
  font-size: 11px;
}
@media (max-width: 759px) {
  [data-style="ledger"] .detail {
    flex-direction: column !important;
  }
  [data-style="ledger"] .detail .gallery figure {
    height: 160px;
  }
  [data-style="swatch"] .gallery figure {
    height: 285px;
  }
  .fav {
    width: 44px;
    height: 44px;
  }
  .headtools > .icon {
    width: 44px;
  }
}
:root {
  --photo-radius: 20px;
  --hero-radius: 27px;
  --thumb-radius: 10px;
}
img {
  border-radius: var(--photo-radius);
}
.cover,
.catcover,
.swatchcover {
  border-radius: calc(var(--hero-radius) + 6px);
  overflow: hidden;
}
.coverart,
.catcover figure,
.swatchcover figure {
  margin: 10px;
  border-radius: var(--hero-radius);
}
.coverart > img,
.coverart video,
.catcover img,
.swatchcover img,
.about figure,
.about figure img {
  border-radius: var(--hero-radius);
}
.pimage,
.pimage img,
.gallery figure,
.gallery figure > img,
.catgrid figure,
.catgrid img,
.designshot {
  border-radius: var(--photo-radius);
}
.lightbox {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 67vh;
  margin-inline: auto;
  border-radius: var(--photo-radius);
}
.thumbs img,
.mediaThumb {
  border-radius: var(--thumb-radius);
}
.brand img {
  border-radius: 7px;
}
.figlabel {
  border-radius: 7px;
}
.sample {
  border-radius: 6px;
}
@media (max-width: 759px) {
  :root {
    --photo-radius: 15px;
    --hero-radius: 20px;
    --thumb-radius: 8px;
  }
  .coverart,
  .catcover figure,
  .swatchcover figure {
    margin: 7px;
  }
  .coverart {
    margin-top: 0;
  }
  .figlabel {
    bottom: 10px;
    left: 10px;
    right: 10px;
  }
}
#notice {
  max-width: 90vw;
}
.searchbar input {
  min-width: 0;
}
.lightbox + .sample {
  position: static;
  display: inline-block;
  margin-top: 8px;
}
.nav-panel:not(.open) {
  visibility: hidden;
  pointer-events: none;
}

/* Navigation, type and motion for the three catalogue directions. */
@font-face {
  font-family: Estedad;
  src: url("/media/estedad.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ease-out: cubic-bezier(0.19, 1, 0.28, 1);
  --photo-radius: 50%;
  --hero-radius: 999px;
  --thumb-radius: 50%;
}
html {
  scroll-padding-top: 86px;
}
#head {
  position: sticky;
  top: 0;
  z-index: 12;
  background: var(--bg);
  transition: box-shadow 0.25s;
}
#head.compact {
  box-shadow: 0 4px 20px #1a342219;
}
.headrow {
  position: relative;
  transition: min-height 0.3s var(--ease-out);
}
#head.compact .headrow {
  min-height: 58px;
}
.brand {
  isolation: isolate;
  white-space: nowrap;
}
.brand b {
  font-family: Estedad, Vazir, sans-serif;
  letter-spacing: -0.07em;
}
.brand img {
  transition:
    filter 0.25s var(--ease-out),
    transform 0.3s var(--ease-out);
}
.brand:is(:hover, :focus-visible) img {
  filter: brightness(1.23) drop-shadow(0 0 5px #7da67cbb);
  transform: rotate(-5deg);
}
#head.compact .brand img {
  width: 32px;
  height: 32px;
}
.topnav {
  gap: clamp(12px, 1.8vw, 30px);
}
.topnav a {
  position: relative;
  white-space: nowrap;
}
.topnav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 9px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.22s var(--ease-out);
}
.topnav a:is(:hover, :focus-visible)::after {
  transform: scaleX(1);
}
#menu {
  display: grid;
  place-items: center;
  margin-inline-start: 4px;
  border: 1px solid var(--border);
  color: var(--accent);
  background: var(--soft);
}
.menu-glyph {
  position: relative;
  display: block;
  width: 19px;
  height: 17px;
  transition: transform 0.4s var(--ease-out);
}
.menu-glyph i {
  position: absolute;
  width: 17px;
  height: 1.6px;
  left: 1px;
  background: currentColor;
  border-radius: 3px;
  transition:
    transform 0.28s var(--ease-out),
    opacity 0.16s;
}
.menu-glyph i:nth-child(1) {
  top: 2px;
}
.menu-glyph i:nth-child(2) {
  top: 7.5px;
}
.menu-glyph i:nth-child(3) {
  top: 13px;
}
#menu[aria-expanded="true"] .menu-glyph {
  transform: rotate(90deg);
}
#menu[aria-expanded="true"] i:first-child {
  transform: translateY(5.5px) rotate(45deg);
}
#menu[aria-expanded="true"] i:nth-child(2) {
  opacity: 0;
}
#menu[aria-expanded="true"] i:last-child {
  transform: translateY(-5.5px) rotate(-45deg);
}
.nav-panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  width: min(350px, 100%);
  max-height: calc(100dvh - 100px);
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 16px 45px #192e2528;
  transform-origin: 18px -12px;
  transform: translateY(-5px) rotate(4deg) scale(0.96);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.27s var(--ease-out),
    opacity 0.17s,
    visibility 0s 0.27s;
}
.nav-panel.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.nav-panel a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  min-height: 46px;
  border-radius: 13px;
  font-size: 14px;
  white-space: nowrap;
}
.nav-panel.open a {
  animation: menu-in 0.25s var(--ease-out) backwards;
  animation-delay: calc(var(--order) * 12ms);
}
.nav-panel a[aria-current="page"],
.nav-panel a:is(:hover, :focus-visible) {
  color: var(--accent);
  background: var(--soft);
}
@keyframes menu-in {
  from {
    opacity: 0.2;
    transform: translate(3px, -4px) rotate(2deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes dialog-in {
  from {
    opacity: 0.1;
    transform: translateY(9px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
dialog[open] {
  animation: dialog-in 0.22s var(--ease-out);
}
.pointer-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 30;
  opacity: 0;
  transition: opacity 0.12s;
}
.pointer-ring.visible {
  opacity: 1;
}
.pointer-ring::before {
  content: "";
  position: absolute;
  top: -9px;
  left: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 57%, transparent);
  background: transparent;
  transition:
    transform 0.19s var(--ease-out),
    background-color 0.16s;
}
.pointer-ring.over-control::before {
  transform: scale(1.45);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.pointer-ring.pressed::before {
  transform: scale(0.73);
}
a,
button,
summary,
.swatch-face {
  transition:
    color 0.16s,
    background-color 0.18s,
    border-color 0.18s,
    box-shadow 0.18s,
    transform 0.2s var(--ease-out);
}
@media (hover: hover) {
  .footrow nav a:hover,
  .topnav a:hover,
  .pcard h3 a:hover,
  .under:hover,
  .textlink:hover,
  summary:hover {
    color: var(--accent);
  }
  .footrow nav a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  :is(
    .bag,
    .line,
    .quiet,
    .families a,
    .channels button,
    .adminlayout nav a,
    .colorindex a,
    .catgrid > a,
    .mini
  ):hover {
    background-color: var(--soft);
    color: var(--accent);
  }
  .primary:hover {
    box-shadow: 0 4px 12px #20382a27;
  }
  .btn:hover > svg,
  .textlink:hover > svg {
    transform: translateX(-3px);
  }
  .btn svg,
  .textlink svg {
    transition: transform 0.2s var(--ease-out);
  }
  .icon:hover {
    color: var(--accent);
  }
}
h1,
h2,
h3,
.brand b {
  font-family: Estedad, Vazir, sans-serif;
  font-synthesis: none;
}
h1,
h2,
h3,
legend,
summary {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
.topnav a,
.btn,
.bag,
.textlink,
.families a,
.chips a,
.sample,
.cardbottom > span,
.over,
.mini {
  white-space: nowrap;
}
.covercopy,
.swatchcover > div {
  container-type: inline-size;
  min-width: 0;
}
.cover .covercopy h1,
.swatchcover h1 {
  font-size: clamp(22px, 8.1cqi, 55px);
  line-height: 1.55;
  max-width: none;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.covercopy > p {
  max-width: 100%;
  margin: 14px 0 22px;
}
.pagetitle p {
  max-width: 100%;
}
.card-specs {
  display: flex;
  align-items: baseline;
  gap: 2px 8px;
  flex-wrap: wrap;
}
.pcopy .card-specs > span {
  white-space: nowrap;
  margin: 0;
}
.card-specs > span + span:before {
  content: "·";
  margin-inline-end: 7px;
}
.cover,
.catcover,
.swatchcover {
  border-radius: 36px;
}
.coverart,
.swatchcover figure {
  border-radius: 999px;
  margin: clamp(12px, 1.7vw, 26px);
}
.coverart > img,
.coverart video,
.swatchcover figure img {
  border-radius: inherit;
}
.coverart .figlabel {
  width: max-content;
  max-width: 85%;
  right: 50%;
  left: auto;
  bottom: 7%;
  transform: translateX(50%);
  border-radius: 999px;
  gap: 15px;
  padding: 7px 14px;
}
.pimage,
[data-style="swatch"] .pimage {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: visible;
  background: transparent;
}
.pimage > a {
  overflow: hidden;
  border-radius: 50%;
}
.pimage > a img {
  border-radius: 50%;
}
.pimage .fav {
  top: 6%;
  left: 6%;
  box-shadow: 0 2px 8px #24352a1f;
}
.pimage .sample {
  top: auto;
  bottom: 4%;
  right: 50%;
  transform: translateX(50%);
  border-radius: 999px;
}
.catgrid figure,
.about figure,
.gallery figure,
.catcover figure {
  border-radius: 999px;
}
.catgrid img,
.about figure img,
.gallery figure > img,
.catcover figure img {
  border-radius: inherit;
}
:is(.gallery, .about, .catgrid, .catcover, .swatchcover) figure .sample {
  right: 50%;
  top: 7%;
  transform: translateX(50%);
  border-radius: 999px;
}
.gallery .zoom {
  left: 18%;
  bottom: 6%;
}
.thumbs img,
.mediaThumb {
  border-radius: 50%;
}
.lightbox,
.designshot {
  border-radius: clamp(20px, 4vw, 55px);
}
/* The full-resolution viewer keeps the complete textile in view. */
.swatch-field {
  margin: 10px 0 15px;
  min-width: 0;
}
.swatch-field legend {
  margin-bottom: 8px;
  font:
    650 14px/1.8 Vazir,
    sans-serif;
}
.swatch-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.swatch-option {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  max-width: 100%;
}
.swatch-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  z-index: 1;
  cursor: inherit;
}
.swatch-face,
.colorindex a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--paper);
  font-size: 13px;
}
.swatch-face .dot,
.colorindex .dot,
.mixed-swatch {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px #0001;
}
.mixed-swatch {
  display: block;
  background: conic-gradient(
    #e2d7bc 0deg 90deg,
    #825448 90deg 180deg,
    #485d4b 180deg 270deg,
    #788390 270deg
  );
}
.swatch-name {
  text-wrap: balance;
}
.swatch-face > svg {
  width: 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.swatch-option input:checked + .swatch-face,
.colorindex a[aria-current="true"] {
  border-color: var(--accent);
  background: var(--soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.swatch-option input:checked + .swatch-face > svg {
  width: 13px;
  opacity: 1;
}
.swatch-option input:focus-visible + .swatch-face {
  outline: 3px solid #ac643d;
  outline-offset: 2px;
}
.swatch-option:has(input:disabled) {
  cursor: not-allowed;
}
.swatch-option input:disabled + .swatch-face {
  opacity: 0.53;
  text-decoration: line-through;
}
@media (hover: hover) {
  .swatch-option:hover input:enabled + .swatch-face {
    border-color: var(--accent);
    transform: translateY(-1px);
  }
}
.filters .swatch-field {
  margin: 0;
}
.filters .swatch-face {
  gap: 5px;
  padding-inline: 8px;
}
.inqrow .two:has(.swatch-field) {
  display: flex;
  flex-direction: column;
}
@media (max-width: 950px) {
  .topnav {
    display: none;
  }
}
@media (max-width: 759px) {
  #head.compact .headrow {
    min-height: 54px;
  }
  #head.compact .brand img {
    width: 27px;
    height: 27px;
  }
  .cover,
  .swatchcover,
  .catcover {
    border-radius: 25px;
  }
  .coverart,
  .swatchcover figure {
    margin: 9px;
  }
  .coverart {
    height: clamp(165px, 52vw, 285px);
  }
  .cover .covercopy h1,
  .swatchcover h1 {
    font-size: clamp(22px, 8.4cqi, 40px);
  }
}
@media (max-width: 540px) {
  .productgrid,
  .cataloglayout .productgrid {
    grid-template-columns: 1fr;
  }
  .pcard {
    display: grid;
    grid-template-columns: minmax(86px, 28%) minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding-block: 11px;
    border-bottom: 1px solid var(--border);
  }
  .pcopy {
    padding: 0;
  }
  .pcopy h3 {
    font-size: clamp(14px, 3.9vw, 19px);
  }
  .pimage .fav {
    width: 34px;
    height: 34px;
    top: -5%;
    left: -3%;
  }
  .pimage .fav::before {
    content: "";
    position: absolute;
    inset: -5px;
  }
  .pimage .sample {
    bottom: 2%;
    font-size: 9px;
  }
  .cardbottom {
    display: flex;
    margin-top: 5px;
    padding-top: 4px;
    border-top: 0;
  }
  .cardbottom a {
    margin: 0;
  }
  .covercopy {
    padding: 21px;
  }
  .card-specs {
    column-gap: 5px;
  }
  .card-specs > span + span:before {
    margin-inline-end: 4px;
  }
  .bag {
    border-radius: 20px;
  }
}
@media (max-width: 360px) {
  .bag span {
    display: none;
  }
  .headrow {
    gap: 4px;
  }
  .nav-panel a {
    font-size: 13px;
  }
  .headtools .icon {
    width: 39px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pointer-ring {
    display: none;
  }
  .nav-panel,
  .nav-panel a,
  dialog[open] {
    animation: none !important;
    transition: none !important;
  }
}
.nav-panel {
  inset-inline-end: 8px;
  width: min(350px, calc(100% - 16px));
}
.swatch-option input {
  pointer-events: none;
}
.swatch-face > svg {
  width: 13px;
  flex-shrink: 0;
}
@media (min-width: 760px) {
  .cover .covercopy h1 {
    font-size: clamp(28px, 9.8cqi, 62px);
  }
}
.covercopy > p {
  font-size: clamp(14px, 3.4cqi, 16px);
}
@media (min-width: 760px) and (max-width: 900px) {
  .covercopy {
    padding: 20px;
  }
}
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}
.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}
.admin-filters input,
.admin-filters select {
  flex: 1 1 180px;
  min-width: 0;
}
.color-avail {
  font-size: 13px;
  color: var(--accent, #224433);
  margin: 6px 0 0;
  font-weight: 500;
}
.color-avail.is-out {
  color: #9e2a2b;
}
