/* Modiva Tekstil — Katalog No. 01 */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --plate: #212121;      /* matte black of the door plate */
  --plate-deep: #161616;
  --linen: #d8cdb8;      /* the sand fabric of the M */
  --linen-soft: #b9af9d;
  --bone: #f5f3ee;
  --ink: #171717;
  --ink-soft: #4b4840;
  --ink-mute: #807a6f;
  --open: #9cc597;

  --font: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* theme vars, switched per section */
  --fg: var(--bone);
  --fg-soft: var(--linen-soft);
  --accent: var(--linen);
  --chrome-bg: transparent;
}

body[data-theme="linen"] { --fg: var(--ink); --fg-soft: var(--ink-soft); --accent: var(--ink); --chrome-bg: var(--linen); }
body[data-theme="light"] { --fg: var(--ink); --fg-soft: var(--ink-soft); --accent: var(--ink); --chrome-bg: var(--bone); }
body[data-theme="dark"]  { --chrome-bg: var(--plate-deep); }
body[data-theme="cover"] { --chrome-bg: transparent; }

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--linen-soft) var(--plate-deep);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--plate);
  color: var(--bone);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--linen);
}

::selection { background: var(--linen); color: var(--ink); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--plate-deep); }
::-webkit-scrollbar-thumb { background: var(--linen-soft); }

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--linen); outline-offset: 4px; }
body[data-theme="linen"] :focus-visible,
body[data-theme="light"] :focus-visible { outline-color: var(--ink); }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--linen); color: var(--ink); padding: 0.75rem 1rem; text-decoration: none;
  font-weight: 600;
}
.skip:focus { top: 1rem; }

/* ---------- Masthead ---------- */
.masthead {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1.1rem var(--pad);
  color: var(--fg);
  background: var(--chrome-bg);
  transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out);
}
.masthead__brand { display: flex; align-items: baseline; gap: 1.25rem; text-decoration: none; }
.masthead__name {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
}
.masthead__issue { font-size: 0.75rem; letter-spacing: 0.12em; color: var(--fg-soft); }

.index ol { display: flex; gap: clamp(1.25rem, 2.6vw, 2.75rem); list-style: none; margin: 0; padding: 0; }
.index a {
  display: flex; align-items: baseline; gap: 0.6rem; text-decoration: none;
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  padding: 0.35rem 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.45s var(--ease-out);
}
.index a:hover, .index a[aria-current="true"] { background-size: 100% 1px; }
.index__page { color: var(--fg-soft); font-weight: 400; letter-spacing: 0.08em; text-transform: none; }

.masthead__toggle {
  display: none; align-items: center; gap: 0.6rem;
  background: none; border: 0; color: inherit; cursor: pointer;
  font: 500 0.75rem/1 var(--font); letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.6rem 0;
}
.masthead__toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* ---------- Thread (scroll stitch) ---------- */
.thread {
  position: fixed; left: calc(var(--pad) * 0.4); top: 0; bottom: 0; width: 2px; z-index: 40;
  pointer-events: none;
}
.thread__line {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, var(--accent) 0 9px, transparent 9px 16px);
  transform-origin: top; transform: scaleY(0);
  transition: background 0.5s;
}

/* ---------- Shared ---------- */
section { position: relative; }

.folio {
  position: absolute; bottom: 1.4rem; left: var(--pad);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft);
}
.folio span { font-weight: 700; margin-right: 0.75rem; color: var(--ink); }
.folio--light { color: var(--linen-soft); }
.folio--light span { color: var(--bone); }
.folio--right { left: auto; right: var(--pad); }

.section-title {
  font-weight: 300; text-transform: uppercase; letter-spacing: 0.12em;
  font-size: clamp(2rem, 4.2vw, 3.75rem); line-height: 1.05;
  text-wrap: balance;
}
.section-title--xl { font-size: clamp(2.6rem, 7vw, 6rem); letter-spacing: 0.1em; }

.btn {
  display: inline-flex; align-items: center; gap: 0.9rem;
  padding: 1.05rem 1.6rem;
  background: var(--linen); color: var(--ink);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.35s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 0.45s var(--ease-out); }
.btn:hover { background: var(--bone); }
.btn:hover svg { transform: translateX(5px); }
.btn:active { transform: translateY(1px); }

.status {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-size: 0.82rem; letter-spacing: 0.04em; color: var(--linen-soft);
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-mute); flex: none; }
.status.is-open .status__dot { background: var(--open); box-shadow: 0 0 0 4px rgba(156, 197, 151, 0.18); }
.status.is-open { color: var(--bone); }
.status--large { font-size: 1rem; }

