:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --text: #2a2622;
  --muted: #7a7168;
  --accent: #c8553d;
  --border: #e8e0d5;
  --radius: 14px;
  --max: 1040px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1815;
    --surface: #26221e;
    --text: #f1ebe3;
    --muted: #a39a8f;
    --accent: #ee866c;
    --border: #3a342d;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 Georgia, "Iowan Old Style", "Times New Roman", serif;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

header.site { border-bottom: 1px solid var(--border); }
header.site .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px;
}
.brand {
  font: 700 1.3rem -apple-system, "Segoe UI", sans-serif;
  color: var(--text); text-decoration: none; letter-spacing: -0.02em;
}
.brand span { color: var(--accent); }
nav { display: flex; gap: 22px; font: 500 0.95rem -apple-system, "Segoe UI", sans-serif; }
nav a { color: var(--muted); text-decoration: none; padding-bottom: 2px; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); border-bottom: 2px solid var(--accent); }

main { padding: 48px 0 72px; }
h1, h2, h3 { font-family: -apple-system, "Segoe UI", sans-serif; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 0 0 12px; }
.lede { color: var(--muted); font-size: 1.15rem; max-width: 640px; margin: 0 0 36px; }

.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.tile {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.tile .pic {
  aspect-ratio: 4 / 3; position: relative; display: grid; place-items: center;
  font-size: 3.4rem; background: linear-gradient(135deg, var(--c1), var(--c2));
}
.tile .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .body { padding: 16px 18px 20px; }
.tile h3 { margin: 0 0 4px; font-size: 1.1rem; }
.tile p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.tag {
  display: inline-block; margin-top: 10px; font: 600 0.72rem -apple-system, sans-serif;
  text-transform: uppercase; letter-spacing: .06em; color: var(--accent);
}

.section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 56px 0 18px; }
.section-head h2 { margin: 0; font-size: 1.4rem; }
.section-head a { font: 500 0.95rem -apple-system, sans-serif; }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 20px 0; border-bottom: 1px solid var(--border); }
.post-list h3 { margin: 0 0 4px; font-size: 1.25rem; }
.post-list h3 a { color: var(--text); text-decoration: none; }
.post-list h3 a:hover { color: var(--accent); }
.meta { color: var(--muted); font: 0.85rem -apple-system, sans-serif; }

article.post { max-width: 680px; }
article.post h2 { margin-top: 2em; }

.about { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 760px) { .about { grid-template-columns: 280px 1fr; } }
.portrait {
  aspect-ratio: 1; border-radius: var(--radius); display: grid; place-items: center;
  font-size: 5rem; background: linear-gradient(135deg, #f2b79f, #c8553d); overflow: hidden; position: relative;
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

footer.site { border-top: 1px solid var(--border); color: var(--muted); font: 0.88rem -apple-system, sans-serif; }
footer.site .wrap { padding-top: 24px; padding-bottom: 32px; }
