@font-face {
  font-family: Roboto;
  src: url("/assets/fonts/roboto-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 75% 100%;
  font-display: optional;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Roboto;
  src: url("/assets/fonts/roboto-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 75% 100%;
  font-display: optional;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20A0-20CF,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --paper: #eee5d4;
  --ink: #15130e;
  --accent: #ac2f1c;
  --rule: #242016;
  --secondary: #51493f;
  --gutter: clamp(16px, 1.45vw, 32px);
  font: 400 16px/1.45 Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper) url("/assets/paper.webp") repeat;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden], .symbols { display: none !important; }
.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip:focus { position: fixed; z-index: 2; padding: 8px; background: var(--paper); }
.sheet { max-width: 1710px; margin-inline: auto; padding-inline: var(--gutter); }
.offer-sheet { max-width: 865px; padding-block: 24px; }
.offer-header { padding-bottom: 14px; border-bottom: 2px solid var(--rule); margin-bottom: 18px; }
.offer-header h1 { font-size: clamp(30px, 6vw, 50px); }
.offer-header nav { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 10px; }
.offer-header nav a { text-underline-offset: 3px; }
.offer-preview, .offer-preview img { display: block; width: 100%; }
.offer-preview img { height: auto; background: white; }
.masthead {
  min-height: 66px; border-bottom: 2px solid var(--rule); display: grid;
  grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-inline: 1.4%;
}
.wordmark {
  display: inline-flex; width: fit-content; align-items: center; gap: 5px;
  text-decoration: none; font-weight: 900; font-stretch: 75%; font-size: clamp(20px, 2vw, 27px);
  line-height: .82; letter-spacing: -.065em;
}
.wordmark img { width: clamp(31px, 3vw, 43px); height: auto; }
.masthead nav a {
  text-decoration: none; text-transform: uppercase; font-weight: 900;
  letter-spacing: .24em; font-size: clamp(12px, 1.22vw, 18px);
}
.masthead nav a:hover, .page-end a:hover { color: var(--accent); }
.basket, .icon-button {
  display: inline-flex; align-items: center; justify-content: center; border: 0;
  background: transparent; color: inherit; gap: 8px; min-width: 44px; min-height: 44px;
}
.basket { justify-self: end; font-size: clamp(18px, 1.8vw, 26px); font-weight: 800; }
.basket:hover, .icon-button:hover { color: var(--accent); }
.basket svg { width: clamp(27px, 3.1vw, 44px); height: 33px; }
.mast-title {
  display: grid; grid-template-columns: max-content 1fr; align-items: center;
  column-gap: clamp(18px, 2vw, 36px); padding: 15px .5% 17px;
  border-bottom: 2px solid var(--rule);
}
h1 {
  font-weight: 900; font-stretch: 75%; font-size: clamp(34px, 4.05vw, 70px);
  letter-spacing: -.06em; line-height: 1.02;
}
.mast-note {
  margin-bottom: .1vw; font-weight: 650; font-size: clamp(15px, 1.25vw, 21px); line-height: 1.2;
}
.catalog h2 { font-size: clamp(25px, 2vw, 32px); font-weight: 850; letter-spacing: -.035em; line-height: 1.08; margin: 13px 0 13px .24%; }
.plates { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 25px clamp(10px, 1vw, 18px); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 15px; }
.catalog-controls {
  display: grid; grid-template-columns: minmax(0, 375px) minmax(0, 215px);
  gap: 8px 14px; margin: 0 0 16px;
}
.catalog-controls label { display: grid; gap: 4px; min-width: 0; font-size: 13px; font-weight: 800; }
.catalog-controls input, .catalog-controls select {
  min-width: 0; width: 100%; padding: 8px 10px; min-height: 40px;
  background: transparent; color: var(--ink); border: 1px solid var(--rule);
  border-radius: 0; font: inherit; font-size: 16px; font-weight: 500;
}
.catalog-controls :is(input, select):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#catalog-empty { padding: 26px 0; font-weight: 750; }
.show-more {
  display: block; margin: 24px auto 0; padding: 10px 20px; min-height: 44px;
  background: transparent; color: var(--ink); border: 1px solid var(--rule); font-weight: 800;
}
.show-more:hover { color: var(--paper); background: var(--ink); }
.filters button {
  background: transparent; color: var(--ink); padding: 7px 11px;
  border: 1px solid var(--rule); min-height: 36px; font-size: 14px; font-weight: 750;
}
.filters button[aria-pressed="true"], .filters button:hover { background: var(--ink); color: var(--paper); }
.plate-cover { position: relative; overflow: hidden; background: #101622; aspect-ratio: 960 / 510; }
.plate-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.watch {
  display: inline-flex; align-items: center; gap: .48em; padding: .45em .72em;
  position: absolute; left: 7px; bottom: 7px;
  background: rgb(238 229 212 / 78%); color: var(--ink);
  border: 1px solid var(--ink); min-height: 34px; font-size: 13px; font-weight: 850;
}
.watch:hover, .watch:focus-visible { background: var(--paper); }
.watch svg, .clip-toggle svg { width: .95em; height: .95em; }
.plate-caption { padding: 7px 0 0; display: flex; flex-direction: column; height: auto; }
.plate-title { display: contents; }
.plate-title h3 {
  min-width: 0; font-weight: 900; font-stretch: 75%; font-size: clamp(19px, 1.45vw, 25px);
  letter-spacing: -.035em; line-height: 1.06; overflow-wrap: anywhere;
}
.plate-caption p { font-size: 14px; margin: 5px 0 7px; line-height: 1.28; }
.purchase { display: flex; flex: none; gap: 8px; align-items: center; justify-content: space-between; order: 1; }
.price {
  color: var(--accent); font-size: clamp(19px, 1.5vw, 25px); font-weight: 900;
  font-stretch: 75%; letter-spacing: -.03em; white-space: nowrap;
}
.add {
  color: var(--accent); background: transparent; border: 2px solid var(--accent);
  width: 44px; min-height: 44px; height: 44px;
  display: grid; place-items: center; padding: 0;
}
.add:hover, .add[aria-pressed="true"] { color: var(--paper); background: var(--accent); }
.add svg { width: 64%; height: 72%; }
.add .added, .add[aria-pressed="true"] .add-basket { display: none; }
.add[aria-pressed="true"] .added { display: block; }
.page-end {
  margin-top: clamp(31px, 3.1vw, 51px); border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content;
  gap: 9px clamp(16px, 4vw, 64px); align-items: start; padding: 11px 9px 16px;
}
.page-end strong { font-weight: 900; letter-spacing: -.055em; font-size: clamp(20px, 2.4vw, 34px); }
.page-end > a { padding: 6px 0; font-size: clamp(15px, 1.6vw, 24px); font-weight: 650; text-underline-offset: 4px; }
.seller-details { font-size: .875rem; overflow-wrap: anywhere; }
.seller-details p + p { margin-top: 3px; }
.seller-details a { text-underline-offset: 3px; }
@media (max-width: 540px) {
  .page-end { grid-template-columns: minmax(0, 1fr) max-content; }
  .seller-details { grid-column: 1 / -1; grid-row: 2; }
}

dialog {
  padding: 0; border: 1px solid var(--rule); color: var(--ink);
  background: var(--paper) url("/assets/paper.webp") repeat; max-width: calc(100% - 28px);
}
dialog::backdrop { background: rgb(13 11 8 / 70%); }
:root:has(dialog[open]) { overflow: hidden; }
.icon-button svg { width: 24px; height: 24px; }
.cart {
  margin: 0 0 0 auto; height: 100%; max-height: 100%; max-height: 100dvh; width: min(450px, 100%);
  border-width: 0 0 0 1px;
}
.cart-inner { padding: 25px; }
.cart header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid; }
.cart h2, .preview h2 { font-size: clamp(31px, 4.3vw, 50px); font-stretch: 75%; font-weight: 900; letter-spacing: -.05em; line-height: .94; }
#empty-cart { padding-block: 18px; }
#cart-items { list-style: none; margin: 0; padding: 0; }
.cart-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 9px; align-items: center;
  min-height: 61px; border-bottom: 1px solid rgb(36 32 22 / 35%); font-weight: 750;
}
.cart-item .price { font-size: 20px; }
.remove { padding: 4px 3px; color: var(--ink); background: transparent; text-decoration: underline; text-underline-offset: 3px; border: 0; min-height: 44px; font-size: 13px; }
.remove:hover { color: var(--accent); }
.cart-summary { padding-top: 25px; }
.cart-summary > div { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 24px; font-weight: 800; }
.cart-summary p, .format-note, .form-note { font-size: 14px; color: var(--secondary); }
.cart-summary p { margin-top: 10px; }
.primary {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--accent);
  background: var(--accent); color: #fffaf0; font-weight: 800;
}
.primary:hover:not(:disabled) { background: #852416; }
.primary:disabled { border-color: #b8aa99; background: #d1c5b5; color: #473f35; }
.preview { width: 720px; }
.preview[open] { display: grid; grid-template-columns: minmax(210px, 39%) minmax(0, 1fr); }
.preview-art { position: relative; align-self: start; background: #111521; aspect-ratio: 432 / 936; }
.preview-art :is(video, img) { width: 100%; height: 100%; position: absolute; inset: 0; }
.clip-toggle {
  position: absolute; bottom: 10px; left: 10px; right: 10px;
  background: var(--paper); border: 1px solid var(--ink); font-weight: 750;
}
.preview-info { padding: 55px 24px 24px; position: relative; align-self: center; }
.close-preview { position: absolute; top: 4px; right: 4px; }
.preview-info > p { margin-top: 12px; }
#preview-message:empty { display: none; }
.preview-details { margin-top: 12px; }
.preview-details summary { cursor: pointer; width: fit-content; font-weight: 750; }
.preview-details summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.preview-details > p:first-of-type { margin-top: 6px; }
.pack-details { margin: 16px 0; }
.pack-details > div { padding: 7px 0; border-top: 1px solid rgb(36 32 22 / 35%); }
.pack-details dt { font-weight: 800; }
.pack-details dd { margin: 0; font-size: 14px; }
.preview-info .primary { margin-top: 16px; }

@media (max-width: 1399px) {
  .plates { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1120px) {
  .plates { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .mast-title { grid-template-columns: 1fr; gap: 6px; }
  .plates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .masthead { min-height: 54px; gap: 8px; padding-inline: 0; }
  .masthead nav a { letter-spacing: .16em; }
  .mast-title { padding: 12px 0 11px; gap: 7px; }
  h1 { font-size: clamp(28px, 8.35vw, 48px); letter-spacing: -.055em; }
  .mast-note { font-size: clamp(14px, 3.4vw, 18px); }
  .catalog h2 { margin-bottom: 12px; }
  .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
  .plate-title h3 { font-size: clamp(17px, 4.7vw, 22px); }
  .plate-caption p { font-size: 13px; }
  .watch { min-height: 32px; font-size: 12px; }
  .catalog-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .catalog-controls input, .catalog-controls select { padding-left: 6px; padding-right: 4px; }
  .preview[open] { display: flex; flex-direction: column; max-height: calc(100dvh - 16px); }
  .preview-art {
    flex: none; align-self: center; margin-top: 10px;
    width: min(66%, 238px, calc(max(104px, 100dvh - 205px) * .461538));
  }
  .preview-info { align-self: stretch; position: static; padding: 10px 14px 12px; }
  .preview h2 { font-size: clamp(22px, 6.6vw, 32px); line-height: 1.04; }
  .preview-details { margin-top: 4px; font-size: 14px; }
  .preview-details summary { min-height: 40px; padding-block: 10px; }
  .preview-info .primary { margin-top: 4px; }
  .clip-toggle { left: 5px; right: 5px; bottom: 5px; min-height: 36px; font-size: 12px; padding: 2px; }
}
@media (min-width: 621px) {
  .preview-details[open] summary { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
