:root {
  --bg: #f7f5f0;
  --paper: #ffffff;
  --ink: #1f2a33;
  --muted: #64707a;
  --sea: #0f5c7a;
  --sea-dark: #0a3f55;
  --line: #e4e0d6;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.65 Georgia, "Iowan Old Style", "Times New Roman", serif;
}

a { color: var(--sea); }
a:hover { color: var(--sea-dark); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.site-header { background: #48525c; }
.banner { display: block; max-width: 1400px; margin: 0 auto; }
.banner img { display: block; width: 100%; height: auto; }
.site-nav { background: var(--sea-dark); font: .95rem system-ui, -apple-system, "Segoe UI", sans-serif; }
.site-nav .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; padding-top: 12px; padding-bottom: 12px; }
.site-nav a { color: #fff; text-decoration: none; opacity: .85; }
.site-nav a:hover { color: #fff; opacity: 1; text-decoration: underline; }

.fb-button {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 6px;
  background: #1877f2; color: #fff; text-decoration: none; font: 600 .9rem system-ui, sans-serif;
}
.fb-button:hover { background: #0f63d6; color: #fff; }
.share { margin-top: 32px; }

main { padding-top: 32px; padding-bottom: 56px; }

.intro { max-width: 680px; margin: 0 auto 32px; text-align: center; }
.intro h1 { font-size: 2.2rem; margin: 0 0 8px; }
.intro p { color: var(--muted); margin: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
}
.card-cover { display: block; aspect-ratio: 4 / 3; background: #dfe9ee; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.no-cover { height: 100%; display: grid; place-items: center; font-size: 3rem; }
.card-body { padding: 16px 20px 20px; }
.card time, .post time {
  font: .8rem system-ui, sans-serif; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
}
.card h2 { font-size: 1.3rem; line-height: 1.3; margin: 4px 0 8px; }
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover { color: var(--sea); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }

.post, .comments, .pager { max-width: 720px; margin-left: auto; margin-right: auto; }
.post header { margin-bottom: 24px; }
.post h1 { font-size: 2.3rem; line-height: 1.2; margin: 4px 0 0; }
.entry img { max-width: 100%; height: auto; display: block; margin: 16px auto; border-radius: 6px; }
.video { margin: 24px 0; }
.video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; background: #000; }
.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin: 20px 0;
}
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }

.pager {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--line); font: .95rem system-ui, sans-serif;
}
.pager a { text-decoration: none; }
.pager .newer { text-align: right; }

.comments { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.comments h2 { font-size: 1.3rem; }
.comments ol { list-style: none; padding: 0; margin: 0; }
.comment { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 12px; font-size: .95rem; }
.comment.reply { margin-left: 32px; border-left: 3px solid var(--sea); }
.comment p { margin: 6px 0 0; }
.comment-meta { font: .85rem system-ui, sans-serif; color: var(--muted); }
.comment-meta strong { color: var(--ink); }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font: .85rem system-ui, sans-serif; padding: 24px 0; text-align: center; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .post h1 { font-size: 1.8rem; }
  .intro h1 { font-size: 1.7rem; }
  .comment.reply { margin-left: 16px; }
}
