/* THE UNREALIZED — packing slip, not a landing template.
   no cdn. no webfonts. dark default, light via prefers-color-scheme. */

:root {
  --paper: #12110f;
  --ink: #e6e1d4;
  --stamp: #c4463d;
  --muted: #7a766a;
  --rule: color-mix(in srgb, var(--ink) 18%, transparent);
  --accent: #d3f04a;
  --cta-ink: #12110f;
  --wash: color-mix(in srgb, var(--ink) 4%, transparent);
  --font-mono: ui-monospace, "Cascadia Mono", "Cascadia Code", "Segoe UI Mono",
    Consolas, "SFMono-Regular", Menlo, monospace;
  --font-head: "Arial Narrow", "Helvetica Neue Condensed", "Arial Nova Condensed",
    "Franklin Gothic Medium", Arial, sans-serif;
  --pad: clamp(1rem, 4vw, 2.25rem);
  --max: 72rem;
  --header-h: 3.1rem;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --paper: #efebe3;
    --ink: #1a1814;
    --stamp: #b3271e;
    --muted: #7a7568;
    --accent: #8a9a1a;
    --wash: color-mix(in srgb, var(--ink) 5%, transparent);
    color-scheme: light;
  }
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  /* Дублирует overflow-x у html: одного правила на html не хватает, когда тело
     шире вьюпорта. */
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 1.067rem;
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

/* Film grain. Local SVG, no network. Overlay, not a wash. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

@media (prefers-color-scheme: light) {
  body::after {
    opacity: 0.11;
    mix-blend-mode: multiply;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
  min-width: 0;
}

a {
  color: inherit;
}

a:hover {
  color: var(--ink);
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 90;
  background: var(--accent);
  color: var(--cta-ink);
  padding: 0.4rem 0.75rem;
  font-size: 0.99rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - var(--pad) * 2, var(--max));
  margin-inline: auto;
  min-width: 0;
}

/* ----- header ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}

.head-row {
  min-height: var(--header-h);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding-block: 0.7rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  text-decoration: none;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 1.102rem;
  text-transform: lowercase;
  white-space: nowrap;
}

.lot {
  font-size: 0.898rem;
  color: var(--muted);
  border: 1px solid var(--rule);
  padding: 0.12rem 0.38rem;
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.05rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a {
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current] {
  color: var(--ink);
}

/* ----- masthead ----- */

.mast {
  padding: clamp(2.2rem, 7vw, 5.5rem) 0 clamp(1.6rem, 4vw, 2.6rem);
  border-bottom: 1px solid var(--rule);
}

.mast-grid {
  display: grid;
  gap: 1.6rem;
  align-items: end;
}

@media (min-width: 840px) {
  .mast-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(11rem, 0.62fr);
    gap: 3rem 2.4rem;
    min-height: min(68vh, 38rem);
  }
}

.mast-copy {
  min-width: 0;
  position: relative;
}

.bill {
  margin: 0 0 0.9rem;
  font-size: 0.898rem;
  color: var(--muted);
}

.mast h1 {
  margin: 0;
  position: relative;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(3.2rem, 14vw, 8.4rem);
  line-height: 0.82;
  letter-spacing: -0.035em;
  text-transform: lowercase;
}

.mast h1 .line {
  display: block;
  width: max-content;
  max-width: 100%;
  position: relative;
}

.mast h1 .mute {
  color: var(--muted);
}

.stamp {
  position: absolute;
  left: 100%;
  top: 0.18em;
  margin-left: 0.12em;
  border: 2px solid var(--stamp);
  color: var(--stamp);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.22em 0.5em;
  font-size: clamp(0.818rem, 1.5vw, 1.021rem);
  transform: rotate(-6deg);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  pointer-events: none;
  white-space: nowrap;
}

@media (max-width: 639px) {
  .stamp {
    left: auto;
    right: 0;
    top: auto;
    bottom: 0.08em;
    margin-left: 0;
  }
}

