/* Fred Wolmarans — daily life blog */

:root {
  --bg: #f6f1ea;
  --bg-raised: #fffaf4;
  --ink: #2a241f;
  --muted: #6a5f55;
  --line: #e4d8cb;
  --accent: #9c4a2f;
  --accent-soft: #f3e4d8;
  --shadow: 0 1px 2px rgba(42, 36, 31, 0.04), 0 8px 24px rgba(42, 36, 31, 0.05);
  --radius: 16px;
  --max: 40rem;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 10% -10%, #fbe9d8 0%, transparent 55%),
    var(--bg);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  padding: 1.35rem 0 1.15rem;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 241, 234, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--accent);
  text-decoration: none;
}

.wordmark span {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.15rem;
}

nav {
  display: flex;
  gap: 1.15rem;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

main {
  flex: 1;
  padding: 2.4rem 0 3.5rem;
}

.hero h1,
.page-title,
.post-title {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.lede,
.hero p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 38rem;
  margin: 0 0 1rem;
}

.section-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 560;
  margin: 2.4rem 0 1rem;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.post-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem 1.2rem;
}

.post-card a {
  color: var(--ink);
  text-decoration: none;
}

.post-card a:hover .card-title {
  color: var(--accent);
}

.card-title {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 560;
  margin: 0.15rem 0 0.35rem;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.excerpt {
  margin: 0.35rem 0 0;
  color: var(--ink);
}

.placeholder {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 0.85rem 1rem;
  border-radius: 0 12px 12px 0;
  color: var(--ink);
}

article.post .meta {
  margin-bottom: 1.4rem;
}

.post-media {
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ece4da;
  border: 1px solid var(--line);
}

.post-media img,
.post-media video {
  width: 100%;
}

.post-media figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.65rem 0.9rem 0.8rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose h2,
.prose h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.02em;
  margin: 1.6rem 0 0.6rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.25rem;
}

.back {
  display: inline-block;
  margin-top: 2rem;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.empty {
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 560px) {
  body {
    font-size: 1.05rem;
  }

  .site-header {
    position: static;
  }

  main {
    padding-top: 1.75rem;
  }

  nav {
    gap: 0.9rem;
    width: 100%;
  }
}
