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

/* ── TOKENS ── */
:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray: #888;
  --border: #e8e8e8;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --nav-h: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: var(--white);
  z-index: 200;
}

.site-title {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--black);
  text-decoration: none;
}

/* ── HAMBURGER ── */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 300;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── OVERLAY MENU ── */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 250;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 40px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.nav-overlay.open { opacity: 1; pointer-events: all; }
.nav-overlay nav { display: flex; flex-direction: column; gap: 8px; }
.nav-overlay nav a {
  font-size: 28px;
  font-weight: 400;
  color: var(--black);
  text-decoration: none;
  line-height: 1.4;
  transition: opacity 0.15s;
}
.nav-overlay nav a:hover { opacity: 0.45; }
.nav-overlay .nav-footer {
  margin-top: auto;
  font-size: 12px;
  color: var(--gray);
}
.nav-overlay .nav-footer a { color: var(--gray); text-decoration: none; }

/* ── PAGE WRAP ── */
.page-wrap {
  margin-top: var(--nav-h);
  padding: 60px 28px 100px;
  max-width: 760px;
}

/* ── PAGE TITLE ── */
.page-title {
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 52px;
}

/* ── TAGLINE ── */
.tagline {
  margin-bottom: 52px;
}
.tagline p {
  font-size: 15px;
  color: var(--black);
  line-height: 1.6;
}

/* ── PROJECT LIST (homepage) ── */
.project-list { list-style: none; }

.project-item {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.project-item:last-child { border-bottom: 1px solid var(--border); }

.project-date {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.project-name {
  font-size: 16px;
  font-weight: 400;
  color: var(--black);
  text-decoration: none;
  display: inline-block;
  border-bottom: 1px solid var(--black);
  margin-bottom: 8px;
  line-height: 1.3;
  transition: opacity 0.15s;
}
.project-name:hover { opacity: 0.5; }

.project-desc {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}
.project-desc span { display: block; }

/* ── SUBPAGE CONTENT ── */
.subpage-intro {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 48px;
  max-width: 640px;
}

/* ── PART / ENTRY structure ── */
.entry {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}
.entry:last-child { border-bottom: 1px solid var(--border); }

.entry-part {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
}

.entry-quote {
  font-size: 15px;
  font-style: italic;
  color: #333;
  line-height: 1.65;
  margin-bottom: 14px;
  max-width: 600px;
}

.entry-title {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 4px;
}
.entry-sub {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 16px;
}

.entry-text {
  font-size: 14px;
  line-height: 1.75;
  color: #333;
  max-width: 620px;
  margin-bottom: 20px;
}
.entry-text p { margin-bottom: 1em; }
.entry-text p:last-child { margin-bottom: 0; }

/* ── IMAGES ── */
.entry-img {
  width: 100%;
  max-width: 640px;
  height: auto;
  display: block;
  margin: 16px 0;
}

.img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 640px;
  margin: 16px 0;
}
.img-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* ── FOTOS QUE AFETAM ── */
.foto-number {
  font-size: 36px;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 8px;
  line-height: 1;
}
.foto-caption-pt { font-size: 14px; color: #333; line-height: 1.65; margin-bottom: 6px; }
.foto-caption-en { font-size: 13px; color: var(--gray); line-height: 1.5; margin-bottom: 4px; }
.foto-credit { font-size: 12px; color: var(--gray); letter-spacing: 0.04em; font-style: italic; }

/* ── SOBRE ── */
.sobre-text {
  font-size: 18px;
  line-height: 1.65;
  color: var(--black);
  max-width: 580px;
  margin-bottom: 40px;
}
.sobre-sig {
  font-size: 14px;
  color: #555;
  font-style: italic;
  margin-bottom: 32px;
}
.sobre-links { display: flex; gap: 24px; }
.sobre-links a {
  font-size: 14px;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.15s;
}
.sobre-links a:hover { opacity: 0.5; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px;
  font-size: 12px;
  color: var(--gray);
  display: flex;
  justify-content: space-between;
}
footer a { color: var(--gray); text-decoration: none; }
footer a:hover { color: var(--black); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .page-wrap { padding: 40px 20px 80px; }
  header { padding: 0 20px; }
  .img-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 6px; }
}

/* ── JS TOGGLE ── */
body.menu-open { overflow: hidden; }
