/* ============================================================
   Lilly-Jasmin — shared styles
   ============================================================ */
:root {
  --paper: #f3eee6;
  --paper-2: #ece4d6;
  --ink: #1a1715;
  --ink-soft: #3a342e;
  --rule: #1a1715;
  --magenta: #e93b7a;
  --blue: #6a8fa8;
  --rust: #c76a4a;
  --mustard: #d9a441;
  --sage: #8a9a87;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

/* Paper grain */
.grain::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 200;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.09  0 0 0 0 0.08  0 0 0 0.12 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.35;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(243, 238, 230, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, backdrop-filter 0.35s ease,
              padding 0.35s ease, border-color 0.35s ease,
              color 0.35s ease;
}
.nav.scrolled {
  background: rgba(243, 238, 230, 0.78);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  backdrop-filter: saturate(1.3) blur(14px);
  color: var(--ink);
  border-bottom-color: rgba(26, 23, 21, 0.08);
}
.nav .brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-transform: none;
  font-weight: 500;
}
.nav ul {
  display: flex; gap: 28px; list-style: none; margin: 0; padding: 0;
}
.nav li a { position: relative; padding: 4px 0; }
.nav li a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.nav li a:hover::after, .nav li a.active::after { transform: scaleX(1); }

/* ---------- Shared section bits ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.rule { height: 1px; background: var(--ink); opacity: 0.2; }

.big-serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.92;
}

/* utilities */
.container { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.mono { font-family: var(--mono); }
.italic { font-style: italic; }

::selection { background: var(--magenta); color: #fff; }

/* focus */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 820px) {
  .nav {
    padding: 16px 20px;
    gap: 14px;
  }
  .nav ul {
    gap: 16px;
    flex-wrap: nowrap;
  }
  .container { padding: 0 20px; }
}