/* ---------- Cover ---------- */
.cover {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  padding: 7rem var(--pad) 5rem;
  background: var(--plate);
  overflow: hidden;
}
.cover__body { position: relative; z-index: 2; align-self: end; padding-bottom: 2rem; }
.cover__title { display: flex; flex-direction: column; margin-bottom: 1.5rem; }
.cover__line {
  display: block;
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.02;
  color: var(--bone);
}
.cover__line + .cover__line { color: var(--linen); }
.cover__legal {
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--linen-soft);
  margin-bottom: 2.5rem;
}
.cover__lede { max-width: 34ch; font-size: 1.05rem; color: var(--bone); margin-bottom: 2.25rem; }
.cover__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }

.cover__mark {
  position: relative; z-index: 1;
  justify-self: center;
  width: min(100%, 72vh * 0.93);
}
.cover__mark img {
  width: 100%;
  /* feather the plate's edges into the cover's own black */
  -webkit-mask-image: radial-gradient(ellipse 62% 60% at 50% 50%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 62% 60% at 50% 50%, #000 62%, transparent 100%);
}

.stitch { position: absolute; pointer-events: none; overflow: visible; }
.stitch--cover { left: 0; right: 0; bottom: 4%; width: 100%; height: 16vh; z-index: 1; }
.stitch__path {
  fill: none; stroke: var(--linen); stroke-width: 1.5;
  stroke-dasharray: 9 7; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.stitch__reveal { fill: none; stroke: #fff; stroke-width: 40; }

/* ---------- Spread (Marka) ---------- */
.spread {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  min-height: 100svh;
  background: var(--linen);
  color: var(--ink);
}
.spread__page { position: relative; padding: 9rem var(--pad) 6rem; }
.spread__page--left { display: flex; align-items: center; }
.spread__gutter {
  background: repeating-linear-gradient(to bottom, rgba(23, 23, 23, 0.45) 0 9px, transparent 9px 16px);
  margin: 5rem 0;
}
.statement {
  font-weight: 300;
  font-size: clamp(2.2rem, 4.6vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 12ch;
  text-wrap: balance;
}
.spread__page--right { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 2.5rem; }
.spread__photo { width: min(78%, 26rem); aspect-ratio: 4 / 5; overflow: hidden; }
.spread__photo img { width: 100%; height: 100%; object-fit: cover; }
.prose { max-width: 60ch; display: grid; gap: 1rem; color: var(--ink-soft); font-size: 1.02rem; }
.prose p:first-child { color: var(--ink); font-size: 1.15rem; font-weight: 500; line-height: 1.5; }

/* ---------- Lookbook ---------- */
.lookbook { background: var(--plate-deep); overflow: hidden; }
.lookbook__track {
  display: flex; align-items: center; gap: clamp(2rem, 4vw, 4.5rem);
  height: 100svh;
  padding: 5rem var(--pad) 4rem;
  overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.lookbook__track > * { scroll-snap-align: start; }
.lookbook.is-pinned .lookbook__track { width: max-content; overflow: visible; scroll-snap-type: none; }
.lookbook:not(.is-pinned) .lookbook__hint { display: none; }
.lookbook__intro { width: min(26rem, 80vw); flex: none; display: grid; gap: 1.25rem; }
.lookbook__intro p { color: var(--linen-soft); max-width: 36ch; }
.lookbook__intro .section-title { color: var(--bone); }
.lookbook__note { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; }
.lookbook__hint {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--linen) !important;
}
.lookbook__hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.look { flex: none; display: grid; gap: 0.9rem; }
.look img { width: 100%; height: 100%; object-fit: cover; }
.look--tall { height: min(70vh, 46rem); aspect-ratio: 2 / 3; grid-template-rows: 1fr auto; }
.look--wide { height: min(56vh, 36rem); aspect-ratio: 3 / 2; grid-template-rows: 1fr auto; align-self: center; }
.look img { min-height: 0; transition: transform 1.2s var(--ease-out); }
.look:hover img { transform: scale(1.03); }
.look { overflow: hidden; }
.look figcaption {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.look__no { color: var(--linen-soft); }
.look__name { color: var(--bone); font-weight: 500; }

/* ---------- Process ---------- */
.process {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--bone); color: var(--ink);
}
.process__media { position: relative; }
.process__frame {
  position: sticky; top: 0;
  height: 100svh; overflow: hidden;
}
.process__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 0.9s var(--ease-out), transform 1.6s var(--ease-out);
}
.process__frame img.is-active { opacity: 1; transform: scale(1); }

.process__body { position: relative; padding: 9rem var(--pad) 8rem; }
.process__lede { color: var(--ink-soft); margin: 1.25rem 0 4rem; max-width: 40ch; font-size: 1.05rem; }
.steps { list-style: none; margin: 0; padding: 0; }
.step {
  display: grid; grid-template-columns: 5.5rem 1fr; column-gap: 1.5rem; row-gap: 0.6rem;
  padding: 3rem 0 3.5rem;
  min-height: 52vh;
  align-content: start;
  border-top: 1px solid rgba(23, 23, 23, 0.14);
}
.step__no {
  grid-row: span 2;
  font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 200; line-height: 0.9;
  color: var(--ink-mute);
  transition: color 0.5s var(--ease-out);
}
.step.is-active .step__no { color: var(--ink); }
.step__name { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 500; letter-spacing: 0.02em; line-height: 1.2; }
.step p { color: var(--ink-soft); max-width: 44ch; }

/* ---------- Back cover ---------- */
.backcover {
  background: var(--plate);
  padding: 10rem var(--pad) 5rem;
  overflow: hidden;
}
.backcover__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: 5rem; }
.backcover__head .section-title { color: var(--bone); }
.backcover__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem;
  padding-top: 2.5rem; border-top: 1px solid rgba(216, 205, 184, 0.25);
}
.info__title {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--linen); margin-bottom: 1.5rem;
}
.hours { border-collapse: collapse; width: 100%; }
.hours th, .hours td { text-align: left; padding: 0.7rem 0; border-bottom: 1px solid rgba(216, 205, 184, 0.14); font-weight: 400; }
.hours th { color: var(--linen-soft); padding-right: 1.5rem; }
.hours td { color: var(--bone); text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--bone); font-weight: 600; }
.hours tr.is-today th::after {
  content: "Bugün"; margin-left: 0.75rem;
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  color: var(--ink); background: var(--linen); padding: 0.2rem 0.45rem; vertical-align: 0.1em;
}

