:root {
  color-scheme: light;
  --ink: #20231f;
  --muted: #535a52;
  --line: #d5d9d2;
  --paper: #fff;
  --panel: #f1f3ee;
  --accent: #ff791d;
  --dark: #242923;
  font-family: "Inter","Helvetica Neue",Arial,sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body,figure,h1,h2,h3,p,dl,dd {
  margin: 0;
}

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

button,a {
  font: inherit;
  color: inherit;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none!important;
}

:focus-visible {
  outline: 3px solid #165ab5;
  outline-offset: 4px;
}

.frame {
  width: min(100% - clamp(2.25rem,9vw,10rem),82rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  z-index: 5;
  left: 1rem;
  top: -5rem;
  background: white;
  padding: 1rem;
}

.skip:focus {
  top: .5rem;
}

header,footer {
  background: var(--ink);
  color: #fff;
}

.header-row,.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.header-row {
  min-height: 4.8rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .52rem;
  font-family: "Arial Black",Arial,sans-serif;
  font-size: 1.58rem;
  font-weight: 950;
  font-style: italic;
  letter-spacing: -.065em;
  line-height: 1;
}

.emblem {
  display: inline-block;
  width: 1.84rem;
  height: 1.43rem;
  background: var(--accent);
  clip-path: polygon(0 0,100% 0,88% 27%,67% 27%,42% 100%,14% 100%,40% 27%,0 27%);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(.8rem,3vw,2.75rem);
}

nav a,.footer-row>a:last-child {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .92rem;
  font-weight: 550;
}

nav a:hover,.footer-row>a:last-child:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 6px;
}

.product-switch {
  border-bottom: 1px solid var(--line);
  gap: clamp(1rem, 3vw, 2.5rem);
}

.product-switch a {
  border-bottom: 3px solid transparent;
  padding-block: .25rem;
  color: var(--muted);
  text-align: center;
}

.product-switch a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
  align-items: center;
  gap: clamp(2.5rem,7vw,7rem);
  padding-block: clamp(2.2rem,4.2vw,4.4rem) clamp(2.8rem,4.5vw,5rem);
}

.category {
  display: flex;
  align-items: center;
  gap: .62rem;
  text-transform: uppercase;
  font: 700 .78rem/1.4 "IBM Plex Mono",Menlo,monospace;
  letter-spacing: .105em;
  color: #495146;
}

.category span {
  width: 1.9rem;
  height: 4px;
  background: var(--accent);
}

h1,h2,h3 {
  font-family: "Barlow Condensed","Arial Narrow","Helvetica Neue",Arial,sans-serif;
  font-weight: 800;
}

h1 {
  font-size: clamp(3.75rem,6.65vw,6.35rem);
  line-height: .99;
  letter-spacing: -.045em;
  margin-block: 1.3rem 1.45rem;
}

.description,.features p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.02rem;
}

.description {
  max-width: 26.5rem;
}

.ratings {
  display: flex;
  gap: clamp(1rem,3vw,3.25rem);
  margin: 1.7rem 0 1.4rem;
  padding-block: 1.05rem;
  border-block: 1px solid var(--line);
  max-width: 28rem;
}

.ratings>div {
  display: grid;
  gap: .25rem;
}

.ratings>div+div {
  border-left: 1px solid var(--line);
  padding-left: clamp(1rem,3vw,3.25rem);
}

.ratings b,.price span {
  font-family: "Helvetica Neue",Arial,sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.55rem,2.1vw,2.2rem);
  letter-spacing: -.045em;
}

.ratings b small {
  font-size: .65em;
}

.ratings span,.price small {
  color: var(--muted);
  font-size: .88rem;
}

.price {
  display: flex;
  align-items: baseline;
  gap: .45rem;
}

.price span {
  font-size: 1.85rem;
  font-weight: 750;
}

.price small {
  font: 600 .8rem/1 monospace;
}

.action,.print,.close {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  border-radius: 3px;
  font-size: .94rem;
  font-weight: 700;
}

.action {
  gap: .68rem;
  background: var(--accent);
  color: #22190f;
  padding: .85rem 1.2rem;
  margin-top: 1.05rem;
}

.action:hover {
  background: #ff8c37;
}

.purchase-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin-top: 1.05rem;
}

.ordering-note {
  flex-basis: 100%;
  max-width: 38ch;
  color: var(--muted);
  font-size: .91rem;
  line-height: 1.55;
}

.buy {
  margin-top: 0;
  min-width: 9.2rem;
  border: 0;
}

.spec-link, .return-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  font-size: .94rem;
  text-decoration: underline;
  text-underline-offset: .22em;
}

.gallery {
  min-width: 0;
}

