/* Sarikay — quiet luxury, one saffron thread.
   Tokens first; everything below reads from them. */

:root {
  --ground: #E8E5EC;   /* ash lilac */
  --ink: #1E1A22;      /* aubergine black */
  --quiet: #5E5866;    /* secondary text */
  --thread: #C9962B;   /* saffron thread, used only as line */
  --line: rgba(30, 26, 34, 0.16);

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --max: 1240px;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }

a { color: inherit; }

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

/* ---------- top bar ---------- */

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.5rem var(--gutter);
  background: linear-gradient(to bottom, var(--ground) 40%, rgba(232, 229, 236, 0));
}

.bar-mark {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.bar nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); }

.bar nav a {
  font-size: 0.9375rem;
  font-weight: 400;
  text-decoration: none;
  background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat;
  transition: background-size 0.3s ease;
}
.bar nav a:hover { background-size: 100% 1px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  padding: 0 var(--gutter) clamp(2.5rem, 7vh, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.wordmark {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(4.75rem, 21vw, 19rem);
  line-height: 0.82;
  letter-spacing: -0.035em;
  margin-left: -0.04em;
}

.hero-line {
  position: relative;
  z-index: 1;
  margin-top: clamp(1.25rem, 3vh, 2rem);
  font-size: 1.0625rem;
  color: var(--quiet);
}

.thread {
  position: absolute;
  left: 0;
  top: 22%;
  width: 100%;
  height: clamp(9rem, 26vh, 15rem);
  pointer-events: none;
}

.thread path {
  fill: none;
  stroke: var(--thread);
  stroke-width: 1.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.thread {
  clip-path: inset(0 100% 0 0);
  animation: reveal 3.2s cubic-bezier(0.45, 0.05, 0.25, 1) 0.3s forwards;
}

@keyframes reveal { to { clip-path: inset(0 0 0 0); } }

/* ---------- shared section shell ---------- */

.idea,
.collection,
.making,
.atelier {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4.5rem, 12vw, 9rem) var(--gutter) 0;
}

.collection,
.making,
.atelier {
  display: grid;
  grid-template-columns: minmax(7rem, 1fr) 4fr;
  column-gap: clamp(1.5rem, 4vw, 4rem);
}

h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.9;
}

/* ---------- idea ---------- */

.idea p {
  max-width: 30em;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.1vw, 2.6rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
}

/* ---------- collection ---------- */

.piece {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}
.piece:last-child { border-bottom: 1px solid var(--line); }

.swatch {
  width: 4.5rem;
  height: 6rem;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.10) 0 1px, transparent 1px 7px),
    linear-gradient(105deg, var(--dye) 30%, var(--dye-deep));
  transition: width 0.5s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.piece:hover .swatch { width: 8.5rem; }

.piece h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.piece-body p {
  margin-top: 0.4rem;
  max-width: 34em;
  color: var(--quiet);
}

.price {
  font-size: 0.9375rem;
  color: var(--quiet);
  white-space: nowrap;
}

/* ---------- making ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.facts dt {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.55rem;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.facts dd {
  max-width: 24em;
  color: var(--quiet);
}

/* ---------- atelier ---------- */

.atelier { padding-bottom: clamp(5rem, 12vw, 9rem); }

.atelier p {
  max-width: 28em;
  font-size: 1.125rem;
}

.write {
  grid-column: 2;
  justify-self: start;
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.75rem, 4.2vw, 3.25rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-decoration: underline;
  text-decoration-color: var(--thread);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  overflow-wrap: anywhere;
}

/* ---------- footer ---------- */

.foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.75rem var(--gutter) 2rem;
  border-top: 1px solid var(--line);
}

.foot-mark {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.foot-note {
  font-size: 0.875rem;
  color: var(--quiet);
}

/* ---------- small screens ---------- */

@media (max-width: 760px) {
  .collection,
  .making,
  .atelier {
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
  }

  .write { grid-column: 1; }

  .facts { grid-template-columns: 1fr; gap: 2rem; }

  .piece {
    grid-template-columns: auto 1fr;
    row-gap: 0.5rem;
  }
  .swatch { width: 3.25rem; height: 4.5rem; grid-row: span 2; }
  .piece:hover .swatch { width: 3.25rem; }
  .price { grid-column: 2; }

  .thread { top: 18%; }
  .foot { flex-direction: column; align-items: flex-start; }
}

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .thread { animation: none; clip-path: none; }
  .swatch, .bar nav a { transition: none; }
}
