:root {
  --ink: #24304f;
  --muted: #6b6680;
  --paper: #fffaf6;
  --white: #ffffff;
  --red: #ef2b24;
  --orange: #ff8c1f;
  --berry: #ef2f9a;
  --berry-dark: #b7156b;
  --plum: #7227b8;
  --blue: #1976d2;
  --teal: #19aee6;
  --teal-dark: #0878a8;
  --sun: #ffd33d;
  --leaf: #28b63f;
  --sky: #eaf8ff;
  --line: rgba(43, 33, 57, 0.14);
  --shadow: 0 20px 60px rgba(43, 33, 57, 0.16);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(25, 174, 230, 0.08), transparent 28%, rgba(255, 211, 61, 0.12)),
    linear-gradient(180deg, rgba(40, 182, 63, 0.06), transparent 36%),
    var(--paper);
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 30;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--plum);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 250, 246, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  flex: 0 0 auto;
  width: 78px;
  height: 58px;
  object-fit: contain;
  padding: 0.18rem;
  border: 3px solid var(--white);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 22px rgba(25, 118, 210, 0.16);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.1;
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.main-nav a {
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--ink);
  background: rgba(7, 151, 165, 0.1);
  outline: none;
}

.cart-button,
.button,
.icon-button {
  border: 0;
  cursor: pointer;
}

.cart-button {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--ink), var(--plum));
  font-weight: 800;
  white-space: nowrap;
}

.cart-button svg,
.button svg,
.icon-button svg,
.quick-strip svg,
.story-points svg {
  width: 1.08rem;
  height: 1.08rem;
  stroke-width: 2.6;
}

.cart-button strong {
  display: grid;
  min-width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--sun);
  font-size: 0.78rem;
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(420px, 58dvh, 620px);
  align-items: end;
  overflow: hidden;
  padding: clamp(4.5rem, 12vh, 8rem) clamp(1rem, 4vw, 4rem) clamp(2rem, 7vh, 4rem);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(90deg, rgba(255, 250, 246, 0.96) 0%, rgba(255, 250, 246, 0.78) 48%, rgba(255, 250, 246, 0.34) 100%),
    url("logo-web.jpeg");
  background-position: center, right 8% center;
  background-repeat: no-repeat;
  background-size: cover, min(74vw, 880px) auto;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 44%;
  content: "";
  background: linear-gradient(0deg, var(--paper), rgba(255, 250, 246, 0));
}

.hero-content {
  max-width: 720px;
  color: var(--ink);
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.75);
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--blue);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.1rem, 11vw, 6.9rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

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

.hero-copy {
  max-width: 58ch;
  margin: 1rem 0 1.4rem;
  font-size: clamp(1.02rem, 2vw, 1.24rem);
}

.hero-actions,
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.button {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1rem;
  border-radius: var(--radius);
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible,
.cart-button:hover,
.cart-button:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button.primary {
  color: var(--white);
  background: linear-gradient(100deg, var(--red), var(--orange), var(--berry), var(--plum), var(--blue), var(--leaf));
  background-size: 220% 100%;
  box-shadow: 0 12px 26px rgba(25, 118, 210, 0.24);
}

.button.primary:hover,
.button.primary:focus-visible {
  background-position: 100% 0;
}

.button.ghost {
  color: var(--white);
  background: rgba(43, 33, 57, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.button.add-button {
  color: var(--white);
  background: var(--plum);
}

.quick-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: min(1120px, calc(100% - 2rem));
  margin: -1.2rem auto 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quick-strip::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--red), var(--orange), var(--sun), var(--leaf), var(--teal), var(--blue), var(--plum));
}

.quick-strip div {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 0.9rem;
  color: var(--ink);
  background: var(--white);
  font-weight: 900;
  text-align: center;
}

.quick-strip div:nth-child(1) svg {
  color: var(--berry);
}

.quick-strip div:nth-child(2) svg {
  color: var(--teal);
}

.quick-strip div:nth-child(3) svg {
  color: var(--plum);
}

.promo-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(1rem, 4vw, 2.5rem);
  align-items: center;
  width: min(1180px, calc(100% - 2rem));
  margin: clamp(2rem, 5vw, 4rem) auto 0;
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 211, 61, 0.16), rgba(25, 174, 230, 0.12)),
    var(--white);
  box-shadow: 0 16px 46px rgba(43, 33, 57, 0.1);
}

.promo-copy {
  display: grid;
  gap: 0.9rem;
}

.promo-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.promo-copy .button {
  width: fit-content;
}

.promo-art {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
}

.promo-art img {
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
}

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-heading {
  display: grid;
  gap: 0.75rem;
  max-width: 780px;
  margin-bottom: 1.5rem;
}

.section-heading p:not(.eyebrow),
.story-copy p:not(.eyebrow),
.quote-band p {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

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

.product-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 38px rgba(43, 33, 57, 0.09);
}

.product-media {
  margin: 0;
  background: var(--sky);
}

.product-media img {
  height: 300px;
  object-fit: cover;
}

.book-card .product-media img {
  object-position: right center;
}