.gallery-shell {
  border: 1px solid #e1e4de;
  background: var(--panel);
  border-radius: 5px;
  overflow: hidden;
}

.viewport {
  aspect-ratio: 1.59;
  min-height: clamp(21rem,31vw,28rem);
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  background: var(--panel);
}

.viewport>img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  padding: clamp(.8rem,1.6vw,1.6rem);
}

.zoom {
  position: absolute;
  top: .65rem;
  right: .65rem;
  background: #fff;
  border: 1px solid #d7dbd3;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.zoom:hover,.print:hover,.close:hover {
  background: #e4e8df;
}

.expand-icon {
  width: 16px;
  height: 16px;
  background: linear-gradient(var(--ink),var(--ink)) left top/6px 2px,linear-gradient(var(--ink),var(--ink)) left top/2px 6px,linear-gradient(var(--ink),var(--ink)) right bottom/6px 2px,linear-gradient(var(--ink),var(--ink)) right bottom/2px 6px;
  background-repeat: no-repeat;
}

.gallery-shell figcaption,.diagram figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 1rem;
  border-top: 1px solid #dce1d7;
  font-size: .82rem;
  font-weight: 650;
}

#photo-index,.diagram figcaption span {
  font-family: "IBM Plex Mono",Menlo,monospace;
  font-size: .78rem;
  letter-spacing: .03em;
  color: var(--muted);
}

.thumbs {
  display: flex;
  gap: .6rem;
  margin-top: .7rem;
}

.thumb {
  width: 4.65rem;
  height: 3.55rem;
  border: 1px solid var(--line);
  padding: 3px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: #fff;
}

.thumb img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.thumb[aria-current=true] {
  border: 2px solid #a8430b;
  padding: 2px;
}

.thumb:hover {
  background: var(--panel);
}

.feature-section {
  padding: clamp(2.6rem,4.7vw,4.9rem) 0;
  background: var(--dark);
  color: #fff;
}

