/* ─────────────────────────────────────────────
   BEN FAWKES — PORTFOLIO
   Global Stylesheet
───────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

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

:root {
  --black:       #0a0a0a;
  --near-black:  #1a1a1a;
  --grey:        #888888;
  --light-grey:  #f0f0f0;
  --border:      #e4e4e4;
  --max:         860px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── NAVIGATION ── */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--black);
  text-decoration: none;
}

.nav-brand:hover {
  opacity: 0.6;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--black);
}

/* ── MAIN CONTAINER ── */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
}

/* ── PAGE HEADER ── */

.page-header {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 80px;
}

.page-title {
  font-size: clamp(56px, 9vw, 88px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--black);
  margin-bottom: 20px;
}

.page-subtitle {
  font-size: 17px;
  font-weight: 400;
  color: var(--grey);
  line-height: 1.65;
  max-width: 540px;
}

/* ── PROJECT ENTRIES ── */

.project {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.project:last-child {
  border-bottom: none;
}

.project-meta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 14px;
}

.project-title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 32px;
}

/* ── IMAGE PLACEHOLDER ── */

.img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--light-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.img-placeholder span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b0b0b0;
  text-align: center;
  padding: 16px;
}

/* ── PROJECT BODY ── */

.project-body p {
  font-size: 16px;
  color: var(--near-black);
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 16px;
}

.project-body p:last-of-type {
  margin-bottom: 0;
}

.project-body ul {
  font-size: 16px;
  color: var(--near-black);
  line-height: 1.8;
  max-width: 640px;
  padding-left: 20px;
  margin-bottom: 16px;
}

.project-body ul li {
  margin-bottom: 6px;
}

.project-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--black);
  padding-bottom: 1px;
  transition: opacity 0.2s ease;
}

.project-link:hover {
  opacity: 0.45;
}

/* ── CLIENTS LINE ── */

.project-clients {
  font-size: 14px;
  color: var(--grey);
  margin-top: 8px;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ── FOOTER ── */

footer {
  border-top: 1px solid var(--border);
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  font-size: 13px;
  color: var(--grey);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--black);
}

/* ── RESPONSIVE ── */

@media (max-width: 640px) {
  nav {
    padding: 20px 24px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .container {
    padding: 0 24px;
  }

  .page-header {
    padding: 64px 0 48px;
    margin-bottom: 48px;
  }

  .project {
    padding: 56px 0;
  }

  .footer-inner {
    padding: 40px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
