/* In Particular Jewels — storefront */

@font-face {
  font-family: "Noto Serif Display";
  src: url("assets/NotoSerifDisplay-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Noto Serif Display";
  src: url("assets/NotoSerifDisplay-Italic.ttf") format("truetype");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("assets/NotoSans-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --ink: #171717;
  --ivory: #F7F3ED;
  --oxblood: #4A2029;
  --oxblood-deep: #3A1820;
  --navy: #171D2B;
  --porcelain: #FCFAF6;
  --gold: #B29263;
  --sage: #7C8574;
  --stone: #D8CFC3;
  --graphite: #5E5953;

  --serif: "Noto Serif Display", "Iowan Old Style", Georgia, serif;
  --sans: "Noto Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --max: 88rem;
  --focus: 0 0 0 3px var(--porcelain), 0 0 0 6px var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--mh, 3.75rem) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
em { font-style: italic; }

.sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--ink); color: var(--porcelain); padding: .75rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 2px; }

/* ---------- Shared type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--stone);
}
.eyebrow--dark { color: var(--graphite); }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -.01em;
}
.section-title em { color: var(--oxblood); }
.section-title--light { color: var(--ivory); }
.section-title--light em { color: var(--stone); }

.slogan {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.2;
}
.slogan--dark { color: var(--ink); }

.rule {
  display: block; width: 4.5rem; height: 1px; background: var(--gold);
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem;
  padding: .8rem 1.4rem;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn::after { content: "→"; margin-left: .75em; letter-spacing: 0; transition: transform .25s ease; }
.btn:hover::after { transform: translateX(3px); }

.btn--light { background: var(--ivory); color: var(--oxblood); }
.btn--light:hover { background: var(--porcelain); }
.btn--ox { background: var(--oxblood); color: var(--ivory); }
.btn--ox:hover { background: var(--oxblood-deep); }
.btn--line { border-color: currentColor; color: inherit; background: transparent; }
.btn--line:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

.link {
  font: inherit; background: none; border: 0; padding: .25rem 0; cursor: pointer;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .45em;
}
.link--light { color: var(--ivory); }
.link--dark { color: var(--oxblood); }
.link:hover { text-decoration-color: var(--gold); }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 20;
  background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.masthead.is-scrolled { border-bottom-color: var(--stone); }
.masthead__inner {
  max-width: var(--max); margin: 0 auto;
  padding: .55rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__mark { width: 2.75rem; height: 2.75rem; mix-blend-mode: multiply; }
.brand__word {
  font-family: var(--serif); font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase;
  line-height: 1.1;
}
.brand__word span {
  display: block; font-family: var(--sans); font-size: .58rem; letter-spacing: .3em; color: var(--graphite);
}

.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: clamp(.4rem, 2vw, 2rem); align-items: center;
}
.nav a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .35rem;
  font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0 1px; background-repeat: no-repeat; background-position: 0 calc(100% - .7rem);
  transition: background-size .3s ease;
}
.nav a:hover { background-size: 100% 1px; }
.nav__etsy { white-space: nowrap; border: 1px solid var(--ink); padding: 0 .9rem !important; background-image: none !important; }
.nav__etsy:hover { background: var(--ink) !important; color: var(--ivory); }

@media (max-width: 40rem) {
  .brand__word { display: none; }
  .masthead__inner { flex-wrap: nowrap; padding-top: .4rem; padding-bottom: .4rem; }
  .nav { overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav ul { gap: .15rem; }
  .nav a { font-size: .66rem; letter-spacing: .1em; white-space: nowrap; }
  .nav__etsy { padding: 0 .6rem !important; }
  .brand__mark { width: 2.4rem; height: 2.4rem; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--oxblood);
  color: var(--ivory);
}
.hero__photo { margin: 0; position: relative; overflow: hidden; }
.hero__photo img {
  width: 100%; height: min(118vw, 82svh); object-fit: cover; object-position: 50% 62%;
}
.hero__field {
  position: relative;
  padding: 2.75rem var(--gutter) 3rem;
  display: flex; flex-direction: column; gap: 1.4rem;
}
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.6rem, 17vw, 9.5rem);
  line-height: .92; letter-spacing: -.025em;
  margin-top: -.25rem;
}
.hero__line { display: block; }
.hero__line--indent { padding-left: .9em; font-style: italic; color: var(--stone); }
.hero__lede { max-width: 30rem; color: #E9DFD3; font-size: 1rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; margin-top: .4rem; }
.hero__caption {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: #CDBDB0;
  border-top: 1px solid rgba(178, 146, 99, .55); padding-top: .9rem; margin-top: .6rem;
}
.hero__caption span { color: var(--gold); margin-right: .8rem; }

@media (min-width: 58rem) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    min-height: calc(100svh - 3.9rem);
  }
  .hero__photo { order: 2; }
  .hero__photo img { height: 100%; min-height: 40rem; position: absolute; inset: 0; }
  .hero__field {
    order: 1; justify-content: center;
    padding: 4rem clamp(2rem, 5vw, 5.5rem);
  }
  .hero__title { font-size: clamp(5.5rem, 10.5vw, 11rem); margin-right: -14vw; position: relative; z-index: 2; }
  .hero__caption { margin-top: 2.5rem; }
}

/* ---------- Statement ---------- */
.statement {
  padding: clamp(4rem, 11vw, 9rem) var(--gutter);
  max-width: var(--max); margin: 0 auto;
}
.statement__text {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4.4vw, 3.4rem);
  line-height: 1.18;
  max-width: 22ch;
  margin-left: auto;
  text-wrap: balance;
}
.statement__text em { color: var(--oxblood); }
.statement::before {
  content: ""; display: block; width: 1px; height: 4.5rem; background: var(--gold);
  margin: 0 0 2.5rem auto; transform: translateX(-22ch);
}
@media (max-width: 40rem) { .statement::before { transform: none; margin-left: 0; } }

