@import url('https://fonts.cdnfonts.com/css/italiana');
@import url('https://fonts.cdnfonts.com/css/sf-pro-display');

:root {
  --paper: #FAF5F5;
  --ink: #2f1d1d;
  --muted: #7b7371;
  --serif: "Italiana", Georgia, serif;
  --sans: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* HEADER */
.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 34px;
  color: var(--ink);
  transform: translateY(0);
  opacity: 1;
  transition: transform .7s cubic-bezier(.16,1,.3,1), opacity .55s ease;
  pointer-events: auto;
  isolation: isolate;
}
.site-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto 0;
  height: 118px;
  background: linear-gradient(to bottom, rgba(250,245,245,.98), rgba(250,245,245,.78) 50%, transparent);
  pointer-events: none;
}
.site-header.nav-hidden { transform: translateY(-110%); opacity: 0; pointer-events: none; }
.brand { display: flex; align-items: center; width: max-content; transition: opacity .35s ease; }
.brand:hover { opacity: .62; }
.brand img { width: 132px; height: auto; display: block; }
.brand-fallback { display: none; font-size: 14px; letter-spacing: -.05em; }
.brand-fallback span { font-family: var(--serif); font-style: italic; }
.main-nav { display: flex; gap: 25px; align-items: center; }
.main-nav a { position: relative; padding: 8px 0; font-size: 13px; letter-spacing: -.03em; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-actions { justify-self: end; display: flex; gap: 8px; }
.icon-btn { width: 28px; height: 28px; border: 0; background: transparent; padding: 3px; cursor: pointer; transition: transform .4s cubic-bezier(.16,1,.3,1), opacity .3s; }
.icon-btn svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { transform: translateY(-2px) scale(1.06); opacity: .7; }

/* INTRO — follows the collection-page language of bracelets */
.collection-hero {
  min-height: 72vh;
  padding: 160px 81px 88px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 70px;
  background: var(--paper);
}
.collection-hero-copy { flex-shrink: 0; }
.collection-eyebrow {
  display: block;
  margin-bottom: 22px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .20em;
  color: var(--muted);
}
.collection-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(70px, 9vw, 138px);
  font-weight: 400;
  line-height: .78;
  letter-spacing: -.06em;
}
.collection-hero h1 em { font-style: italic; font-weight: 400; }
.collection-hero-note { width: min(100%, 390px); padding-bottom: 8px; }
.collection-hero-note p {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -.01em;
  color: #665e5d;
}
.discover-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  border-bottom: 1px solid rgba(47,29,29,.42);
  padding-bottom: 7px;
}
.discover-link span { font-size: 14px; transition: transform .3s ease; }
.discover-link:hover span { transform: translateY(3px); }

