/* ============================================
   The Men Who Made Us — Shared Stylesheet
   ============================================ */

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

:root {
  --white: #faf8f5;
  --black: #1a1a1a;
  --mid: #555555;
  --border: #e0dbd4;
  --warm: #9c7c4a;
  --max-width: 720px;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--white);
  color: var(--black);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.8;
}

/* ── Navigation ── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
}

nav a {
  text-decoration: none;
  color: var(--black);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: Georgia, serif;
}

nav a:hover {
  color: var(--mid);
}

nav a.active {
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
}

/* ── Page wrapper ── */

.page {
  padding-top: 80px;
}

/* ── Project title ── */

.project-title {
  text-align: center;
  padding: 1.5rem 2rem 0;
}

.project-title h1 {
  font-size: 1.6rem;
  font-weight: normal;
  letter-spacing: 0.2em;
  color: var(--black);
}

.project-subtitle {
  font-size: 0.9rem;
  color: var(--mid);
  letter-spacing: 0.04em;
  margin-top: 0.3rem;
  font-style: italic;
}

/* ── Hero ── */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 2rem 30px;
}

.hero img {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
}

.hero-name {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: normal;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--mid);
  max-width: 240px;
  margin-left: auto;
  margin-right: auto;
}

.hero-dates {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--mid);
  text-align: center;
  letter-spacing: 0.08em;
}

/* ── Opening excerpt ── */

.excerpt {
  max-width: var(--max-width);
  margin: 30px auto 5px;
  padding: 0 2rem;
}

.excerpt p {
  margin-bottom: 1.6rem;
  font-size: 0.95rem;
}

/* ── Buttons ── */

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 2rem;
  border: 1px solid var(--black);
  color: var(--black);
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background-color: var(--black);
  color: var(--white);
}

.btn-center {
  display: block;
  text-align: center;
  margin: 2rem auto 0;
  width: fit-content;
}

/* ── Divider ── */

.divider {
  width: 80px;
  border: none;
  border-top: 2px solid var(--warm);
  margin: 60px auto;
  opacity: 0.6;
}

/* ── Project description (homepage) ── */

.project-intro {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 80px;
  text-align: center;
}

.project-intro p {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.9;
  margin-bottom: 2rem;
}

/* ── Essay page ── */

.essay-header {
  max-width: var(--max-width);
  margin: 60px auto 50px;
  padding: 0 2rem;
  text-align: center;
}

.essay-title {
  font-size: 1.5rem;
  font-weight: normal;
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 0;
}

.essay-author {
  font-size: 1.1rem;
  color: var(--black);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.page-title {
  font-size: 1.6rem;
  font-weight: normal;
  font-style: normal;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.essay-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 100px;
}

.essay-body p {
  margin-bottom: 1.8rem;
  font-size: 0.95rem;
}

.essay-body img {
  width: 100%;
  height: auto;
  display: block;
  margin: 3rem 0;
}

.essay-body .photo-caption {
  font-size: 0.8rem;
  color: var(--mid);
  text-align: center;
  margin-top: -2rem;
  margin-bottom: 3rem;
}

/* ── Form page ── */

.form-wrap {
  max-width: 640px;
  margin: 60px auto 100px;
  padding: 0 2rem;
}

.form-wrap h1 {
  font-size: 1.4rem;
  font-weight: normal;
  margin-bottom: 0.8rem;
}

.form-wrap .form-intro {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  color: var(--black);
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: Georgia, serif;
  font-size: 0.9rem;
  color: var(--black);
  padding: 0.5rem 0.75rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--black);
}

.form-group textarea {
  height: 200px;
  resize: vertical;
  line-height: 1.7;
}

/* ── Essay dedication ── */

.essay-dedication {
  font-size: 0.8rem;
  color: var(--mid);
  text-align: center;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

/* ── Photo album ── */

.photo-album {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0 3rem;
}

.photo-album figure {
  margin: 0;
}

.photo-album img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: top;
  display: block;
  margin: 0;
}

.photo-album figcaption {
  font-size: 0.8rem;
  color: var(--mid);
  margin-top: 0.6rem;
  line-height: 1.5;
  font-style: italic;
}

@media (max-width: 640px) {
  .photo-album {
    grid-template-columns: 1fr;
  }
}

/* ── Footer ── */

footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--mid);
  letter-spacing: 0.08em;
}

footer a {
  color: var(--mid);
  text-decoration: none;
}

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

/* ── Mobile ── */

@media (max-width: 640px) {
  nav {
    gap: 1.4rem;
    padding: 1rem 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    font-size: 0.75rem;
  }

  .hero {
    padding: 60px 1.2rem 40px;
  }

  .hero-name {
    font-size: 1.2rem;
  }

  .essay-title {
    font-size: 1.3rem;
  }
}
