/* ==========================================================================
   Atelier Corium — Base Reset, Typography, Needle & Thread Cursor, Bag CTAs
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

/* Custom Needle & Thread Mouse Cursor on precision pointers */
@media (hover: hover) and (pointer: fine) {
  html,
  body {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M19 19 C23 23 29 19 28 25 C27 29 21 30 16 28' fill='none' stroke='%238B4E2A' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M2 2 L19.5 19.5' stroke='%232D241E' stroke-width='2.6' stroke-linecap='round'/%3E%3Cpath d='M2 2 L19.5 19.5' stroke='%23D8CFC4' stroke-width='1.5' stroke-linecap='round'/%3E%3Cellipse cx='17.6' cy='17.6' rx='1.4' ry='0.7' transform='rotate(45 17.6 17.6)' fill='%233A2618'/%3E%3C/svg%3E") 2 2, auto;
  }

  a,
  button,
  [role="button"],
  input[type="submit"],
  select,
  summary,
  .clickable,
  .product-img-trigger {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M19 19 C25 22 30 17 28 24 C26 29 19 30 13 27' fill='none' stroke='%23C9973E' stroke-width='2.1' stroke-linecap='round'/%3E%3Cpath d='M2 2 L19.5 19.5' stroke='%234A2D18' stroke-width='2.8' stroke-linecap='round'/%3E%3Cpath d='M2 2 L19.5 19.5' stroke='%23F3D99B' stroke-width='1.6' stroke-linecap='round'/%3E%3Cellipse cx='17.6' cy='17.6' rx='1.5' ry='0.75' transform='rotate(45 17.6 17.6)' fill='%234A2D18'/%3E%3C/svg%3E") 2 2, pointer;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-main);
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.28rem);
  line-height: 1.62;
  letter-spacing: 0.015em;
  color: var(--ink);
  background-color: var(--bg);
  /* Subtle warm linen grain texture */
  background-image:
    radial-gradient(rgba(125, 73, 39, 0.04) 1px, transparent 0),
    radial-gradient(rgba(176, 132, 62, 0.03) 1px, transparent 0);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: clip;
}

body.modal-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin: 0 0 0.65em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.25rem, 1.7rem + 2.5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.85rem, 1.45rem + 1.6vw, 2.85rem);
}

h3 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.95rem);
}

p {
  margin: 0 0 1em;
  color: var(--ink-muted);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--leather);
  text-decoration-color: var(--stitch);
  text-underline-offset: 4px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

a:hover {
  color: var(--brass);
  text-decoration-color: var(--brass);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

button,
input,
textarea,
select {
  font-family: var(--font-main);
  font-size: inherit;
  color: inherit;
  border-radius: var(--radius);
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 10px 18px;
  background: var(--leather-deep);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 14px;
}

.container {
  width: min(var(--container), calc(100% - clamp(24px, 5vw, 64px)));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--brass);
  display: inline-block;
}

/* ==========================================================================
   HANDBAG-SHAPED CTA BUTTON (.cta-bag)
   Sculpted artisan leather handbag silhouette with arched handle, brass rivets,
   subtle stitched top flap & clasp — strictly 5px border-radius on all corners!
   ========================================================================== */

.cta-bag {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 28px 13px;
  min-height: 52px;
  border: 1.5px solid var(--brass-dark);
  border-radius: var(--radius);
  background: var(--bag-cta-bg);
  color: var(--bag-cta-ink);
  text-decoration: none;
  font-size: clamp(1.1rem, 1rem + 0.3vw, 1.25rem);
  letter-spacing: 0.03em;
  line-height: 1.1;
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 215, 0.25),
    inset 0 -3px 0 rgba(0, 0, 0, 0.16),
    var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  isolation: isolate;
}

/* Sculpted arched bag handle rising above the button */
.cta-bag::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 46%;
  min-width: 54px;
  max-width: 82px;
  height: 16px;
  border: 3px solid var(--bag-cta-handle);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -1px 0 rgba(212, 169, 94, 0.45);
  transition: transform var(--transition), border-color var(--transition);
  pointer-events: none;
}

/* Fine saddle-stitching seam & tiny brass turn-lock clasp inside the bag body */
.cta-bag::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(247, 232, 204, 0.36);
  border-radius: var(--radius);
  pointer-events: none;
  transition: border-color var(--transition);
}

.cta-bag .cta-clasp {
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 8px;
  background: linear-gradient(180deg, var(--brass-bright), var(--brass-dark));
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.cta-bag:hover {
  color: var(--bag-cta-ink);
  background: var(--bag-cta-bg-hover);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 225, 0.35),
    inset 0 -3px 0 rgba(0, 0, 0, 0.18),
    var(--shadow-md);
}

.cta-bag:hover::before {
  transform: translateX(-50%) translateY(-2px);
  border-color: var(--brass);
}

.cta-bag:hover::after {
  border-color: rgba(247, 232, 204, 0.62);
}

.cta-bag:active {
  transform: translateY(0);
}

/* Secondary / outline handbag CTA variant */
.cta-bag--subtle {
  background: var(--bg-card);
  color: var(--ink);
  border-color: var(--border-strong);
}

.cta-bag--subtle::before {
  border-color: var(--leather);
}

.cta-bag--subtle::after {
  border-color: var(--stitch);
}

.cta-bag--subtle:hover {
  background: var(--bg-card-hover);
  color: var(--leather);
}

.cta-bag--sm {
  margin-top: 14px;
  padding: 10px 20px 9px;
  min-height: 44px;
  font-size: 1.05rem;
}

.cta-bag--sm::before {
  top: -12px;
  height: 13px;
  min-width: 44px;
  border-width: 2.5px;
}

/* Subtle stitched card utility */
.stitched-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.stitched-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed var(--stitch);
  border-radius: var(--radius);
  pointer-events: none;
  opacity: 0.55;
}

/* Reveal animation for fluid scrolling */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 720ms var(--ease-artisan), transform 720ms var(--ease-artisan);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
