:root {
  --paper: #f2ead7;
  --paper-light: #fffaf0;
  --ink: #071a23;
  --teal: #087d7e;
  --teal-dark: #07545b;
  --orange: #ee4d21;
  --gold: #f5b42b;
  --line: 3px solid var(--ink);
  --radius: 16px;
  --shadow: 5px 5px 0 rgba(7, 26, 35, 0.13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 20%, rgba(8, 125, 126, 0.12), transparent 28%),
    radial-gradient(circle at 85% 9%, rgba(238, 77, 33, 0.1), transparent 23%),
    #d9cfb8;
  font-family: "DM Sans", sans-serif;
}

button, input, select { font: inherit; }

button { color: inherit; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.site-shell {
  width: min(1440px, calc(100% - 28px));
  margin: 18px auto 36px;
  padding: 12px;
  background: var(--paper);
  border: var(--line);
  box-shadow: 10px 10px 0 var(--ink);
  overflow: hidden;
}

.panel {
  background: rgba(255, 250, 240, 0.76);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.masthead {
  min-height: 238px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 36px 42px 30px;
  background:
    linear-gradient(105deg, transparent 0 59%, rgba(8, 125, 126, .95) 59% 100%),
    var(--paper-light);
}

.masthead::after {
  content: "";
  position: absolute;
  left: -8%;
  top: 18px;
  width: 68%;
  height: 40px;
  border-top: 8px solid var(--orange);
  border-radius: 50%;
  transform: rotate(-4deg);
}

.brand-lockup { position: relative; z-index: 3; width: 66%; }

.brand-kicker, .eyebrow {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .17em;
  color: var(--teal-dark);
}

.brand-lockup h1 {
  margin: -6px 0 -2px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(5.2rem, 10vw, 9.8rem);
  line-height: .8;
  letter-spacing: -.055em;
  text-transform: uppercase;
  font-style: italic;
  transform: skew(-4deg);
  text-shadow: 5px 5px 0 var(--paper-light), 8px 8px 0 var(--orange);
}

.brand-lockup h1 span { color: var(--teal); }

.brand-lockup p {
  margin: 18px 0 0 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.orbit {
  position: absolute;
  border: 4px solid var(--teal);
  border-radius: 50%;
  transform: rotate(-18deg);
  z-index: 1;
}

.orbit::before {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  border: 3px solid var(--ink);
  background: var(--orange);
  border-radius: 50%;
}

.orbit-one { width: 240px; height: 82px; top: 35px; left: 10px; }
.orbit-one::before { right: 20px; bottom: 2px; }
.orbit-two { width: 110px; height: 200px; right: 33%; top: -58px; border-color: var(--orange); }
.orbit-two::before { left: -6px; bottom: 47px; background: var(--gold); }

.spark { position: absolute; font-size: 2.5rem; z-index: 2; }
.spark-a { left: 16px; top: 75px; color: var(--teal); }
.spark-b { left: 42%; top: 21px; color: var(--ink); }
.spark-c { right: 24%; bottom: 20px; color: var(--orange); }

.quality-seal {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-light);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: .8rem;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
  transform: rotate(4deg);
}

.quality-seal b { color: var(--orange); font-size: .65rem; }

.observatory {
  position: absolute;
  right: 4%;
  bottom: 0;
  z-index: 3;
  width: 330px;
  height: 122px;
  border-bottom: 11px solid var(--ink);
}

.tower {
  position: absolute;
  bottom: 9px;
  display: block;
  width: 42px;
  background: var(--paper-light);
  border: 4px solid var(--ink);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
}

.tower::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 24px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 13px 0 0 var(--teal), 0 19px 0 var(--teal), 13px 19px 0 var(--orange);
}

.tower-one { height: 88px; left: 110px; }
.tower-two { height: 62px; left: 166px; }
.dish {
  position: absolute;
  left: 38px;
  bottom: 64px;
  width: 118px;
  height: 38px;
  background: var(--paper-light);
  border: 4px solid var(--ink);
  border-radius: 10% 10% 60% 60%;
  transform: rotate(-12deg);
}

.dish::after { content: ""; position: absolute; left: 50%; top: 30px; width: 5px; height: 52px; background: var(--ink); }
.rocket { position: absolute; right: 30px; bottom: 9px; font-size: 5.5rem; color: var(--orange); -webkit-text-stroke: 4px var(--ink); transform: rotate(8deg); }

.notice-strip {
  width: min(760px, 90%);
  margin: -13px auto 14px;
  position: relative;
  z-index: 8;
  min-height: 39px;
  padding: 8px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  color: var(--paper-light);
  background: var(--ink);
  border: 3px solid var(--orange);
  border-radius: 999px;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.notice-strip strong { color: #fff; }
.notice-strip span:not(.notice-dot) { opacity: .8; font-size: .85rem; }
.notice-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

.store-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(330px, 1fr);
  gap: 14px;
}

.catalog { padding: 12px; }

.section-heading, .mini-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper-light);
  background: var(--teal);
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 8px 14px;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .13);
}

