/* ==========================================================================
   ZEYNEP ELBEYLI — shared stylesheet
   Design language: ash / ember / moss — light found inside remnants.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Work+Sans:wght@300;400;500&display=swap');

:root{
  /* -- palette -- */
  --ash:        #15130f;   /* base background, warm near-black */
  --ash-raised: #1c1a14;   /* panels, cards */
  --bone:       #ece4d3;   /* primary text */
  --bone-dim:   #a89f8c;   /* secondary text */
  --moss:       #929d7b;   /* primary accent — growth / nature critique */
  --moss-dim:   #333b2c;   /* moss at low intensity, for hairlines */
  --ember:      #c9793c;   /* signature accent — used sparingly, "the light" */
  --line:       #33301f;   /* hairline borders */

  /* -- type -- */
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body:    'Work Sans', -apple-system, Helvetica, Arial, sans-serif;

  /* -- scale -- */
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --content-max: 72rem;
}

*, *::before, *::after{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
  /* clip, not hidden: "hidden" makes the other overflow axis compute to
     "auto" on a parent, which turns html/body into their own scroll
     container and breaks the header's position:sticky. "clip" prevents
     horizontal scroll without creating that scroll container. */
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  overflow-x: clip;
  background: var(--ash);
  color: var(--bone);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; text-decoration: none; }

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

h1, h2, h3{
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.28;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

p{ margin: 0 0 1.2em; color: var(--bone-dim); max-width: 62ch; }

.eyebrow{
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--moss);
  display: inline-block;
  margin-bottom: 1.2em;
}

/* -- signature element: the ember seam --
   a thin light-in-ash gradient line used as a section divider / underline.
   grows from the center outward on load, respects reduced motion. */
