:root {
  --warm: #f7f6f2;
  --paper: #fffefa;
  --mist: #e7e6e1;
  --coal: #171717;
  --muted: #666762;
  --red: #a91f2f;
  --red-dark: #741522;
  --blue: #17516d;
  --line: #d2d1ca;
  --display: "Teko", "Arial Narrow", Impact, sans-serif;
  --wordmark: "Germania One", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--warm);
  color: var(--coal);
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-x: hidden;
}

body.checkout-active,
body.admin-active {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 84px;
  padding: 8px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 246, 242, .94);
  backdrop-filter: blur(14px);
}

.brand,
.main-nav,
.cart-link {
  display: flex;
  align-items: center;
}

.brand {
  justify-self: center;
}

.brand-mark {
  display: block;
  width: 164px;
  aspect-ratio: 859 / 409;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.main-nav {
  justify-self: start;
  gap: clamp(16px, 3vw, 34px);
  font-size: 21px;
  font-style: normal;
  font-weight: 700;
  line-height: .9;
}

.cart-link {
  justify-self: end;
  font-size: 21px;
  font-style: normal;
  font-weight: 700;
  line-height: .9;
}

.main-nav a,
.cart-link,
.site-footer a {
  transition: color .2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.cart-link:hover,
.cart-link:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--red);
  outline: none;
}

.hero-section {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--coal);
}

.hero-art {
  position: relative;
  isolation: isolate;
}

.hero-art::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(9, 12, 15, .72), transparent 46%),
    linear-gradient(0deg, rgba(9, 12, 15, .72), transparent 38%);
  content: "";
  pointer-events: none;
}

.hero-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: end;
  width: 100%;
  padding: 24px clamp(22px, 7vw, 96px);
}

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

.eyebrow,
.kicker,
.product-collection,
.section-count,
.product-badge {
  margin: 0;
  color: var(--red);
  font-size: 19px;
  font-weight: 700;
  line-height: .9;
}

.eyebrow {
  color: #e8a0a7;
  font-size: clamp(19px, 2.1vw, 28px);
}

.hero-content h1 {
  max-width: 590px;
  margin: 12px 0 18px;
  font-size: clamp(58px, 8vw, 124px);
  font-weight: 700;
  line-height: .78;
}

.hero-copy {
  max-width: 420px;
  margin: 0 0 28px;
  color: rgba(255, 254, 250, .85);
  font-size: clamp(23px, 2.4vw, 34px);
  line-height: .96;
  text-transform: none;
}

.hero-cta,
.product-buy,
.checkout-submit,
.admin-submit,
.admin-publish-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--red);
  background: var(--red);
  color: var(--paper);
  font-size: 21px;
  font-weight: 700;
  line-height: .9;
  text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.hero-cta {
  min-height: 48px;
  padding: 14px 24px;
}

.hero-cta:hover,
.hero-cta:focus-visible,
.product-buy:hover,
.product-buy:focus-visible,
.checkout-submit:hover,
.checkout-submit:focus-visible,
.admin-submit:hover,
.admin-submit:focus-visible,
.admin-publish-button:hover,
.admin-publish-button:focus-visible {
  border-color: var(--paper);
  background: var(--red-dark);
  outline: none;
  transform: translateY(-2px);
}

.drop-section {
  max-width: 1560px;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 120px) clamp(18px, 4vw, 58px) 100px;
  scroll-margin-top: 84px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(58px, 8vw, 120px);
  font-weight: 700;
  line-height: .76;
}

.section-count {
  color: var(--muted);
  white-space: nowrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
}

.product-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover {
  box-shadow: 0 18px 36px rgba(23, 23, 23, .12);
  transform: translateY(-4px);
}

.product-media {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--mist);
}

.gallery-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .35s ease;
}

.gallery-slide.is-active {
  opacity: 1;
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 8px 10px 6px;
  border: 1px solid rgba(255, 254, 250, .72);
  background: rgba(23, 23, 23, .68);
  color: var(--paper);
  font-size: 16px;
}

.gallery-controls {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
}

.gallery-arrow,
.gallery-count {
  min-height: 40px;
  border: 1px solid rgba(255, 254, 250, .76);
  background: rgba(23, 23, 23, .72);
  color: var(--paper);
  font-size: 22px;
  font-style: normal;
  line-height: 1;
  text-align: center;
}

