/* ===== Taarini — shared design system ===== */

:root {
  --linen: #E9E1CE;
  --linen-light: #F2ECDD;
  --ink: #2E2A22;
  --ink-soft: rgba(46, 42, 34, 0.7);
  --ink-faint: rgba(46, 42, 34, 0.45);
  --indigo: #3B4C6B;
  --indigo-dark: #28374F;
  --rose: #A8524C;
  --rose-dark: #7C3A35;
  --forest: #4F5D3A;
  --forest-dark: #38431F;
  --mustard: #B8862E;
  --border-soft: rgba(46, 42, 34, 0.14);
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: 'Karla', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.wrap {
  width: 100%;
}

/* ---- Typography ---- */

.wordmark {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-weight: 500;
  text-decoration: none;
  font-size: 22px;
  letter-spacing: -0.3px;
}

.nav-logo {
  display: block;
  width: auto;
  height: 34px;
  object-fit: contain;
  opacity: 1;
}

.footer-logo {
  display: block;
  width: 70px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.9;
}

h1,
h2,
h3 {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.3px;
}

.eyebrow {
  font-family: 'Karla', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--rose-dark);
  margin: 0 0 12px;
}

.accent {
  font-family: 'Caveat', cursive;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

/* ---- Nav ---- */

.site-nav {
  padding: 24px 0;
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a.current {
  color: var(--ink);
}

/* Stitched underline for navigation links, excluding CTA */

.nav-links a:not(.btn) {
  position: relative;
  padding-bottom: 5px;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background-image: repeating-linear-gradient(
    90deg,
    currentColor 0 4px,
    transparent 4px 8px
  );
  opacity: 0.7;
  transition:
    right 0.3s ease,
    opacity 0.2s ease;
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).current::after {
  right: 0;
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
}

/* ---- Buttons — stitched editorial treatment ---- */

.btn {
  position: relative;
  display: inline-block;
  font-family: 'Karla', sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  padding: 10px 2px 13px;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 1px;
  background-image: repeating-linear-gradient(
    90deg,
    currentColor 0 6px,
    transparent 6px 10px
  );
  opacity: 0.55;
  transition:
    left 0.3s ease,
    right 0.3s ease,
    opacity 0.2s ease;
}

.btn::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  right: -7px;
  bottom: 3px;
  background: currentColor;
  opacity: 0;
  transition:
    right 0.3s ease,
    opacity 0.2s ease;
}

.btn:hover {
  color: var(--rose-dark);
  background: transparent;
  border-color: transparent;
}

.btn:hover::after {
  left: -5px;
  right: -5px;
  opacity: 1;
}

.btn:hover::before {
  right: -12px;
  opacity: 0.75;
}

.btn:focus-visible {
  outline: 2px solid var(--indigo-dark);
  outline-offset: 5px;
}

/* ---- Primary / filled CTA ---- */

.btn-solid {
  padding: 12px 22px 15px;
  color: var(--linen-light);
  background: var(--rose-dark);
  border: 1px solid var(--rose-dark);
  border-radius: 2px;
}

.btn-solid::after {
  left: 7px;
  right: 7px;
  bottom: 6px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--linen-light) 0 5px,
    transparent 5px 9px
  );
  opacity: 0.65;
}

.btn-solid::before {
  display: none;
}

.btn-solid:hover {
  color: var(--linen-light);
  background: var(--rose-dark);
  border-color: var(--rose-dark);
}

.btn-solid:hover::after {
  left: 4px;
  right: 4px;
  opacity: 1;
}

.btn-solid:focus-visible {
  outline-color: var(--indigo-dark);
}

/* ---- Running stitch — signature motif ---- */

.stitch-divider {
  position: relative;
  height: 1px;
  margin: 64px 0;
  background-image: none;
  border: none;
  overflow: hidden;
  opacity: 0.45;
}

.stitch-divider::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    var(--ink) 0 7px,
    transparent 7px 14px
  );
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.stitch-divider.is-visible::before {
  transform: scaleX(1);
}

