:root {
  --bg: #fdfcfa;
  --text: #24211d;
  --muted: #6b6660;
  --accent: #a05a2c;
  --border: #e7e2da;
  --max-width: 680px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  width: 100%;
  flex: 1 0 auto;
}

header.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.site-header-bar {
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.hero {
  position: relative;
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
  min-height: clamp(380px, min(24vw, 48vh), 520px);
  background-size: cover;
  background-position: center 35%;
  display: flex;
  align-items: flex-end;
  padding: 2rem 1.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.8) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.hero-inner h1 {
  color: #fff;
  font-size: 2rem;
  margin: 0 0 0.4rem;
}

.hero-inner p {
  color: #e8e6e0;
  margin: 0;
  font-size: 1rem;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text);
}

.site-title::after {
  content: ".";
  color: var(--accent);
}

nav.site-nav a {
  margin-left: 1.25rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

h1 {
  font-size: 1.9rem;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.3rem;
  margin-top: 2.5rem;
}

p {
  margin: 0 0 1rem;
}

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

.lede {
  color: var(--muted);
  font-size: 1.05rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  text-decoration: none;
}

.post-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.post-gallery figure {
  margin: 0;
}

.post-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.post-gallery figcaption {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 560px) {
  .post-gallery {
    grid-template-columns: 1fr;
  }
}

.site-footer-bar {
  margin-top: 3rem;
  background: var(--text);
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.footer-inner p {
  margin: 0;
  color: #b8b2a8;
  font-size: 0.85rem;
}

.post-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.post-tile {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.post-tile:hover {
  border-color: var(--accent);
  background: rgba(160, 90, 44, 0.05);
}

.post-tile-title {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.post-tile-date {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

