/* ============================================================
   ANGINA.FI — Static portfolio site
   Typography: Oswald (condensed headings) + Source Sans 3 (body)
   Palette: warm whites, dark text, muted pink accents
   ============================================================ */

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

:root {
  --white: #ffffff;
  --off-white: #f7f5f3;
  --text-primary: #1a1714;
  --text-secondary: #5a5550;
  --text-dim: #8a847e;
  --pink-muted: #b0607a;
  --pink-bright: #c44868;
  --rose-dim: #a04040;
  --dark-warm: #1c1613;
  --warm-grey: #4a4040;
  --conv-bg: #1c1613;
  --conv-text: #e8e0d8;
  --conv-hover: #4a4040;
  --warning-bg: #fdf0ee;
  --warning-text: #6a2a2a;
  --warning-accent: #c07060;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--text-primary);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--pink-muted);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--pink-bright); }


/* ============================================================
   BANNER
   ============================================================ */

.banner-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}
.banner-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
.banner-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80%;
  background: linear-gradient(to bottom, transparent 0%, transparent 20%, var(--white) 100%);
  pointer-events: none;
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.site-nav {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 2em;
  padding: 0.5em 1em 0.7em;
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 0.82em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-nav a {
  color: var(--text-primary);
  opacity: 0.35;
  transition: opacity 0.2s;
}
.site-nav a:hover,
.site-nav a.active { opacity: 1; }
.site-nav .home-link {
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.55;
}
.site-nav .home-link:hover { opacity: 1; }
.site-nav .spacer { flex: 1; max-width: 2em; }


/* ============================================================
   HERO (home page)
   ============================================================ */

.hero {
  text-align: center;
  padding: 2em 1em 1em;
}
.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.2em;
}
.hero .tagline {
  font-size: 1.05em;
  font-weight: 300;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 0.6em;
}
.hero .contact-line {
  font-size: 0.85em;
  color: var(--text-dim);
  display: flex;
  justify-content: center;
  gap: 1.8em;
}
.hero .contact-line a { color: var(--text-dim); }
.hero .contact-line a:hover { color: var(--pink-muted); }


/* ============================================================
   EXHIBITION STRIP
   ============================================================ */

.exhibition-strip {
  max-width: 720px;
  margin: 2em auto 0;
  padding: 1.4em 2em;
  border-top: 1px solid rgba(26, 23, 20, 0.08);
  border-bottom: 1px solid rgba(26, 23, 20, 0.08);
  text-align: center;
}
.exhibition-strip .ex-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.5em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 0.15em;
}
.exhibition-strip .ex-info {
  font-size: 0.88em;
  color: var(--text-dim);
  line-height: 1.6;
}
.exhibition-strip .ex-info a {
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(26, 23, 20, 0.15);
}
.exhibition-strip .ex-info a:hover {
  color: var(--pink-muted);
  border-color: var(--pink-muted);
}


/* ============================================================
   SECTION HEADERS
   ============================================================ */

.section-head {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 0.95em;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0.2;
  text-align: center;
  padding: 4.5em 1em 1.8em;
}


/* ============================================================
   FEATURED VIDEOS
   ============================================================ */

.featured-videos {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5em 1em;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
}
.featured-videos video {
  width: 100%;
  display: block;
  border-radius: 2px;
}


/* ============================================================
   GALLERY (masonry)
   ============================================================ */

.gallery {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5em 4em;
}
.gallery-masonry {
  position: relative;
}
.gallery-item {
  cursor: pointer;
  position: absolute;
  transition: opacity 0.3s, transform 0.4s ease;
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: opacity 0.3s;
}
.gallery-item:hover img { opacity: 0.85; }
.gallery-caption {
  padding: 0.5em 0.1em 0;
  font-size: 0.8em;
  line-height: 1.5;
}
.gallery-caption .title {
  font-style: italic;
  color: var(--text-primary);
}
.gallery-caption .meta {
  color: var(--text-dim);
  font-size: 0.92em;
}

/* Before JS runs, stack items visually */
.gallery-masonry:not(.laid-out) .gallery-item {
  position: relative;
  margin-bottom: 2em;
}


