/* ============================================================
   byjawalli — Design System / Base
   "Quiet luxury" · doğal elyaf, editoryal tipografi, keskin çizgiler
   ============================================================ */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Instrument+Sans:wght@400;500;600&family=Tajawal:wght@300;400;500;700&family=Reem+Kufi:wght@400;500;600&display=swap');

/* ---- Design Tokens ---- */
:root {
  /* Warm neutrals */
  --paper:      #F7F3EB;
  --paper-2:    #F0EADB;
  --paper-3:    #E9E0CB;
  --linen:      #FCFAF4;
  --sand:       #D9CDB4;
  --ink:        #171309;
  --ink-2:      #46402F;
  --mute:       #8C7D62;
  --line:       #E2D9C4;
  --line-dark:  rgba(247,243,235,.14);

  /* Dark band */
  --night:      #131009;
  --night-2:    #1C1810;
  --night-3:    #262115;

  /* Accents */
  --gold:       #8A6E46;
  --gold-2:     #CBB58F;
  --sage:       #75825C;
  --sage-deep:  #59674A;
  --terra:      #B97B54;
  --white:      #FFFFFF;

  /* Series accents */
  --bambu:      #6F7F52;
  --bambu-deep: #57653F;
  --bambu-tint: #EDF0E1;
  --pamuk:      #BEA37F;
  --pamuk-deep: #9D8562;
  --pamuk-tint: #F8F2E6;
  --yun:        #A2845F;
  --yun-deep:   #7A5E40;
  --yun-tint:   #F4ECE1;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body:    'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1320px;
  --container-narrow: 900px;
  --gutter: clamp(1.25rem, 4.5vw, 3.5rem);
  --radius: 0;
  --radius-lg: 2px;
  --radius-xl: 2px;

  /* Motion */
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: .8s;

  /* Elevation */
  --shadow-sm: 0 1px 0 rgba(23,19,9,.04);
  --shadow:    0 24px 48px -36px rgba(23,19,9,.22);
  --shadow-lg: 0 40px 80px -50px rgba(23,19,9,.3);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--sand) transparent;
}
html:not(.lenis) { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
strong, b { font-weight: 600; color: var(--ink); }

::selection { background: var(--ink); color: var(--paper); }

/* Lenis smooth-scroll hooks */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---- Paper grain (static texture) ---- */
body::after {
  content: "";
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9990;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(3.3rem, 8vw, 6.8rem); font-weight: 300; }
h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 300; }
h3 { font-size: clamp(1.65rem, 2.8vw, 2.35rem); }
h4 { font-size: 1.42rem; font-weight: 500; letter-spacing: 0; }
p  { max-width: 62ch; }

.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -0.015em;
}
.display-xl { font-size: clamp(3.4rem, 7.4vw, 7.4rem); }
.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 300; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .8em;
  font-family: var(--font-body);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 36px; height: 1px;
  background: currentColor;
  opacity: .6;
}
.eyebrow.center::before { display: none; }
.eyebrow.sage { color: var(--sage-deep); }

.lead {
  font-size: clamp(1.06rem, 1.5vw, 1.22rem);
  line-height: 1.7;
  color: var(--ink-2);
  font-weight: 400;
  text-wrap: pretty;
}
.muted { color: var(--mute); }
.small { font-size: .88rem; }

.statement {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--ink);
  text-wrap: balance;
}
.statement em { font-style: italic; color: var(--gold); }
.bg-night .statement, .bg-night h1, .bg-night h2, .bg-night h3, .bg-night h4 { color: var(--paper); }

/* ---- Layout primitives ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--container-narrow); margin-inline: auto; }
.section { padding-block: clamp(5.5rem, 12vw, 11rem); }
.section-sm { padding-block: clamp(3.5rem, 7vw, 6rem); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.6rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

@media (max-width: 940px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: 1fr; }
  .cols-2 { grid-template-columns: 1fr; }
}

/* ---- Utility ---- */
.bg-paper  { background: var(--paper); }
.bg-paper2 { background: var(--paper-2); }
.bg-night  { background: var(--night); color: color-mix(in srgb, var(--paper) 78%, transparent); }
.bg-night p { color: color-mix(in srgb, var(--paper) 66%, transparent); }
.rounded   { border-radius: var(--radius-lg); }
.rounded-xl{ border-radius: var(--radius-xl); }
.relative  { position: relative; }
.z-1 { position: relative; z-index: 1; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--line); border: 0; }
.hairline-top { border-top: 1px solid var(--line); }
.hairline-bottom { border-bottom: 1px solid var(--line); }

/* Accessibility */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -60px; left: 1rem; z-index: 10001;
  background: var(--ink); color: var(--paper);
  padding: .7em 1.2em; font-size: .85rem; font-weight: 600;
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
