/* ShePoly demo2 — The Silk Chart
   Kumaş numune defteri: 5 renk bölümü, stilist sesi.
   Palet: sıcak beyaz zemin, mürekkep, dut/mulberry vurgu (altın değil).
   Tipografi: Italiana (display) × Instrument Sans (gövde). */

:root {
  --paper: #FAF9F7;
  --ink: #141210;
  --ink-soft: #6A625C;
  --mulberry: #5C3140;
  --mulberry-soft: #8A5A6B;
  --line: rgba(20, 18, 16, 0.12);
  --display: "Italiana", "Didot", serif;
  --text: "Schibsted Grotesk", "Helvetica Neue", sans-serif;
  --pad: clamp(1.25rem, 4vw, 4rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--text);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }

.label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mulberry);
}

/* ---------- header (hero üstünde) ---------- */
.site-head {
  position: absolute; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem var(--pad);
}
.wordmark {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.42em;
  text-decoration: none;
  color: var(--ink);
}
.head-links { display: flex; gap: 1.5rem; align-items: center; }
.head-links a {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
}
.head-links a:hover { color: var(--mulberry); }
.head-cta {
  border: 1px solid var(--ink); border-radius: 999px;
  padding: 0.5rem 1.15rem; white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}
.head-cta:hover { background: var(--ink); color: var(--paper); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden; background: #EADFCF;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(96deg, rgba(250, 249, 247, 0.82) 0%, rgba(250, 249, 247, 0.42) 42%, rgba(250, 249, 247, 0) 68%),
    linear-gradient(to top, rgba(250, 249, 247, 0.5) 0%, rgba(250, 249, 247, 0) 34%);
}
.hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  padding: 6rem var(--pad) 4rem;
  max-width: 44rem;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 8.5vw, 6.8rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin: 1rem 0 calc(1.2rem - 0.12em);
  padding-bottom: 0.12em;
  text-wrap: balance;
}
.hero h1 { overflow: hidden; }
.hero h1 .line-in { display: block; will-change: transform; }
.hero p { max-width: 30em; color: var(--ink-soft); font-weight: 500; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.9rem; }
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--text);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.95rem 1.8rem; border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-ink { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn-ink:hover { background: var(--mulberry); border-color: var(--mulberry); }
.btn-line { border: 1px solid rgba(20, 18, 16, 0.4); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }

/* ---------- trust ---------- */
.trust {
  border-block: 1px solid var(--line);
  padding: 1rem var(--pad);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 2.4rem;
}
.trust span {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft); white-space: nowrap;
}
.trust b { color: var(--mulberry); font-weight: 600; }

