:root {
  --ink: #181715;
  --muted: #68635a;
  --faint: #8f897f;
  --paper: #faf9f6;
  --board: #eeece8;
  --line: #d8d4cc;
  --brass: #b8aa8d;
  --olive: #4c5945;
  --red: #7e372f;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 18px;
  --duration-fast: 150ms;
  --duration-normal: 200ms;
  --duration-slow: 280ms;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.17, 1, 0.32, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.66, 0, 0.34, 1);
  --shadow-card:
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 2px 4px rgba(0, 0, 0, 0.02),
    0 0 0 0.5px rgba(0, 0, 0, 0.08);
  --shadow-elevated:
    0 4px 8px rgba(0, 0, 0, 0.02),
    0 8px 12px rgba(0, 0, 0, 0.02),
    0 2px 4px rgba(0, 0, 0, 0.02),
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 0 0 0.5px #dfdad0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.storefront-shell {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "DIN Alternate", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 82px;
  padding: 0 5vw;
  background: rgba(250, 249, 246, 0.91);
  border-bottom: 1px solid rgba(24, 23, 21, 0.08);
  backdrop-filter: blur(18px);
}

.brand-lockup,
.cart-link,
.site-nav a,
.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 42px);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav a,
.cart-link,
.site-footer a {
  transition: color var(--duration-fast) var(--ease-smooth), transform var(--duration-fast) var(--ease-smooth);
}

.site-nav a:hover,
.cart-link:hover,
.site-footer a:hover {
  color: var(--olive);
}

.site-nav a:active,
.cart-link:active,
.site-footer a:active {
  transform: scale(0.98);
}

.cart-link {
  justify-self: end;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.flash-notice {
  position: fixed;
  top: 96px;
  right: 5vw;
  z-index: 30;
  max-width: min(420px, 90vw);
  margin: 0;
  padding: 13px 16px;
  background: #f8f5ed;
  color: var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  font-size: 14px;
  animation: focus-in 320ms var(--ease-smooth) both;
}

main {
  overflow: hidden;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(420px, 1fr);
  align-items: stretch;
  min-height: calc(100svh - 82px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 8vw, 118px) 5vw;
  animation: focus-in 360ms var(--ease-smooth) both;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--olive);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(56px, 6.8vw, 98px);
  line-height: 0.92;
  font-weight: 850;
}

.hero-deck {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions,
.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button-primary,
.button-secondary,
.newsletter-form button,
.mini-cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-sm);
  font: 800 12px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease-smooth),
    background-color var(--duration-fast) var(--ease-smooth),
    box-shadow var(--duration-fast) var(--ease-smooth);
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-card);
}

.button-secondary {
  background: var(--board);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(24, 23, 21, 0.12);
}

.button-primary:hover,
.newsletter-form button:hover {
  background: var(--olive);
  box-shadow: var(--shadow-elevated);
}

.button-secondary:hover,
.mini-cart-button:hover {
  background: #e2ded5;
}

.button-primary:active,
.button-secondary:active,
.newsletter-form button:active,
.mini-cart-button:active,
.text-button:active {
  transform: scale(0.98);
}

.button_to {
  margin: 0;
}

.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 4vw, 70px);
  background:
    linear-gradient(rgba(24, 23, 21, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 23, 21, 0.035) 1px, transparent 1px),
    var(--board);
  background-size: 38px 38px;
  border-left: 1px solid var(--line);
}

.hero-art img {
  width: min(96%, 980px);
  filter: drop-shadow(0 18px 30px rgba(24, 23, 21, 0.09));
  animation: focus-in 480ms 80ms var(--ease-smooth) both;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.proof-strip article {
  min-height: 260px;
  padding: clamp(28px, 4vw, 54px);
  border-right: 1px solid var(--line);
}

.proof-strip article:last-child {
  border-right: 0;
}

.proof-strip span,
.event-row span,
.product-badge,
.kit-note span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.proof-strip span {
  color: var(--brass);
}

.proof-strip h2 {
  margin: 54px 0 12px;
  font-size: clamp(24px, 2.7vw, 42px);
  line-height: 1;
  font-weight: 830;
}

.proof-strip p,
.section-heading p,
.featured-copy p,
.belief-section p,
.newsletter-band p,
.site-footer p,
.product-meta p,
.detail-summary,
.kit-note p,
.empty-cart p {
  color: var(--muted);
}

.featured-product {
  display: grid;
  grid-template-columns: minmax(360px, 1.15fr) minmax(300px, 0.85fr);
  min-height: 640px;
  border-bottom: 1px solid var(--line);
}

.featured-art,
.detail-media,
.product-media {
  position: relative;
  background: var(--board);
}

.featured-art {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 5vw, 72px);
}

