/* ===== Variables ===== */
:root {
  --bg: #FAFAF7;
  --text: #2C2423;
  --text-light: #7A6F6D;
  --accent: #B56D50;
  --accent-hover: #9A5A3F;
  --border: #E8E4DF;
  --white: #FFFFFF;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Raleway', system-ui, sans-serif;
  --max-width: 860px;
}

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

/* ===== Base ===== */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ===== Container ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header ===== */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-title:hover {
  color: var(--accent);
}

/* ===== Navigation ===== */
nav {
  display: flex;
  gap: 2rem;
}

nav a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

/* ===== Hero (homepage) ===== */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.hero .tagline {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 480px;
  margin: 0 auto;
}

/* ===== Pages ===== */
.page {
  padding: 4rem 0 5rem;
}

.page h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

/* ===== Content typography ===== */
.content {
  max-width: 65ch;
}

.content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.content p {
  margin-bottom: 1.25rem;
}

.content ul,
.content ol {
  margin: 0 0 1.25rem 1.5rem;
}

.content li {
  margin-bottom: 0.4rem;
}

.content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content a:hover {
  color: var(--accent-hover);
}

.content strong {
  font-weight: 500;
}

.content em {
  font-style: italic;
}

.content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-light);
  font-style: italic;
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}

footer p {
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  nav {
    gap: 1.25rem;
  }

  .hero {
    padding: 3.5rem 0 3rem;
    text-align: left;
  }

  .hero .tagline {
    margin: 0;
  }

  .page {
    padding: 2.5rem 0 3rem;
  }
}
