:root {
  color-scheme: light;
  --ink: oklch(15% 0.012 255);
  --ink-2: oklch(28% 0.01 255);
  --muted: oklch(43% 0.012 255);
  --line: oklch(78% 0.01 255);
  --line-strong: oklch(52% 0.012 255);
  --paper: oklch(97% 0.004 255);
  --surface: oklch(92% 0.006 255);
  --surface-2: oklch(86% 0.008 255);
  --deep: oklch(20% 0.012 255);
  --deep-2: oklch(25% 0.012 255);
  --white: oklch(99% 0.002 255);
  --radius: 8px;
  --radius-tight: 4px;
  --radius-pill: 999px;
  --font: "Nunito Sans", "Aptos", "Avenir Next", "Trebuchet MS", sans-serif;
  --mono: "Overpass Mono", "SFMono-Regular", "Consolas", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --z-sticky: 20;
  --z-backdrop: 40;
  --z-modal: 50;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), var(--line) calc(25% - 1px), var(--line) 25%, transparent 25%),
    linear-gradient(90deg, transparent 0, transparent calc(75% - 1px), var(--line) calc(75% - 1px), var(--line) 75%, transparent 75%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.22;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

main,
.site-header,
.site-footer,
dialog {
  position: relative;
  z-index: 2;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  background: var(--surface-2);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 80;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(320px, 1fr) auto;
  align-items: center;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklch, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
}

.brand-mark rect,
.brand-mark path {
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
}

.brand-mark path {
  fill: var(--ink);
  stroke: none;
}

.brand-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  white-space: nowrap;
}

.main-nav a,
.footer-actions button {
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-weight: 800;
  padding: 8px 0;
}

.cart-trigger {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px 8px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
  transition: transform 160ms var(--ease), opacity 160ms var(--ease);
}

.cart-count {
  display: grid;
  place-items: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.section-frame {
  width: min(100% - 32px, 1460px);
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.72fr) minmax(210px, 0.36fr);
  gap: clamp(18px, 3vw, 42px);
  align-items: end;
  min-height: calc(100dvh - 72px);
  padding: clamp(44px, 8vw, 96px) 0 clamp(32px, 5vw, 72px);
}

.hero-copy {
  align-self: center;
  padding: clamp(20px, 3vw, 44px) 0;
}

.kicker,
.category-chip {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 10px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 22px;
  font-size: clamp(3.8rem, 9vw, 6rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
  line-height: 1.1;
}

.hero-sub {
  max-width: 46ch;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 700;
}

.hero-actions,
.product-actions,
.detail-actions,
.step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transition: transform 160ms var(--ease), opacity 160ms var(--ease);
}

.button-dark {
  background: var(--ink);
  color: var(--white);
}

.button-plain {
  background: var(--paper);
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.hero-media {
  min-height: 420px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--surface);
  transform: translateY(22px);
}

.hero-media img,
.buying-image img,
.about-image img,
.plane-large img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  border-radius: var(--radius-tight);
}

.hero-panel {
  display: grid;
  gap: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.hero-panel span {
  min-height: 96px;
  display: flex;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-2);
  font-weight: 800;
}

.hero-panel span:last-child {
  border-bottom: 0;
}

.buying-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 82px);
  align-items: center;
  padding: clamp(68px, 10vw, 128px) 0;
}

.buying-image {
  min-height: 520px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--surface-2);
}

.buying-copy p,
.catalog-head p,
.fulfillment-copy p,
.about-copy p,
.contact-panel p {
  max-width: 66ch;
  color: var(--ink-2);
  font-size: 1.05rem;
  font-weight: 650;
  text-wrap: pretty;
}

.fit-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.fit-grid div {
  min-height: 150px;
  padding: 18px;
  background: var(--paper);
}

.fit-grid strong,
.fit-grid span {
  display: block;
}

.fit-grid strong {
  margin-bottom: 8px;
  font-size: 1rem;
}

.fit-grid span {
  color: var(--muted);
  font-weight: 650;
}

.catalog-section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.catalog-head {
  max-width: 780px;
  margin-bottom: 28px;
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 240px) minmax(180px, 240px);
  gap: 12px;
  align-items: end;
  margin-bottom: 28px;
  padding: 12px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
}

label {
  display: grid;
  gap: 7px;
}