/* CATEGORY CAROUSELS — mirrors the homepage collection sections */
.category-section {
  width: 100%;
  padding: 96px 0 110px;
  overflow: hidden;
}
.tone-light { background: var(--paper); color: var(--ink); }
.tone-dark { background: var(--ink); color: var(--paper); }
.category-header {
  width: calc(100% - 162px);
  margin: 0 auto 50px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.category-title-wrap { display: flex; align-items: baseline; gap: 18px; }
.category-index {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .15em;
  opacity: .55;
  white-space: nowrap;
}
.category-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.055em;
}
.category-controls { display: flex; align-items: center; gap: 19px; }
.piece-count { font-size: 9px; font-weight: 500; letter-spacing: .13em; opacity: .64; white-space: nowrap; }
.category-arrows { display: flex; gap: 6px; }
.category-arrows button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  opacity: .72;
  transition: opacity .25s ease, transform .25s ease, background .25s ease, color .25s ease;
}
.category-arrows button:hover { opacity: 1; transform: translateY(-2px); }
.tone-light .category-arrows button:hover { background: var(--ink); color: var(--paper); }
.tone-dark .category-arrows button:hover { background: var(--paper); color: var(--ink); }
.category-viewport {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  /* Keep the first card aligned with the same page inset as the heading.
     Disabling automatic snapping prevents the browser from pulling the
     first card flush against the left edge on initial load. */
  scroll-snap-type: none;
  scroll-padding-inline: 81px;
}
.category-viewport::-webkit-scrollbar { display: none; }
.category-track {
  display: flex;
  gap: 23px;
  width: max-content;
  padding: 0 81px;
}
.collection-card {
  flex: 0 0 clamp(245px, 23vw, 350px);
  display: block;
  min-width: 0;
  color: inherit;
}
.collection-card.is-pending { cursor: default; }
.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e8e1e0;
}
.tone-dark .card-image { background: rgba(250,245,245,.08); }
.card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1);
  transition: transform .9s cubic-bezier(.16,1,.3,1), opacity .4s ease;
}
.collection-card:not(.is-pending):hover .card-image img { transform: scale(1.055); }
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-top: 19px;
}
.card-copy { min-width: 0; }
.card-name {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.card-action {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .12em;
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity .4s ease, transform .5s cubic-bezier(.16,1,.3,1);
  white-space: nowrap;
}
.collection-card:not(.is-pending):hover .card-action { opacity: .72; transform: translateX(0); }
.collection-card.is-pending .card-action { opacity: .5; transform: none; }
.single-piece .category-arrows { display: none; }

/* FOOTER */
footer { background: var(--paper); color: var(--ink); padding: 100px 4vw 30px; }
.footer-brand { font-size: clamp(60px, 12vw, 180px); letter-spacing: -.075em; line-height: .8; }
.footer-brand span { font-family: var(--serif); font-style: italic; }
.footer-bottom { margin-top: 100px; border-top: 1px solid var(--ink); padding-top: 13px; display: flex; justify-content: space-between; font-size: 8px; letter-spacing: .16em; }

@media (max-width: 1100px) {
  .collection-hero { padding-left: 40px; padding-right: 40px; }
  .category-header { width: calc(100% - 80px); }
  .category-viewport { scroll-padding-inline: 40px; }
  .category-track { padding-left: 40px; padding-right: 40px; }
  .collection-card { flex-basis: clamp(250px, 30vw, 330px); }
}

@media (max-width: 800px) {
  .site-header {
    height: 106px;
    padding: 12px 18px 10px;
    grid-template-columns: 1fr auto;
    grid-template-rows: 44px 36px;
    align-items: center;
  }
  .site-header.nav-hidden { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-header::before { height: 138px; }
  .brand { grid-column: 1; grid-row: 1; }
  .brand img { width: 112px; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .main-nav {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    padding-top: 2px;
  }
  .main-nav a { font-size: 9px; letter-spacing: 0; padding: 7px 0; white-space: nowrap; }

  .collection-hero {
    min-height: auto;
    padding: 154px 18px 72px;
    display: block;
  }
  .collection-hero h1 { font-size: clamp(64px, 20vw, 92px); }
  .collection-hero-note { width: 100%; margin-top: 52px; }
  .collection-hero-note p { max-width: 360px; font-size: 14px; }

  .category-section { padding: 70px 0 82px; }
  .category-header { width: calc(100% - 36px); margin-bottom: 32px; align-items: center; }
  .category-title-wrap { display: block; }
  .category-index { display: block; margin-bottom: 10px; }
  .category-header h2 { font-size: clamp(36px, 11vw, 52px); }
  .piece-count { display: none; }
  .category-arrows button { width: 32px; height: 32px; }
  .category-viewport { scroll-padding-inline: 18px; }
  .category-track { gap: 14px; padding-left: 18px; padding-right: 18px; }
  .collection-card { flex-basis: 78vw; width: 78vw; }
  .card-name { font-size: 17px; }
  .card-action { opacity: .55; transform: none; }

  footer { padding: 82px 18px 28px; }
  .footer-bottom { margin-top: 72px; gap: 20px; }
}

@media (max-width: 430px) {
  .main-nav a { font-size: 8px; }
  .category-header { gap: 12px; }
  .category-arrows { gap: 4px; }
}
