/* ==========================================================================
   MINLIT CREATIVE STUDIO — Shared Design System
   Editorial, cinematic, seasonal. Neutral base + shifting seasonal thread.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Work+Sans:wght@300;400;500;600&display=swap');

:root {
  /* Neutral base */
  --ink: #1C1A17;
  --ink-soft: #34302A;
  --paper: #FAF7F2;
  --linen: #F1EAE0;
  --stone: #C9BEB0;
  --clay: #8B7A68;

  /* Seasonal thread — currently: SUNFLOWER */
  --season: #B8892E;
  --season-soft: #E4C878;
  --season-wash: #F6EBD4;

  /* Type scale */
  --display: 'Fraunces', serif;
  --body: 'Work Sans', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;

  --max-width: 1360px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (max-width: 720px) {
  .wrap { padding: 0 var(--space-sm); }
}

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

em, .accent-italic {
  font-style: italic;
  font-weight: 500;
}

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--season);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--season);
  display: inline-block;
}

p.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 42ch;
  font-weight: 300;
}

.body-text {
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 60ch;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 1rem 2rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  white-space: nowrap;
}

.btn:hover { background: var(--ink); color: var(--paper); }

.btn-solid {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-solid:hover { background: var(--season); border-color: var(--season); color: var(--ink); }

.btn-season {
  border-color: var(--season);
  color: var(--season);
}

.btn-season:hover { background: var(--season); color: var(--paper); }

/* ---------- Nav ---------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.6rem 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.site-nav.solid {
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 1px 0 rgba(28,26,23,0.06);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: inherit;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--season);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  border: 1px solid currentColor;
  padding: 0.6rem 1.3rem !important;
}

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: inherit;
  }
}

/* ---------- Placeholder imagery ----------
   Elegant stand-ins until the August portfolio shoot is delivered.
   Swap any .ph-image div's background for a real photo via inline style
   or by replacing with an <img> tag. */

.ph-image {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--season-wash) 0%, var(--linen) 55%, var(--stone) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.ph-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.35), transparent 60%),
                    radial-gradient(circle at 75% 80%, rgba(28,26,23,0.06), transparent 55%);
}

.ph-image .ph-label {
  position: relative;
  z-index: 1;
  margin: 1.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(250,247,242,0.75);
  padding: 0.4rem 0.7rem;
  font-weight: 500;
}

/* ---------- Sections ---------- */

section { position: relative; }

.section-pad { padding: var(--space-xl) 0; }

@media (max-width: 720px) {
  .section-pad { padding: var(--space-lg) 0; }
}

.divider {
  height: 1px;
  background: var(--stone);
  width: 100%;
  border: none;
}

.thread {
  height: 2px;
  width: 60px;
  background: var(--season);
  border: none;
  margin: var(--space-md) 0;
}

/* ---------- Grid helpers ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

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

.season-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: var(--space-lg);
}
@media (max-width: 900px) {
  .season-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
.season-grid .ph-image { height: 380px; }
@media (max-width: 600px) {
  .season-grid .ph-image { height: 190px; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--linen);
  padding: var(--space-lg) 0 var(--space-md);
}

.site-footer .logo { color: var(--paper); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer-grid h4 {
  font-family: var(--body);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.6rem; font-size: 0.9rem; font-weight: 300; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(241,234,224,0.15);
  font-size: 0.78rem;
  color: var(--stone);
  flex-wrap: wrap;
  gap: 1rem;
}

.ph-image.has-photo { background: var(--stone); }
.ph-image.has-photo::before { display: none; }
.ph-image.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Aspect-ratio containers — scale proportionally with width instead of
   using a fixed pixel height, so portrait photos never get cropped harder
   at narrow (mobile) widths than they are on desktop. */
.photo-portrait { aspect-ratio: 4 / 5; height: auto !important; }
.photo-landscape { aspect-ratio: 3 / 2; height: auto !important; }
.photo-hero-portrait { max-width: 520px; margin: 0 auto; aspect-ratio: 4 / 5; height: auto !important; }

/* ---------- Filmstrip gallery ---------- */

.filmstrip {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.8rem;
  margin-top: 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.filmstrip::-webkit-scrollbar { height: 6px; }
.filmstrip::-webkit-scrollbar-thumb { background: var(--stone); border-radius: 3px; }
.filmstrip::-webkit-scrollbar-track { background: transparent; }

.filmstrip img {
  height: 420px;
  width: auto;
  flex-shrink: 0;
  display: block;
  scroll-snap-align: start;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.filmstrip img:hover { opacity: 0.85; }

@media (max-width: 720px) {
  .filmstrip img { height: 260px; }
  .filmstrip { gap: 0.6rem; }
}

.filmstrip-hint {
  font-size: 0.72rem;
  color: var(--clay);
  letter-spacing: 0.04em;
  margin-top: 0.5rem;
}

/* ---------- Lightbox ---------- */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 26, 23, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: transparent;
  border: none;
  color: var(--paper);
  font-family: var(--body);
  cursor: pointer;
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-prev, .lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  padding: 0.5rem 1rem;
}

.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }

@media (max-width: 720px) {
  .lightbox-prev, .lightbox-next { font-size: 2rem; padding: 0.3rem 0.6rem; }
  .lightbox-close { top: 1rem; right: 1rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- Focus visibility ---------- */

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