label > span {
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-tight);
  background: var(--white);
  color: var(--ink);
  padding: 10px 12px;
}

input:focus,
select:focus {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
  gap: 14px;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 620px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.product-media {
  display: grid;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid var(--ink);
  background: var(--surface);
}

.product-image-button,
.thumb-button,
.detail-main-image,
.detail-thumbs button,
.lightbox-thumbs button {
  border: 0;
  border-radius: var(--radius-tight);
  background: var(--surface-2);
  padding: 0;
  overflow: hidden;
}

.product-image-button {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.product-image-button img,
.thumb-button img,
.detail-main-image img,
.detail-thumbs img,
.lightbox-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}

.thumb-strip {
  min-height: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.thumb-button {
  min-height: 48px;
}

.product-info {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 10px;
  padding: 16px;
}

.product-info h3 {
  min-height: 2.35em;
  margin-bottom: 6px;
}

.sku-line {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
}

.price {
  margin: 0;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 900;
}

.product-desc {
  min-height: 4.7em;
  margin: 0;
  color: var(--ink-2);
  font-weight: 650;
}

.spec-list,
.detail-specs,
.review-details {
  margin: 0;
}

.spec-list {
  display: grid;
  gap: 8px;
  align-content: end;
}

.spec-list div,
.detail-specs div,
.review-details div {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 10px;
}

dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
}

dd {
  margin: 0;
  color: var(--ink-2);
  font-weight: 800;
}

.product-actions {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line-strong);
}

.product-actions .button {
  flex: 1 1 120px;
}

.empty-grid,
.empty-cart,
.confirmation {
  grid-column: 1 / -1;
  padding: 32px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
}

.fulfillment {
  display: grid;
  grid-template-columns: minmax(260px, 0.48fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  padding: clamp(68px, 10vw, 118px) 0;
}

.fulfillment-copy {
  position: sticky;
  top: 104px;
}

.fulfillment-planes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.plane {
  min-height: 230px;
  padding: 22px;
  background: var(--paper);
}

.plane p {
  color: var(--ink-2);
  font-weight: 650;
}

.plane-large {
  grid-row: span 2;
  min-height: 462px;
  padding: 10px;
  background: var(--surface-2);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: clamp(24px, 6vw, 96px);
  align-items: center;
  padding: clamp(68px, 10vw, 128px) 0;
}

.about-image {
  min-height: 460px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--surface);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.64fr);
  gap: clamp(24px, 5vw, 74px);
  align-items: stretch;
  padding: clamp(48px, 8vw, 92px) 0 clamp(72px, 10vw, 128px);
}

.contact-panel,
.contact-list {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  padding: clamp(20px, 3vw, 32px);
}

.contact-list {
  display: grid;
  gap: 10px;
  align-content: center;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.94rem;
  font-weight: 700;
}

.contact-list a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px clamp(16px, 4vw, 52px);
  border-top: 1px solid var(--ink);
  background: var(--surface);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span {
  color: var(--ink-2);
  font-weight: 700;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: end;
}

.status-region {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 70;
  max-width: min(420px, calc(100% - 32px));
  padding: 12px 16px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
}

.status-region:not(:empty) {
  opacity: 1;
  transform: translate(-50%, 0);
}

dialog {
  position: fixed;
  margin: auto;
  inset: 0;
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  z-index: var(--z-modal);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

dialog:not([open]) {
  display: none;
}

dialog::backdrop {
  background: rgb(10 12 16 / 0.72);
}

.dialog-close {
  position: sticky;
  top: 14px;
  left: calc(100% - 58px);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 14px 14px 0 auto;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
  transition: transform 160ms var(--ease), opacity 160ms var(--ease);
}

.product-dialog {
  width: min(1180px, calc(100vw - 32px));
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(280px, 0.72fr);
  gap: clamp(20px, 4vw, 46px);
  padding: 0 clamp(18px, 4vw, 46px) clamp(24px, 5vw, 48px);
}

.detail-gallery {
  display: grid;
  gap: 10px;
}

.detail-main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  min-height: 76px;
}

.detail-thumbs button {
  min-height: 76px;
  border: 1px solid transparent;
}

.detail-thumbs button.is-active {
  border-color: var(--ink);
}

.detail-copy {
  align-self: center;
}

