/* ============================================================
   Living Life Photography — design system
   ============================================================ */

:root {
  /* color */
  --cream: #f4ecdc;
  --cream-2: #ebe1cc;
  --paper: #faf5e9;
  --charcoal: #1a1612;
  --charcoal-2: #2a221b;
  --ink: #28221c;
  --ink-2: #6a5f53;
  --ink-3: #9c9183;
  --line: rgba(40, 34, 28, .14);
  --orange: #e6531e;
  --orange-2: #c4441a;
  --orange-soft: #f9c8b0;

  /* type */
  --f-script: "Caveat", cursive;
  --f-serif: "Instrument Serif", "Cormorant Garamond", serif;
  --f-sans: "DM Sans", "Helvetica Neue", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  /* motion */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.theme-dark {
  background: var(--charcoal);
  color: var(--cream);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- subtle paper grain ---------- */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .06;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(rgba(40, 34, 28, .8) 1px, transparent 1px),
    radial-gradient(rgba(40, 34, 28, .6) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 2px 2px;
}
body.theme-dark::before {
  opacity: .05;
  mix-blend-mode: screen;
  background-image:
    radial-gradient(rgba(244, 236, 220, .8) 1px, transparent 1px),
    radial-gradient(rgba(244, 236, 220, .6) 1px, transparent 1px);
}

/* ============================================================
   Typography
   ============================================================ */
.script { font-family: var(--f-script); font-weight: 700; }
.serif  { font-family: var(--f-serif); font-weight: 400; }
.sans   { font-family: var(--f-sans); }
.mono   { font-family: var(--f-mono); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.h-display {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: .98;
  letter-spacing: -.01em;
}
.h-display em { font-style: italic; color: var(--orange); }

.h-section {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -.01em;
}
.h-section em { font-style: italic; }

.lede {
  font-family: var(--f-sans);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 52ch;
}

/* ============================================================
   Layout
   ============================================================ */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.wrap-wide { max-width: 1440px; margin: 0 auto; padding: 0 28px; }

.section { padding: clamp(60px, 9vw, 130px) 0; position: relative; }
.section.dark { background: var(--charcoal); color: var(--cream); }
.section.dark .lede, .section.dark .eyebrow { color: rgba(244, 236, 220, .65); }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 18px 28px;
  transition: background-color .3s var(--ease-out), backdrop-filter .3s, border-color .3s, color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(244, 236, 220, .85);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
body.theme-dark .nav { color: var(--cream); }
body.theme-dark .nav.scrolled {
  background: rgba(26, 22, 18, .82);
  border-bottom-color: rgba(244, 236, 220, .14);
}

.nav__logo {
  font-family: var(--f-script);
  font-weight: 700;
  font-size: 32px;
  color: var(--orange);
  line-height: 1;
  display: inline-block;
  transform: rotate(-3deg);
  transform-origin: left center;
}
.nav__links {
  display: flex; gap: 26px; margin-left: auto;
  font-family: var(--f-sans); font-weight: 500; font-size: 14px;
  letter-spacing: .01em;
}
.nav__links a {
  position: relative; padding: 4px 0;
  transition: color .2s;
}
.nav__links a:hover { color: var(--orange); }
.nav__links a.on { color: var(--orange); }
.nav__links a.on::after {
  content: ""; position: absolute; left: -3px; right: -3px; bottom: -3px; height: 7px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='7' viewBox='0 0 60 7'><path d='M2 4 Q15 1 30 4 T58 4' stroke='%23e6531e' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-size: 100% 100%;
}
.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--orange); color: #fff;
  border-radius: 999px;
  font-weight: 600; font-size: 13px;
  border: 0;
  box-shadow: 0 4px 18px -6px rgba(230, 83, 30, .55);
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(230, 83, 30, .65); }

.nav__theme {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: .55;
  transition: opacity .2s var(--ease-out), color .2s, border-color .2s;
  white-space: nowrap;
}
.nav__theme:hover { opacity: 1; color: var(--orange); border-color: var(--orange); }
@media (max-width: 880px) {
  .nav__theme { display: none; }
}
.nav__burger {
  display: none;
  width: 40px; height: 40px;
  border: 0; background: transparent;
  margin-left: auto;
  position: relative;
}
.nav__burger span {
  position: absolute; left: 8px; right: 8px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .25s var(--ease-out), opacity .2s;
}
.nav__burger span:nth-child(1) { top: 14px; }
.nav__burger span:nth-child(2) { top: 20px; }
.nav__burger span:nth-child(3) { top: 26px; }
.nav.open .nav__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.open .nav__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 49;
  background: var(--cream);
  color: var(--ink);
  padding: 92px 28px 40px;
  transform: translateY(-100%);
  transition: transform .4s var(--ease-out);
  display: flex; flex-direction: column; gap: 4px;
  overflow: hidden;
}
body.theme-dark .drawer {
  background: var(--charcoal);
  color: var(--cream);
}
.drawer.open { transform: translateY(0); }
.drawer a {
  font-family: var(--f-serif);
  font-size: 44px; line-height: 1.1;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
body.theme-dark .drawer a { border-bottom-color: rgba(244, 236, 220, .14); }
.drawer a em { font-style: italic; color: var(--orange); }
.drawer .drawer__cta {
  margin-top: 22px; padding: 16px 22px;
  background: var(--orange); color: #fff;
  border-radius: 999px; border: 0;
  font-family: var(--f-sans); font-weight: 600; font-size: 15px;
  text-align: center;
}
.drawer__contact {
  margin-top: auto;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2);
  display: flex; flex-direction: column; gap: 6px;
  padding-top: 24px;
}
body.theme-dark .drawer__contact { color: rgba(244, 236, 220, .55); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--f-sans); font-weight: 600; font-size: 14px;
  letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .2s var(--ease-out), box-shadow .2s, background .2s, color .2s;
  cursor: pointer;
}
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 6px 24px -8px rgba(230, 83, 30, .55); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(230, 83, 30, .7); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; opacity: .75; }
.btn--ghost:hover { background: rgba(40, 34, 28, .06); border-color: currentColor; opacity: 1; }
body.theme-dark .btn--ghost:hover { background: rgba(244, 236, 220, .08); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn .arrow { transition: transform .2s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   Depth photo — the DOF metaphor from the business card
   ============================================================ */
.depth {
  position: relative;
  display: inline-block;
}
.depth__img {
  position: relative; z-index: 2;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 22px 44px -22px rgba(20, 16, 10, .35),
              0 2px 6px rgba(20, 16, 10, .08);
}
.depth__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* the soft blurred halo behind every photo — subtle, not a glow */
.depth__halo {
  position: absolute; inset: -3% -3% -6% -3%;
  z-index: 1;
  filter: blur(16px) saturate(1.05);
  opacity: .28;
  border-radius: 12px;
  pointer-events: none;
}
.depth__halo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.depth--tilt { transform: rotate(var(--tilt, -2deg)); }
.depth--tilt-r { transform: rotate(var(--tilt, 2deg)); }

/* ============================================================
   Photo placeholder (when no img provided)
   ============================================================ */
.ph {
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(0,0,0,.18)),
    var(--ph-bg, linear-gradient(140deg, #8a6e54, #3a2f25));
  position: relative; overflow: hidden;
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 1px, transparent 1px 8px);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 80px 0 40px;
  position: relative;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
}
.footer__logo {
  font-family: var(--f-script); font-weight: 700;
  font-size: 56px; color: var(--orange);
  line-height: 1; display: inline-block;
  transform: rotate(-3deg); transform-origin: left center;
}
.footer__tagline {
  font-family: var(--f-serif); font-style: italic;
  font-size: 22px; line-height: 1.3;
  margin-top: 18px; max-width: 22ch;
  color: rgba(244, 236, 220, .8);
}
.footer__title {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(244, 236, 220, .5);
  margin-bottom: 18px;
}
.footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__list a { font-size: 15px; transition: color .2s; }
.footer__list a:hover { color: var(--orange); }
.footer__contact { font-family: var(--f-serif); font-size: 22px; line-height: 1.4; }
.footer__contact a:hover { color: var(--orange); }
.footer__bottom {
  border-top: 1px solid rgba(244, 236, 220, .12);
  padding-top: 24px; margin-top: 60px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(244, 236, 220, .5);
}

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 880px) {
  .nav { padding: 14px 20px; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .wrap, .wrap-wide { padding: 0 20px; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}

/* keep the drawer logo above its own padding */
.drawer__head {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 18px 20px;
  display: flex; align-items: center;
}
.drawer__head .nav__logo { font-size: 28px; }
