/* =========================================================
   PhotoWeb.me — the beauty of wildlife photography
   Full-bleed photo-essay layout — distinct from prior templates
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@400;500;600&display=swap');

:root{
  --ink:      #0B0C0A;
  --paper:    #F7F5F0;
  --ink-soft: #8A8578;
  --line:     rgba(255,255,255,0.18);

  --display: 'Cormorant Garamond', serif;
  --body:    'Inter', sans-serif;
}

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

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

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

::selection{ background: var(--paper); color: var(--ink); }
:focus-visible{ outline: 2px solid var(--paper); outline-offset: 3px; }

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

/* -------------------- topline -------------------- */
.topline{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  mix-blend-mode: difference;
}

@media (max-width: 640px){
  .topline{ padding: 20px 22px; flex-direction: column; gap: 4px; align-items: flex-start; }
}

.topline-brand{
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--paper);
}

.topline-accent{ font-style: italic; }
.topline-tld{ opacity: 0.6; font-size: 0.9em; }

.topline-note{
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper);
  opacity: 0.75;
}

/* -------------------- cover -------------------- */
.cover{
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}

.cover-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-scrim{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,12,10,0.15) 0%, rgba(11,12,10,0.35) 55%, rgba(11,12,10,0.85) 100%);
}

.cover-text{
  position: absolute;
  left: 0; right: 0; bottom: 90px;
  padding: 0 40px;
  max-width: 900px;
}

@media (max-width: 640px){
  .cover-text{ padding: 0 22px; bottom: 70px; }
}

.cover-kicker{
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(247,245,240,0.7);
  margin: 0 0 18px;
}

.cover-text h1{
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin: 0 0 20px;
  max-width: 16ch;
}

.cover-sub{
  font-size: 1.05rem;
  color: rgba(247,245,240,0.8);
  max-width: 52ch;
  margin: 0;
}

.scroll-cue{
  position: absolute;
  right: 40px;
  bottom: 32px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(247,245,240,0.6);
  writing-mode: vertical-rl;
}

@media (max-width: 640px){
  .scroll-cue{ display: none; }
}

/* -------------------- gallery frames -------------------- */
.gallery{
  background: var(--ink);
}

.frame{
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 860px){
  .frame{ grid-template-columns: 1.3fr 0.7fr; min-height: 88vh; }
  .frame-flip{ grid-template-columns: 0.7fr 1.3fr; }
  .frame-flip .frame-img-wrap{ order: 2; }
  .frame-flip .frame-text{ order: 1; }
}

.frame-img-wrap{
  position: relative;
  overflow: hidden;
  min-height: 340px;
}

.frame-img-wrap img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.frame:hover .frame-img-wrap img{
  transform: scale(1.03);
}

.frame-tag{
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: rgba(11,12,10,0.55);
  backdrop-filter: blur(4px);
  color: var(--paper);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 14px;
  border-radius: 999px;
}

.frame-text{
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 48px;
  border-top: 1px solid var(--line);
}

@media (min-width: 860px){
  .frame-text{ border-top: none; }
}

.frame-index{
  font-family: var(--display);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(247,245,240,0.45);
  margin-bottom: 14px;
}

.frame-text h2{
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 0 0 16px;
  max-width: 16ch;
}

.frame-text p{
  color: rgba(247,245,240,0.72);
  font-size: 0.98rem;
  max-width: 38ch;
  margin: 0;
}

/* -------------------- field notes -------------------- */
.notes{
  background: var(--paper);
  color: var(--ink);
  padding: 90px 0;
}

.notes-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 640px){
  .notes-inner{ padding: 0 22px; }
}

.notes-heading{
  font-family: var(--display);
  font-weight: 600;
  font-size: 2.2rem;
  margin: 0 0 40px;
}

.notes-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 700px){
  .notes-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px){
  .notes-grid{ grid-template-columns: repeat(4, 1fr); }
}

.note{
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}

.note-label{
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.note p{
  color: #5A5648;
  font-size: 0.9rem;
  margin: 0;
}

/* -------------------- closer -------------------- */
.closer{
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.closer-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closer-scrim{
  position: absolute;
  inset: 0;
  background: rgba(11,12,10,0.55);
}

.closer-line{
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  line-height: 1.4;
  max-width: 24ch;
  text-align: center;
  padding: 0 32px;
  color: var(--paper);
}

/* -------------------- footer -------------------- */
.site-footer{
  background: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 28px 40px;
  font-size: 0.82rem;
  color: rgba(247,245,240,0.55);
}

@media (max-width: 640px){
  .site-footer{ padding: 24px 22px; }
}

.footer-brand{ color: rgba(247,245,240,0.85); }