.stitch-frame {
  position: relative;
}

.stitch-frame::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 6px;
  background-image:
    repeating-linear-gradient(
      90deg,
      var(--rose-dark) 0 6px,
      transparent 6px 12px
    ),
    repeating-linear-gradient(
      90deg,
      var(--rose-dark) 0 6px,
      transparent 6px 12px
    ),
    repeating-linear-gradient(
      0deg,
      var(--rose-dark) 0 6px,
      transparent 6px 12px
    ),
    repeating-linear-gradient(
      0deg,
      var(--rose-dark) 0 6px,
      transparent 6px 12px
    );
  background-repeat: no-repeat;
  background-size:
    100% 1px,
    100% 1px,
    1px 100%,
    1px 100%;
  background-position:
    0 0,
    0 100%,
    0 0,
    100% 0;
  opacity: 0.5;
  pointer-events: none;
}

/* ---- Motion — hero entrance ---- */

.hero-intro > * {
  opacity: 0;
  transform: translateY(8px);
  animation: hero-settle 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.hero-intro > :nth-child(1) {
  animation-delay: 0.05s;
}

.hero-intro > :nth-child(2) {
  animation-delay: 0.12s;
}

.hero-intro > :nth-child(3) {
  animation-delay: 0.19s;
}

.hero-intro > :nth-child(4) {
  animation-delay: 0.27s;
}

@keyframes hero-settle {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Motion — image reveal ---- */

.photo-placeholder {
  transition:
    transform 0.45s ease,
    border-color 0.3s ease;
}

.photo-placeholder:hover {
  transform: scale(1.008);
}

.photo-reveal {
  overflow: hidden;
}

.photo-reveal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
  opacity: 0;
  transition:
    transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.7s ease;
}

.photo-reveal.is-visible img {
  transform: scale(1);
  opacity: 1;
}

.photo-reveal:hover img {
  transform: scale(1.02);
}

.stitch-frame {
  transition: transform 0.5s ease;
}

.stitch-frame:hover {
  transform: scale(1.006);
}

/* ---- Seal badge ---- */

.seal-badge {
  position: absolute;
  bottom: -18px;
  right: -12px;
  z-index: 5;
  transform: rotate(-8deg);
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.seal-badge:hover {
  transform: rotate(2deg);
}

.seal-badge svg {
  width: 110px;
  height: 110px;
  display: block;
}

/* ---- Photo placeholder ---- */

.photo-placeholder {
  position: relative;
  background: var(--linen-light);
  border: 1px dashed var(--border-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 13px;
  text-align: center;
  padding: 16px;
  min-height: 180px;
}

/* ---- Grids ---- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-3-tight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
}

/* ---- Sections ---- */

section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.section-tight {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* ---- Footer ---- */

.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--border-soft);
  margin-top: 40px;
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-footer .meta {
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 2px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
}

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

.footer-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  color: var(--indigo-dark);
}

.icon-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---- Collections / product cards ---- */

.product-card {
  background: var(--linen-light);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card .product-info {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.product-card .price {
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  color: var(--rose-dark);
  font-size: 15px;
  margin-bottom: 10px;
}

.product-card .desc {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 16px;
  flex: 1;
}

.buy-btn {
  width: 100%;
  text-align: center;
}

.buy-note {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 8px;
  text-align: center;
}

/* ---- Toast ---- */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: var(--linen-light);
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  z-index: 50;
  max-width: 90vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- Collections / product cards ---- */

.product-card {
  background: var(--linen-light);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}

.product-card .product-photo {
  background: var(--linen);
  border-bottom: 1px dashed var(--border-soft);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 13px;
  text-align: center;
  padding: 12px;
}

.product-card .product-body {
  padding: 18px;
}

.product-card h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.product-card .price {
  font-family: 'Karla', sans-serif;
  font-weight: 600;
  color: var(--rose-dark);
  margin-bottom: 8px;
}

.product-card p.desc {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 16px;
}

.buy-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin: 4px 0 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-soft);
}

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

.footer-links svg {
  flex-shrink: 0;
}

.site-footer .milestone {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: 19px;
  color: var(--indigo-dark);
  margin-top: 10px;
}

/* =========================================================
   TAARINI — IMAGE SYSTEM
   ========================================================= */

/* ---------- HERO ---------- */

.hero-image {
  position: relative;
  width: 100%;
  height: 430px;
  margin-top: 48px;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 45%;
}

.hero-image.stitch-frame::before {
  inset: 8px;
  z-index: 2;
}

/* ---------- RECENT PIECES ---------- */

.recent-pieces {
  align-items: stretch;
}

.recent-piece {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
}

.recent-piece img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------- ABOUT / TEAM PHOTO ---------- */

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------- UNIVERSAL REAL IMAGE BEHAVIOUR ---------- */

.photo-placeholder > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- RECENT PIECE IMAGE ---------- */

.recent-piece-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
  opacity: 0;
  transition:
    transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.7s ease;
}

.recent-piece.is-visible .recent-piece-photo {
  transform: scale(1);
  opacity: 1;
}

.recent-piece:hover .recent-piece-photo {
  transform: scale(1.02);
}

/* Make the stitch frame slightly tighter around recent pieces */
.recent-piece.stitch-frame::before {
  inset: 8px;
  z-index: 2;
  border-radius: 5px;
  opacity: 0.42;
}

/* ---------- TEAM PHOTO ---------- */

.team-photo {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
}

/* ---------- MOBILE ---------- */

@media (max-width: 780px) {

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 24px;
    right: 24px;
    background: var(--linen-light);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px;
    z-index: 20;
  }

  .nav-links.open a {
    padding: 10px 8px;
    width: 100%;
  }

  section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  /*
   * Keep general content grids single-column.
   * Recent pieces are deliberately different:
   * two columns on mobile keeps the gallery compact.
   */
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .grid-3-tight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

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

  .about-grid .photo-placeholder {
    min-height: 160px;
  }

  .hero-image {
    height: 270px;
    margin-top: 36px;
  }

  .hero-image img {
    object-position: center 42%;
  }

  .recent-piece {
    aspect-ratio: 4 / 5;
  }

  .about-photo {
    aspect-ratio: 4 / 5;
  }

  .seal-badge svg {
    width: 84px;
    height: 84px;
  }

  .seal-badge {
    bottom: -12px;
    right: -8px;
  }
}