/* ============================================================
   ABOUT (home page bottom)
   ============================================================ */

.about-block {
  max-width: 560px;
  margin: 0 auto;
  padding: 1em 1.5em 5em;
  text-align: center;
  font-size: 0.95em;
  color: var(--text-secondary);
  line-height: 1.85;
}
.about-block p + p { margin-top: 0.8em; }


/* ============================================================
   ESSAY LIST PAGE
   ============================================================ */

.essay-list {
  max-width: 640px;
  margin: 0 auto;
  padding: 3em 1.5em 5em;
}
.essay-list-item {
  padding: 1.5em 0;
  border-bottom: 1px solid rgba(26, 23, 20, 0.06);
}
.essay-list-item:first-child {
  padding-top: 0;
}
.essay-list-item h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.3em;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.1em;
}
.essay-list-item h2 a {
  color: var(--text-primary);
  transition: color 0.2s;
}
.essay-list-item h2 a:hover {
  color: var(--pink-muted);
}
.essay-list-item .essay-date {
  font-size: 0.8em;
  color: var(--text-dim);
  margin-bottom: 0.4em;
}
.essay-list-item .essay-excerpt {
  font-size: 0.92em;
  color: var(--text-secondary);
  line-height: 1.7;
}


/* ============================================================
   ESSAY PAGE
   ============================================================ */

.essay {
  max-width: 640px;
  margin: 0 auto;
  padding: 3em 1.5em 5em;
}
.essay-back {
  display: inline-block;
  margin-bottom: 2em;
  font-family: 'Oswald', sans-serif;
  font-size: 0.78em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
}
.essay-back:hover { color: var(--pink-muted); }

.essay-header {
  margin-bottom: 3em;
  text-align: center;
}
.essay-header h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 0.3em;
}
.essay-header .subtitle {
  font-size: 1.1em;
  font-weight: 300;
  color: var(--text-secondary);
  font-style: italic;
}
.essay-header .date {
  display: block;
  margin-top: 0.8em;
  font-size: 0.8em;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.essay p {
  margin-bottom: 1.4em;
  font-size: 1.05em;
  line-height: 1.82;
}

.essay .divider {
  text-align: center;
  margin: 2.5em 0;
  color: var(--text-dim);
  opacity: 0.3;
  font-size: 1.2em;
  letter-spacing: 0.5em;
}

/* Essay images: magazine-style text wrap on desktop */
.essay-img {
  margin: 1.8em 0;
}
.essay-img img {
  display: block;
  max-width: 100%;
}
.essay-img figcaption {
  font-size: 0.78em;
  color: var(--text-dim);
  margin-top: 0.4em;
  font-style: italic;
}

/* Float left or right on desktop */
.essay-img.float-left {
  float: left;
  width: 42%;
  margin: 0.4em 1.8em 1em 0;
}
.essay-img.float-right {
  float: right;
  width: 42%;
  margin: 0.4em 0 1em 1.8em;
}

/* Clearfix after floated images */
.essay .clear { clear: both; }

/* Quote blocks (for Real AF essay) */
.essay .quote-block {
  margin: 1.4em 0;
  padding-left: 1.2em;
  border-left: 2px solid rgba(26, 23, 20, 0.08);
  font-style: italic;
  color: var(--text-secondary);
}
.essay .quote-block p {
  font-size: 1em;
  margin-bottom: 0.8em;
}


/* ============================================================
   REAL AF LANDING
   ============================================================ */

.realaf-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 3em 1.5em 4em;
}
.realaf-page h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 0.3em;
}
.realaf-page .realaf-subtitle {
  text-align: center;
  font-size: 0.92em;
  color: var(--text-dim);
  margin-bottom: 3em;
  line-height: 1.6;
}
.realaf-page .realaf-body {
  font-size: 1.02em;
  line-height: 1.82;
  color: var(--text-secondary);
  margin-bottom: 1.4em;
}
.realaf-page .realaf-body strong {
  color: var(--text-primary);
  font-weight: 400;
}

.realaf-section-head {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 0.85em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0.25;
  margin: 3em 0 1.2em;
}