.section-heading h2, .mini-heading h2 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-style: italic;
  font-weight: 900;
  line-height: .95;
  text-transform: uppercase;
}

.section-heading h2 { font-size: clamp(2.5rem, 4.5vw, 4.1rem); }
.section-heading .eyebrow { color: var(--paper-light); font-size: .7rem; opacity: .75; }
.heading-icon { font-size: 2.5rem; color: var(--gold); text-shadow: 2px 2px 0 var(--ink); }
.section-code { margin-left: auto; padding: 6px 10px; color: var(--ink); background: var(--paper-light); border-radius: 999px; font-weight: 800; font-size: .7rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.product-card {
  position: relative;
  min-height: 330px;
  padding: 15px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background: var(--paper-light);
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 rgba(7, 26, 35, .16);
}

.product-card::before, .product-card::after {
  content: "";
  position: absolute;
  top: 48px;
  width: 76px;
  height: 34px;
  border-radius: 70% 15%;
  transform: rotate(-18deg);
  opacity: .9;
}

.product-card::before { left: 7px; background: var(--teal); }
.product-card::after { right: 8px; background: var(--orange); transform: rotate(19deg); }
.product-card:nth-child(3n + 2)::before { background: var(--gold); }
.product-card:nth-child(3n + 2)::after { background: var(--teal); }

.product-topline {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-family: "Barlow Condensed", sans-serif;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lot-pill { padding: 3px 7px; color: var(--paper-light); background: var(--ink); border-radius: 999px; }
.status-pill { color: var(--teal-dark); }

.vial {
  position: relative;
  z-index: 2;
  width: 78px;
  height: 112px;
  margin: 19px 0 5px;
  background: linear-gradient(90deg, #b7d2cc 0 13%, #f9faf2 25% 70%, #a7c7c1 90%);
  border: 4px solid var(--ink);
  border-radius: 10px 10px 15px 15px;
  box-shadow: inset 0 -18px 0 rgba(8, 125, 126, .12), 4px 4px 0 rgba(7, 26, 35, .13);
}

.vial::before {
  content: "";
  position: absolute;
  width: 62px;
  height: 23px;
  left: 4px;
  top: -18px;
  background: var(--teal);
  border: 4px solid var(--ink);
  border-radius: 6px 6px 2px 2px;
  box-shadow: inset 0 6px 0 rgba(255, 255, 255, .28);
}

.vial-label {
  position: absolute;
  left: 5px;
  right: 5px;
  top: 39px;
  padding: 7px 1px;
  text-align: center;
  background: var(--paper-light);
  border: 2px solid var(--ink);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: .8;
}

.vial-label small { display: block; margin-top: 6px; font-size: .55rem; letter-spacing: .05em; }

.product-card h3 {
  margin: 4px 0 1px;
  text-align: center;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  line-height: 1;
  text-transform: uppercase;
}

.product-card > p { margin: 3px 0 8px; color: #34454b; text-align: center; font-size: .72rem; }

.price-banner {
  width: 82%;
  margin-top: auto;
  padding: 5px 12px;
  color: #fff;
  background: var(--orange);
  clip-path: polygon(11% 0, 100% 0, 89% 100%, 0 100%);
  text-align: center;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.8rem;
  font-style: italic;
  font-weight: 900;
}

.quantity-control {
  width: 100%;
  margin-top: 10px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  overflow: hidden;
}

.quantity-control button {
  min-height: 36px;
  border: 0;
  background: var(--paper);
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 800;
}

.quantity-control button:hover, .quantity-control button:focus-visible { background: var(--gold); }
.quantity-control span { display: grid; place-items: center; border-inline: 2px solid var(--ink); font-weight: 800; }

.checkout-stack { display: flex; flex-direction: column; gap: 10px; }
.checkout-stack .panel { box-shadow: 3px 3px 0 rgba(7, 26, 35, .15); }
.summary, .promo, .form-card, .payment-preview { padding: 9px; }
.mini-heading { min-height: 48px; padding: 6px 10px; }
.mini-heading h2 { font-size: 1.65rem; letter-spacing: .01em; }
.mini-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; color: var(--paper-light); background: var(--ink); }
.tag-icon { color: var(--orange); }

.summary-lines { padding: 9px 6px 5px; border-bottom: 2px solid var(--ink); }
.empty-cart { margin: 3px 0; color: #5d6667; font-size: .86rem; }
.summary-item { display: flex; justify-content: space-between; gap: 10px; margin: 5px 0; font-size: .83rem; }
.summary-item span:first-child { flex: 1; }
.summary-item small { color: var(--teal-dark); font-weight: 700; }
.totals-list { margin: 8px 6px; }
.totals-list div { display: flex; justify-content: space-between; margin: 4px 0; }
.totals-list dt, .totals-list dd { margin: 0; font-size: .83rem; }
.grand-total { display: flex; align-items: center; justify-content: space-between; padding: 8px 15px; background: var(--ink); color: var(--paper-light); clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%); font-family: "Barlow Condensed", sans-serif; font-size: 1.6rem; font-style: italic; font-weight: 900; text-transform: uppercase; }
.grand-total strong { color: var(--gold); font-size: 2rem; }

.shipping-callout { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--teal); color: var(--paper-light); }
.shipping-callout h2 { margin: 0; font-family: "Barlow Condensed", sans-serif; font-style: italic; font-size: 1.8rem; text-transform: uppercase; }
.shipping-callout p { margin: 2px 0 0; font-size: .8rem; }
.truck { font-size: 2.2rem; color: var(--gold); }
.speed-lines { position: absolute; right: -30px; width: 160px; height: 48px; border-block: 5px solid var(--paper-light); border-radius: 50%; opacity: .55; }

.promo { position: relative; overflow: hidden; min-height: 130px; }
.promo p { margin: 9px 8px 0; max-width: 76%; font-size: .82rem; }
.promo p strong { font-size: .92rem; }
.atom { position: absolute; right: 11px; bottom: -3px; font-size: 4.8rem; color: var(--teal); transform: rotate(-12deg); }

.order-form { display: contents; }
.form-card label { display: block; margin: 8px 4px 0; font-family: "Barlow Condensed", sans-serif; font-weight: 700; }
.form-card label em { color: var(--orange); font-style: normal; }
.form-card input:not([type="checkbox"]), .form-card select {
  width: 100%;
  min-height: 39px;
  margin-top: 3px;
  padding: 7px 9px;
  color: var(--ink);
  background: var(--paper-light);
  border: 2px solid rgba(7, 26, 35, .55);
  border-radius: 7px;
  outline: none;
}
.form-card input:focus, .form-card select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8, 125, 126, .18); }
.form-row { display: grid; gap: 7px; }
.form-row-three { grid-template-columns: 1.2fr .8fr .8fr; }
.check-row { display: flex !important; gap: 8px; align-items: flex-start; font-family: "DM Sans", sans-serif !important; font-size: .73rem; font-weight: 500 !important; }
.check-row input { accent-color: var(--teal); }

