:root {
  --ink: #07101c;
  --navy: #0c2034;
  --paper: #efe2c5;
  --bone: #f7f0df;
  --gold: #c79b4b;
  --bright-gold: #e0c07a;
  --oxblood: #6f2025;
  --line-light: rgba(247, 240, 223, 0.2);
  --line-dark: rgba(7, 16, 28, 0.18);
  --shadow-heavy: 0 30px 90px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--bone);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(199, 155, 75, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(199, 155, 75, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 12% 8%, rgba(111, 32, 37, 0.34), transparent 26rem),
    radial-gradient(circle at 86% 14%, rgba(18, 56, 85, 0.72), transparent 30rem),
    linear-gradient(135deg, #02050b 0%, var(--navy) 48%, #06111d 100%);
  background-size: 58px 58px, 58px 58px, auto, auto, auto;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(110deg, transparent 0 36%, rgba(224, 192, 122, 0.07) 36.2% 36.7%, transparent 37% 100%),
    linear-gradient(18deg, transparent 0 58%, rgba(247, 240, 223, 0.05) 58.2% 58.7%, transparent 59% 100%);
  opacity: 0.9;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 4vw, 3.5rem);
  border-bottom: 1px solid rgba(224, 192, 122, 0.22);
  background: rgba(3, 8, 18, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.94rem;
  color: var(--bone);
}

.brand-mark {
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid rgba(224, 192, 122, 0.46);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 41%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2.2vw, 1.55rem);
  color: rgba(247, 240, 223, 0.74);
  font-size: 0.9rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: #fff;
}

.nav-buy {
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(224, 192, 122, 0.6);
  color: var(--bright-gold);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: calc(100vh - 4rem);
  display: flex;
  align-items: center;
  padding: clamp(2.5rem, 6vw, 6.5rem) clamp(1rem, 5vw, 5rem) clamp(3.5rem, 7vw, 7rem);
  background:
    linear-gradient(90deg, rgba(2, 5, 11, 0.88) 0%, rgba(2, 5, 11, 0.58) 42%, rgba(2, 5, 11, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 5, 11, 0.92) 0%, rgba(2, 5, 11, 0.04) 34%),
    url("./assets/sail-hero-bow.jpg") center / cover;
}