.detail-copy h2 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 4rem);
}

.detail-price {
  margin: 20px 0 10px;
  font-size: 1.9rem;
}

.detail-specs {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.detail-actions label {
  max-width: 124px;
}

.lightbox {
  width: min(1040px, calc(100vw - 32px));
  background: var(--deep);
  color: var(--white);
  border-color: var(--white);
}

.lightbox .dialog-close {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.lightbox-frame {
  display: grid;
  gap: 14px;
  padding: 0 clamp(14px, 3vw, 34px) clamp(18px, 4vw, 34px);
}

.lightbox-image-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 56dvh;
  border: 1px solid color-mix(in oklch, var(--white) 40%, transparent);
  border-radius: var(--radius);
  background: var(--deep-2);
  overflow: hidden;
}

.lightbox-image-wrap img {
  width: 100%;
  max-height: 70dvh;
  object-fit: contain;
  background: var(--deep-2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--white);
  border-radius: var(--radius-pill);
  background: color-mix(in oklch, var(--deep) 72%, transparent);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 160ms var(--ease), opacity 160ms var(--ease);
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.lightbox-meta p {
  margin: 0;
  font-weight: 800;
}

.lightbox-thumbs {
  display: flex;
  gap: 8px;
}

.lightbox-thumbs button {
  width: 62px;
  height: 46px;
  border: 1px solid transparent;
}

.lightbox-thumbs button.is-active {
  border-color: var(--white);
}

.cart-dialog {
  width: min(1160px, calc(100vw - 32px));
}

.cart-shell {
  padding: 0 clamp(16px, 4vw, 42px) clamp(22px, 5vw, 42px);
}

.cart-heading {
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
}

.cart-heading h2 {
  margin-bottom: 6px;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.cart-heading p {
  margin: 0;
  color: var(--ink-2);
  font-weight: 750;
}

.checkout-progress {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.checkout-progress span {
  display: grid;
  gap: 2px;
  min-height: 58px;
  align-content: center;
  padding: 8px;
  background: var(--paper);
}

.checkout-progress span.is-current {
  background: var(--ink);
  color: var(--white);
}

.checkout-progress b,
.checkout-progress small {
  display: block;
}

.checkout-progress b {
  font-size: 0.84rem;
}

.checkout-progress small {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
}

.checkout-layout,
.review-grid,
.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
}

.cart-lines {
  display: grid;
  gap: 10px;
}

.cart-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 86px auto;
  gap: 12px;
  align-items: center;
  min-height: 112px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.cart-row img {
  width: 92px;
  height: 92px;
  border-radius: var(--radius-tight);
  object-fit: cover;
}

.cart-row strong,
.cart-row span {
  display: block;
}

.cart-row span:not(.sku-line) {
  color: var(--ink-2);
  font-weight: 750;
}

.cart-row input {
  text-align: center;
}

.remove-button {
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
}

.checkout-aside,
.review-panel,
.card-fields {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 16px;
}

.totals {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.totals div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.totals span {
  color: var(--ink-2);
  font-weight: 800;
}

.totals strong {
  font-family: var(--mono);
}

.total-line {
  padding-top: 12px;
  border-top: 1px solid var(--ink);
  font-size: 1.2rem;
}

.checkout-form {
  display: grid;
  gap: 18px;
}

.form-note,
.policy-note {
  margin: 0;
  color: var(--ink-2);
  font-weight: 750;
}

.form-note button,
.policy-note button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.policy-note {
  margin: 0 0 16px;
  font-size: 0.92rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.choice-stack {
  display: grid;
  gap: 10px;
}

.choice-card {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.choice-card input {
  width: 22px;
  min-height: 22px;
  accent-color: var(--ink);
}

.choice-card strong,
.choice-card em {
  display: block;
}

.choice-card em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.choice-card b {
  font-family: var(--mono);
}

.card-fields {
  display: grid;
  gap: 12px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.step-actions {
  justify-content: space-between;
  margin-top: 18px;
}

.step-actions.stacked {
  display: grid;
}

.review-details {
  display: grid;
  gap: 12px;
  margin: 14px 0 20px;
}

.review-details div {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.confirmation {
  max-width: 680px;
}

.policy-dialog {
  width: min(820px, calc(100vw - 32px));
}

.policy-content {
  padding: 0 clamp(18px, 4vw, 42px) clamp(24px, 5vw, 42px);
}

.policy-content h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.policy-content p {
  color: var(--ink-2);
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover,
  .cart-trigger:hover,
  .dialog-close:hover {
    transform: translateY(-2px);
  }

  .lightbox-nav:hover {
    transform: translateY(-50%) scale(1.04);
  }

  .product-image-button:hover img,
  .thumb-button:hover img,
  .detail-main-image:hover img,
  .detail-thumbs button:hover img {
    transform: scale(1.025);
  }

  .main-nav a:hover,
  .footer-actions button:hover {
    opacity: 0.62;
  }
}

.button:active,
.cart-trigger:active,
.dialog-close:active {
  transform: translateY(0) scale(0.98);
}

.lightbox-nav:active {
  transform: translateY(-50%) scale(0.98);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal[data-reveal="pending"] {
    opacity: 0.72;
    transform: translateY(16px);
  }

  .reveal[data-reveal="shown"] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 540ms var(--ease), transform 540ms var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
  }

  dialog[open] {
    animation: dialogIn 220ms var(--ease);
  }

  dialog[open]::backdrop {
    animation: backdropIn 220ms var(--ease);
  }

  .status-region:not(:empty) {
    transition: opacity 220ms var(--ease), transform 220ms var(--ease);
  }
}

@keyframes dialogIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes backdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }

  .reveal,
  .reveal[data-reveal="pending"],
  .reveal[data-reveal="shown"] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: start;
    overflow-x: auto;
    padding-top: 8px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr);
  }

  .hero-panel {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-panel span {
    min-height: 82px;
    border-bottom: 0;
    border-right: 1px solid var(--line-strong);
  }

  .hero-panel span:last-child {
    border-right: 0;
  }

  .checkout-layout,
  .review-grid,
  .payment-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  body {
    background:
      linear-gradient(90deg, transparent 0, transparent calc(50% - 1px), var(--line) calc(50% - 1px), var(--line) 50%, transparent 50%),
      var(--paper);
  }

  .site-header {
    min-height: 68px;
  }

  .brand-name {
    max-width: 52vw;
  }

  .hero,
  .buying-grid,
  .fulfillment,
  .about,
  .contact,
  .catalog-tools,
  .product-detail {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(3.15rem, 16vw, 4.6rem);
  }

  h2 {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .hero-media,
  .buying-image,
  .about-image {
    min-height: 320px;
    transform: none;
  }

  .hero-panel {
    grid-template-columns: 1fr 1fr;
  }

  .hero-panel span:nth-child(2) {
    border-right: 0;
  }

  .hero-panel span:nth-child(1),
  .hero-panel span:nth-child(2) {
    border-bottom: 1px solid var(--line-strong);
  }

  .fit-grid,
  .fulfillment-planes,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .fulfillment-copy {
    position: static;
  }

  .plane-large {
    grid-row: auto;
    min-height: 320px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-actions {
    justify-content: start;
  }

  .cart-row {
    grid-template-columns: 78px 1fr;
  }

  .checkout-progress {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cart-row img {
    width: 78px;
    height: 78px;
  }

  .cart-row label,
  .cart-row .remove-button {
    grid-column: 2;
  }

  .lightbox-meta {
    grid-template-columns: 1fr;
  }

  .lightbox-thumbs {
    overflow-x: auto;
  }
}

@media (max-width: 520px) {
  .section-frame {
    width: min(100% - 20px, 1460px);
  }

  .site-header {
    padding-inline: 10px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .cart-trigger span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .product-card {
    min-height: 590px;
  }

  .hero-panel,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero-panel span {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .hero-panel span:last-child {
    border-bottom: 0;
  }

  .button {
    width: 100%;
  }

  .product-actions .button,
  .hero-actions .button,
  .step-actions .button {
    flex-basis: 100%;
  }

  .step-actions {
    display: grid;
  }

  dialog {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
  }

  .dialog-close {
    top: 9px;
    width: 42px;
    height: 42px;
    margin-top: 9px;
    margin-right: 9px;
  }

  .lightbox-nav {
    width: 42px;
    height: 42px;
  }

  .lightbox-prev {
    left: 14px;
  }

  .lightbox-next {
    right: 14px;
  }
}
