@import url('https://fonts.googleapis.com/css2?family=Aladin&display=swap');

:root {
  --bg: #e8e3d8;
  --text: #2a2a2a;
  --text-muted: #666;
  --accent: #c0392b;
  --about-card: #d4a55a;
  --gap: 6px;
  --nav-font: 'Aladin', cursive;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--nav-font);
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ── HEADER ── */
#site-header header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
}

#site-header .logo img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

#site-header nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

#site-header nav a {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
  transition: opacity 0.2s;
}

#site-header nav a:hover { opacity: 0.5; }
#site-header nav a.active { font-weight: 600; }

/* ── GALLERY (masonry columns) ── */
.gallery {
  padding: 0.5rem 2rem 3rem;
  columns: 3 280px;
  column-gap: var(--gap);
  flex: 1;
}

.gallery a {
  display: block;
  break-inside: avoid;
  margin-bottom: var(--gap);
  overflow: hidden;
  cursor: zoom-in;
}

.gallery img {
  width: 100%;
  display: block;
  transition: opacity 0.25s;
}

.gallery a:hover img { opacity: 0.88; }

/* placeholder for missing images */
.gallery .img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: #ccc8bc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #888;
  letter-spacing: 0.05em;
}

/* ── WORK GRID ── */
.work-grid {
  padding: 1rem 2rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  flex: 1;
}

.work-tile {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  display: block;
  background: #ccc8bc;
}

.work-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, opacity 0.3s;
}

.work-tile:hover img {
  transform: scale(1.04);
  opacity: 0.92;
}

.work-tile-label {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  color: #fff;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  pointer-events: none;
}

/* ── WORK SUB-PAGE ── */
.page-back {
  padding: 0.5rem 2rem 0.5rem;
  font-size: 0.85rem;
  opacity: 0.6;
  letter-spacing: 0.05em;
}

.page-back a:hover { opacity: 0.5; }

.page-title {
  padding: 0.5rem 2rem 1rem;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

/* ── ABOUT ── */
.about-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 3rem 4rem;
}

.about-inner {
  position: relative;
  max-width: 860px;
  width: 100%;
}

.about-photo {
  width: 65%;
  display: block;
  object-fit: cover;
}

.about-card {
  position: absolute;
  right: 0;
  top: 8%;
  width: 46%;
  background: var(--about-card);
  padding: 2.5rem;
  color: #fff;
}

.about-card h1 {
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.about-card p {
  font-size: 0.9rem;
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 1rem;
}

/* ── CONTACT ── */
.contact-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 0.5rem;
}

.contact-label {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 0.5rem;
}

.contact-email {
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}

.contact-email:hover { opacity: 0.7; }

/* ── FOOTER ── */
#site-footer footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.6rem;
  padding: 2rem;
  margin-top: auto;
}

#site-footer footer a {
  color: var(--text);
  font-size: 1.2rem;
  transition: opacity 0.2s;
  line-height: 1;
}

#site-footer footer a:hover { opacity: 0.45; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .gallery { columns: 3; }
  .work-grid { grid-template-columns: 1fr; }
  #site-header header { padding: 1rem 1.5rem; }
  #site-header .logo img { width: 64px; height: 64px; }
  #site-header nav { gap: 1.2rem; }
  #site-header nav a { font-size: 0.85rem; }
  .about-wrap { padding: 1.5rem; }
  .about-card { position: static; width: 100%; margin-top: 1rem; }
  .about-photo { width: 100%; }
}

@media (max-width: 500px) {
  .gallery { columns: 2; }
  #site-header nav { gap: 0.8rem; }
  #site-header nav a { font-size: 0.75rem; }
}