.featured-art img {
  width: min(92%, 860px);
}

.featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 82px);
  border-left: 1px solid var(--line);
}

.featured-copy h2,
.section-heading h2,
.belief-section h2,
.newsletter-band h2,
.detail-copy h1,
.cart-page h1 {
  margin: 0;
  font-weight: 850;
  line-height: 0.98;
}

.featured-copy h2 {
  font-size: clamp(42px, 5.6vw, 86px);
}

.featured-copy > p {
  max-width: 600px;
  margin: 24px 0 0;
  font-size: 18px;
}

.spec-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 32px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.spec-row div {
  min-height: 84px;
  padding: 16px;
  background: var(--paper);
}

.spec-row dt {
  margin-bottom: 8px;
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.spec-row dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.catalog-section,
.events-section,
.cart-page,
.related-section {
  padding: clamp(52px, 7vw, 92px) 5vw;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(260px, 0.52fr);
  align-items: end;
  gap: 28px;
  margin-bottom: 28px;
}

.section-heading h2,
.belief-section h2,
.newsletter-band h2,
.cart-page h1 {
  font-size: clamp(36px, 5vw, 74px);
}

.section-heading p:last-child {
  margin: 0 0 5px;
  font-size: 17px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.compact-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.product-card {
  min-width: 0;
}

.product-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1.12;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition:
    transform var(--duration-slow) var(--ease-smooth),
    box-shadow var(--duration-slow) var(--ease-smooth),
    background-color var(--duration-slow) var(--ease-smooth);
}

.product-media:hover {
  transform: translateY(-3px);
  background: #e7e3dc;
  box-shadow: var(--shadow-elevated);
}

.product-media:active {
  transform: translateY(-1px) scale(0.995);
}

.product-media img {
  width: 92%;
  transition: transform var(--duration-slow) var(--ease-smooth);
}

.product-media:hover img {
  transform: scale(1.025);
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  background: rgba(184, 170, 141, 0.74);
  border-radius: 999px;
  color: var(--ink);
}

.product-meta {
  padding: 12px 4px 0;
}

.product-name {
  display: inline-block;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.product-name:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-meta p {
  min-height: 42px;
  margin: 6px 0 0;
  font-size: 13px;
}

.product-buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.product-buy-row > span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  font-weight: 800;
}

.mini-cart-button {
  min-height: 32px;
  padding: 0 12px;
  background: var(--ink);
  color: var(--paper);
}

.belief-section,
.newsletter-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(260px, 0.72fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: center;
  padding: clamp(54px, 8vw, 96px) 5vw;
  border-bottom: 1px solid var(--line);
}

.belief-section p,
.newsletter-band p {
  max-width: 620px;
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
}

.events-section {
  background: #f3f1ec;
}

.event-list {
  border-top: 1px solid var(--line);
}

.event-row {
  display: grid;
  grid-template-columns: 120px minmax(220px, 0.85fr) minmax(240px, 0.9fr);
  align-items: center;
  gap: 24px;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.event-row span {
  color: var(--red);
}

.event-row h3 {
  margin: 0;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.08;
}

.event-row p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.newsletter-band {
  background: var(--ink);
  color: var(--paper);
}

.newsletter-band .eyebrow,
.newsletter-band p {
  color: #cfc5b1;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.newsletter-form input {
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(250, 249, 246, 0.25);
  border-radius: var(--radius-sm);
  background: rgba(250, 249, 246, 0.08);
  color: var(--paper);
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(184, 170, 141, 0.18);
}

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

.product-detail {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 0.85fr);
  min-height: calc(100svh - 82px);
  border-bottom: 1px solid var(--line);
}

.detail-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(38px, 6vw, 86px);
  border-right: 1px solid var(--line);
}