.stripe-placeholder { display: flex; align-items: center; gap: 12px; margin-top: 9px; padding: 11px; border: 2px dashed var(--teal); border-radius: 8px; }
.stripe-placeholder p { margin: 2px 0 0; font-size: .75rem; }
.lock { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; color: var(--paper-light); background: var(--teal); border: 2px solid var(--ink); border-radius: 50% 50% 8px 8px; }

.submit-button {
  min-height: 64px;
  padding: 7px 10px 7px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
  background: var(--orange);
  border: 4px solid var(--ink);
  border-radius: 999px;
  box-shadow: inset 0 -7px 0 rgba(0, 0, 0, .15), 4px 4px 0 rgba(7, 26, 35, .2);
  cursor: pointer;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
}
.submit-button:hover, .submit-button:focus-visible { background: var(--gold); transform: translateY(-2px); }
.submit-button b { display: grid; place-items: center; width: 42px; height: 42px; color: var(--paper-light); background: var(--ink); border-radius: 50%; }
.form-status { display: none; margin: 0; padding: 8px 12px; background: #ffe1d8; border: 2px solid var(--orange); border-radius: 8px; font-size: .8rem; }
.form-status.visible { display: block; }

.mission { position: relative; overflow: hidden; margin-top: 14px; padding: 28px 32px; display: grid; grid-template-columns: 1.2fr 1.7fr; gap: 24px; background: var(--ink); color: var(--paper-light); }
.mission h2 { margin: 3px 0 8px; max-width: 620px; font-family: "Barlow Condensed", sans-serif; font-size: clamp(2.2rem, 4vw, 4rem); font-style: italic; line-height: .95; text-transform: uppercase; }
.mission p { max-width: 620px; color: #c4d0cd; font-size: .9rem; line-height: 1.6; }
.mission .eyebrow { color: var(--gold); }
.mission-steps { position: relative; z-index: 2; align-self: center; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.mission-steps div { min-height: 135px; padding: 14px; background: var(--paper); color: var(--ink); border: 3px solid var(--orange); border-radius: 12px; }
.mission-steps span { display: block; color: var(--teal); font-family: "Barlow Condensed", sans-serif; font-size: 2.4rem; font-weight: 900; }
.mission-steps strong, .mission-steps small { display: block; }
.mission-steps strong { font-family: "Barlow Condensed", sans-serif; font-size: 1.4rem; text-transform: uppercase; }
.mission-steps small { margin-top: 7px; }
.planet { position: absolute; right: -60px; top: -90px; width: 230px; height: 230px; border-radius: 50%; border: 14px solid rgba(8, 125, 126, .3); }
.planet span { position: absolute; inset: 88px -35px; border: 6px solid var(--orange); border-radius: 50%; transform: rotate(-22deg); }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 18px 8px 4px; font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .08em; }

dialog {
  width: min(520px, calc(100% - 30px));
  padding: 32px;
  color: var(--ink);
  background: var(--paper-light);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--orange);
}
dialog::backdrop { background: rgba(7, 26, 35, .76); backdrop-filter: blur(3px); }
dialog h2 { margin: 5px 0 8px; font-family: "Barlow Condensed", sans-serif; font-size: 2.8rem; font-style: italic; line-height: .95; text-transform: uppercase; }
dialog p { line-height: 1.6; }
.dialog-close { position: absolute; right: 12px; top: 10px; border: 0; background: transparent; font-size: 1.8rem; cursor: pointer; }
.dialog-star { color: var(--orange); font-size: 2rem; }
.dialog-action { padding: 10px 18px; color: var(--paper-light); background: var(--teal); border: 3px solid var(--ink); border-radius: 999px; font-weight: 800; cursor: pointer; }

@media (max-width: 1040px) {
  .store-grid { grid-template-columns: 1fr; }
  .checkout-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-form { display: contents; }
  .submit-button, .form-status { grid-column: 1 / -1; }
  .masthead { min-height: 215px; }
  .observatory { opacity: .55; }
  .quality-seal { display: none; }
}

@media (max-width: 720px) {
  .site-shell { width: calc(100% - 14px); margin-top: 7px; padding: 7px; box-shadow: 5px 5px 0 var(--ink); }
  .masthead { min-height: 225px; padding: 30px 20px; align-items: flex-end; }
  .brand-lockup { width: 100%; }
  .brand-lockup h1 { font-size: clamp(4.4rem, 23vw, 7rem); }
  .brand-lockup p { max-width: 430px; font-size: .92rem; }
  .observatory { right: -120px; opacity: .23; }
  .notice-strip { width: 95%; gap: 7px; text-align: center; font-size: .7rem; }
  .notice-strip span:not(.notice-dot) { display: none; }
  .store-grid > *, .catalog, .checkout-stack { min-width: 0; }
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .product-card { min-width: 0; min-height: 310px; }
  .checkout-stack { display: flex; }
  .order-form { display: contents; }
  .mission { grid-template-columns: 1fr; padding: 24px 18px; }
  .mission-steps { grid-template-columns: 1fr; }
  .mission-steps div { min-height: 0; }
  footer { flex-direction: column; }
}

@media (max-width: 470px) {
  .product-card { min-height: 310px; }
  .section-heading { padding: 8px; }
  .section-code { display: none; }
  .form-row-three { grid-template-columns: 1fr; }
  .mission-steps { grid-template-columns: 1fr; }
}

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