/* ---------------------------------------------------------
   Lynn Photography — temp site
   Palette: warm paper + ink + deep forest + terracotta + gold
--------------------------------------------------------- */

:root {
  --ink: #1b1a17;
  --ink-soft: #3a362f;
  --muted: #726b5c;
  --cream: #f6f1e7;
  --paper: #efe8da;
  --stone: #e2d8c4;
  --forest: #33463a;
  --forest-deep: #1f2c25;
  --terracotta: #b5502f;
  --terracotta-soft: #d97a52;
  --gold: #c69a4a;

  --font-display: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", "URW Palladio L", serif;
  --font-body: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 1180px;
  --edge: clamp(1.25rem, 4vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* subtle paper grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------------- header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--edge);
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
}
.wordmark span { color: var(--terracotta); }

.site-nav { display: flex; gap: clamp(1rem, 2.5vw, 2.25rem); }
.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 2px;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--terracotta);
  transition: right 0.25s ease;
}
.site-nav a:hover::after { right: 0; }

/* ---------------- hero ---------------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4.5rem, 12vw, 8rem) var(--edge) clamp(3rem, 8vw, 5rem);
}
.hero-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 1.25rem;
  font-weight: 600;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
  color: var(--ink);
}
.hero-title em {
  font-style: italic;
  color: var(--forest);
}
.hero-sub {
  max-width: 34rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  margin: 0 0 3rem;
}
.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.hero-scroll svg { animation: bob 2.2s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ---------------- status strip ---------------- */
.status-strip {
  background: var(--forest);
  color: var(--paper);
}
.status-strip p {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--edge);
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}
.status-strip strong { color: #fff; }

/* ---------------- section scaffolding ---------------- */
.section-head { max-width: var(--max); margin: 0 auto; padding: clamp(3.5rem, 7vw, 5.5rem) var(--edge) 2.25rem; }
.section-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9rem;
  font-weight: 600;
}
.section-head--light .section-kicker { color: color-mix(in srgb, var(--cream) 70%, transparent); }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin: 0;
  max-width: 30rem;
}

/* ---------------- gallery ---------------- */
.gallery-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--edge) clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 13rem;
  grid-auto-flow: dense;
  gap: clamp(0.6rem, 1.4vw, 1.1rem);
}
.tile {
  --frame-pad: clamp(8px, 1.3vw, 14px);
  position: relative;
  margin: 0;
  border-radius: 8px;
  background: linear-gradient(155deg, #fffdf7, #f0e8d8);
  box-shadow: 0 16px 32px rgba(27, 26, 23, 0.14), 0 2px 8px rgba(27, 26, 23, 0.08);
  grid-column: span 2;
  grid-row: span 1;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.tile.in-view { opacity: 1; transform: translateY(0); }
.tile:hover { box-shadow: 0 22px 40px rgba(27, 26, 23, 0.2), 0 4px 10px rgba(27, 26, 23, 0.1); }
.tile--tall { grid-row: span 2; }
.tile--wide { grid-column: span 2; }

@media (min-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .tile { grid-column: span 1; }
  .tile--wide { grid-column: span 2; }
}

.tile-photo {
  position: absolute;
  inset: var(--frame-pad);
  border-radius: 3px;
  overflow: hidden;
}
.tile-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(155deg, #6f7f6a, #2e3a2c);
  transition: transform 0.5s ease;
}
.tile:hover .tile-photo img { transform: scale(1.04); }

.tile figcaption {
  position: absolute;
  left: var(--frame-pad); right: var(--frame-pad); bottom: var(--frame-pad);
  border-radius: 0 0 3px 3px;
  padding: 0.9rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.72), transparent 70%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.tile:hover figcaption, .tile:focus-within figcaption { opacity: 1; transform: translateY(0); }
.tile figcaption span { font-size: 0.92rem; font-weight: 600; }
.tile figcaption em { font-size: 0.76rem; font-style: normal; opacity: 0.8; letter-spacing: 0.03em; }
.tile figcaption .credit {
  margin-top: 0.3rem;
  font-size: 0.68rem;
  color: color-mix(in srgb, #fff 70%, transparent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, #fff 35%, transparent);
  width: fit-content;
}
.tile figcaption .credit:hover { color: #fff; }

.gallery-note {
  max-width: var(--max);
  margin: -1.5rem auto 0;
  padding: 0 var(--edge) clamp(2.5rem, 5vw, 4rem);
  font-size: 0.78rem;
  color: var(--muted);
}
.gallery-note a { color: var(--terracotta); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--terracotta) 45%, transparent); }

/* ---------------- about ---------------- */
.about-section { background: var(--paper); border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); }
.about-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) var(--edge);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }
.about-copy h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 1.1rem;
}
.about-copy p { color: var(--ink-soft); max-width: 34rem; }
.about-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--forest);
  border-left: 3px solid var(--terracotta);
  padding-left: 1.4rem;
  margin: 0.4rem 0 0;
}

/* ---------------- cards ---------------- */
.cards-section { background: var(--forest-deep); color: var(--paper); }
.cards-content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--edge) clamp(3.5rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 760px) { .cards-content { grid-template-columns: 1fr; } }