/* ---------- The edit ---------- */
.edit { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(4rem, 9vw, 8rem); }
.edit__head {
  display: grid; gap: 1rem;
  padding-bottom: 2rem; border-bottom: 1px solid var(--stone);
}
.edit__intro { max-width: 34rem; color: var(--graphite); }
.edit__intro strong { color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--gold); }
@media (min-width: 58rem) {
  .edit__head { grid-template-columns: 1fr 1fr; align-items: end; }
  .edit__head .eyebrow { grid-column: 1 / -1; }
  .edit__intro { justify-self: end; }
}

.filters {
  position: sticky; top: var(--mh, 3.75rem); z-index: 10;
  display: flex; gap: .5rem; flex-wrap: nowrap; overflow-x: auto;
  padding: 1rem 0; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter);
  background: var(--ivory); scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  font: inherit; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  min-height: 2.75rem; padding: .5rem 1rem;
  background: transparent; color: var(--ink);
  border: 1px solid var(--stone); border-radius: 999px; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--oxblood); border-color: var(--oxblood); color: var(--ivory); }
.chip__n { font-family: var(--serif); font-style: italic; letter-spacing: 0; text-transform: none; margin-left: .25rem; opacity: .8; }

.pieces { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 4vw, 4rem); padding-top: 1.5rem; }
.piece { display: grid; gap: 1.25rem; align-content: start; }
.piece[hidden] { display: none; }
.piece__media { display: block; overflow: hidden; background: var(--stone); aspect-ratio: 4 / 5; }
.piece__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.piece:hover .piece__media img { transform: scale(1.03); }
.piece__text { display: grid; gap: .55rem; justify-items: start; }
.piece__no {
  font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--oxblood);
  display: flex; align-items: center; gap: .75rem;
}
.piece__no::after { content: ""; width: 2.5rem; height: 1px; background: var(--gold); }
.piece__tag { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--graphite); }
.piece__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.05; }
.piece__desc { color: var(--graphite); max-width: 32rem; margin-bottom: .6rem; }

