/* =========================================================================
   Laila Milan — Stylist
   Editorial, restrained. Near-black on warm off-white, one accent.
   You rarely need to touch this file to change content — edit index.html.
   ========================================================================= */

/* ---- Fonts (self-hosted, no third-party requests) ---------------------- */
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Design tokens ----------------------------------------------------- */
:root {
  --paper: #f7f5f0;
  --ink: #171512;
  --muted: #6d675e;
  --line: rgba(23, 21, 18, 0.14);
  --accent: #a9583a;          /* muted terracotta, pulled from the on-set headscarf */
  --accent-ink: #8f4227;

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --page-x: clamp(1.25rem, 5vw, 5rem);
  --maxw: 1280px;
  --gap: clamp(0.75rem, 1.6vw, 1.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14130f;
    --ink: #ece7de;
    --muted: #a49c8f;
    --line: rgba(236, 231, 222, 0.16);
    --accent: #d98b66;
    --accent-ink: #e6a184;
  }
}
/* Viewer's explicit theme toggle wins in both directions */
:root[data-theme='light'] {
  --paper: #f7f5f0; --ink: #171512; --muted: #6d675e;
  --line: rgba(23,21,18,.14); --accent: #a9583a; --accent-ink: #8f4227;
}
:root[data-theme='dark'] {
  --paper: #14130f; --ink: #ece7de; --muted: #a49c8f;
  --line: rgba(236,231,222,.16); --accent: #d98b66; --accent-ink: #e6a184;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.2em;
  text-decoration-thickness: from-font;
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }

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

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

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---- Header ------------------------------------------------------------ */
.masthead {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line);
}
.masthead__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0.9rem var(--page-x);
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
}
.wordmark { display: flex; align-items: baseline; gap: 0.7rem; }
.wordmark__name {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  font-variation-settings: 'opsz' 40;
  letter-spacing: -0.01em;
}
.wordmark__role {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--muted);
}
.nav { display: flex; gap: clamp(0.9rem, 2.5vw, 2rem); }
.nav a {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--muted); padding: 0.2rem 0;
  border-bottom: 1px solid transparent; transition: color 0.25s, border-color 0.25s;
}
.nav a:hover { color: var(--ink); border-color: var(--accent); }
.nav a { white-space: nowrap; }

@media (max-width: 560px) {
  .masthead__inner { padding: 0.65rem var(--page-x); }
  .wordmark__name { white-space: nowrap; }
  .wordmark__role { display: none; }
  .nav { gap: 0.9rem; }
  .nav a { font-size: 0.66rem; letter-spacing: 0.1em; }
}