/* ---------- silk chart rail (imza öğe) ---------- */
.rail {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 249, 247, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.rail-inner {
  display: flex; align-items: stretch; gap: 0.25rem;
  overflow-x: auto; scrollbar-width: none;
  padding: 0 var(--pad);
}
.rail-inner::-webkit-scrollbar { display: none; }
.rail a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s ease, opacity 0.25s ease;
  opacity: 0.62;
}
.rail a:hover { opacity: 0.9; }
.rail a.is-active { opacity: 1; border-bottom-color: var(--mulberry); }
.rail .chip {
  width: 26px; height: 26px; border-radius: 50%;
  background-size: cover; background-position: center;
  border: 1px solid var(--line);
  flex: none;
}
.rail .code {
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
}
.rail a.is-active .code { color: var(--ink); }
.rail.is-dark {
  background: rgba(22, 19, 15, 0.92);
  border-bottom-color: rgba(245, 241, 234, 0.18);
}
.rail.is-dark .code { color: rgba(245, 241, 234, 0.62); }
.rail.is-dark a.is-active .code { color: #F5F1EA; }
.rail.is-dark a.is-active { border-bottom-color: #C9AC7F; }

/* ---------- chapters ---------- */
main { background: var(--paper); transition: none; }
.chapter {
  --tint: var(--paper);
  --accent: var(--mulberry);
  --chapter-ink: var(--ink);
  --chapter-soft: var(--ink-soft);
  /* Varsayılan (statik/reduced-motion) zemin: numunenin kendi tonu.
     GSAP yolunda js/site.js her chapter'ı ScrollTrigger kurulunca
     ayrı ayrı transparent yapar ve zemini main'e taşır — böylece
     reduced-motion / GSAP-yok durumunda bölümler asla renksiz kalmaz. */
  background: var(--tint);
  color: var(--chapter-ink);
  padding: clamp(3.6rem, 8vw, 6.5rem) var(--pad);
}
.chapter-grid {
  display: grid; gap: clamp(1.6rem, 4vw, 3.6rem);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
}
.chapter.alt .chapter-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.chapter.alt .swatch { order: 2; }
.swatch { position: sticky; top: 4.4rem; }
.swatch figure {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--paper);
}
.swatch img { width: 100%; height: 100%; object-fit: cover; }
.swatch .code-tag {
  position: absolute; left: 1.1rem; bottom: 0.9rem;
  font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: #fff; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.06em;
}
.swatch figcaption {
  margin-top: 0.6rem;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--chapter-soft);
}
.chapter h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.12; text-wrap: balance;
  max-width: 15em;
}
.chapter .stylist {
  margin-top: 1rem; color: var(--chapter-soft); max-width: 34em;
}
.chapter-products {
  margin-top: 2rem;
  display: grid; gap: clamp(0.9rem, 2vw, 1.6rem);
  grid-template-columns: repeat(2, 1fr);
}
.product { text-decoration: none; display: block; }
.product figure { overflow: hidden; aspect-ratio: 4 / 5; background: rgba(20, 18, 16, 0.04); }
.product img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.product:hover img, .product:focus-visible img { transform: scale(1.04); }
.product figcaption { padding: 0.7rem 0.1rem 0; }
.p-name { display: block; font-size: 0.88rem; font-weight: 600; letter-spacing: 0.01em; }
.p-price { display: block; font-size: 0.85rem; color: var(--accent); margin-top: 0.15rem; font-variant-numeric: tabular-nums; }
.p-go {
  display: inline-block; margin-top: 0.4rem;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--chapter-soft);
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.product:hover .p-go { color: var(--accent); border-color: var(--accent); }
.chapter-more { margin-top: 1.8rem; }
.chapter-more a {
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--accent); padding-bottom: 3px;
}
.chapter-more a:hover { color: var(--accent); }