.lead {
  margin: 1.15rem 0 0;
  max-width: 28rem;
  font-size: clamp(1.102rem, 2.1vw, 1.265rem);
  line-height: 1.35;
}

.sub {
  margin: 0.55rem 0 0;
  max-width: 26rem;
  color: var(--muted);
  font-size: 1.021rem;
}

.mast-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.3rem;
  margin: 1.5rem 0 0;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--cta-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.03rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  padding: 0.72rem 1.2rem;
  border: 1px solid color-mix(in srgb, var(--cta-ink) 18%, transparent);
}

.cta:hover {
  color: var(--cta-ink);
  background: color-mix(in srgb, var(--accent) 86%, var(--ink));
}

.quiet {
  font-size: 0.928rem;
  color: var(--muted);
  text-decoration: none;
}

.quiet:hover {
  color: var(--ink);
}

.art-slot {
  position: relative;
  aspect-ratio: 1;
  border: 1px dashed var(--rule);
  background: var(--wash);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-align: center;
  padding: 0.75rem;
  overflow: hidden;
  min-width: 0;
}

.art-slot.has-art {
  border-style: solid;
  padding: 0;
}

.art-slot.has-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-slot .fig {
  position: absolute;
  top: 0.45rem;
  left: 0.55rem;
  font-size: 0.818rem;
  color: var(--muted);
}

.art-slot.has-art .fig {
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  padding: 0.1rem 0.3rem;
  z-index: 1;
}

.art-slot .hold {
  font-size: 0.898rem;
  color: var(--muted);
  max-width: 12rem;
}

.art-slot .sku-no {
  font-family: var(--font-head);
  font-size: 1.54rem;
  letter-spacing: 0.04em;
}

.cover-slot {
  width: min(100%, 20rem);
  justify-self: end;
}

@media (min-width: 840px) {
  .cover-slot {
    width: 100%;
    margin-bottom: 0.4rem;
  }
}

/* ----- docket (invoice facts, not stat cards) ----- */

.docket {
  border-bottom: 1px solid var(--rule);
  background: var(--wash);
}

.docket-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.docket-item {
  flex: 1 1 8.5rem;
  min-width: 0;
  padding: 0.85rem 1rem 0.85rem 0;
  border-right: 1px solid var(--rule);
}

.docket-item:last-child {
  border-right: none;
}

.docket-item span {
  display: block;
  font-size: 0.818rem;
  color: var(--muted);
}

.docket-item strong {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-head);
  font-size: 1.155rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

/* ----- sheets ----- */

.sheet {
  padding: clamp(2.4rem, 6vw, 4.6rem) 0;
  border-bottom: 1px solid var(--rule);
}

.sheet h2,
.mast h2 {
  margin: 0 0 1rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.2vw, 2.7rem);
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: lowercase;
}

.copy {
  max-width: 36rem;
}

.copy p {
  margin: 0 0 0.75rem;
}

.copy p:last-child {
  margin-bottom: 0;
}

.copy.tight {
  margin: 0;
}

.sheet-head {
  display: grid;
  gap: 0.65rem 2rem;
  margin-bottom: 1.35rem;
  align-items: end;
}

@media (min-width: 720px) {
  .sheet-head:not(.wide) {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  }

  .sheet-head:not(.wide) h2 {
    margin-bottom: 0;
  }
}

.split {
  display: grid;
  gap: 2.2rem;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }
}

.split-a .copy,
.split-b .copy {
  margin-bottom: 1.1rem;
}

/* ----- spec tables ----- */

.spec,
.axes {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.998rem;
}

.spec caption,
.axes caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.spec th,
.spec td,
.axes th,
.axes td {
  text-align: left;
  vertical-align: top;
  padding: 0.68rem 0.55rem 0.68rem 0;
  border-bottom: 1px solid var(--rule);
}

.spec th,
.axes th {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.95rem;
  width: 8.2rem;
  white-space: nowrap;
}

.axes thead th {
  font-size: 0.818rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--muted);
}

