/* ----------------------------- */
/* Root Colors */
/* ----------------------------- */

:root {
  --bg: #f6f2ec;
  --surface: #efe8df;
  --surface-soft: #f3ede6;

  --text: #1f1b18;
  --muted: #6f665d;

  --accent: #c79b76;
  --accent-dark: #af825d;

  --border: #ddd2c5;
}

/* ----------------------------- */
/* Reset */
/* ----------------------------- */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

/* ----------------------------- */
/* Layout */
/* ----------------------------- */

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ----------------------------- */
/* Navigation */
/* ----------------------------- */

.site-header {
  border-top: 1px solid rgba(0,0,0,0.08);
}

.nav {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 24px 0;
  display: flex;
  gap: 24px;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
  transition: color .2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-dark);
}

/* ----------------------------- */
/* Hero */
/* ----------------------------- */

.hero {
  margin-top: 30px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.04em;
}

.accent {
  color: var(--accent-dark);
}

.intro {
  margin-top: 28px;
  font-size: 1.25rem;
  line-height: 1.8;
  color: #3d362f;
}

.subintro {
  margin-top: 20px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}

.inline-link {
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(175,130,93,.4);
}

.inline-link:hover {
  border-bottom-color: var(--text);
  color: var(--text);
}

/* ----------------------------- */
/* Social Links */
/* ----------------------------- */

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface-soft);
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--muted);
  transition: all .2s ease;
}

.social-link:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ----------------------------- */
/* Sections */
/* ----------------------------- */

.section {
  margin-top: 70px;
}

h2 {
  margin: 0 0 18px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: -0.02em;
}

/* ----------------------------- */
/* Project Cards */
/* ----------------------------- */

.cards {
  display: grid;
  gap: 16px;
}

.card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 22px;
  transition: all .2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* ----------------------------- */
/* Lists */
/* ----------------------------- */

.list {
  padding-left: 18px;
  color: var(--muted);
}

.list li {
  margin-bottom: 10px;
  line-height: 1.7;
}

/* ----------------------------- */
/* Photos Page */
/* ----------------------------- */

.photo-grid {
  column-count: 2;
  column-gap: 10px;
}

.photo-card {
  break-inside: avoid;
  margin-bottom: 18px;

  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);

  cursor: pointer;
  position: relative;
}

.photo-card img {
  width: 100%;
  height: 260px;    
  display: block;
  object-fit: cover;

  transition: transform 0.4s ease, filter 0.3s ease;
}

.photo-card:hover img {
  transform: scale(1.03);
  filter: brightness(0.82);
}

/* Expand icon on hover */
.photo-card::after {
  content: "↗";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.photo-card:hover::after {
  opacity: 1;
}

.photo-card figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.photo-card.photo-wide img {
  height: 420px;      /* wide = taller, more visual weight */
}

/* ----------------------------- */
/* Reading Page */
/* ----------------------------- */

.reading-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.reading-list li {
  margin-bottom: 16px;
}

.reading-list a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid rgba(0,0,0,0.15);
}

.reading-list a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent-dark);
}

.reading-note {
  display: block;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 4px;
}
/* ----------------------------- */
/* Lightbox */
/* ----------------------------- */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 10, 0.93);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-inner img {
  display: block;
  max-width: 88vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  object-fit: contain;
  transition: opacity 0.18s ease;
}

.lightbox-caption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  min-height: 20px;
  font-family: "Inter", sans-serif;
}

.lightbox-counter {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.22);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-family: "Inter", sans-serif;
}

.lightbox-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  transition: background 0.2s ease, transform 0.2s ease;
  user-select: none;
  backdrop-filter: blur(4px);
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease, color 0.2s ease;
  backdrop-filter: blur(4px);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

/* ----------------------------- */
/* Responsive */
/* ----------------------------- */

@media (max-width: 900px) {
  .photo-card,
  .photo-card.photo-wide {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 28px 20px 70px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-card,
  .photo-card.photo-wide {
    grid-column: auto;
  }

  .photo-card img {
    height: 260px;
  }

  .lightbox-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}