/* ==========================================================================
   ELIŠKA NOVÁK — one-page editorial photography site
   Ivory / charcoal / muted burgundy accent — Fraunces + Inter
   ========================================================================== */

:root {
  --ivory: #f1ede4;
  --charcoal: #17140f;
  --charcoal-soft: #322d27;
  --line: rgba(23, 20, 15, 0.14);
  --line-strong: rgba(23, 20, 15, 0.26);
  --burgundy: #6e2430;
  --burgundy-soft: #8f3a44;
  --white: #fdfcf9;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1360px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; }
p { margin: 0; }

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

/* -------------------- Skip link -------------------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--charcoal); color: var(--ivory);
  padding: 14px 22px; z-index: 1000; font-size: 14px; letter-spacing: 0.04em;
}
.skip-link:focus { left: var(--gutter); top: 16px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--charcoal-soft);
}
.eyebrow.on-dark { color: rgba(241, 237, 228, 0.75); }

/* ============================== HEADER ============================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px var(--gutter);
  color: var(--ivory);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(241, 237, 228, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  color: var(--charcoal);
  padding-top: 16px; padding-bottom: 16px;
}
.logo { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.03em; font-weight: 500; white-space: nowrap; }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 40px; }
.nav-desktop a {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  position: relative; padding-bottom: 4px;
}
.nav-desktop a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: currentColor; transition: right 0.35s var(--ease);
}
.nav-desktop a:hover::after { right: 0; }

.menu-toggle {
  background: none; border: none; width: 30px; height: 20px; position: relative; padding: 0; color: inherit;
}
.menu-toggle span {
  position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 2px; }
.menu-toggle span:nth-child(2) { top: 10px; }
.menu-toggle span:nth-child(3) { top: 18px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

@media (min-width: 760px) { .nav-desktop { display: block; } .menu-toggle { display: none; } }

.nav-mobile {
  position: fixed; inset: 0; background: var(--charcoal); color: var(--ivory); z-index: 450;
  display: flex; flex-direction: column; justify-content: center; padding: var(--gutter);
  transform: translateY(-100%); transition: transform 0.5s var(--ease);
}
.nav-mobile.is-open { transform: translateY(0); }
.nav-mobile ul { display: flex; flex-direction: column; gap: 4px; }
.nav-mobile a {
  font-family: var(--font-display); font-size: clamp(40px, 13vw, 68px); font-weight: 500;
  display: inline-block; padding: 10px 0; border-bottom: 1px solid rgba(241,237,228,0.12);
}
.nav-mobile-meta { margin-top: 40px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: rgba(241,237,228,0.7); }
.nav-mobile-meta a { text-decoration: underline; text-underline-offset: 3px; }
body.nav-open { overflow: hidden; }

/* ============================== HERO ============================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ivory);
  overflow: hidden;
  background: var(--charcoal);
  padding: 96px var(--gutter) 56px;
}
.hero-frame {
  position: relative;
  width: min(820px, 88vw, calc(78svh * 0.6667));
  aspect-ratio: 832 / 1248;
  flex: none;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,20,15,0.3) 0%, rgba(23,20,15,0.02) 24%, rgba(23,20,15,0.06) 50%, rgba(23,20,15,0.82) 100%);
}
.hero-inner {
  position: relative; z-index: 2; width: 100%; height: 100%;
  padding: 0 28px 28px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 18px;
}
.hero-name {
  font-family: var(--font-display); font-weight: 500; line-height: 0.9;
  font-size: clamp(34px, 7vw, 72px); letter-spacing: -0.005em;
}
.hero-role {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline;
  border-top: 1px solid rgba(241,237,228,0.24); padding-top: 14px;
}
.hero-role span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(241,237,228,0.82); }
.hero-role span:not(:last-child)::after { content: "/"; margin-left: 18px; color: rgba(241,237,228,0.4); }

.scroll-cue {
  position: absolute; left: var(--gutter); bottom: 24px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(241,237,228,0.72);
}
.scroll-cue svg { width: 14px; height: 14px; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; } }

/* ============================== SECTION SCAFFOLD ============================== */
section { position: relative; }
.section-pad { padding: clamp(80px, 12vw, 168px) 0; }
.section-pad-sm { padding: clamp(40px, 6vw, 84px) 0; }
.pad-bottom-tight { padding-bottom: clamp(40px, 6vw, 84px) !important; }
.bg-charcoal { background: var(--charcoal); color: var(--ivory); }

/* ============================== INTRO ============================== */
.intro {
  text-align: center;
  padding: clamp(90px, 14vw, 180px) 0 clamp(64px, 9vw, 120px);
}
.intro-inner { max-width: 900px; margin: 0 auto; }
.intro h1 {
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.12;
  letter-spacing: -0.005em;
}
.intro p {
  margin-top: 28px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--charcoal-soft);
  max-width: 52ch;
  margin-left: auto; margin-right: auto;
}

