/* Hofwerk — field journal aesthetic */

:root {
  --bg: #f5f0e8;
  --bg-alt: #ebe5d9;
  --text: #2c2c2c;
  --text-muted: #6b6358;
  --accent: #5a6e4a;
  --accent-light: #7a8e6a;
  --border: #d4cbb8;
  --font-body: 'Source Serif 4', 'Georgia', serif;
  --font-heading: 'Source Serif 4', 'Georgia', serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 720px;
  --max-width-wide: 960px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* --- Layout --- */

.site-header {
  padding: 3rem 2rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.site-header h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.site-header .subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
}

nav.site-nav {
  padding: 1rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

nav.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 1rem;
  transition: color 0.2s;
}

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

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

main.wide {
  max-width: var(--max-width-wide);
}

/* --- Typography --- */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.3;
}

h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
  color: var(--text);
}

h3 {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  color: var(--text-muted);
  font-style: italic;
}

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

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem auto;
  max-width: 120px;
}

/* --- Images --- */

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
}

figure {
  margin: 2.5rem 0;
}

figure img {
  margin: 0 auto;
}

figcaption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-style: italic;
}

/* --- Lists --- */

ul, ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

li {
  margin-bottom: 0.4rem;
}

/* --- Epigraph / lead text --- */

.epigraph {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

/* --- Section divider --- */

.divider {
  text-align: center;
  margin: 3rem 0;
  color: var(--border);
  font-size: 1.2rem;
  letter-spacing: 0.5em;
}

/* --- Footer --- */

.site-footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- Responsive --- */

@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  .site-header {
    padding: 2rem 1.5rem 1.5rem;
  }

  .site-header h1 {
    font-size: 1.8rem;
  }

  main {
    padding: 2rem 1.5rem 3rem;
  }

  nav.site-nav a {
    margin: 0 0.5rem;
  }
}

/* --- Utility --- */

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