h2 {
  font-size: clamp(2.25rem,3.8vw,3.6rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.features {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: clamp(1rem,2.4vw,2.3rem);
  margin-top: 1.65rem;
}

.feature-photo {
  background: #eff1ec;
  overflow: hidden;
  aspect-ratio: 2.05;
  border-radius: 3px;
}

.feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.features h3 {
  font-size: 1.65rem;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: .95rem 0 .35rem;
}

.features p {
  color: #d4d9d1;
  max-width: 34ch;
}

.spec-section {
  padding-block: clamp(2.6rem,5.2vw,5.7rem);
}

.spec-heading {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.print,.close {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: .45rem 1rem;
}

.technical {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: start;
  gap: clamp(1.75rem,5vw,5rem);
}

.spec-list {
  border-top: 2px solid var(--ink);
}

.spec-list>div {
  display: grid;
  align-items: baseline;
  grid-template-columns: .94fr 1.06fr;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
}

.spec-list dt {
  color: var(--muted);
}

.spec-list dd {
  font-weight: 600;
}

.spec-list dd span {
  font-weight: 400;
  color: var(--muted);
  display: inline-block;
}

.diagram {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.diagram img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.footer-row {
  min-height: 5.4rem;
}

footer .wordmark {
  font-size: 1.25rem;
}

footer .emblem {
  width: 1.4rem;
  height: 1rem;
}

dialog {
  border: 0;
  border-radius: 5px;
  padding: 0;
  width: min(92vw,61rem);
  max-width: 94vw;
  box-shadow: 0 1rem 4rem #0005;
  color: var(--ink);
}

dialog::backdrop {
  background: #171b17c9;
}

.viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 1rem;
  border-bottom: 1px solid var(--line);
}

dialog img {
  height: 73vh;
  height: 73dvh;
  width: 100%;
  object-fit: contain;
  background: #fff;
}

@media(max-width:850px) {
  .hero {
    gap: 1.65rem;
    grid-template-columns: .93fr 1.07fr;
  }
  .viewport {
    min-height: 17rem;
  }
  h1 {
    font-size: clamp(3.4rem,6.8vw,4.3rem);
  }
}

@media(max-width:680px) {
  .frame {
    width: calc(100% - 2.25rem);
  }
  .header-row {
    min-height: 4.25rem;
    gap: .5rem;
  }
  .wordmark {
    font-size: 1.28rem;
    gap: .3rem;
  }
  .emblem {
    width: 1.45rem;
    height: 1.12rem;
  }
  nav {
    gap: .85rem;
  }
  nav a {
    font-size: .875rem;
  }
  header nav a:first-child {
    display: none;
  }
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-block: 2rem 2.5rem;
    gap: 1.5rem;
  }
  .intro {
    display: contents;
  }
  .category {
    order: 0;
  }
  h1 {
    order: 1;
    margin: -.65rem 0 -.3rem;
    font-size: clamp(3.3rem,10.6vw,4.8rem);
  }
  h1 br {
    display: none;
  }
  .gallery {
    order: 2;
  }
  .description {
    order: 3;
    max-width: none;
  }
  .ratings {
    order: 4;
    margin: -.4rem 0 0;
    max-width: none;
    gap: 2rem;
  }
  .ratings>div+div {
    padding-left: 2rem;
  }
  .price {
    order: 5;
  }
  .purchase-actions {
    order: 6;
    align-self: flex-start;
    margin-top: -.6rem;
  }
  .viewport {
    aspect-ratio: 1.34;
    min-height: 0;
  }
  .thumb {
    width: 4.2rem;
    height: 3.2rem;
  }
  .features,.technical {
    grid-template-columns: 1fr;
  }
  .features {
    gap: 1.8rem;
  }
  .features p {
    max-width: none;
  }
  .feature-photo {
    aspect-ratio: 2.35;
  }
  .features h3 {
    margin-top: .65rem;
  }
  .spec-heading {
    align-items: start;
    flex-direction: column;
    margin-bottom: 1.3rem;
  }
  .technical {
    gap: 1.4rem;
  }
  .spec-list>div {
    gap: .75rem;
    font-size: .95rem;
  }
  .footer-row {
    min-height: 4.5rem;
  }
}

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

@media print {
  .product-switch { display: none; }
  @page {
    margin: 14mm;
  }
  html {
    scroll-behavior: auto;
  }
  body {
    font: 10pt Arial,sans-serif;
  }
  .frame {
    width: 100%;
    max-width: none;
  }
  header,footer,.feature-section {
    background: white;
    color: black;
  }
  .header-row {
    min-height: 28pt;
  }
  header nav,.thumbs,.purchase-actions,.action,.print,.zoom,.skip,footer,dialog,.feature-section {
    display: none!important;
  }
  .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 15pt 0;
    gap: 15pt;
  }
  .hero .intro {
    display: block;
  }
  .hero .gallery {
    order: 2;
  }
  .category {
    font-size: 9pt;
  }
  h1 {
    font-size: 28pt;
    margin: 6pt 0;
  }
  h2 {
    font-size: 18pt;
  }
  .description,.spec-list>div {
    font-size: 10pt;
  }
  .ratings {
    margin: 7pt 0;
    padding: 7pt 0;
  }
  .viewport {
    min-height: 140pt;
    aspect-ratio: 1.2;
  }
  .spec-section {
    padding: 10pt 0;
  }
  .spec-heading {
    margin-bottom: 8pt;
  }
  .technical {
    grid-template-columns: 1.3fr 1fr;
    gap: 14pt;
  }
  .spec-list>div {
    padding: 6pt 0;
  }
  .diagram,.hero,.spec-section {
    break-inside: avoid;
  }
}


.checkout-page {
  min-height: 100vh;
  background: #f6f7f4;
}
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 1.5rem;
  padding-block: clamp(2rem, 5vw, 5rem);
}
.checkout-title { grid-column: 1 / -1; }
.checkout-title h1 { font-size: clamp(3rem, 6vw, 5rem); margin: .65rem 0 .5rem; }
.order-card, .payment-panel {
  min-width: 0;
  padding: clamp(1rem, 2.4vw, 2.3rem);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
}
.checkout-layout h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.order-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
}
.order-item img { width: clamp(4.2rem, 8vw, 7.25rem); height: auto; }
.order-item h3 { font-size: 1.4rem; line-height: 1.15; }
.order-item p, .order-note, .payment-panel p { color: var(--muted); line-height: 1.55; }
.order-item p { margin-top: .25rem; font-size: .94rem; }
.quantity-row, .subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}
.quantity-row select {
  min-height: 44px;
  width: 5rem;
  padding-inline: .6rem;
  color: var(--ink);
  background: white;
  border: 1px solid #a0a69c;
  border-radius: 3px;
  font: inherit;
}
.subtotal strong { font-size: 1.25rem; }
.subtotal small { font-size: .77rem; color: var(--muted); }
.order-note { font-size: .91rem; }
.payment-panel p { margin-top: .85rem; }
.payment-panel p:empty { display: none; }
.payment-panel .action { margin-top: 1.25rem; }
#email-order { padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.payment-panel button:disabled { cursor: wait; opacity: .65; }
#embedded-payment:not(:empty) { margin-top: 1rem; }
@media (max-width: 820px) {
  .checkout-layout { grid-template-columns: minmax(0, 1fr); }
}