.contacts { list-style: none; margin: 0; padding: 0; }
.contacts li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 0; border-bottom: 1px solid rgba(216, 205, 184, 0.14);
}
.contacts__who { color: var(--bone); }
.contacts__val { color: var(--bone); text-align: right; }
.contacts__val.is-pending { color: var(--linen-soft); font-style: italic; }

.colophon { margin-top: 7rem; }
.wordmark--outline {
  display: block;
  font-size: clamp(3.5rem, 16vw, 15rem);
  font-weight: 300; letter-spacing: 0.12em; line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px var(--linen-soft);
  white-space: nowrap;
  margin-left: -0.04em;
}
.colophon__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem;
  margin-top: 2.5rem; padding-bottom: 2.5rem;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--linen-soft);
}
.colophon__row a { color: var(--bone); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .masthead__issue { display: none; }
  .masthead__toggle { display: inline-flex; }
  .index {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--plate-deep); color: var(--bone);
    padding: 0.5rem var(--pad) 1.5rem;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), visibility 0s 0.35s;
  }
  .index.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .index ol { flex-direction: column; gap: 0; }
  .index a { justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid rgba(216, 205, 184, 0.16); background: none; font-size: 0.85rem; }
  .index__page { color: var(--linen-soft); }

  .cover { grid-template-columns: 1fr; padding-top: 6rem; gap: 0; }
  .cover__mark { order: -1; width: min(70vw, 44vh); }
  .cover__body { align-self: start; padding-bottom: 1rem; }
  .stitch--cover { bottom: auto; top: 30%; }

  .spread { grid-template-columns: 1fr; }
  .spread__gutter { display: none; }
  .spread__page { padding: 6rem var(--pad) 4.5rem; }
  .spread__page--left { padding-bottom: 4rem; }

  .lookbook__track {
    width: auto; height: auto; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 6rem var(--pad) 5rem; align-items: flex-start;
    scrollbar-width: none;
  }
  .lookbook__track::-webkit-scrollbar { display: none; }
  .lookbook__track > * { scroll-snap-align: start; }
  .look--tall { height: 62vh; }
  .look--wide { height: 34vh; align-self: auto; }

  .process { grid-template-columns: 1fr; }
  .process__frame { position: relative; height: 56vh; }
  .process__body { padding-top: 5rem; }
  .step { min-height: 0; grid-template-columns: 4rem 1fr; }

  .backcover { padding-top: 7rem; }
  .backcover__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 520px) {
  .cover__line { letter-spacing: 0.1em; }
  .cover__legal { letter-spacing: 0.16em; }
  .masthead__name { letter-spacing: 0.16em; }
}