.seam{
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent 0%, var(--ember) 50%, transparent 100%);
  opacity: 0.55;
  transform: scaleX(0);
  transform-origin: center;
  animation: seam-grow 1.6s cubic-bezier(.2,.7,.3,1) forwards;
  animation-delay: 0.15s;
}
@keyframes seam-grow{ to{ transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce){
  .seam{ transform: scaleX(1); animation: none; }
}

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  background: rgba(21, 19, 15, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.logo{
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
/* Logo file is 400x83 natively — shown at half that (200x42) — and
   flex-shrink:0 on both the link and the image keeps it from ever
   being squeezed out of ratio when the nav crowds the header. */
.logo img{ height: 42px; width: auto; flex-shrink: 0; }

.site-nav{
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.2rem);
}
.site-nav a{
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a[aria-current="page"]{
  color: var(--bone);
  border-color: var(--ember);
}

.nav-toggle{
  display: none;
  position: relative;
  z-index: 2;
  background: none;
  border: 1px solid var(--line);
  color: var(--bone);
  width: 42px;
  height: 42px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Intermediate phase: before giving up and collapsing to the hamburger,
   tighten the nav's type a couple of points and its gaps — a smaller
   but still fully-legible size (never below ~11px) buys enough width
   to keep it inline on tablet-ish viewports. */
@media (max-width: 1180px){
  .site-nav{ gap: clamp(0.7rem, 1.6vw, 1.4rem); }
  .site-nav a{ font-size: 0.72rem; letter-spacing: 0.16em; }
}

/* Dims the page behind the open mobile nav; tapping it closes the menu.
   touch-action/overscroll stop a swipe on the backdrop from scrolling the
   page underneath — a scroll lock that needs no layout hacks on <body>. */
.nav-backdrop{
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  touch-action: none;
  overscroll-behavior: contain;
}
.nav-backdrop.open{ opacity: 1; pointer-events: auto; }

/* Switches to the hamburger well before logo + full nav would crowd
   each other — raised from a tighter breakpoint that let the nav
   crush the logo's width against its fixed height. */
@media (max-width: 980px){
  /* CRITICAL: backdrop-filter on the header makes it the containing block
     for its position:fixed descendants, which anchors the nav panel below
     to the header's box (a ~64px strip at the top) instead of the
     viewport. The blur isn't needed at this size — an opaque background
     reads the same over content and keeps the panel viewport-anchored. */
  .site-header{
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgb(21, 19, 15);
  }

  .site-nav{
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 1;
    height: 100vh;
    height: 100dvh; /* dvh accounts for mobile browser chrome; vh is fallback */
    /* Panel scrolls itself if the links don't fit (short landscape
       phones); overscroll-behavior stops that scroll from chaining to
       the page behind once it hits the end. */
    overflow-y: auto;
    overscroll-behavior: contain;
    width: min(58vw, 320px);
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    background: var(--ash-raised);
    border-left: 1px solid var(--line);
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .site-nav.open{ transform: translateX(0); }
  .site-nav a{ font-size: 0.9rem; }
  .nav-toggle{ display: block; }
}

/* Deliberately NOT position:fixed and NOT overflow:hidden on <body>.
   Both break the sticky header — fixed takes body out of flow so sticky
   has no scroll container, and overflow:hidden makes the page jump to
   the top when opened mid-scroll. Scrolling behind the open panel is
   instead held back by touch-action/overscroll-behavior on the backdrop
   and the panel itself (see above). */

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position: relative;
  background:
    linear-gradient(100deg, rgba(21,19,15,0.88) 0%, rgba(21,19,15,0.6) 45%, rgba(21,19,15,0.35) 100%),
    url('../images/hero-bg.jpg') center 35% / cover no-repeat;
}
.hero-inner{
  padding: clamp(4rem, 12vw, 8rem) var(--gutter) clamp(3rem, 8vw, 5rem);
  max-width: var(--content-max);
  margin: 0 auto;
}
.hero h1{
  font-size: clamp(2.1rem, 5.4vw, 4.2rem);
  max-width: 18ch;
}
.hero .lede{
  font-size: 1.05rem;
  max-width: 58ch;
  margin-top: 1.6em;
}
.hero .seam{ margin: 1.8em 0; max-width: 340px; }

/* generic page hero (subpages) — shorter */
.page-hero{
  padding: clamp(2.6rem, 7vw, 4.5rem) var(--gutter) 2rem;
  max-width: var(--content-max);
  margin: 0 auto;
}
.page-hero h1{ font-size: clamp(1.8rem, 4.4vw, 3rem); }

/* ==========================================================================
   Sections / content blocks
   ========================================================================== */
main{ display: block; }

.section{
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter);
  max-width: var(--content-max);
  margin: 0 auto;
}
.section + .section{ border-top: 1px solid var(--line); }

.section-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.grid{
  display: grid;
  /* Force 3 cards per row on wide viewports, keep responsive behavior on small screens */
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2.2rem);
}

@media (max-width: 800px) {
  .grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .grid{ grid-template-columns: 1fr; }
}

.card{
  background: var(--ash-raised);
  border: 1px solid var(--line);
  padding: 1.4rem;
  border-radius: 2px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover{ border-color: var(--moss); transform: translateY(-2px); }
.card .thumb{
  aspect-ratio: 4/5;
  background: linear-gradient(155deg, var(--moss-dim), var(--ash));
  border: 1px solid var(--line);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bone-dim);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
}
/* Real photos (as opposed to the text placeholder box above) sit in
   the same aspect-ratio box without stretching or squashing — shown
   in full at their own proportions, letterboxed rather than cropped. */
.card img.thumb{
  width: 100%;
  object-fit: contain;
  padding: 0;
}
.card h3{ font-size: 1.05rem; margin-bottom: 0.3em; }
.card .meta{ font-size: 0.78rem; color: var(--moss); letter-spacing: 0.06em; margin-bottom: 0.6em; }
.card p{ font-size: 0.9rem; margin-bottom: 0; }

.video-embed{
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--ash);
  border: 1px solid var(--line);
  margin-bottom: 1rem;
  overflow: hidden;
}
.video-embed iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.card--media{
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.card--media img{
  width: 140px;
  height: 140px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex: none;
}
@media (max-width: 480px){
  .card--media{ flex-direction: column; }
  .card--media img{ width: 100%; height: auto; aspect-ratio: 4/3; }
}

/* Feature card: spans two grid columns and lets the image and text
   trade places as the viewport narrows, instead of a fixed side. */
.card--feature{
  grid-column: span 2;
}
.card--feature.card--media{
  align-items: center;
}
.card--feature.card--media img{
  /* Original photo is 774x800px; cap it at 3/4 of 1/4 (3/16) of that
     so it stays small next to the text, shrinking further on small screens. */
  width: auto;
  height: auto;
  max-width: min(100%, 145px);
  max-height: 150px;
  flex: none;
}
@media (max-width: 480px){
  /* Grid drops to 1 column: stop spanning and stack image over text. */
  .card--feature{ grid-column: span 1; }
  .card--feature.card--media{ flex-direction: column; align-items: flex-start; }
  .card--feature.card--media img{ width: 100%; max-width: min(100%, 145px); height: auto; }
}

.placeholder-figure{
  aspect-ratio: 16/10;
  background: linear-gradient(155deg, var(--moss-dim) 0%, var(--ash) 70%);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bone-dim);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 1.5rem;
}

/* two column layout (about page etc) */
.split{
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 780px){
  .split{ grid-template-columns: 1fr; }
}

.portrait{
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border: 1px solid var(--line);
}

.pull-quote{
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--bone);
  border-left: 2px solid var(--ember);
  padding-left: 1.2rem;
  margin: 0 0 2rem;
  max-width: 60ch;
}
.pull-quote cite{
  display: block;
  margin-top: 0.8em;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss);
}