.product-body {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.product-body p {
  margin: 0;
  color: var(--muted);
}

.tag {
  width: fit-content;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  color: var(--blue) !important;
  background: linear-gradient(90deg, rgba(255, 211, 61, 0.24), rgba(25, 174, 230, 0.14));
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.field,
.qty-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.field span,
.qty-field span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.field input,
.field select,
.field textarea,
.qty-field input {
  width: 100%;
  border: 1px solid rgba(43, 33, 57, 0.18);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
}

.field input,
.field select,
.qty-field input {
  min-height: 44px;
  padding: 0.58rem 0.7rem;
}

.field textarea {
  min-height: 108px;
  padding: 0.7rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.qty-field input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(7, 151, 165, 0.16);
}

.qty-field {
  width: 84px;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(1rem, 5vw, 4rem);
  align-items: center;
}

.story-copy {
  display: grid;
  gap: 0.9rem;
}

.story-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.story-points div {
  display: grid;
  gap: 0.45rem;
  min-height: 185px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--white), rgba(234, 248, 255, 0.7));
}

.story-points svg {
  color: var(--blue);
}

.story-points strong {
  font-size: 1.05rem;
}

.story-points span {
  color: var(--muted);
  font-size: 0.95rem;
}

.gallery-section {
  padding-top: 1rem;
}

.gallery-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  display: block;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(43, 33, 57, 0.1);
}

.gallery-item img {
  height: 240px;
  object-fit: cover;
  transition: transform 220ms ease;
}

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

.gallery-item.tall img {
  height: 492px;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.035);
}

.gallery-item:focus-visible {
  outline: 4px solid rgba(216, 43, 140, 0.22);
}

.quote-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.4rem;
  align-items: center;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto clamp(3rem, 7vw, 5rem);
  padding: clamp(1.2rem, 4vw, 2rem);
  border-radius: var(--radius);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(25, 118, 210, 0.94), rgba(114, 39, 184, 0.94), rgba(239, 47, 154, 0.9)),
    var(--plum);
}

.quote-band .eyebrow,
.quote-band p {
  color: rgba(255, 255, 255, 0.82);
}

.quote-band .button {
  align-self: center;
  background: var(--white);
  color: var(--plum);
  box-shadow: 0 14px 30px rgba(43, 33, 57, 0.18);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(43, 33, 57, 0.45);
}

.quote-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: min(540px, 100%);
  height: 100dvh;
  padding: 1rem;
  overflow-y: auto;
  background: var(--paper);
  box-shadow: -20px 0 60px rgba(43, 33, 57, 0.2);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.quote-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  gap: 1rem;
  align-items: start;
  justify-content: space-between;
  padding-bottom: 1rem;
}

.drawer-header h2 {
  font-size: 2rem;
}

.icon-button {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.cart-items {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding-bottom: 1rem;
}

.empty-cart {
  margin: 0;
  padding: 1rem;
  border: 1px dashed rgba(43, 33, 57, 0.25);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--white);
  text-align: center;
}

.cart-line {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.cart-line img {
  width: 76px;
  height: 76px;
  border-radius: var(--radius);
  object-fit: cover;
}

.cart-line h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.cart-line p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-controls {
  display: grid;
  grid-template-columns: repeat(3, 34px);
  gap: 0.25rem;
  align-items: center;
}

.cart-controls button,
.cart-controls span {
  display: grid;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 900;
}

.cart-controls button {
  cursor: pointer;
}

.remove-line {
  grid-column: 1 / -1;
  min-height: 34px;
  border: 0;
  border-radius: var(--radius);
  color: var(--berry-dark);
  background: rgba(216, 43, 140, 0.1);
  cursor: pointer;
  font-weight: 900;
}

.quote-form {
  display: grid;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.submit-button {
  width: 100%;
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-status.success {
  color: var(--leaf);
  font-weight: 900;
}

.form-status.error {
  color: var(--berry-dark);
  font-weight: 900;
}

.honeypot {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lightbox {
  width: min(1000px, calc(100% - 1rem));
  max-height: calc(100dvh - 1rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(43, 33, 57, 0.68);
}

.lightbox img {
  max-height: calc(100dvh - 6rem);
  object-fit: contain;
  background: var(--ink);
}

.lightbox p {
  margin: 0;
  padding: 0.8rem 1rem 1rem;
  color: var(--muted);
  font-weight: 800;
}

.lightbox-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  color: var(--white);
  background: rgba(43, 33, 57, 0.76);
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: min(360px, calc(100% - 2rem));
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .product-grid,
  .promo-feature,
  .story-section {
    grid-template-columns: 1fr;
  }

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

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

  .quote-band {
    grid-template-columns: 1fr;
  }

  .quote-band .button {
    width: fit-content;
  }

  .promo-art {
    order: -1;
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 0.6rem;
    padding: 0.65rem 0.8rem;
  }

  .brand small,
  .cart-button span {
    display: none;
  }

  .brand-logo {
    width: 52px;
    height: 42px;
  }

  .hero {
    min-height: 62dvh;
    padding: 5rem 1rem 2rem;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 3.6rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions .button {
    flex: 1 1 190px;
  }

  .quick-strip {
    grid-template-columns: 1fr;
  }

  .quick-strip div {
    justify-content: start;
    min-height: 58px;
    text-align: left;
  }

  .promo-feature {
    width: min(100% - 2rem, 520px);
    padding: 0.75rem;
  }

  .promo-copy {
    padding: 0.25rem;
  }

  .promo-copy .button {
    width: 100%;
  }

  .product-media img {
    height: 270px;
  }

  .product-actions {
    align-items: end;
  }

  .product-actions .button {
    flex: 1 1 160px;
  }

  .story-points,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .story-points div {
    min-height: auto;
  }

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

  .gallery-item img,
  .gallery-item.tall img {
    height: min(95vw, 430px);
  }

  .quote-drawer {
    padding: 0.8rem;
  }

  .cart-line {
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .cart-line img {
    width: 66px;
    height: 66px;
  }

  .cart-controls {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