.card-stack { position: relative; height: 220px; }
.mini-card {
  position: absolute;
  width: 150px;
  height: 200px;
  border-radius: 8px;
  top: 10px;
  left: 50%;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.mini-card--1 {
  background: linear-gradient(155deg, #efe3c9, #cbb277);
  transform: translateX(-50%) rotate(-6deg);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest-deep);
  font-size: 1.4rem;
}
.mini-card--2 {
  background: linear-gradient(155deg, #d97a52, #9c4726);
  transform: translateX(-42%) rotate(4deg);
  z-index: 2;
}
.mini-card--3 {
  background: linear-gradient(155deg, #4c7480, #24363c);
  transform: translateX(-58%) rotate(11deg);
  z-index: 1;
}

.cards-copy p { max-width: 30rem; color: color-mix(in srgb, var(--paper) 88%, transparent); margin: 0 0 1.6rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  background: var(--terracotta);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--terracotta-soft); transform: translateY(-1px); }

/* ---------------- footer ---------------- */
.site-footer { background: var(--ink); color: var(--paper); }
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--edge);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-end;
}
.wordmark--footer { font-size: 1.5rem; margin: 0 0 0.35rem; color: var(--paper); }
.wordmark--footer span { color: var(--terracotta-soft); }
.footer-loc { margin: 0; color: color-mix(in srgb, var(--paper) 65%, transparent); font-size: 0.9rem; }
.footer-contact { text-align: right; }
.footer-contact a { text-decoration: none; font-size: 0.95rem; border-bottom: 1px solid color-mix(in srgb, var(--paper) 40%, transparent); }
.footer-note { margin: 0.5rem 0 0; font-size: 0.8rem; color: color-mix(in srgb, var(--paper) 50%, transparent); }
@media (max-width: 560px) { .footer-contact { text-align: left; } .footer-grid { align-items: flex-start; } }

/* ---------------- gallery tiles as triggers ---------------- */
.tile:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

/* ---------------- lightbox ---------------- */
body.lb-open { overflow: hidden; }

.lightbox[hidden] { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 3vw, 2rem);
  padding: clamp(1rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: blur(6px);
  animation: lb-fade 0.2s ease;
}
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

.lb-frame {
  margin: 0;
  min-width: min(60vw, 480px);
  min-height: 40vh;
  max-width: min(80vw, 980px);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lb-frame img {
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
  background: var(--stone);
}
.lb-frame figcaption {
  margin-top: 1rem;
  text-align: center;
  color: var(--paper);
}
.lb-frame figcaption span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.lb-frame figcaption em {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 60%, transparent);
  margin-top: 0.2rem;
}
.lb-frame .credit {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--paper) 75%, transparent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 40%, transparent);
}
.lb-frame .credit:hover { color: #fff; }

.lb-nav {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--paper) 25%, transparent);
  background: color-mix(in srgb, var(--ink) 40%, transparent);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.lb-nav:hover { background: var(--terracotta); border-color: var(--terracotta); }
.lb-nav:active { transform: scale(0.94); }

.lb-close {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.5rem);
  right: clamp(0.75rem, 2vw, 1.5rem);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--paper) 25%, transparent);
  background: color-mix(in srgb, var(--ink) 40%, transparent);
  color: var(--paper);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.lb-close:hover { background: var(--terracotta); border-color: var(--terracotta); }

.lb-counter {
  position: absolute;
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--paper) 60%, transparent);
}

@media (max-width: 640px) {
  .lightbox { gap: 0.5rem; }
  .lb-nav { width: 2.4rem; height: 2.4rem; }
  .lb-frame { max-width: 100%; }
}

/* ---------------- blog: shared page hero ---------------- */
.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6rem) var(--edge) clamp(2rem, 5vw, 3rem);
}
.page-hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  color: var(--ink);
}

/* ---------------- blog: post list ---------------- */
.post-list-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--edge) clamp(4rem, 8vw, 6rem);
}
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.post-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  transition: transform 0.2s ease;
}
.post-card:hover { transform: translateY(-3px); }
.post-card-photo {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  background: linear-gradient(155deg, #fffdf7, #f0e8d8);
  box-shadow: 0 14px 28px rgba(27, 26, 23, 0.12), 0 2px 8px rgba(27, 26, 23, 0.07);
  padding: var(--frame-pad, 10px);
  margin-bottom: 1.1rem;
}
.post-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}
.post-card-body time {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.4rem;
}
.post-card-body h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  margin: 0 0 0.4rem;
  color: var(--ink);
}
.post-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.post-list-note {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* ---------------- blog: single post ---------------- */
.post {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) var(--edge) clamp(4rem, 8vw, 6rem);
}
.post-back {
  display: inline-block;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
.post-back:hover { color: var(--terracotta); }
.post-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
  color: var(--ink);
}
.post-header time {
  font-size: 0.85rem;
  color: var(--muted);
}
.post-photo {
  margin: 2rem 0;
  border-radius: 8px;
  background: linear-gradient(155deg, #fffdf7, #f0e8d8);
  box-shadow: 0 16px 32px rgba(27, 26, 23, 0.14), 0 2px 8px rgba(27, 26, 23, 0.08);
  padding: var(--frame-pad, 10px);
}
.post-photo img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  display: block;
}
.post-body p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 1.3rem;
}
