* { box-sizing: border-box; }

/* Safety net: keep any image from forcing horizontal overflow. height:auto is
   required alongside it so that width/height attributes only supply the aspect
   ratio rather than becoming the used height. */
img {
  max-width: 100%;
  height: auto;
}

/* Screen-reader-only text: present for search engines and assistive tech,
   invisible on screen. Used for the page h1, which the logo-only hero lacks. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  background: oklch(0.14 0.005 250);
  font-family: 'Inter', sans-serif;
  color: oklch(0.92 0.005 250);
  overflow-x: hidden;
}

a {
  color: oklch(0.75 0.06 235);
  text-decoration: none;
}
a:hover {
  color: oklch(0.85 0.05 235);
}
::selection {
  background: oklch(0.6 0.06 235 / 0.4);
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  border-bottom: 1px solid oklch(0.28 0.01 250);
  position: sticky;
  top: 0;
  background: oklch(0.12 0.005 250 / 0.92);
  backdrop-filter: blur(8px);
  z-index: 10;
  overflow-y: visible;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  height: 52px;
  width: 52px;
  object-fit: contain;
}
.brand-name {
  font-family: 'Creepster', cursive;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.02em;
  color: oklch(0.95 0.005 250);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}
.site-nav a {
  color: oklch(0.85 0.01 250);
}

/* Hero */
.hero {
  padding: 70px 48px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}
.hero-logo {
  width: 480px;
  max-width: 85%;
  height: auto;
}
.hero-banner {
  max-width: 620px;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 0.1s linear, transform 0.1s linear;
}

/* Shared section heading */
.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  margin-bottom: 36px;
}
.section-heading h2 {
  font-family: 'Creepster', cursive;
  font-weight: 400;
  font-size: 36px;
  margin: 0;
  color: oklch(0.95 0.003 250);
}
.section-subline {
  font-size: 14px;
  color: oklch(0.6 0.01 250);
}
.section-subline-secondary {
  font-size: 15px;
  color: oklch(0.75 0.01 250);
  margin-top: 4px;
}

/* Prints */
.prints {
  padding: 60px 48px 80px;
  max-width: 1180px;
  margin: 0 auto;
  scroll-margin-top: 88px;
}
.product-grid {
  display: grid;
  /* min() stops the 300px track minimum from overflowing narrow phones, where
     the available column is smaller than that after section padding. */
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 28px;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto;
}
.product-card {
  border: 1px solid oklch(0.28 0.01 250);
  border-radius: 12px;
  overflow: hidden;
  background: oklch(0.17 0.006 250);
  display: flex;
  flex-direction: column;
  padding: 22px;
  gap: 10px;
}
.long-description {
  max-height: 250px;
  /* auto, not scroll: no permanent scrollbar gutter when the copy is short */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 14px;
  border: 1px solid #444;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.6;
  font-family: inherit;
  color: #ffffff;
  background-color: #000000;
  margin-top: 4px;
}
.long-description h3 {
  margin-top: 0;
  margin-bottom: 10px;
}
.long-description p {
  margin: 0 0 0;
}
.long-description ul {
  margin-top: 0;
  padding-left: 20px;
}

/* Services */
.services {
  padding: 80px 48px;
  background: oklch(0.1 0.005 250);
  border-top: 1px solid oklch(0.28 0.01 250);
  border-bottom: 1px solid oklch(0.28 0.01 250);
  scroll-margin-top: 88px;
}
.services-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.services-subhead {
  font-size: 15px;
  color: oklch(0.6 0.01 250);
  margin: 0 auto;
  max-width: 620px;
}
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 28px;
}
.tier-card {
  border: 1px solid oklch(0.3 0.01 250);
  border-radius: 12px;
  background: oklch(0.15 0.006 250);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tier-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0;
  color: oklch(0.95 0.003 250);
}
.tier-card p {
  font-size: 14px;
  line-height: 1.55;
  color: oklch(0.65 0.01 250);
  margin: 0;
  flex: 1;
}
.tier-price {
  font-size: 20px;
  font-weight: 700;
  color: oklch(0.95 0.003 250);
}
.tier-card form {
  margin: 0;
}
.tier-card button {
  width: 100%;
  background: oklch(0.7 0.06 235);
  color: oklch(0.12 0.01 250);
  padding: 12px 0;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Footer */
.site-footer {
  padding: 60px 48px 40px;
  scroll-margin-top: 88px;
}
.footer-columns {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 64px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  align-items: center;
  text-align: center;
}
.footer-heading {
  color: oklch(0.9 0.005 250);
  font-weight: 600;
  margin-bottom: 4px;
}
.footer-heading-spaced {
  margin-top: 16px;
}
.footer-policy {
  max-width: 480px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 12px;
}
.footer-policy-heading {
  color: oklch(0.6 0.01 250);
  font-weight: 600;
}
.footer-policy p {
  margin: 0;
  line-height: 1.55;
  color: oklch(0.65 0.01 250);
}
.footer-bottom {
  max-width: 1180px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid oklch(0.28 0.01 250);
  font-size: 12px;
  color: oklch(0.5 0.01 250);
}

/* ---------------------------------------------------------------------------
   Phones. The stylesheet previously had no media queries at all: the header
   kept 48px side padding and a 32px nav gap at every width, so its content
   measured 426px and was clipped by body{overflow-x:hidden} on any phone —
   52px of it lost at 375px, taking the cart button with it.
   --------------------------------------------------------------------------- */
@media (max-width: 720px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
    padding: 12px 16px;
  }
  .site-nav {
    gap: 20px;
    font-size: 13px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .brand-name { font-size: 20px; }
  .brand-logo { height: 40px; width: 40px; }

  .hero { padding: 44px 16px 40px; gap: 20px; }
  .prints { padding: 44px 16px 56px; }
  .services { padding: 56px 16px; }
  .site-footer { padding: 44px 16px 32px; }
  .section-heading h2 { font-size: 30px; }

  /* The sticky header is taller once it wraps; keep anchor targets clear of it. */
  .prints, .services, .site-footer { scroll-margin-top: 104px; }
}

@media (max-width: 400px) {
  .site-nav { gap: 14px; font-size: 12px; }
  .brand-name { font-size: 18px; }
  .hero, .prints, .services, .site-footer { padding-left: 12px; padding-right: 12px; }
  .product-card { padding: 16px; }
  .tier-card { padding: 20px; }
}

/* The "keep scrolling" banner animates on every scroll burst and the header
   blurs behind content; honour an OS-level request for less motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-banner { opacity: 1 !important; transform: none !important; }
}
