:root {
  color-scheme: light;
  --bg: #f7f4ef;
  --paper: #fffdf8;
  --ink: #1d1b18;
  --muted: #6f6a61;
  --line: #d8d0c2;
  --accent: #c1432e;
  --accent-dark: #7e261a;
  --sidebar: #24211d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  min-height: 100vh;
}

.site-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  padding: 2rem;
  background: var(--sidebar);
  color: var(--paper);
}

.site-title {
  display: block;
  color: var(--paper);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 0.95;
  text-decoration: none;
}

.site-description {
  margin: 1.25rem 0 2rem;
  color: #d7cfbf;
  font-size: 0.98rem;
}

.site-nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.site-main {
  width: min(100%, 980px);
  padding: clamp(1rem, 3vw, 3rem);
}

.hero {
  position: relative;
  min-height: 46vh;
  margin-bottom: 2rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero img {
  width: 100%;
  height: 100%;
  min-height: 46vh;
  object-fit: cover;
}

.hero-copy {
  position: absolute;
  left: clamp(1.25rem, 4vw, 3rem);
  bottom: clamp(1rem, 4vw, 2.5rem);
  max-width: 720px;
  color: var(--paper);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.12;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  font-weight: 500;
}

h2 {
  margin: 0.15rem 0 0.75rem;
  font-size: clamp(1.45rem, 2.4vw, 2.3rem);
  font-weight: 500;
}

.post-list {
  display: grid;
  gap: 1.25rem;
}

.post-card,
.page-content,
.post-content {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.post-card time,
.post-header time,
.muted {
  color: var(--muted);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.86rem;
}

.post-card p,
.page-content p,
.post-content p {
  font-size: 1.1rem;
}

.post-content {
  max-width: 760px;
}

.post-content img {
  margin: 1.75rem 0 0.5rem;
  border: 0;
}

.image-caption {
  display: block;
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  line-height: 1.45;
}

.image-triptych {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.75rem 0;
}

.image-triptych img {
  flex: 1 1 0;
  width: 0;
  height: auto;
  margin: 0;
}

.post-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.post-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

pre {
  overflow-x: auto;
  padding: 1rem;
  background: #efe8dc;
  border: 1px solid var(--line);
  white-space: pre-wrap;
}

@media (max-width: 760px) {
  .site-shell {
    display: block;
  }

  .site-sidebar {
    position: static;
    min-height: auto;
    padding: 1.25rem;
  }

  .site-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .site-main {
    padding: 1rem;
  }

  .image-triptych {
    display: block;
  }

  .image-triptych img {
    width: 100%;
    margin-bottom: 0.75rem;
  }
}