.hero::after {
  position: absolute;
  right: -18vw;
  bottom: -24rem;
  width: min(70rem, 96vw);
  aspect-ratio: 1;
  border: 1px solid rgba(224, 192, 122, 0.18);
  border-radius: 50%;
  content: "";
  background:
    linear-gradient(90deg, transparent 49.85%, rgba(224, 192, 122, 0.18) 50%, transparent 50.15%),
    linear-gradient(0deg, transparent 49.85%, rgba(224, 192, 122, 0.18) 50%, transparent 50.15%);
  opacity: 0.55;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(224, 192, 122, 0.11) 1px, transparent 1px),
    linear-gradient(rgba(224, 192, 122, 0.09) 1px, transparent 1px);
  background-size: 8.5rem 8.5rem;
  mask-image: linear-gradient(90deg, black, transparent 66%);
  opacity: 0.38;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-label {
  margin: 0 0 1rem;
  color: var(--bright-gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

h1 {
  max-width: 8ch;
  color: #fff9ea;
  font-size: clamp(4.8rem, 10.5vw, 10.7rem);
  line-height: 0.88;
  text-shadow: 0 1rem 4rem rgba(0, 0, 0, 0.72);
}

h2 {
  color: #fff5db;
  font-size: clamp(2.5rem, 5vw, 5.9rem);
  line-height: 0.96;
}

h3 {
  color: #fff6dc;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.lede {
  max-width: 41rem;
  margin: 1.55rem 0 0;
  color: rgba(247, 240, 223, 0.78);
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  cursor: pointer;
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.15rem;
  border: 1px solid rgba(224, 192, 122, 0.46);
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
}

.button:disabled {
  cursor: wait;
  filter: grayscale(0.25);
  opacity: 0.62;
}

.button.primary {
  border-color: var(--bright-gold);
  color: #07101c;
  background: linear-gradient(135deg, #f2d98e, var(--gold));
}

.button.secondary {
  color: var(--bone);
  background: rgba(247, 240, 223, 0.08);
}

.button.large {
  min-width: min(100%, 17rem);
}

.hero-compass {
  position: absolute;
  right: clamp(1.25rem, 6vw, 6rem);
  bottom: clamp(2rem, 7vw, 6rem);
  z-index: 1;
  width: clamp(6rem, 14vw, 11rem);
  border: 1px solid rgba(224, 192, 122, 0.36);
  border-radius: 50%;
  box-shadow: var(--shadow-heavy);
  object-fit: cover;
  object-position: center 41%;
}

.story-section,
.artifact-section,
.cinema-section,
.craft-section,
.gallery-section,
.buy-section {
  padding: clamp(3.5rem, 7vw, 7rem) clamp(1rem, 5vw, 5rem);
  border-top: 1px solid var(--line-light);
}

.artifact-section {
  display: grid;
  grid-template-columns: minmax(18rem, 0.62fr) minmax(20rem, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  background:
    linear-gradient(135deg, rgba(239, 226, 197, 0.98), rgba(196, 171, 121, 0.92)),
    var(--paper);
  color: var(--ink);
}

.artifact-section h2 {
  color: var(--ink);
}

.artifact-section .section-label {
  color: var(--oxblood);
}

.artifact-copy p:not(.section-label) {
  max-width: 34rem;
  color: rgba(7, 16, 28, 0.72);
  font-size: 1.05rem;
  line-height: 1.7;
}

.artifact-plates {
  position: relative;
  display: grid;
  grid-template-columns: minmax(10rem, 0.72fr) minmax(13rem, 1fr);
  align-items: end;
  gap: clamp(0.7rem, 2vw, 1.4rem);
}

.artifact-plates::before {
  position: absolute;
  inset: -1.4rem;
  border: 1px solid rgba(7, 16, 28, 0.18);
  content: "";
  pointer-events: none;
}

.artifact-plate {
  position: relative;
  margin: 0;
  padding: clamp(0.7rem, 2vw, 1rem);
  border: 1px solid rgba(7, 16, 28, 0.24);
  background:
    linear-gradient(145deg, rgba(247, 240, 223, 0.92), rgba(196, 171, 121, 0.42)),
    radial-gradient(circle at 50% 18%, rgba(255, 249, 234, 0.64), transparent 22rem),
    #c9b17a;
  box-shadow: 0 1.4rem 2.5rem rgba(7, 16, 28, 0.18);
}

.artifact-plate.front {
  transform: translateY(1.4rem) rotate(-2deg);
}

.artifact-plate.back {
  transform: rotate(1deg);
}

.artifact-plate img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 1.2rem 1.5rem rgba(7, 16, 28, 0.32));
}

.artifact-plate figcaption {
  margin-top: 0.6rem;
  color: var(--oxblood);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cinema-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(14rem, 0.52fr);
  grid-template-areas:
    "wide portrait"
    "copy portrait";
  gap: 1rem;
  background:
    linear-gradient(180deg, rgba(3, 8, 18, 0.98), rgba(12, 32, 52, 0.92));
}

.cinema-wide,
.cinema-portrait {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(224, 192, 122, 0.24);
  background: #050911;
}

.cinema-wide {
  grid-area: wide;
  min-height: clamp(19rem, 42vw, 34rem);
}

.cinema-portrait {
  grid-area: portrait;
  min-height: 100%;
}

.cinema-wide img,
.cinema-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cinema-copy {
  grid-area: copy;
  align-self: end;
  max-width: 58rem;
  padding: clamp(1.2rem, 3vw, 2rem) 0 0;
}

.story-section {
  background:
    linear-gradient(90deg, rgba(3, 8, 18, 0.95), rgba(12, 32, 52, 0.72)),
    linear-gradient(135deg, rgba(224, 192, 122, 0.14), transparent 48%);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 0.86fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.story-copy {
  color: rgba(247, 240, 223, 0.76);
  font-size: 1.07rem;
  line-height: 1.8;
}

.story-copy p {
  margin: 0 0 1.2rem;
}

.craft-section {
  display: grid;
  grid-template-columns: minmax(18rem, 0.85fr) minmax(20rem, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  background:
    linear-gradient(180deg, rgba(239, 226, 197, 0.98), rgba(203, 181, 137, 0.94)),
    var(--paper);
  color: var(--ink);
}

.craft-section h2,
.craft-section h3 {
  color: var(--ink);
}

.craft-section .section-label {
  color: var(--oxblood);
}

.craft-image {
  position: relative;
  min-height: 38rem;
  display: grid;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  border: 1px solid rgba(7, 16, 28, 0.16);
  background:
    radial-gradient(circle at 50% 24%, rgba(247, 240, 223, 0.22), transparent 18rem),
    linear-gradient(145deg, #07101c 0%, #0c2034 58%, #4a1d23 100%);
}

.craft-image::before {
  position: absolute;
  inset: 3rem 11% 2.5rem;
  border: 1px solid rgba(224, 192, 122, 0.24);
  content: "";
}

.craft-image img {
  position: relative;
  width: auto;
  max-width: 74%;
  max-height: 34rem;
  margin: 0 auto;
  filter: drop-shadow(0 2rem 2rem rgba(0, 0, 0, 0.42));
}

.feature-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.feature-list article {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line-dark);
}

.feature-list span {
  grid-row: span 2;
  color: var(--oxblood);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.feature-list p {
  margin: 0.35rem 0 0;
  color: rgba(7, 16, 28, 0.72);
  font-size: 1rem;
  line-height: 1.55;
}

.gallery-section {
  background: #060c15;
}

.gallery-heading {
  max-width: 56rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(18rem, 26vw, 29rem);
  grid-auto-flow: dense;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(224, 192, 122, 0.18);
  background:
    radial-gradient(circle at 50% 24%, rgba(247, 240, 223, 0.18), transparent 18rem),
    linear-gradient(145deg, #07101c, #102a42 62%, #4f2226);
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.scene {
  min-height: 0;
}

.gallery-item img {
  width: auto;
  height: auto;
  max-width: calc(100% - 2.2rem);
  max-height: calc(100% - 2.2rem);
  object-fit: contain;
  filter: drop-shadow(0 1.25rem 1.25rem rgba(0, 0, 0, 0.36));
  transition: transform 220ms ease;
}

.gallery-item.scene img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  background: #050911;
  filter: none;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item figcaption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(224, 192, 122, 0.38);
  color: var(--bright-gold);
  background: rgba(3, 8, 18, 0.8);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.buy-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 26rem;
  background:
    linear-gradient(90deg, rgba(3, 8, 18, 0.94), rgba(3, 8, 18, 0.4)),
    url("./assets/sail-bow-sunset.jpg") center / cover;
}

.buy-section p {
  max-width: 44rem;
  color: rgba(247, 240, 223, 0.78);
  font-size: 1.07rem;
  line-height: 1.7;
}

.checkout-panel {
  width: min(100%, 31rem);
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid rgba(224, 192, 122, 0.36);
  background: rgba(3, 8, 18, 0.78);
  box-shadow: var(--shadow-heavy);
}

.checkout-panel fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.checkout-panel legend {
  margin-bottom: 0.9rem;
  color: var(--bone);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.size-options {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
}

.size-options label {
  cursor: pointer;
}

.size-options input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.size-options span {
  display: grid;
  min-height: 3rem;
  place-items: center;
  border: 1px solid rgba(224, 192, 122, 0.42);
  color: var(--bone);
  background: rgba(247, 240, 223, 0.08);
  font-weight: 900;
}

.size-options input:checked + span,
.size-options input:focus-visible + span {
  border-color: var(--bright-gold);
  color: #07101c;
  background: linear-gradient(135deg, #f2d98e, var(--gold));
}

.shipping-state {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
  color: rgba(247, 240, 223, 0.84);
  font-weight: 800;
}

.shipping-state select {
  min-height: 3rem;
  border: 1px solid rgba(224, 192, 122, 0.42);
  border-radius: 4px;
  color: var(--bone);
  background: #07101c;
  font: inherit;
  padding: 0 0.8rem;
}

.shipping-state select:focus {
  border-color: var(--bright-gold);
  outline: 2px solid rgba(224, 192, 122, 0.24);
  outline-offset: 2px;
}

.checkout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.15rem;
}

.price {
  color: var(--bright-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.shipping-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(224, 192, 122, 0.24);
  color: rgba(247, 240, 223, 0.84);
}

.shipping-summary strong {
  color: var(--bright-gold);
}

.shipping-summary small {
  grid-column: 1 / -1;
  color: rgba(247, 240, 223, 0.62);
  line-height: 1.45;
}

.checkout-total {
  margin: 0.7rem 0 0;
  color: rgba(247, 240, 223, 0.72);
  font-size: 0.94rem;
  line-height: 1.45;
}

.checkout-note {
  min-height: 1.6rem;
  margin: 0.9rem 0 0;
  color: rgba(247, 240, 223, 0.72);
  font-size: 0.94rem;
  line-height: 1.45;
}

.checkout-note[data-state="error"] {
  color: #f2b8a8;
}

.status-section {
  display: grid;
  min-height: 100vh;
  align-content: center;
  gap: 1rem;
  padding: clamp(8rem, 14vw, 13rem) clamp(1rem, 5vw, 5rem);
  background:
    linear-gradient(90deg, rgba(3, 8, 18, 0.94), rgba(3, 8, 18, 0.44)),
    url("./assets/sail-bow-sunset.jpg") center / cover;
}

.status-section h1,
.status-section p {
  max-width: 44rem;
}

.status-section p {
  color: rgba(247, 240, 223, 0.78);
  font-size: 1.1rem;
  line-height: 1.7;
}

@media (max-width: 960px) {
  .story-grid,
  .artifact-section,
  .cinema-section,
  .craft-section {
    grid-template-columns: 1fr;
  }

  .cinema-section {
    grid-template-areas:
      "wide"
      "copy"
      "portrait";
  }

  .cinema-portrait {
    min-height: 34rem;
  }

  .hero {
    min-height: auto;
  }

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

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

  .checkout-panel {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.55rem;
    font-size: 0.82rem;
  }

  .nav-buy {
    padding: 0;
    border: 0;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(3.6rem, 18vw, 5.3rem);
  }

  .hero-compass {
    right: 1.4rem;
    bottom: 1.4rem;
    width: 5.6rem;
  }

  .artifact-plates {
    grid-template-columns: 1fr;
  }

  .artifact-plates::before {
    inset: -0.8rem;
  }

  .artifact-plate.front,
  .artifact-plate.back {
    transform: none;
  }

  .hero-actions,
  .button,
  .checkout-row {
    width: 100%;
  }

  .checkout-row {
    align-items: stretch;
    flex-direction: column;
  }

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

  .craft-image {
    min-height: 28rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(28rem, auto);
  }

  .gallery-item,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 28rem;
  }
}