/* ============================== WORK — editorial sequence ============================== */
.work-header { text-align: center; padding-bottom: clamp(40px, 6vw, 72px); }
.work-header .eyebrow { display: block; margin-bottom: 14px; }
.work-header h2 { font-size: clamp(30px, 5vw, 52px); }

.project { padding: clamp(48px, 7vw, 96px) 0 100px; }
.project-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px;
  margin-bottom: 14px;
}
.project-meta span { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--charcoal-soft); }
.project-meta span:not(:last-child)::after { content: "/"; margin-left: 16px; color: var(--line-strong); }
.project-title-block { text-align: center; padding: 0 var(--gutter) clamp(28px, 4vw, 48px); }
.project-title-block h3 { font-size: clamp(32px, 6vw, 64px); line-height: 1; }
.project-desc { margin-top: 18px; font-size: 16px; color: var(--charcoal-soft); max-width: 46ch; margin-left: auto; margin-right: auto; }

.project-row {
  padding: clamp(20px, 4vw, 40px) var(--gutter) 0;
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: clamp(12px, 2.4vw, 22px);
}
@media (min-width: 640px) { .project-row { grid-template-columns: repeat(3, 1fr); } }
.project-row .frame { overflow: hidden; aspect-ratio: 3/4; }
.project-row .frame img { width: 100%; height: 100%; object-fit: cover; }

.frame { position: relative; }

/* gallery hover + lightbox trigger affordance */
.gallery-thumb { display: block; overflow: hidden; cursor: zoom-in; }
.gallery-thumb img { transition: transform 0.8s var(--ease); }
.gallery-thumb:hover img, .gallery-thumb:focus-visible img { transform: scale(1.035); }

.project-divider { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.project-divider hr { border: none; height: 1px; background: var(--line); }

/* ============================== FULL-SCREEN MOMENT ============================== */
.moment {
  position: relative;
  height: 88svh;
  min-height: 440px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--charcoal);
}
.moment-frame {
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 1200px; height: 100%;
}
.moment-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.moment-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,20,15,0.3) 0%, rgba(23,20,15,0.4) 50%, rgba(23,20,15,0.55) 100%);
}
.moment-text {
  position: relative; z-index: 2; text-align: center; color: var(--ivory);
  font-size: clamp(13px, 2.2vw, 18px);
  letter-spacing: 0.36em; text-transform: uppercase; font-weight: 600;
  padding: 20px 32px;
  background: rgba(23, 20, 15, 0.38);
  backdrop-filter: blur(2px);
}

/* ============================== ABOUT ============================== */
.about-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
}
@media (min-width: 820px) { .about-grid { grid-template-columns: 0.85fr 1.15fr; gap: 72px; } }
.about-frame { aspect-ratio: 4/5; overflow: hidden; }
.about-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.about-text h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 20px; }
.about-text p { color: var(--charcoal-soft); font-size: 17px; max-width: 46ch; margin-bottom: 14px; }
.about-text p:last-child { margin-bottom: 0; }

/* ============================== AVAILABILITY ============================== */
.availability { text-align: center; }
.availability .eyebrow { display: block; margin-bottom: 24px; }
.availability ul {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px;
  font-family: var(--font-display); font-size: clamp(20px, 3.2vw, 32px);
}
.availability li:not(:last-child)::after { content: "·"; margin-left: 28px; color: var(--line-strong); }
.availability-loc { margin-top: 26px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--charcoal-soft); }

/* ============================== CONTACT ============================== */
.contact-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
}
@media (min-width: 820px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 72px; } }
.contact-text { text-align: center; }
@media (min-width: 820px) { .contact-text { text-align: left; } }

.contact h2 {
  font-size: clamp(36px, 7vw, 84px); line-height: 0.98;
}
.contact-sub { margin-top: 20px; font-size: 16px; color: rgba(241,237,228,0.7); max-width: 46ch; }
.contact-text .contact-sub { margin-left: auto; margin-right: auto; }
@media (min-width: 820px) { .contact-text .contact-sub { margin-left: 0; margin-right: 0; } }
.contact-email {
  display: inline-block; margin-top: 44px;
  font-family: var(--font-display); font-size: clamp(24px, 5vw, 42px);
  border-bottom: 1px solid rgba(241,237,228,0.3);
  padding-bottom: 6px;
  transition: border-color 0.3s, color 0.3s;
}
.contact-email:hover { border-color: var(--ivory); color: var(--burgundy-soft); }
.contact-phone { display: block; margin-top: 18px; font-size: 16px; color: rgba(241,237,228,0.75); }
.contact-social { margin-top: 40px; display: flex; gap: 28px; flex-wrap: wrap; }
.contact-text .contact-social { justify-content: center; }
@media (min-width: 820px) { .contact-text .contact-social { justify-content: flex-start; } }
.contact-social a, .contact-social span { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: rgba(241,237,228,0.85); border-bottom: 1px solid transparent; padding-bottom: 3px; }
.contact-social a:hover { border-color: currentColor; color: var(--ivory); }