.gallery-count {
  display: grid;
  place-items: center;
  padding: 8px;
  font-size: 16px;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  border-color: var(--red);
  background: var(--red);
  outline: none;
}

.product-info {
  display: grid;
  gap: 10px;
  padding: 22px 22px 24px;
}

.product-collection {
  color: var(--blue);
  font-size: 17px;
}

.product-info h3 {
  min-height: 1.8em;
  margin: 0;
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 700;
  line-height: .82;
}

.product-price {
  margin: 0;
  color: var(--red);
  font-size: 28px;
  font-weight: 700;
  line-height: .9;
}

.product-stock {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
  line-height: .9;
}

.product-buy {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
}

.product-card.sold-out .product-buy,
.product-buy:disabled {
  border-color: var(--line);
  background: var(--mist);
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
}

.variant-picker {
  display: grid;
  gap: 6px;
}

.variant-picker span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  line-height: .9;
}

.variant-picker select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--coal);
  border-radius: 0;
  background: var(--warm);
  color: var(--coal);
  padding: 8px 10px;
  font-size: 20px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  outline: none;
}

.variant-picker select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(169, 31, 47, .15);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 20px;
  align-items: center;
  padding: 24px clamp(18px, 4vw, 58px);
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 19px;
  font-weight: 700;
  line-height: .9;
}

.site-footer a {
  color: var(--muted);
}

.checkout-modal,
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(23, 23, 23, .64);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.checkout-modal.is-open,
.admin-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.checkout-panel,
.admin-panel {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100svh - 34px);
  overflow: auto;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--coal);
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(23, 23, 23, .32);
}

.checkout-close,
.admin-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  line-height: .9;
  text-transform: uppercase;
}

.checkout-close:hover,
.checkout-close:focus-visible,
.admin-close:hover,
.admin-close:focus-visible,
.admin-logout:hover,
.admin-logout:focus-visible,
.admin-remove-button:hover,
.admin-remove-button:focus-visible {
  border-color: var(--red);
  color: var(--red);
  outline: none;
}

.checkout-panel h2,
.admin-panel h2,
.admin-panel h3 {
  margin: 0;
  color: var(--coal);
  font-weight: 700;
  line-height: .8;
}

.checkout-panel h2 {
  margin: 14px 0 24px;
  font-size: clamp(52px, 7vw, 86px);
}

.checkout-form,
.admin-auth-form,
.admin-form,
.admin-page-grid {
  display: grid;
  gap: 16px;
}

.checkout-field,
.admin-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.checkout-field > span,
.checkout-field legend,
.admin-field > span,
.admin-toggle > span {
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
  line-height: .9;
}

.checkout-field input,
.checkout-field select,
.checkout-field textarea,
.admin-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--warm);
  color: var(--coal);
  padding: 11px 13px;
  font-size: 19px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  outline: none;
  text-transform: none;
}

.checkout-field textarea {
  min-height: 84px;
  resize: vertical;
  line-height: 1.08;
}

.checkout-field input:focus,
.checkout-field select:focus,
.checkout-field textarea:focus,
.admin-field input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(169, 31, 47, .14);
}

.checkout-field input[readonly],
.admin-field input[readonly] {
  background: var(--mist);
}

.checkout-help,
.checkout-note,
.admin-help {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-transform: none;
}

.size-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.size-option {
  position: relative;
  display: block;
}

.size-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.size-option span {
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--warm);
  color: var(--coal);
  font-size: 23px;
  font-weight: 700;
  line-height: .9;
}

.size-option input:focus-visible + span,
.size-option input:checked + span {
  border-color: var(--red);
  background: var(--coal);
  color: var(--paper);
}

.checkout-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
}

.checkout-note {
  font-size: 17px;
}

.admin-panel {
  width: min(1120px, 100%);
}

.admin-auth-view {
  width: min(440px, 100%);
  margin: 0 auto;
  padding: 34px 0;
}

.admin-panel h2 {
  max-width: 680px;
  margin: 12px 0 24px;
  font-size: clamp(54px, 7vw, 88px);
}

.admin-panel h3 {
  font-size: clamp(34px, 4vw, 52px);
}

.admin-auth-copy {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  text-transform: none;
}

.admin-submit,
.admin-publish-button {
  min-height: 48px;
  padding: 14px 22px;
}

.admin-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  line-height: .95;
  text-transform: none;
}

.admin-status.is-valid {
  color: #34713d;
}

.admin-status.is-invalid {
  color: #a32626;
}

