/* alex ravski — homepage, quiet editorial style */

:root{
  --bg: #d8d4c6;
  --ink: #1c1b18;
  --ink-soft: #55523f;
  --ink-faint: #8f8b78;
  --sidebar-w: 240px;
  --gutter: 36px;
}

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

body{
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- sidebar ---------- */

.sidebar{
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  padding: 44px 0 40px 44px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.wordmark{
  font-size: 30px;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-transform: lowercase;
  margin-bottom: 46px;
}

.side-tagline{
  margin: -30px 0 40px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.09em;
  text-transform: lowercase;
  color: var(--ink-faint);
}

.side-nav{
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.side-nav a{
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: lowercase;
  color: var(--ink);
  transition: color .18s ease;
  width: fit-content;
}

.side-nav a:hover{ color: var(--ink-faint); }
.side-nav a.active{ color: var(--ink-faint); }

.side-nav-secondary{ margin-top: 30px; }

.side-social{ margin-top: 28px; }
.ig-link{ color: var(--ink); transition: color .18s ease; display: inline-block; }
.ig-link:hover{ color: var(--ink-faint); }

/* ---------- content ---------- */

.content{
  margin-left: var(--sidebar-w);
  padding: 44px 56px 0 24px;
}

.lead{
  max-width: 1220px;
  margin-bottom: var(--gutter);
}

.lead .ph{ cursor: pointer; }

.columns{
  display: flex;
  gap: var(--gutter);
  align-items: flex-start;
  max-width: 1220px;
}

.col{
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gutter);
}

.ph{
  width: 100%;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
  background: #fdfdfb;
  padding: 10px;
}

.ph.visible{ opacity: 1; transform: none; }

.ph img{ width: 100%; height: auto; }

/* ---------- about / footer ---------- */

.about{
  max-width: 560px;
  padding: 120px 0 90px;
}

.about-portrait{
  width: 300px;
  margin-bottom: 34px;
  filter: saturate(.92);
  background: #fdfdfb;
  padding: 8px;
}

.about-text{
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

.about-sub{ margin-top: 16px; }
.about-text a{ border-bottom: 1px solid var(--ink-faint); }

.about-contact{
  margin-top: 34px;
  display: flex;
  gap: 24px;
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: lowercase;
}
.about-contact a:hover{ color: var(--ink-faint); }

.about-copy{
  margin-top: 44px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}

/* ---------- lightbox ---------- */

.lightbox{
  position: fixed; inset: 0;
  background: rgba(24,23,20,.96);
  display: none;
  z-index: 100;
}
.lightbox.open{ display: block; }

.lb-stage{
  position: absolute; inset: 56px 72px 76px;
  display: flex; align-items: center; justify-content: center;
}

#lbImage{
  max-width: 100%; max-height: 100%;
  opacity: 0; transition: opacity .35s ease;
}
#lbImage.loaded{ opacity: 1; }

.lb-close, .lb-nav{
  position: absolute;
  background: none; border: none;
  color: rgba(255,255,255,.75);
  font-size: 30px;
  cursor: pointer;
  z-index: 102;
  padding: 10px 16px;
  font-family: inherit;
  transition: color .15s ease;
}
.lb-close:hover, .lb-nav:hover{ color: #fff; }

.lb-close{ top: 10px; right: 16px; }
.lb-nav{ top: 50%; transform: translateY(-50%); font-size: 44px; font-weight: 200; }
.lb-prev{ left: 10px; }
.lb-next{ right: 10px; }

.lb-caption{
  position: absolute;
  left: 0; right: 0; bottom: 24px;
  text-align: center;
  color: rgba(255,255,255,.82);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}
.lb-caption span{ margin: 0 10px; }
.lb-location{ color: rgba(255,255,255,.5); }
.lb-count{ color: rgba(255,255,255,.35); }

/* ---------- mobile ---------- */

@media (max-width: 860px){
  .sidebar{
    position: static;
    width: auto;
    padding: 34px 24px 6px;
  }
  .wordmark{ margin-bottom: 28px; }
  .side-tagline{ margin: -14px 0 22px; }
  .lead{ margin-bottom: 26px; }
  .side-nav{
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 18px;
  }
  .side-nav-secondary{ margin-top: 14px; }
  .side-social{ margin-top: 18px; }

  .content{ margin-left: 0; padding: 26px 24px 0; }
  .columns{ display: block; }
  .col{ display: block; }
  .ph{ margin-bottom: 26px; padding: 7px; }

  .about{ padding: 70px 0 60px; }
  .lb-stage{ inset: 50px 12px 70px; }
}