.detail-media img {
  width: min(94%, 860px);
}

.detail-copy {
  padding: clamp(40px, 6vw, 82px);
  align-self: center;
}

.detail-copy h1 {
  max-width: 760px;
  font-size: clamp(44px, 6vw, 92px);
}

.detail-summary {
  white-space: pre-line;
  margin: 24px 0 0;
  font-size: 17px;
}

.detail-specs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kit-note {
  margin-top: 24px;
  padding: 18px;
  background: var(--board);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.kit-note span {
  color: var(--olive);
}

.kit-note p {
  margin: 8px 0 0;
}

.variant-panel {
  display: grid;
  gap: 1px;
  margin-top: 24px;
  background: var(--line);
  border: 1px solid var(--line);
}

.variant-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  background: var(--paper);
}

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

.variant-row strong {
  font-size: 16px;
}

.variant-row span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.variant-row > div:last-child {
  display: flex;
  align-items: center;
  gap: 14px;
}

.variant-row > div:last-child span {
  color: var(--ink);
  font-weight: 800;
}

.cart-page {
  min-height: calc(100svh - 82px);
}

.cart-lines {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cart-line {
  display: grid;
  grid-template-columns: 138px 1fr auto auto;
  gap: 22px;
  align-items: center;
  padding: 14px;
  background: var(--paper);
}

.cart-line img {
  aspect-ratio: 1 / 0.8;
  object-fit: contain;
  padding: 8px;
  background: var(--board);
  border-radius: var(--radius-sm);
}

.cart-line h2 {
  margin: 0;
  font-size: 22px;
}

.cart-line p {
  margin: 4px 0 0;
  color: var(--muted);
}

.cart-line strong,
.cart-summary strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--red);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.cart-summary,
.empty-cart {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 22px;
}

.cart-summary {
  font-size: 18px;
}

.empty-cart {
  justify-content: flex-start;
  padding: 30px;
  background: var(--board);
  border-radius: var(--radius-md);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 36px;
  align-items: end;
  padding: 46px 5vw;
  background: var(--paper);
}

.footer-brand {
  max-width: 420px;
}

.footer-mark {
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

@keyframes focus-in {
  from {
    opacity: 0;
    transform: translateY(6px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (max-width: 1180px) {
  .product-grid,
  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 921px) {
  .detail-media {
    align-items: flex-start;
    padding-top: clamp(108px, 13vw, 190px);
  }
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 16px;
    min-height: 74px;
  }

  .site-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 14px;
  }

  .hero-shell,
  .featured-product,
  .belief-section,
  .newsletter-band,
  .product-detail,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    min-height: auto;
  }

  .hero-art {
    min-height: 44svh;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .featured-copy,
  .detail-media {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .proof-strip article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-strip article:last-child {
    border-bottom: 0;
  }

  .proof-strip h2 {
    margin-top: 38px;
  }

  .event-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .cart-line {
    grid-template-columns: 96px 1fr;
  }

  .cart-line strong,
  .cart-line .button_to {
    grid-column: 2;
  }

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

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 16px 20px 0;
  }

  .brand-lockup span {
    display: none;
  }

  .cart-link {
    font-size: 13px;
  }

  .hero-copy,
  .catalog-section,
  .events-section,
  .cart-page,
  .belief-section,
  .newsletter-band,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-copy h1 {
    font-size: clamp(48px, 16vw, 78px);
  }

  .product-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .product-meta p {
    display: none;
  }

  .product-buy-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .spec-row,
  .detail-specs {
    grid-template-columns: 1fr;
  }

  .variant-row,
  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .variant-row > div:last-child {
    justify-content: space-between;
  }

  .cart-summary,
  .empty-cart {
    align-items: stretch;
    flex-direction: column;
  }
}

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