@media (min-width: 46rem) {
  .pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .piece:nth-child(even of :not([hidden])) { margin-top: clamp(4rem, 10vw, 9rem); }
}
@media (min-width: 58rem) {
  .pieces { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .piece { grid-column: span 6; }
  .piece:nth-child(even of :not([hidden])) { margin-top: 0; }
  .piece:nth-child(4n+2 of :not([hidden])), .piece:nth-child(4n+3 of :not([hidden])) { grid-column: span 5; }
  .piece:nth-child(4n+3 of :not([hidden])) { grid-column: 8 / span 5; }
  .piece:nth-child(4n+2 of :not([hidden])) { margin-top: 9rem; }

  .piece--feature {
    grid-column: 1 / -1 !important; margin-top: 0 !important;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: end;
  }
  .piece--feature .piece__title { font-size: clamp(2.6rem, 5vw, 4.5rem); }
}

/* Colour-field variants: whole piece sits on a dark band */
.piece--dark, .piece--navy { color: var(--ivory); padding: 1rem 1rem 1.75rem; }
.piece--dark { background: var(--ink); }
.piece--navy { background: var(--navy); }
.piece--dark .piece__tag, .piece--navy .piece__tag,
.piece--dark .piece__desc, .piece--navy .piece__desc { color: #CFC6BB; }
.piece--dark .piece__no, .piece--navy .piece__no { color: var(--stone); }
.piece--dark :focus-visible, .piece--navy :focus-visible { box-shadow: 0 0 0 3px var(--navy), 0 0 0 6px var(--porcelain); }

.edit__empty { padding: 3rem 0; font-family: var(--serif); font-size: 1.4rem; }

/* ---------- Guide ---------- */
.guide {
  background: var(--navy); color: var(--ivory);
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
}
.guide__head, .steps { max-width: var(--max); margin: 0 auto; }
.guide__head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.steps { list-style: none; padding: 0; display: grid; gap: 2.5rem; counter-reset: none; }
.step { border-top: 1px solid rgba(178, 146, 99, .6); padding-top: 1.25rem; display: grid; gap: .6rem; }
.step__n { font-family: var(--serif); font-style: italic; font-size: 2.4rem; line-height: 1; color: var(--gold); }
.step__title { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.step p { color: #D3CEC6; max-width: 26rem; }
@media (min-width: 46rem) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); } }
.guide :focus-visible { box-shadow: 0 0 0 3px var(--navy), 0 0 0 6px var(--porcelain); }

/* ---------- FAQ ---------- */
.faq {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  display: grid; gap: 2rem;
}
@media (min-width: 58rem) { .faq { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.faq__list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--stone); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  min-height: 3.5rem; padding: 1.1rem 0;
  font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--sans); font-size: 1.3rem; color: var(--oxblood);
  transition: transform .25s ease; flex: 0 0 auto;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.4rem; max-width: 38rem; color: var(--graphite); }
.faq details a { color: var(--oxblood); text-underline-offset: .2em; }

/* ---------- Footer ---------- */
.footer { background: var(--porcelain); border-top: 1px solid var(--stone); }
.footer__inner {
  max-width: var(--max); margin: 0 auto;
  padding: 3.5rem var(--gutter) 2.5rem;
  display: grid; gap: 2.5rem;
}
.footer__brand { display: flex; align-items: center; gap: 1.25rem; }
.footer__mark { width: 6.5rem; height: 6.5rem; mix-blend-mode: multiply; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.footer__links a {
  display: grid; gap: .1rem; text-decoration: none; padding: .35rem 0;
  font-family: var(--serif); font-size: 1.35rem;
}
.footer__links a:hover { color: var(--oxblood); }
.footer__label { font-family: var(--sans); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--graphite); }
.footer__fine { font-size: .75rem; color: var(--graphite); border-top: 1px solid var(--stone); padding-top: 1.25rem; }
@media (min-width: 46rem) {
  .footer__inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer__links { grid-auto-flow: column; gap: 3rem; }
  .footer__fine { grid-column: 1 / -1; }
}

/* ---------- Reveal (JS only, motion-safe) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .hero__line { opacity: 0; transform: translateY(.35em); animation: rise 1s cubic-bezier(.2,.7,.2,1) forwards; }
  .js .hero__line:nth-child(2) { animation-delay: .12s; }
  .js .hero__line:nth-child(3) { animation-delay: .24s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

@media (forced-colors: active) {
  .btn, .chip { border: 1px solid ButtonText; }
  .rule, .piece__no::after { background: CanvasText; }
}
