/* ============================================================
   Dachshund Mom & Gift SVG Bundles — vintage greeting-card gift
   shop aesthetic. Dusty blush pink, ink navy and warm gold on a
   cool cream ground; layered paper-card feel, generous whitespace.
   Hover language: the card is the top sheet of a paper-card stack;
   hovering slides it aside to reveal the blush sheet underneath,
   like lifting a greeting card off its envelope liner.
   ============================================================ */

@font-face {
  font-family: 'Playfair Display';
  src: url('/assets/fonts/playfair-display-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/assets/fonts/playfair-display-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/assets/fonts/playfair-display-500italic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('/assets/fonts/nunito-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('/assets/fonts/nunito-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('/assets/fonts/nunito-sans-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('/assets/fonts/nunito-sans-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FAF6EF;         /* page background — cool cream */
  --paper-deep: #F2E9DE;    /* deeper cream, header/footer bands */
  --ink: #1E2642;           /* primary text — ink navy */
  --ink-soft: #4E5570;      /* secondary text — softened navy */
  --accent: #9E3E57;        /* deep dusty rose — links, accents */
  --accent-ink: #FBF5EC;    /* text on navy CTA (near-cream, not stark white) */
  --gold: #7E5B18;          /* deep gold — eyebrow/label text (AA on cream) */
  --gold-edge: #C9A24B;     /* bright gold — decorative hairlines, favicon ring */
  --blush-layer: #E3A9B6;   /* dusty blush — the "card beneath" reveal layer */
  --navy-cta: #232C4B;      /* CTA button background */
  --card-bg: #FFFDF9;       /* card surface, lifted above --paper */
  --border: #E3D9CB;        /* hairline borders */

  --font-display: 'Playfair Display', Georgia, 'Iowan Old Style', serif;
  --font-body: 'Nunito Sans', 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(30, 38, 66, 0.05) 1px, transparent 0);
  background-size: 26px 26px;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: inherit; }
main { display: block; }

/* ---- header / footer -------------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--gold-edge);
  box-shadow: 0 1px 0 var(--border);
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.site-header__brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
}
.site-header__catalog-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1.35rem;
  border-radius: 4px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--paper);
  white-space: nowrap;
}

.site-footer {
  padding: 2.5rem 1.5rem 3rem;
  background: var(--paper-deep);
  border-top: 1px solid var(--gold-edge);
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.site-footer__inner { max-width: 1100px; margin: 0 auto; }
.site-footer p { margin: 0 0 0.5rem; }
.site-footer p:last-child { margin-bottom: 0; }

/* ---- hero -------------------------------------------------------------- */
.hero {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2.25rem;
  text-align: center;
}
.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  margin: 0 0 1.1rem;
  font-weight: 700;
  letter-spacing: 0.005em;
}
.hero p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: 620px;
  margin-inline: auto;
}

/* ---- catalog grid — fixed 1/2 col, columns always explicit ------------ */
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 1rem 1.5rem 4.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 760px) {
  .catalog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- card — layered greeting-card stretched-link pattern -------------- */
.card {
  position: relative;
  isolation: isolate;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 6px;
  background: var(--blush-layer);
  transform: translate(5px, 6px);
}
/* opaque wrapper for all real content — this is what actually needs to sit
   above ::before. A transparent-background element like .card__category
   sitting directly in .card would let the blush layer show through in the
   gaps between text lines, since ::before paints above .card's own
   background but below in-flow content; a single continuous opaque surface
   avoids that gap entirely. */
.card__surface {
  position: relative;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.card__media {
  aspect-ratio: 4 / 3;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1.5px solid var(--border);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 140ms ease;
}
.card__category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 800;
  padding: 1.2rem 1.25rem 0;
}
.card__title {
  margin: 0.35rem 0 0.5rem;
  padding: 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  position: relative;
  z-index: 2;
}
.card__title a { text-decoration: none; }
.card__excerpt {
  padding: 0 1.25rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  margin: 0.6rem 1.25rem 1.3rem;
  position: relative;
  z-index: 2;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  font-weight: 700;
  color: var(--accent);
}
.card__stretched-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ---- product page ------------------------------------------------------ */
.product-page { max-width: 720px; margin: 0 auto; padding: 3rem 1.5rem 4.5rem; }
.product-page__category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 800;
}
.product-page__media {
  position: relative;
  margin: 1.25rem 0 1.75rem;
  isolation: isolate;
}
.product-page__media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 8px;
  background: var(--blush-layer);
  transform: translate(7px, 8px);
}
.product-page__media-frame {
  aspect-ratio: 4 / 3;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-page__media-frame img { width: 100%; height: 100%; object-fit: contain; }

.product-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  margin: 0.5rem 0 1.1rem;
  font-weight: 700;
}
.product-page__description {
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.95rem 2.4rem;
  background: var(--navy-cta);
  color: var(--accent-ink);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border: none;
  outline-offset: 3px;
}
.cta-button:focus-visible { outline: 2px solid var(--gold); }

.back-to-catalog {
  display: block;
  margin-top: 1.1rem;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---- 404 ---------------------------------------------------------------- */
.not-found {
  max-width: 560px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
}
.not-found h1 { font-size: 2.2rem; margin-bottom: 0.75rem; }
.not-found p { color: var(--ink-soft); margin-bottom: 1.5rem; }

/* ---- interactive states -------------------------------------------------
   Hover metaphor: greeting-card slide. The card (top sheet of the stack)
   shifts up-left 140ms via transform only; its ::before (the blush sheet
   beneath) widens the offset in the same motion — like sliding a card
   partly out of its envelope liner to peek at the layer below. */
@media (hover: hover) and (pointer: fine) {
  .card,
  .card::before {
    transition: transform 140ms ease;
  }
  .card:hover {
    transform: translate(-3px, -5px);
  }
  .card:hover::before {
    transform: translate(9px, 12px);
  }
  .card:hover .card__media img {
    transform: scale(1.02);
  }

  .cta-button,
  .site-header__catalog-link {
    transition: transform 140ms ease, opacity 140ms ease;
  }
  .cta-button:hover {
    transform: translateY(-2px);
  }
  .site-header__catalog-link:hover {
    transform: translateY(-2px);
    background: var(--ink);
    color: var(--accent-ink);
  }
}

.card:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.card:active {
  transform: scale(0.99);
}
.cta-button:active {
  transform: scale(0.97);
}
.site-header__catalog-link:focus-visible,
.back-to-catalog:focus-visible,
.card__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.001ms !important;
  }
}