.essay-teaser {
  padding: 1.2em 1.4em;
  background: var(--off-white);
  border-radius: 4px;
  margin-bottom: 1em;
}
.essay-teaser h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.2em;
}
.essay-teaser h3 a {
  color: var(--text-primary);
}
.essay-teaser h3 a:hover {
  color: var(--pink-muted);
}
.essay-teaser p {
  font-size: 0.88em;
  color: var(--text-secondary);
  line-height: 1.7;
}

.content-warning {
  background: var(--warning-bg);
  color: var(--warning-text);
  border-left: 3px solid var(--warning-accent);
  border-radius: 0 8px 8px 0;
  padding: 0.8em 1.1em;
  font-size: 0.85em;
  margin-bottom: 1.8em;
}
.content-warning strong {
  display: block;
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.3em;
  color: var(--warning-accent);
}

.conv-list { list-style: none; }
.conv-list li { margin-bottom: 0.5em; }
.conv-list a {
  display: block;
  padding: 0.75em 1em;
  border-radius: 12px;
  background: var(--conv-bg);
  color: var(--conv-text);
  font-size: 0.92em;
  transition: background 0.15s;
}
.conv-list a:hover {
  background: var(--conv-hover);
  color: var(--conv-text);
}


/* ============================================================
   CONVERSATION PAGES
   ============================================================ */

.conversation {
  max-width: 680px;
  margin: 0 auto;
  padding: 2em 1.5em 4em;
}
.conversation .conv-date {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.5em;
}
.conversation .conv-back {
  display: inline-block;
  margin-bottom: 1.5em;
  font-family: 'Oswald', sans-serif;
  font-size: 0.78em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.conversation .conv-back:hover { color: var(--pink-muted); }

/* Angina's bubbles: right-aligned, dark */
.msg-angina {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.2em;
}
.msg-angina .bubble {
  max-width: 75%;
  background: var(--dark-warm);
  color: var(--conv-text);
  padding: 0.8em 1.1em;
  border-radius: 18px 18px 4px 18px;
  font-size: 0.95em;
  line-height: 1.65;
}
.msg-angina .speaker {
  display: block;
  font-size: 0.65em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 0.3em;
}

/* Semjaza's text: left-aligned, no bubble */
.msg-semjaza {
  margin-bottom: 1.5em;
  max-width: 85%;
  padding-left: 0.2em;
}
.msg-semjaza .speaker {
  display: block;
  font-size: 0.65em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.3em;
}
.msg-semjaza .stage-direction {
  font-style: italic;
  color: var(--text-dim);
  font-size: 0.92em;
  margin-bottom: 0.3em;
}
.msg-semjaza p {
  font-size: 0.95em;
  line-height: 1.72;
  margin-bottom: 0.5em;
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5em 1.5em 2em;
  border-top: 1px solid rgba(26, 23, 20, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5em 2em;
  font-size: 0.78em;
  color: var(--text-dim);
}
.site-footer .copy { opacity: 0.4; }
.footer-links {
  display: flex;
  gap: 1.5em;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-links a {
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--pink-muted); }


/* ============================================================
   LIGHTBOX
   ============================================================ */

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 2em;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}
.lightbox-caption {
  position: fixed;
  bottom: 1.5em;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.82em;
  color: var(--text-dim);
  max-width: 80vw;
}


/* ============================================================
   SCROLL FADE-IN
   ============================================================ */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 680px) {
  .banner-wrap { height: 140px; }
  .site-nav { gap: 1.2em; font-size: 0.72em; flex-wrap: wrap; }
  .hero h1 { font-size: 2.4rem; }
  .featured-videos {
    grid-template-columns: 1fr;
    gap: 1em;
  }
  .gallery-masonry { /* JS handles single column via column count */ }
  .exhibition-strip { margin-left: 1em; margin-right: 1em; }
  .essay { padding: 2em 1.2em 4em; }
  .essay-img.float-left,
  .essay-img.float-right {
    float: none;
    width: 60%;
    margin: 1.5em auto;
  }
  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* === Poster on Real AF page === */
.realaf-poster {
  max-width: 480px;
  margin: 2.5em auto;
}
.realaf-poster img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

