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

:root {
  --bg: #faf8f5;
  --text: #2c2a27;
  --text-muted: #7a756d;
  --border: #e8e3da;
  --accent: #8b7355;
  --quote-border: #c4a882;
  --max-width: 620px;
}

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', Times, serif;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ─── Navigation ──────────────────────────────────────────────────── */

.site-nav {
  padding: 28px 0 0;
}

.site-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-nav a,
.site-nav .wordmark {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--text);
}

/* ─── Main ────────────────────────────────────────────────────────── */

main {
  flex: 1;
}

/* ─── Photo ───────────────────────────────────────────────────────── */

.photo-block {
  text-align: center;
  margin: 44px 0 36px;
}

.photo-block img {
  width: 100%;
  max-width: 460px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.11);
  display: inline-block;
}

/* ─── Homepage hero ───────────────────────────────────────────────── */

.hero {
  padding: 0 0 72px;
  text-align: center;
}

.hero h1 {
  font-size: 1.65rem;
  font-weight: normal;
  line-height: 1.4;
  margin-bottom: 16px;
}

.hero .tagline {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.95rem;
}

.hero .cta {
  display: inline-block;
  margin-top: 36px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: opacity 0.15s;
}

.hero .cta:hover {
  opacity: 0.7;
}

/* ─── Letter / About ──────────────────────────────────────────────── */

.letter {
  padding: 0 0 72px;
}

.letter h2 {
  font-size: 1.25rem;
  font-weight: normal;
  margin-bottom: 24px;
}

.letter p {
  margin-bottom: 20px;
}

.letter blockquote {
  border-left: 3px solid var(--quote-border);
  padding-left: 22px;
  margin: 32px 0;
}

.letter blockquote p {
  font-style: italic;
  color: var(--text);
  margin-bottom: 10px;
}

.letter blockquote p:last-child {
  margin-bottom: 0;
}

.letter .sign-off {
  margin-top: 36px;
  line-height: 1.5;
}

/* ─── 404 ─────────────────────────────────────────────────────────── */

.not-found {
  padding: 96px 0 72px;
  text-align: center;
}

.not-found h1 {
  font-size: 1.5rem;
  font-weight: normal;
  margin-bottom: 20px;
}

.not-found p {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 8px;
}

.not-found .home-link {
  display: inline-block;
  margin-top: 40px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: opacity 0.15s;
}

.not-found .home-link:hover {
  opacity: 0.7;
}

/* ─── Footer ──────────────────────────────────────────────────────── */

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

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer span {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

/* ─── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 480px) {
  html {
    font-size: 17px;
  }

  .hero h1 {
    font-size: 1.45rem;
  }

  .photo-block {
    margin: 32px 0 28px;
  }
}