.contact-image { aspect-ratio: 4/5; overflow: hidden; }
.contact-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

/* ============================== FOOTER ============================== */
.site-footer { background: var(--charcoal); color: rgba(241,237,228,0.7); padding: 40px 0 28px; }
.footer-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 28px;
  border-top: 1px solid rgba(241,237,228,0.14); padding-top: 24px;
}
.footer-brand { font-family: var(--font-display); color: var(--ivory); font-size: 16px; }
.footer-social { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-social a, .footer-social span, .footer-legal a { font-size: 12.5px; color: rgba(241,237,228,0.7); }
.footer-social a:hover, .footer-legal a:hover { color: var(--ivory); }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-meta {
  margin-top: 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px;
  font-size: 12px; color: rgba(241,237,228,0.5);
}
.footer-meta a { text-decoration: underline; text-underline-offset: 3px; color: rgba(241,237,228,0.65); }
@media (max-width: 700px) {
  .footer-meta { justify-content: center; text-align: center; }
}
@media (max-width: 700px) {
  .footer-row { flex-direction: column; text-align: center; }
  .footer-social, .footer-legal { justify-content: center; }
}

/* ============================== COOKIE BANNER ============================== */
.cookie-banner {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: 20px; max-width: 560px;
  background: var(--charcoal); color: var(--ivory); padding: 24px; z-index: 800;
  display: none; gap: 16px; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { font-size: 13.5px; color: rgba(241,237,228,0.85); line-height: 1.6; }
.cookie-banner p a { text-decoration: underline; color: var(--ivory); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cookie-actions button { flex: 1; min-width: 110px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  padding: 13px 22px; border: 1px solid currentColor;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn-dark { color: var(--ivory); background: var(--charcoal); border-color: var(--charcoal); }
.btn-dark:hover { background: var(--burgundy); border-color: var(--burgundy); }
.btn-outline-light { color: var(--ivory); background: transparent; }
.btn-outline-light:hover { background: var(--ivory); color: var(--charcoal); }

/* ============================== LIGHTBOX ============================== */
.lightbox {
  position: fixed; inset: 0; z-index: 950; background: rgba(23,20,15,0.96);
  display: none; align-items: center; justify-content: center; padding: var(--gutter);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 84vh; width: auto; max-width: 100%; margin: 0 auto; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: none; border: 1px solid rgba(241,237,228,0.3); color: var(--ivory);
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { border-color: var(--ivory); background: rgba(241,237,228,0.08); }
.lightbox-close { top: var(--gutter); right: var(--gutter); }
.lightbox-prev { left: var(--gutter); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--gutter); top: 50%; transform: translateY(-50%); }
.lightbox-caption { position: absolute; left: var(--gutter); bottom: var(--gutter); color: rgba(241,237,228,0.75); font-size: 13px; max-width: 60ch; }
@media (max-width: 700px) {
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; }
  .lightbox-close { top: 16px; right: 16px; }
  .lightbox-prev { left: 8px; } .lightbox-next { right: 8px; }
}

/* ============================== LEGAL PAGES ============================== */
.page-hero { padding: 150px var(--gutter) 50px; max-width: var(--max); margin: 0 auto; }
.page-hero h1 { font-size: clamp(40px, 8vw, 88px); line-height: 0.96; }
.legal-content { max-width: 74ch; padding: 0 var(--gutter) clamp(72px, 10vw, 140px); margin: 0 auto; }
.legal-content h2 { font-size: clamp(20px, 3vw, 26px); margin-top: 44px; margin-bottom: 14px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--charcoal-soft); font-size: 15.5px; line-height: 1.75; margin-bottom: 14px; }
.legal-content a { text-decoration: underline; text-underline-offset: 3px; }
.legal-updated { font-size: 13px; color: var(--charcoal-soft); margin-bottom: 36px; }

.error-page {
  min-height: 100svh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 140px var(--gutter) 80px; max-width: var(--max); margin: 0 auto;
}
.error-page .error-num { font-family: var(--font-display); font-style: italic; font-size: clamp(24px,5vw,40px); color: var(--burgundy); }
.error-page h1 { font-size: clamp(38px, 8vw, 84px); margin-top: 12px; max-width: 16ch; line-height: 1.02; }

/* ============================== BACK TO TOP ============================== */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 700;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  color: var(--ivory);
  border: 1px solid rgba(241,237,228,0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, background-color 0.3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--burgundy); }
.back-to-top svg { width: 18px; height: 18px; }

/* ============================== UTIL ============================== */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
