/* =====================================================================
   layout.css — Navbar, footer & shared page chrome
   ---------------------------------------------------------------------
   Everything that frames a page lives here: the fixed top navigation
   (which hides on scroll-down, like the original site), the mobile
   menu, the page header band, and the footer.
   ===================================================================== */

/* Push page content below the fixed navbar */
.page { padding-top: var(--nav-h); }

/* ----------------------------- NAVBAR ----------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(251, 247, 239, 0.85);  /* --paper, translucent */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  /* slide-up transition for the hide-on-scroll behaviour (js/main.js) */
  transition: transform 0.35s ease;
}
.nav.is-hidden { transform: translateY(-100%); }

.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;       /* keep "My Portfolio" on one line */
  margin-right: 24px;
}
.nav__links { display: flex; gap: 30px; align-items: center; }
.nav__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
}
/* animated underline that grows on hover / for the active page */
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--clay);
  transition: width 0.25s ease;
}
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }
.nav__link.is-active { color: var(--clay-ink); }

/* hamburger button — only shown on small screens */
.nav__toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  line-height: 0;
}
.nav__toggle svg { width: 22px; height: 22px; stroke: var(--ink); }

/* the drop-down panel that opens on mobile */
.nav__mobile {
  display: none;
  position: absolute;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 10px var(--pad) 18px;
}
.nav__mobile.is-open { display: block; }
.nav__mobile a {
  display: block;
  padding: 12px 0;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.nav__mobile a:last-child { border-bottom: 0; }

@media (max-width: 760px) {
  .nav__links { display: none; }   /* hide inline links */
  .nav__toggle { display: block; } /* show hamburger    */
}

/* ------------------------- PAGE HEADER BAND ------------------------ */
/* Used at the top of Photos / Videos / About pages */
.page-head {
  text-align: center;
  padding: 64px 0 40px;
}
.page-head h1 {
  font-size: clamp(38px, 9vw, 74px);
  margin-top: 14px;
}
.page-head .rule {           /* the thin double-rule under the title */
  width: 64px; height: 0;
  margin: 26px auto 0;
  border-top: 2px solid var(--clay);
}

/* ------------------------------ FOOTER ----------------------------- */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 40px 0;
  text-align: center;
}
.footer p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink-soft);
}
.footer .footer__meta {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 13px;
  margin-top: 8px;
}
