:root {
  --paper: #f7f5f0;
  --ink: #141414;
  --ink-soft: rgba(20, 20, 20, 0.62);
  --ink-faint: rgba(20, 20, 20, 0.36);
  --line: rgba(20, 20, 20, 0.14);
  --accent: #6b9ee6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 245, 240, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  height: 20px;
  width: auto;
  display: block;
}

.nav-link {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line);
  font-size: 14px;
  transition: text-decoration-color 0.15s ease;
}

.nav-link:hover {
  text-decoration-color: var(--ink);
}

/* Hero */
.hero {
  padding: 96px 24px 80px;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 20px;
}

.hero h1 {
  font-size: clamp(36px, 5.2vw, 58px);
  font-style: italic;
  line-height: 1.08;
  margin: 0 0 24px;
}

.hero-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 0 0 32px;
}

.wally-svg {
  width: 200px;
  height: auto;
  margin: 0 auto;
}

.btn-outline {
  display: inline-block;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 13px 26px;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Features */
.features {
  padding: 20px 24px 100px;
}

.features-heading {
  max-width: 1100px;
  margin: 0 auto 56px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.features h2 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 32px);
  font-style: italic;
}

.section-accent {
  width: 44px;
  height: auto;
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.85;
}

.feature-list {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.feature-row {
  display: grid;
  grid-template-columns: 60px 1fr 1.4fr;
  gap: 24px;
  align-items: baseline;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.feature-index {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 14px;
  color: var(--ink-faint);
}

.feature-row h3 {
  font-size: 22px;
  font-weight: 500;
  margin: 0;
}

.feature-row p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 46ch;
}

/* Download */
.download {
  padding: 100px 24px 90px;
  border-top: 1px solid var(--line);
}

.download-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.download-inner h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  font-style: italic;
  margin: 0 0 16px;
}

.download-inner p {
  color: var(--ink-soft);
  margin: 0 0 40px;
}

.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.qr-placeholder {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-placeholder span {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.qr-caption {
  margin: 0;
  font-size: 12px;
  color: var(--ink-faint);
}

/* Footer */
.footer {
  padding: 48px 24px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.footer-wordmark {
  display: block;
  margin: 0 auto 14px;
}

.footer p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--ink-faint);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 0 0 18px;
}

.footer-social a {
  display: inline-flex;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.footer-social a:hover {
  color: var(--ink);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
  color: var(--ink-soft);
}

.footer-links a:hover {
  text-decoration-color: var(--ink);
  color: var(--ink);
}

/* Legal pages (Privacy Policy, Terms of Service) */
.legal-hero {
  padding: 72px 24px 8px;
}

.legal-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.legal-hero h1 {
  font-size: clamp(30px, 5vw, 42px);
  font-style: italic;
  margin: 0 0 14px;
}

.legal-meta {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0;
}

.legal-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 100px;
}

.legal-body h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.legal-body h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legal-body p,
.legal-body li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.legal-body strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}

.legal-body a:hover {
  text-decoration-color: var(--ink);
}

/* Shop */
.shop-hero {
  padding: 88px 24px 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.shop-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.shop-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-style: italic;
  line-height: 1.08;
  margin: 0 0 22px;
}

.shop-hero .hero-sub {
  margin: 0 auto 48px;
}

/* Character masters sit on ground y 347 of a 400 frame, so pull each down by its empty floor */
.family-row,
.art-on-tee,
.art-on-tote,
.art-on-mug,
.postcard-front {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.family-row img,
.art-on-tee img,
.art-on-tote img,
.art-on-mug img,
.postcard-front img {
  width: var(--w);
  height: auto;
  margin-bottom: calc(var(--w) * -0.1325);
}

.family-row {
  gap: 0;
  padding-bottom: 20px;
}

.shop {
  padding: 88px 24px 100px;
}

.shop-heading-note {
  margin: 0;
  font-size: 13px;
  color: var(--ink-faint);
}

.product-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 28px;
}

.product-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.product-card:hover .product-art {
  transform: translateY(-3px);
}

.tint-blue  { background: #dfe9f7; }
.tint-paper { background: #ece6db; }
.tint-pink  { background: #f8e3ef; }
.tint-aqua  { background: #dcf1f4; }
.tint-mint  { background: #e1f1e6; }
.tint-sand  { background: #f2e8d6; }

.art-plush {
  width: 72%;
  height: auto;
  filter: drop-shadow(0 14px 14px rgba(74, 58, 72, 0.16));
}

.art-base {
  width: 78%;
  height: auto;
  filter: drop-shadow(0 10px 12px rgba(74, 58, 72, 0.1));
}

.art-on-tee,
.art-on-tote,
.art-on-mug {
  position: absolute;
  gap: 0;
}

.art-on-tee img,
.art-on-tote img {
  margin-left: calc(var(--w) * -0.08);
  margin-right: calc(var(--w) * -0.08);
}

.art-on-tee  { top: 44%; left: 50%; transform: translateX(-50%); }
.art-on-tote { top: 50%; left: 50%; transform: translateX(-50%); }
.art-on-mug  { top: 41%; left: 37%; }

.sticker-sheet {
  width: 70%;
  aspect-ratio: 4 / 5;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(74, 58, 72, 0.12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  padding: 10%;
  gap: 4%;
  transform: rotate(-4deg);
}

.sticker-sheet img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 0 #fff) drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff)
          drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff)
          drop-shadow(0 2px 3px rgba(74, 58, 72, 0.22));
}

.sticker-heart {
  font-size: 34px;
  color: #d873c2;
  line-height: 1;
}

.postcard {
  position: absolute;
  width: 62%;
  aspect-ratio: 3 / 2;
  border-radius: 4px;
  box-shadow: 0 10px 20px rgba(74, 58, 72, 0.12);
}

.postcard-back {
  background: #fff;
  transform: translate(10%, -16%) rotate(6deg);
}

.postcard-lines {
  position: absolute;
  right: 10%;
  top: 30%;
  width: 36%;
  height: 40%;
  background: repeating-linear-gradient(to bottom, transparent 0 10px, var(--line) 10px 11px);
  border-left: 1px solid var(--line);
  padding-left: 8px;
}

.postcard-front {
  background: #dfe9f7;
  border: 6px solid #fff;
  transform: translate(-6%, 14%) rotate(-5deg);
  padding-bottom: 14%;
  gap: 4px;
}

.product-info {
  padding: 20px 2px 0;
}

.product-info h3 {
  font-size: 21px;
  margin: 0 0 8px;
}

.product-info p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 16px;
  max-width: 40ch;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.product-status {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.product-notify {
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line);
}

.product-notify:hover {
  text-decoration-color: var(--ink);
}

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

@media (max-width: 560px) {
  .shop .features-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

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

  .family-row img {
    width: calc(var(--w) * 0.7);
    margin-bottom: calc(var(--w) * 0.7 * -0.1325);
  }
}

/* Responsive */
@media (max-width: 780px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-art {
    order: -1;
  }

  .hero-art .wally-svg {
    width: 170px;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
