@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #050505;
  --bone: #e6dccb;
  --bone-dim: #9a9284;
  --line: #2a2a2a;
  --btn-idle: #1a1a1a;
  --font: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

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

html {
  background: var(--bg);
  color: var(--bone);
  font-family: var(--font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

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

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.scanlines,
.vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
}

.scanlines {
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.22) 2px,
    rgba(0, 0, 0, 0.22) 3px
  );
  opacity: 0.45;
  mix-blend-mode: multiply;
}

.vignette {
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

.site-header,
.site-footer {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.site-header {
  padding: 1.75rem 0 1.25rem;
}

.site-footer {
  padding: 2.5rem 0 1.75rem;
  margin-top: auto;
  color: var(--bone-dim);
  font-size: 0.75rem;
}

.site-footer p {
  margin: 0;
}

.wordmark {
  position: relative;
  display: inline-block;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.wordmark::before,
.wordmark::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.55;
}

.wordmark::before {
  color: #c4b8a4;
  clip-path: inset(0 0 58% 0);
  transform: translate(-1px, 0);
  animation: glitch-top 7s steps(2, end) infinite;
}

.wordmark::after {
  color: #d8d0c2;
  clip-path: inset(62% 0 0 0);
  transform: translate(1px, 0);
  animation: glitch-bot 9s steps(2, end) infinite;
}

@keyframes glitch-top {
  0%, 92%, 100% { transform: translate(0, 0); opacity: 0; }
  93% { transform: translate(-2px, 0); opacity: 0.7; }
  96% { transform: translate(1px, 0); opacity: 0.4; }
}

@keyframes glitch-bot {
  0%, 88%, 100% { transform: translate(0, 0); opacity: 0; }
  89% { transform: translate(2px, 0); opacity: 0.65; }
  91% { transform: translate(-1px, 0); opacity: 0.3; }
}

.issue {
  color: var(--bone-dim);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
}

main.product {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem 3.5rem;
  align-items: center;
  padding: 1rem 0 2rem;
  flex: 1;
}

.photo {
  position: relative;
  background: #1a1a1a;
}

.photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.92);
}

.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(230, 220, 203, 0.08);
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.04) 3px,
    rgba(0, 0, 0, 0.04) 4px
  );
}

.copy {
  max-width: 22rem;
  padding-bottom: 0.5rem;
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--bone-dim);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.25;
}

.desc {
  margin: 0 0 1.5rem;
  color: var(--bone-dim);
  font-size: 0.82rem;
  line-height: 1.7;
  max-width: 18.5rem;
}

.meta {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.meta li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.meta .label {
  color: var(--bone-dim);
}

.price {
  font-weight: 500;
  letter-spacing: 0.12em;
}

.buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12.5rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--bone);
  background: transparent;
  color: var(--bone);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  text-decoration: none;
  cursor: pointer;
}

.buy:hover,
.buy:focus-visible {
  background: var(--bone);
  color: var(--bg);
  text-decoration: none;
}

.buy:focus-visible {
  outline: 1px solid var(--bone);
  outline-offset: 3px;
}

.buy.is-wait {
  border-color: var(--line);
  color: var(--bone-dim);
  background: var(--btn-idle);
  cursor: default;
  pointer-events: none;
}

.lost {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 2.5rem));
  margin: auto;
  padding: 4rem 0;
}

.lost h1 {
  margin: 0 0 1.25rem;
}

@media (max-width: 800px) {
  main.product {
    grid-template-columns: 1fr;
    gap: 2rem;
    width: min(100% - 2rem, 560px);
    padding-top: 0.25rem;
  }

  .copy {
    max-width: none;
  }

  .desc {
    max-width: none;
  }

  .buy,
  .buy.is-wait {
    width: 100%;
  }

  .site-header,
  .site-footer {
    width: min(100% - 2rem, 560px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark::before,
  .wordmark::after {
    animation: none;
    opacity: 0;
  }
}
