:root {
  --fg: #000;
  --bg: #fff;
  --muted: #666;
  --gap: clamp(24px, 4vw, 56px);
  --max: 1400px;
  --pad: clamp(16px, 3vw, 32px);
  --font: "Cousine", "Courier New", Courier, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a:hover { opacity: 0.55; }

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

/* ---------- Header ---------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}

.is-home .brand {
  font-size: 36px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.site-nav .icon-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: var(--pad);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ---------- Home ---------- */
.page-home { min-height: 100vh; display: flex; flex-direction: column; }
.page-home main { flex: 1; }

.home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10vh var(--pad);
}

.home-title {
  font-size: clamp(40px, 9vw, 120px);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
  line-height: 1;
}

.home-subtitle {
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* ---------- Portfolio grid ---------- */
.gallery {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) var(--pad) clamp(48px, 6vw, 96px);
  column-count: 3;
  column-gap: var(--gap);
}

.gallery .tile {
  display: block;
  margin: 0 0 var(--gap);
  break-inside: avoid;
  overflow: hidden;
  background: #f4f4f4;
  cursor: zoom-in;
}

.gallery .tile img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.gallery .tile:hover img { transform: scale(1.03); }

.copyright-note {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  padding: 0 var(--pad) 48px;
}

.gallery img, .lightbox img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.gallery .placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: default;
}

/* ---------- About ---------- */
.about {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px var(--pad) 80px;
}

.about .profile-pic {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0 0 40px;
}

.about h1 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0 0 32px;
}

.about h2 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 48px 0 16px;
  color: var(--fg);
}

.about p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 16px;
}

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

.about li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.about li span { color: var(--muted); }

.about .contact a {
  border-bottom: 1px solid #000;
  padding-bottom: 1px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
}

.lightbox button {
  position: absolute;
  background: none;
  border: none;
  font: inherit;
  color: #000;
  font-size: 28px;
  cursor: pointer;
  padding: 16px;
  line-height: 1;
}

.lightbox .lb-close { top: 8px; right: 12px; }
.lightbox .lb-prev  { left: 8px;  top: 50%; transform: translateY(-50%); }
.lightbox .lb-next  { right: 8px; top: 50%; transform: translateY(-50%); }

.lightbox button:hover { opacity: 0.55; }

@media (max-width: 1100px) {
  .gallery { column-count: 2; }
}

@media (max-width: 640px) {
  .gallery { column-count: 1; }
  .site-header { flex-direction: column; gap: 12px; }
  .is-home .brand { font-size: 28px; }
}