/* ---- Reduced motion ---- */

@media (prefers-reduced-motion: reduce) {

  .stitch-divider::before,
  .hero-intro > *,
  .photo-reveal img,
  .recent-piece-photo {
    animation: none;
    transition: none;
    transform: none;
    opacity: 1;
  }

  .photo-placeholder,
  .stitch-frame,
  .seal-badge {
    transition: none;
    transform: none;
  }

  .nav-links a:not(.btn)::after {
    transition: none;
  }
}

/* ---- About page ---- */

.about-column {
  max-width: 700px;
  margin: 0 auto;
}

.about-intro {
  padding-bottom: 40px;
}

.about-intro h1 {
  font-size: clamp(30px, 4.5vw, 44px);
}

.about-lead {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 600px;
  margin-top: 16px;
}

.about-story {
  padding-top: 24px;
}

.about-story p {
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.about-story p:last-child {
  margin-bottom: 0;
}

.process-steps {
  align-items: start;
}

.process-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
}

.process-number {
  flex: 0 0 auto;
  font-family: 'Caveat', cursive;
  font-size: 25px;
  font-weight: 600;
  color: var(--indigo-dark);
}

.process-step p {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0;
}

@media (max-width: 780px) {
  .process-steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .process-step {
    max-width: 100%;
  }
  
  .process-heading {
    align-items: baseline;
  }
}