/* bölüm tonları */
.ch-01 { --tint: #F4EADB; --accent: #8A6431; }
.ch-02 { --tint: #F7F3EC; --accent: #8C7E62; }
.ch-03 { --tint: #EDEDEF; --accent: #5B5E68; }
.ch-04 {
  --tint: #16130F; --accent: #C9AC7F;
  --chapter-ink: #F5F1EA; --chapter-soft: rgba(245, 241, 234, 0.62);
  --line: rgba(245, 241, 234, 0.18);
}
.ch-04 .product figure { background: rgba(245, 241, 234, 0.06); }
.ch-05 { --tint: #F6E7E6; --accent: #96263B; }
.ch-06 { --tint: #EFECE4; --accent: #8A7440; }

/* ---------- atelier ---------- */
.atelier {
  background: var(--mulberry); color: #F6EFF1;
  padding: clamp(3.6rem, 8vw, 6.5rem) var(--pad);
}
.atelier-grid {
  display: grid; gap: clamp(1.6rem, 4vw, 3.6rem);
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  align-items: center;
}
.atelier .label { color: #D8B7C4; }
.atelier h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.1;
  margin-top: 0.8rem; text-wrap: balance;
}
.atelier p { margin-top: 1.1rem; color: rgba(246, 239, 241, 0.82); max-width: 34em; }
.atelier figure { overflow: hidden; aspect-ratio: 4 / 3; }
.atelier img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- notes (yorumlar) ---------- */
.notes { padding: clamp(3.6rem, 8vw, 6rem) var(--pad); }
.notes-grid {
  margin-top: 2.2rem;
  display: grid; gap: clamp(1.4rem, 3vw, 2.6rem);
  grid-template-columns: repeat(3, 1fr);
}
.note {
  border-left: 2px solid var(--mulberry);
  padding-left: 1.2rem;
}
.note .stars { color: var(--mulberry); font-size: 0.72rem; letter-spacing: 0.3em; }
.note q {
  display: block; margin-top: 0.7rem; quotes: "“" "”";
  font-size: 1.02rem; line-height: 1.55;
}
.note cite {
  display: block; margin-top: 0.8rem; font-style: normal;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- sets (toptan) ---------- */
.sets { padding: 0 var(--pad) clamp(3.6rem, 8vw, 6rem); }
.sets-card {
  border: 1px solid var(--line);
  padding: clamp(2.2rem, 5vw, 4rem);
  display: grid; gap: 2rem;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  background:
    linear-gradient(rgba(250, 249, 247, 0.92), rgba(250, 249, 247, 0.92)),
    url("../assets/textures/tx-champagne.webp") center / cover;
}
.sets-card h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.1; margin-top: 0.6rem;
}
.sets-card p { margin-top: 1rem; color: var(--ink-soft); max-width: 32em; }
.sets-cta { text-align: center; }
.sets-cta .hint { margin-top: 0.9rem; font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-foot {
  background: var(--ink); color: rgba(250, 249, 247, 0.78);
  padding: clamp(3rem, 7vw, 4.5rem) var(--pad) 2rem;
  text-align: center;
}
.foot-mark { font-family: var(--display); font-size: 1.6rem; letter-spacing: 0.42em; color: var(--paper); }
.foot-tag { margin-top: 0.7rem; color: rgba(250, 249, 247, 0.55); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.4rem; margin-top: 2rem; }
.foot-links a {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; color: rgba(250, 249, 247, 0.78);
}
.foot-links a:hover { color: #D8B7C4; }
.foot-fine { margin-top: 2.4rem; font-size: 0.72rem; color: rgba(250, 249, 247, 0.4); }

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 60;
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
  background: rgba(20, 18, 16, 0.55);
}
.modal.is-open { display: flex; }
.modal-box {
  background: var(--paper); width: min(30rem, 100%);
  max-height: 92svh; overflow: auto;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  position: relative;
}
.modal-box h3 { font-family: var(--display); font-weight: 400; font-size: 1.8rem; margin-top: 0.5rem; }
.modal-box .sub { color: var(--ink-soft); font-size: 0.92rem; margin-top: 0.5rem; }
.modal-close {
  position: absolute; top: 0.9rem; right: 0.9rem;
  background: none; border: none; font-size: 1.5rem; line-height: 1;
  cursor: pointer; color: var(--ink-soft); padding: 0.3rem;
}
.modal-close:hover { color: var(--ink); }
.form-grid { display: grid; gap: 0.9rem; margin-top: 1.4rem; }
.form-grid label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); display: block; margin-bottom: 0.3rem;
}
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; font-family: var(--text); font-size: 0.95rem;
  padding: 0.75rem 0.9rem; border: 1px solid var(--line); background: #fff;
  border-radius: 0; color: var(--ink);
}
.form-grid input:focus-visible, .form-grid select:focus-visible, .form-grid textarea:focus-visible {
  outline: 2px solid var(--mulberry); outline-offset: 1px;
}
.form-msg { font-size: 0.9rem; margin-top: 0.8rem; min-height: 1.4em; }
.form-msg.ok { color: #3D6B41; }
.form-msg.err { color: #9C3A2E; }

/* ---------- reveal ----------
   Başlangıçta gizli; JS (GSAP ya da statik yol) is-in ekler.
   Hareketin kendisi GSAP ScrollTrigger'dan gelir. */
.reveal { opacity: 0; }
.reveal.is-in { opacity: 1; }
.no-js .reveal { opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .chapter-grid, .chapter.alt .chapter-grid { grid-template-columns: 1fr; }
  .chapter.alt .swatch { order: 0; }
  .swatch { position: static; }
  .atelier-grid { grid-template-columns: 1fr; }
  .sets-card { grid-template-columns: 1fr; }
  .sets-cta { text-align: left; }
  .notes-grid { grid-template-columns: 1fr; max-width: 32rem; }
}
@media (max-width: 560px) {
  .head-links a.head-follow { display: none; }
  .wordmark { font-size: 1.2rem; letter-spacing: 0.32em; }
  .head-cta { font-size: 0.66rem; padding: 0.45rem 0.9rem; }
  .chapter-products { gap: 0.8rem; }
  .p-name { font-size: 0.78rem; }
  .trust { gap: 0.3rem 1.2rem; }
  .trust span { font-size: 0.6rem; }
}

/* ---------- erişilebilirlik ---------- */
:focus-visible { outline: 2px solid var(--mulberry); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .product img { transition: none; }
  .swatch figure, .atelier figure { clip-path: none !important; }
}