.admin-heading,
.admin-section-heading,
.admin-actions,
.admin-action-buttons {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.admin-heading {
  align-items: start;
  margin-bottom: 28px;
  padding-right: 96px;
}

.admin-logout,
.admin-small-button,
.admin-secondary-button,
.admin-remove-button {
  min-height: 40px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: .9;
  text-transform: uppercase;
}

.admin-section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.admin-section-heading {
  align-items: end;
  margin-bottom: 18px;
}

.admin-section-heading > span {
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
  line-height: .9;
}

.admin-product-list,
.admin-discount-list {
  display: grid;
  gap: 10px;
}

.admin-product-row,
.admin-discount-row {
  display: grid;
  align-items: end;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--warm);
}

.admin-product-row {
  grid-template-columns: minmax(210px, 1.6fr) minmax(130px, .65fr) minmax(150px, .7fr);
}

.admin-discount-row {
  grid-template-columns: minmax(160px, 1.3fr) minmax(120px, .6fr) auto auto;
}

.admin-small-button:hover,
.admin-small-button:focus-visible,
.admin-secondary-button:hover,
.admin-secondary-button:focus-visible {
  border-color: var(--red);
  color: var(--red);
  outline: none;
}

.admin-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  white-space: nowrap;
}

.admin-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

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

.admin-actions {
  align-items: center;
  padding-top: 24px;
}

.admin-action-buttons {
  align-items: center;
  justify-content: end;
}

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

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

  .product-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 7px);
    justify-self: center;
  }
}

@media (max-width: 700px) {
  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand buy"
      "nav nav";
    gap: 8px 16px;
    min-height: 98px;
    padding: 8px 16px 11px;
  }

  .brand {
    grid-area: brand;
    justify-self: start;
  }

  .brand-mark {
    width: 126px;
  }

  .main-nav {
    grid-area: nav;
    justify-self: start;
    gap: 18px;
    font-size: 18px;
  }

  .cart-link {
    grid-area: buy;
    font-size: 18px;
  }

  .hero-art::after {
    background: linear-gradient(0deg, rgba(9, 12, 15, .3), transparent 45%);
  }

  .hero-art img {
    aspect-ratio: auto;
    object-fit: contain;
  }

  .hero-content {
    position: relative;
    inset: auto;
    width: 100%;
    padding: 16px 20px 20px;
    align-items: center;
    background: var(--coal);
  }

  .hero-cta {
    width: 100%;
  }

  .drop-section {
    padding: 50px 16px 72px;
    scroll-margin-top: 110px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }

  .section-heading h2 {
    font-size: 64px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-card:last-child {
    grid-column: auto;
    width: auto;
  }

  .product-media {
    aspect-ratio: 2 / 3;
  }

  .product-info {
    padding: 20px;
  }

  .product-info h3 {
    min-height: 0;
    font-size: 42px;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 22px 18px;
    font-size: 17px;
  }

  .site-footer span:last-of-type,
  .site-footer a:last-child {
    justify-self: end;
  }

  .checkout-modal,
  .admin-modal {
    align-items: end;
    padding: 10px;
  }

  .checkout-panel,
  .admin-panel {
    max-height: calc(100svh - 20px);
    padding: 26px 18px 22px;
  }

  .checkout-close,
  .admin-close {
    top: 12px;
    right: 12px;
  }

  .checkout-panel h2,
  .admin-panel h2 {
    padding-right: 74px;
    font-size: 52px;
  }

  .admin-heading {
    padding-right: 70px;
  }

  .admin-section-heading,
  .admin-actions {
    align-items: start;
    flex-direction: column;
  }

  .admin-product-row,
  .admin-discount-row,
  .admin-page-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-product-row .admin-field:first-child,
  .admin-discount-row .admin-field:first-child {
    grid-column: 1 / -1;
  }

  .admin-toggle {
    justify-content: start;
  }

  .admin-action-buttons {
    width: 100%;
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .admin-secondary-button,
  .admin-publish-button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .main-nav {
    gap: 14px;
    font-size: 17px;
  }

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

  .section-heading h2 {
    font-size: 56px;
  }

  .admin-product-row,
  .admin-discount-row,
  .admin-page-grid {
    grid-template-columns: 1fr;
  }

  .admin-product-row .admin-field:first-child,
  .admin-discount-row .admin-field:first-child {
    grid-column: auto;
  }
}
