/* Jenna Schmitt Photography — draft portfolio */
:root {
  --bg: #f4efe8;
  --bg-alt: #efe7dc;
  --paper: #fffcf7;
  --ink: #2c2622;
  --muted: #6d645c;
  --accent: #7c4f3a;
  --accent-hover: #633d2c;
  --line: #e2d6c8;
  --shadow: 0 18px 50px rgba(44, 38, 34, 0.12);
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.05rem;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

.wrap { width: min(var(--max), calc(100% - 2.4rem)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 239, 232, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.4rem;
}
.logo {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.logo span { display: block; font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.22em; font-weight: 500; color: var(--muted); margin-top: -0.15rem; }

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 2.4rem;
  height: 2.4rem;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.3rem;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  place-items: end stretch;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero img.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20,16,14,0.15) 10%, rgba(20,16,14,0.55) 70%, rgba(20,16,14,0.78) 100%);
}
.hero-content { padding: 0 0 5.5rem; }
.hero-kicker {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 0.8rem;
  opacity: 0.9;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.95;
  margin: 0 0 0.8rem;
  letter-spacing: 0.02em;
}
.hero p.lede {
  max-width: 28rem;
  font-size: 1.15rem;
  margin: 0 0 1.8rem;
  color: rgba(255,255,255,0.9);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
}
.btn-primary { background: var(--paper); color: var(--ink); }
.btn-primary:hover { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #1a1614; color: var(--paper); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* Sections */
section { padding: 5rem 0; }
section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  margin: 0 0 0.6rem;
  letter-spacing: 0.02em;
}
.section-intro { color: var(--muted); max-width: 36rem; margin: 0 0 2.4rem; }

/* Gallery */
.gallery { background: var(--paper); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.7rem;
}
.gallery-grid a {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
  grid-column: span 2;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
}
.gallery-grid a.half { grid-column: span 3; aspect-ratio: 3 / 4; }
.gallery-grid a.full { grid-column: 1 / -1; aspect-ratio: 2.4 / 1; }
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-grid a:hover img,
.gallery-grid a:focus-visible img { transform: scale(1.04); }
.gallery-grid a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.about-portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.55), transparent 45%),
    linear-gradient(160deg, #d7c4b2 0%, #b08a72 48%, #7c4f3a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--paper);
  padding: 1.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
  box-shadow: var(--shadow);
}
.about-copy p { margin: 0 0 1rem; color: #3d362f; }
.about-meta { margin: 1.6rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.98rem; }
.about-meta li { margin: 0 0 0.35rem; }
.about-meta strong { color: var(--ink); font-weight: 600; }

/* Services */
.services { background: var(--bg-alt); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem;
}
.service-card h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
}
.service-card p { margin: 0; color: var(--muted); }
.note {
  margin: 1.6rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; }
.contact-list li { margin: 0 0 0.85rem; }
.contact-list span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list a { color: var(--ink); font-size: 1.15rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { color: var(--accent); border-color: var(--accent); }
.contact-list .with-flag { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.6rem; }
.contact-list .with-flag a { border-bottom: 1px solid var(--line); }
.placeholder-flag {
  display: inline-block;
  margin-left: 0;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid #d9b5a4;
  background: #f7ece6;
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
  vertical-align: middle;
}

form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  gap: 0.85rem;
}
label { font-size: 0.85rem; color: var(--muted); }
input, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid #c9a394; border-color: var(--accent); }
form button { justify-self: start; margin-top: 0.3rem; }
.form-note { margin: 0; font-size: 0.85rem; color: var(--muted); }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; }
footer a { color: var(--muted); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(16, 13, 11, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(100%, 1100px); max-height: 90vh; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1.2rem 1.2rem;
  }
  nav.is-open { display: block; }
  nav ul { flex-direction: column; gap: 0.9rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid a,
  .gallery-grid a.half { grid-column: auto; }
  .gallery-grid a.full { grid-column: 1 / -1; aspect-ratio: 2.2 / 1; }
  .about-grid, .contact-grid, .service-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 22rem; }
  section { padding: 3.6rem 0; }
  .hero-content { padding-bottom: 3.5rem; }
}

@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid a,
  .gallery-grid a.half,
  .gallery-grid a.full { grid-column: auto; aspect-ratio: 3 / 4; }
}
