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

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

:root {
  --bg: #f8f7f4;
  --fg: #1a1a1a;
  --muted: #999;
  --border: #e8e5e0;
  --sans: 'DM Sans', sans-serif;
  --max: 580px;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--muted); }

#page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

nav {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

nav a { color: var(--muted); transition: color 0.2s; }
nav a:hover, nav a.active { color: var(--fg); }

.feed { margin-bottom: 5rem; }

.post {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
}

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

.post-photo img { width: 100%; height: auto; display: block; }

.post-photo figcaption {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.post-text .post-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.post-text .post-title a { color: var(--fg); }

.post-body {
  font-size: 0.95rem;
  line-height: 1.75;
  font-weight: 300;
}

.post-body p { margin-bottom: 0.7em; }
.post-body p:last-child { margin-bottom: 0; }

.post-meta {
  margin-top: 0.9rem;
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  gap: 0.75rem;
}

.post-meta a { color: var(--muted); }
.post-meta a:hover { color: var(--fg); }

.pagination {
  padding: 1rem 0 4rem;
  display: flex;
  gap: 2rem;
  font-size: 0.82rem;
}

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

.pagination a:hover { color: var(--fg); }

.page-content {
  padding-bottom: 5rem;
  font-size: 0.95rem;
  line-height: 1.8;
  font-weight: 300;
  max-width: 480px;
}

.page-content p { margin-bottom: 1em; }
.page-content p:last-child { margin-bottom: 0; }
.page-content a { text-decoration: underline; text-underline-offset: 3px; }

.contact-form { max-width: 420px; }

.contact-form label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.4rem 0;
  color: var(--fg);
  outline: none;
  margin-bottom: 1.75rem;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: var(--fg); }

.contact-form textarea { resize: none; height: 100px; }

.contact-form button {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  background: var(--fg);
  color: var(--bg);
  border: none;
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.contact-form button:hover { opacity: 0.75; }

@media (max-width: 600px) {
  html { font-size: 15px; }
  nav { padding: 2rem 0 1.5rem; gap: 1.2rem; }
}
