/* ===================================================
   BASE SITE STYLES + TYPOGRAPHY
   =================================================== */

:root {
  --bg: #f7f6f3;
  --ink: #1a1a1a;
  --muted: #8a8a8a;
  --rule: rgba(0,0,0,0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ===================================================
   FONT FACES
   =================================================== */

@font-face {
  font-family: "Trajan Pro";
  src: url("../fonts/TrajanPro-Regular.woff2") format("woff2");
  font-weight: 400;
}

@font-face {
  font-family: "Helvetica Neue UltraLight";
  src: url("../fonts/helvetica-neue-ultra-light.woff2") format("woff2");
  font-weight: 200;
}

/* ===================================================
   SITE HEADER / NAV
   =================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  z-index: 1000;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  position: relative;
}

/* Site title (secret link) */
.site-title {
  font-family: "Trajan Pro", serif;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.site-title a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.site-title a:hover,
.site-title a:visited {
  color: inherit;
}

/* Nav links */
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  justify-self: end;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ===================================================
   PAGE WRAPPER
   =================================================== */

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6.5rem 2rem 6rem;
}

/* ===================================================
   SECTION HEADERS
   =================================================== */

.section-header {
  margin: 5rem 0 6rem;
}

.section-header--full h1 {
  font-family: "Helvetica Neue UltraLight", "Helvetica Neue", sans-serif;
  color: #888785;
  font-size: clamp(4rem, 14vw, 11rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-weight: 200;
  margin: 0;
}

/* ===================================================
   BACK TO TOP
   =================================================== */

.page-footer {
  margin-top: 6rem;
  text-align: center;
}

.back-to-top {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-decoration: none;
  color: #888785;
}

.back-to-top:hover {
  color: var(--ink);
}

/* ===================================================
   MOBILE
   =================================================== */

@media (max-width: 768px) {

  .nav {
    position: relative;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .nav-links {
    display: none;

    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;

    background: #f2f1ee; /* slightly darker than page */
    padding: 1.25rem 1.5rem;

    flex-direction: column;
    gap: 1rem;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 2px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.05rem;     /* larger for mobile */
    letter-spacing: 0.04em;
  }
}

/* =========================
   MOBILE NAV TOGGLE (FIX)
========================= */

.nav-toggle {
  appearance: none;
  -webkit-appearance: none;

  background: none;
  border: none;
  padding: 0;

  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;

  color: var(--muted);   /* matches menu text */
}

.nav-toggle:hover {
  color: var(--ink);
}

.nav-toggle:focus {
  outline: none;
}

.nav-toggle:active {
  color: var(--ink);
}
