:root {
  --ink: #111111;
  --muted: #6a675f;
  --paper: #f8f7f3;
  --white: #ffffff;
  --stone: #d7d1c2;
  --olive: #57584c;
  --line: #dfddd5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
  padding: 0 clamp(22px, 4vw, 70px);
  background: rgba(248, 247, 243, 0.9);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  font-size: 0.96rem;
}

.hero {
  position: relative;
  min-height: calc(100svh - 86px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #e8e7e4;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 72%;
  transform: scale(1.12);
  filter: brightness(0.78) contrast(1.02);
}

.hero-copy {
  position: relative;
  width: min(980px, calc(100% - 40px));
  padding: 9vh 0 12vh;
  text-align: center;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 18px;
  color: currentColor;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto 36px;
  font-size: clamp(3.2rem, 7vw, 7.8rem);
  font-weight: 400;
  line-height: 0.98;
}

.outline-button,
.cart-button,
.pay-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 0 38px;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
}

.outline-button {
  color: var(--white);
}

.product-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(34px, 7vw, 110px);
  align-items: center;
  padding: clamp(70px, 10vw, 136px) clamp(22px, 4vw, 70px);
  background: var(--paper);
}

.product-media {
  min-height: 540px;
  background: #050505;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: contain;
  object-position: center;
  filter: none;
}

.product-card {
  width: min(620px, 100%);
  justify-self: start;
}

.product-card .eyebrow {
  color: var(--muted);
}

.product-card h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 4.4rem);
  font-weight: 400;
  line-height: 1;
}

.price {
  margin: 0 0 36px;
  font-size: 1.45rem;
}

.size-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 30px;
  padding: 0;
  border: 0;
}

.size-picker legend {
  width: 100%;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.size-picker input {
  position: absolute;
  opacity: 0;
}

.size-picker span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 54px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-weight: 700;
  cursor: pointer;
}

.size-picker input:checked + span {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
}

.purchase-row {
  display: grid;
  grid-template-columns: 190px minmax(210px, 1fr);
  gap: 12px;
}

.quantity {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  min-height: 64px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
}

.quantity button {
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.7rem;
  cursor: pointer;
}

.quantity output {
  text-align: center;
  font-size: 1.1rem;
}

.cart-button {
  width: 100%;
  min-height: 64px;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}

.status {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--olive);
  font-weight: 700;
}

.checkout-section {
  padding: clamp(70px, 9vw, 124px) clamp(22px, 4vw, 70px);
  background: var(--white);
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.checkout-heading {
  margin-bottom: clamp(34px, 5vw, 64px);
}

.checkout-heading .eyebrow {
  color: var(--muted);
}

.checkout-heading h2 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 6.4rem);
  font-weight: 400;
  line-height: 1;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
}

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

.form-group {
  display: grid;
  gap: 16px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.form-group h3,
.order-summary h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.checkout-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.checkout-form input {
  width: 100%;
  min-height: 56px;
  border: 1.5px solid var(--line);
  border-radius: 0;
  padding: 0 16px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.checkout-form input:focus {
  border-color: var(--ink);
  outline: 0;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pay-button {
  width: 100%;
  min-height: 64px;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}

.order-summary {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 20px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
}

.summary-item,
.summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.summary-item {
  color: var(--muted);
}

.summary-total {
  padding-top: 20px;
  border-top: 1.5px solid var(--ink);
  font-size: 1.25rem;
}

.receipt-section {
  margin-top: clamp(46px, 7vw, 88px);
  padding-top: clamp(34px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.receipt-section[hidden] {
  display: none;
}

.receipt-heading {
  margin-bottom: 24px;
}

.receipt-heading .eyebrow,
.receipt-label {
  color: var(--muted);
}

.receipt-heading h3,
.receipt-card h4 {
  margin: 0;
}

.receipt-card h2 {
  margin: 0;
  font-size: 1.25rem;
}

.receipt-heading h3 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 400;
}

.receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.receipt-card {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--paper);
  border: 1px solid var(--line);
}

.receipt-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.receipt-card pre {
  min-height: 260px;
  margin: 0;
  white-space: pre-wrap;
  color: var(--muted);
  font: inherit;
  line-height: 1.6;
}

.receipt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0 24px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.receipt-preview-page {
  min-height: calc(100svh - 86px);
}

.site-footer {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  min-height: 260px;
  padding: clamp(46px, 7vw, 88px) clamp(22px, 4vw, 70px);
  background: var(--white);
  font-size: clamp(1.7rem, 4vw, 4.5rem);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-align: right;
}

@media (max-width: 860px) {
  .site-header {
    min-height: 74px;
  }

  .nav {
    gap: 14px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: calc(92svh - 74px);
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 5.4rem);
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
  }

  .product-section {
    grid-template-columns: 1fr;
  }

  .product-media,
  .product-media img {
    min-height: 420px;
  }

  .purchase-row {
    grid-template-columns: 1fr;
  }

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

  .receipt-grid {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
    order: -1;
  }

  .site-footer a {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: start;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .hero-copy {
    width: min(100% - 28px, 980px);
  }

  .outline-button,
  .cart-button,
  .pay-button {
    width: 100%;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .size-picker span {
    width: 58px;
  }
}
