body {
  font-family: 'Alegreya Sans', sans-serif;
  transition: background 0.4s, color 0.4s;
  overflow-x: hidden;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.font-display {
  font-family: 'Playfair Display', serif;
}

.hero-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.1;
  margin: 0;
}

.hero-description {
  font-size: 1.05rem;
  margin: 0;
  opacity: 0.8;
}

.dark-mode {
  --bg: #2a2a2a;
  --text: #e9d9c8;
  --card-bg: #3a3a3a;
  --hero-image-bg: #2c2c2c;
  --surface-bg: rgba(58, 58, 58, 0.82);
  --surface-border: rgba(233, 217, 200, 0.16);
  --surface-shadow: rgba(0, 0, 0, 0.36);
  --accent-pink: #f3a8ca;
  --accent-green: #a7d676;
  --accent-yellow: #fde047;
  --accent-blue: #6f97d9;
}

.light-mode {
  --bg: #fffef9;
  --text: #6f4e37;
  --card-bg: #ffffff;
  --hero-image-bg: #fffef9;
  --surface-bg: rgba(255, 255, 255, 0.8);
  --surface-border: rgba(0, 0, 0, 0.06);
  --surface-shadow: rgba(106, 90, 77, 0.08);
  --accent-pink: #9b2c62;
  --accent-green: #2f6b3d;
  --accent-yellow: #9a6a00;
  --accent-blue: #4f6fa8;
}

body {
  background: var(--bg);
  color: var(--text);
}

.hero-image {
  background: var(--hero-image-bg);
  display: block;
}

.art-card {
  background: var(--card-bg);
  transition: transform 0.3s, box-shadow 0.3s;
}

.checkout-surface {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(236, 72, 153, 0.3) !important;
  border-radius: 1.2rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(3px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

header nav a {
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

header nav a:hover {
  background: rgba(79, 111, 168, 0.14);
  transform: translateY(-1px);
}

.dark-mode header nav a:hover {
  background: rgba(243, 168, 202, 0.18);
}

.checkout-surface:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.12) !important;
}

.checkout-surface h1,
.checkout-surface h2,
.checkout-surface p,
.checkout-surface li,
.checkout-surface label,
.checkout-surface span {
  color: var(--text);
}

.dark-mode #confirm-errors {
  color: #f7a9c0;
}

.checkout-primary-btn {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #9b2c62, #c94f82);
  box-shadow: 0 8px 20px rgba(155, 44, 98, 0.18);
}

.dark-mode .checkout-primary-btn {
  background: linear-gradient(135deg, #db7ea9, #f3a8ca);
  box-shadow: 0 8px 20px rgba(243, 168, 202, 0.22);
  color: #2a2a2a;
}

.checkout-primary-btn:hover {
  filter: brightness(1.04);
}

.checkout-secondary-btn {
  border: 1px solid var(--accent-pink);
  color: var(--accent-pink);
  background: rgba(255, 255, 255, 0.7);
}

.checkout-secondary-btn:hover {
  background: rgba(155, 44, 98, 0.1);
}

.dark-mode .checkout-secondary-btn {
  border-color: var(--accent-pink);
  color: var(--accent-pink);
  background: rgba(42, 42, 42, 0.42);
}

.dark-mode .checkout-secondary-btn:hover {
  background: rgba(243, 168, 202, 0.16);
}

.checkout-primary-btn:focus-visible,
.checkout-secondary-btn:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.dark-mode .blob-1,
.dark-mode .blob-2,
.dark-mode .blob-3 {
  opacity: 0.5;
}

.dark-mode .checkout-surface {
  background: rgba(58, 58, 58, 0.85) !important;
  border-color: rgba(233, 217, 200, 0.2) !important;
}

.art-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.blob-1 {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(244, 163, 187, 0.3);
  filter: blur(60px);
  top: -50px;
  left: -80px;
}

.blob-2 {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(167, 214, 118, 0.25);
  filter: blur(60px);
  bottom: -40px;
  right: -60px;
}

.blob-3 {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(253, 224, 71, 0.25);
  filter: blur(50px);
  top: 40%;
  right: 20%;
}

@media (max-width: 760px) {
  header nav {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
  }

  header nav > div:first-child {
    order: 2;
    width: 100%;
    justify-content: center;
  }

  header nav > div:last-child {
    order: 1;
    margin-left: auto;
    position: static !important;
    transform: none !important;
  }

  .hero-title {
    font-size: 2.2rem;
  }
}