/* ---- Layout primitives ------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--page-x); }

.section { padding-block: clamp(3rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 4rem); }

.kicker {
  font-family: var(--body);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.24em;
  color: var(--accent-ink); margin: 0 0 1rem;
}
.section__head { max-width: 60ch; margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.section__title {
  font-size: clamp(1.6rem, 1rem + 2.6vw, 2.75rem);
  font-variation-settings: 'opsz' 90;
  letter-spacing: -0.015em; line-height: 1.05;
}
.section__note { color: var(--muted); margin: 0.75rem 0 0; max-width: 48ch; }

/* ---- Hero -------------------------------------------------------------- */
.hero { padding-top: clamp(3rem, 9vw, 8rem); padding-bottom: clamp(2rem, 6vw, 5rem); }
.hero__statement {
  font-family: var(--display);
  font-variation-settings: 'opsz' 144;
  font-weight: 380;
  font-size: clamp(2rem, 1rem + 6vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin: 0;
  text-wrap: balance;
}
.hero__sub {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  color: var(--muted); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
  max-width: 44ch;
}

/* ---- Media / blur-up --------------------------------------------------- */
.media-btn {
  display: block; width: 100%; padding: 0; border: 0; margin: 0;
  background: none; cursor: zoom-in; color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.media {
  position: relative; display: block; width: 100%;
  background-color: var(--line);
  background-size: cover; background-position: center;
  overflow: hidden;
}
.media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.7s ease;
}
.media img.is-loaded { opacity: 1; }
.media-btn:hover .media img.is-loaded { transform: scale(1.015); }
.media img { transition: opacity 0.7s ease, transform 0.6s ease; }

/* ---- On Set: the largest imagery on the page --------------------------- */
.onset-lead { margin-bottom: var(--gap); }
.onset-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--gap);
}
@media (min-width: 700px) {
  .onset-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Work: masonry columns per shoot ----------------------------------- */
.shoot { margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.shoot:last-child { margin-bottom: 0; }
.shoot__label {
  display: flex; align-items: baseline; gap: 0.9rem;
  padding-bottom: 0.9rem; margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.shoot__name {
  font-family: var(--body); font-weight: 500;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em;
}
/* Quiet, discoverable link on a section title. At rest it is visually
   identical to an unlinked title (inherits colour, no underline); a subtle
   accent underline appears only on hover/focus. */
.shoot__link {
  color: inherit;
  text-decoration: none;
}
.shoot__link:hover,
.shoot__link:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.shoot__meta { margin: -0.5rem 0 1.25rem; }
/* Visible label beneath a title (e.g. "Converse — spec") — clearly readable,
   distinct from the muted credit. */
.shoot__tag {
  margin: 0 0 0.5rem;
  font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--accent-ink);
}
.shoot__credit {
  margin: 0; color: var(--muted);
  font-size: 0.8rem; letter-spacing: 0.02em;
  white-space: pre-line;   /* honour line breaks in multi-line credits */
}
/* Role line — distinct from and quieter than the credit. */
.shoot__role {
  margin: 0.4rem 0 0;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--muted); opacity: 0.8;
}

.grid {
  column-gap: var(--gap);
  column-count: 2;
}
@media (min-width: 620px) { .grid { column-count: 2; } }
@media (min-width: 960px) { .grid { column-count: 3; } }
.grid .tile {
  break-inside: avoid;
  margin: 0 0 var(--gap);
}
.tile { margin: 0; }

/* ---- About: capabilities + credits ------------------------------------- */
/* About: display lead beside the long-form prose, then a meta row */
.about-layout {
  display: grid; gap: clamp(1.5rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 820px) { .about-layout { grid-template-columns: 0.8fr 1.2fr; } }
.bio { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem); font-family: var(--display);
  font-variation-settings: 'opsz' 60; line-height: 1.35; max-width: 24ch; margin: 0; }

.about-prose { max-width: 64ch; }
.about-prose p { margin: 0 0 1.1em; }
.about-prose p:last-child { margin-bottom: 0; }
.about-prose p:first-child { font-size: 1.08em; }

.about-meta {
  display: grid; gap: clamp(2rem, 6vw, 4rem);
  grid-template-columns: 1fr;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--line);
}
@media (min-width: 820px) { .about-meta { grid-template-columns: 1fr 1fr; } }
.caps { list-style: none; margin: 0; padding: 0; }
.caps li { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.caps li:first-child { border-top: 1px solid var(--line); }
.credits-copy { color: var(--muted); white-space: pre-line; }

/* ---- Contact ----------------------------------------------------------- */
.contact { border-top: 1px solid var(--line); }
.contact__title {
  font-size: clamp(1.8rem, 1rem + 3.5vw, 3.5rem);
  font-variation-settings: 'opsz' 120; letter-spacing: -0.02em; line-height: 1.05;
  margin-bottom: 1.5rem;
}
.contact__links { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; }
.contact__links a {
  font-size: clamp(1.05rem, 1rem + 0.6vw, 1.35rem);
  border-bottom: 1px solid var(--accent); padding-bottom: 2px;
  transition: color 0.25s;
}
.contact__links a:hover { color: var(--accent-ink); }

/* ---- Footer ------------------------------------------------------------ */
.foot {
  border-top: 1px solid var(--line);
  padding: 2rem var(--page-x);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
  color: var(--muted); font-size: 0.78rem; letter-spacing: 0.04em;
  max-width: var(--maxw); margin: 0 auto;
}

/* ---- Lightbox ---------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  display: none;
  /* Always a dark viewer, independent of the page theme */
  background: rgba(16, 14, 12, 0.97);
  align-items: center; justify-content: center;
  padding: clamp(0.5rem, 3vw, 2.5rem);
}
.lightbox[data-open='true'] { display: flex; }
.lightbox__stage {
  position: relative; max-width: min(1100px, 100%); max-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
}
.lightbox__img {
  max-width: 100%; max-height: 82vh; width: auto; height: auto;
  object-fit: contain; background: rgba(0,0,0,0.2);
}
.lightbox__cap {
  color: rgba(244, 241, 235, 0.78);
  font-size: 0.85rem; text-align: center; max-width: 60ch; min-height: 1.2em;
}
.lightbox__cap b { font-weight: 500; color: #f7f5f0; }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(247, 245, 240, 0.12);
  color: #f7f5f0; border: 1px solid rgba(247, 245, 240, 0.3);
  width: 3rem; height: 3rem; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer; display: grid; place-items: center;
  transition: background 0.2s;
}
.lb-btn:hover { background: rgba(247, 245, 240, 0.22); }
.lb-prev { left: -0.5rem; }
.lb-next { right: -0.5rem; }
.lb-close {
  position: fixed; top: 1rem; right: 1rem;
  background: none; border: 0; color: #f7f5f0;
  font-size: 2rem; line-height: 1; cursor: pointer; padding: 0.5rem;
}
@media (max-width: 620px) {
  .lb-prev { left: 0; } .lb-next { right: 0; }
  .lb-btn { width: 2.5rem; height: 2.5rem; }
}

/* ---- Reduced motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .media img { transition: opacity 0.01s; }
  .media-btn:hover .media img { transform: none; }
}

/* No-JS fallback message */
.nojs {
  padding: 1rem var(--page-x); text-align: center; color: var(--muted);
  border-bottom: 1px solid var(--line); font-size: 0.85rem;
}