.photo-stack{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.photo-stack img{
  border: 1px solid var(--line);
}

/* contact / form */
.field{
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.3rem;
}
.field label{
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.field input,
.field textarea{
  background: var(--ash-raised);
  border: 1px solid var(--line);
  color: var(--bone);
  font-family: var(--body);
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  border-radius: 2px;
}
.field input:focus,
.field textarea:focus{
  outline: 2px solid var(--ember);
  outline-offset: 1px;
}
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: 1px solid var(--moss);
  color: var(--bone);
  font-family: var(--body);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.btn:hover{ border-color: var(--ember); background: rgba(201,121,60,0.08); }

.contact-list{ list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li{ margin-bottom: 0.9rem; font-size: 0.95rem; color: var(--bone-dim); }
.contact-list a:hover{ color: var(--ember); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 2.4rem var(--gutter) 3rem;
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer .fine{
  font-size: 0.75rem;
  color: var(--bone-dim);
  letter-spacing: 0.04em;
}
.site-footer .social{
  display: flex;
  gap: 1.2rem;
}
.site-footer .social a{
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.site-footer .social a:hover{ color: var(--ember); }

/* skip link for keyboard users */
.skip-link{
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--ember);
  color: var(--ash);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus{
  left: var(--gutter);
  top: 1rem;
}

/* ==========================================================================
   Sub-pages: photo galleries, press-source lists, video grids
   ========================================================================== */

/* Masonry-ish photo grid. Images keep their own aspect ratio (no cropping)
   so portrait and landscape shots both sit naturally in the flow. */
.gallery{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(0.6rem, 1.5vw, 1rem);
}
@media (max-width: 640px){
  .gallery{ grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
.gallery img{
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--ash-raised);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.gallery a:hover img{ border-color: var(--ember); transform: translateY(-2px); }

/* "Seen in" list of press-coverage source links */
.source-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
}
.source-list a{
  font-size: 0.82rem;
  color: var(--bone-dim);
  border-bottom: 1px solid var(--moss-dim);
  transition: color 0.25s ease, border-color 0.25s ease;
  word-break: break-word;
}
.source-list a:hover{ color: var(--bone); border-color: var(--ember); }

/* Back-link above a sub-page title */
.backlink{
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 1.2em;
  transition: color 0.25s ease;
}
.backlink:hover{ color: var(--ember); }

/* Lead paragraph / pull text on sub-pages */
.page-lead{ font-size: 1rem; max-width: 68ch; }
.page-lead em{ color: var(--bone); }