.axes tbody th {
  padding-top: 0.85rem;
}

.axes em {
  font-style: normal;
  color: var(--stamp);
}

.axes {
  margin-top: 2rem;
}

@media (max-width: 579px) {
  .spec,
  .spec tbody,
  .spec tr,
  .spec td,
  .spec th,
  .axes,
  .axes tbody,
  .axes tr,
  .axes td,
  .axes th {
    display: block;
    width: 100%;
    white-space: normal;
  }

  .axes thead {
    display: none;
  }

  .spec th,
  .axes tbody th {
    padding-bottom: 0.1rem;
    border-bottom: 0;
    width: auto;
  }

  .spec td,
  .axes td {
    padding-top: 0.15rem;
  }
}

/* ----- manifest ----- */

.board {
  margin-top: 0.25rem;
  border: 1px solid var(--rule);
  overflow-x: auto;
  max-width: 100%;
}

.board table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.974rem;
}

.board table:not(:has(.empty)) {
  min-width: 28rem;
}

.board th,
.board td {
  padding: 0.62rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}

.board th {
  font-size: 0.818rem;
  font-weight: 400;
  color: var(--muted);
}

.board .empty td {
  text-align: left;
  color: var(--muted);
  padding: 2.2rem 1rem;
  font-size: 0.986rem;
}

.note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.928rem;
}

/* ----- sku catalog ----- */

.sku-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.55rem;
  margin: 0.4rem 0 0;
}

@media (min-width: 720px) {
  .sku-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  .sku-grid .featured {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }
}

.sku-grid .art-slot {
  min-height: 0;
}

.sku-grid figcaption {
  margin-top: 0.35rem;
  font-size: 0.858rem;
  color: var(--muted);
}

.sku-grid .featured .sku-no {
  font-size: 2.0rem;
}

/* ----- questions ----- */

.qa {
  border-top: 1px solid var(--rule);
  margin-top: 0.4rem;
}

.qa details {
  border-bottom: 1px solid var(--rule);
}

.qa summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 1.4rem 0.95rem 0;
  font-size: 1.102rem;
  position: relative;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0.95rem;
  color: var(--muted);
  font-size: 1.102rem;
}

.qa details[open] summary::after {
  content: "–";
}

.qa details p {
  margin: 0 0 1.05rem;
  max-width: 38rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .qa {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2.5rem;
    border-top: 0;
  }

  .qa details:nth-child(odd) {
    border-right: 1px solid var(--rule);
    padding-right: 1.4rem;
  }
}

/* ----- footer ----- */

.site-footer {
  padding: 2rem 0 2.75rem;
  font-size: 0.99rem;
  color: var(--muted);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  align-items: baseline;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
}

.foot-links a {
  color: var(--muted);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--ink);
}

.disclosure {
  margin: 1.1rem 0 0;
  max-width: 38rem;
  line-height: 1.5;
}

.still {
  margin: 1.35rem 0 0;
  font-family: var(--font-head);
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: var(--ink);
  font-size: 1.102rem;
}

.stub {
  color: var(--muted);
  text-decoration: none;
  pointer-events: none;
}

/* ----- reduced motion ----- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cta,
  .nav a,
  .quiet {
    transition: none;
  }
}

/* ----- how you get on the manifest -----
   Три источника скоринга. Блок объясняет механику до того, как борд открыт:
   без него манифест на странице выглядит пустой таблицей без причины. */
.how {
  margin-top: clamp(2rem, 5vw, 3.4rem);
  padding-top: clamp(1.4rem, 3vw, 2rem);
  border-top: 1px solid var(--rule);
}

.how h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.how-lede {
  margin: 0 0 1.5rem;
  max-width: 46ch;
  font-size: 1.05rem;
  color: var(--muted);
}

.how-list {
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.how-list li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.8rem;
  align-items: baseline;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--rule);
}

.how-n {
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.how-t {
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 56ch;
}

.how-t b {
  font-weight: 700;
  color: var(--ink);
}

.how-note {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 52ch;
}
