@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;600&display=swap');
:root {
  --bg: #ffffff;
  --text: #000000;
  --muted: #555b63;
  --rule: #e8e8e8;
  --accent: #8b6914;
  --footer-bg: #000000;
  --footer-text: #d4a72c;
}
:root[data-theme="dark"] {
  --bg: #121212;
  --text: #e8e8e8;
  --muted: #a3a8af;
  --rule: #3a3a3c;
  --accent: #d4a72c;
  --footer-bg: #000000;
  --footer-text: #d4a72c;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", -apple-system, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  display: flex; flex-direction: column; min-height: 100vh;
  transition: background .2s, color .2s;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong, b { font-weight: 600; }

/* navbar */
.navbar { border-bottom: 2px solid #d4a72c; background: #000; position: sticky; top: 0; z-index: 10; }
.navbar .inner {
  max-width: 930px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.navbar .title { font-family: "Playfair Display", Georgia, serif; font-size: 22px; font-weight: 600; color: #d4a72c; }
.navbar .title:hover { text-decoration: none; }
.navbar ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.navbar ul a { color: #e8e8e8; padding: 6px 7px; font-size: 16px; font-weight: 400; }
.navbar ul a:hover { color: #d4a72c; text-decoration: none; }
.navbar ul a.active { color: #d4a72c; }
#theme-toggle {
  background: none; border: 0; cursor: pointer; padding: 6px; color: #e8e8e8;
  display: inline-flex; align-items: center;
}
#theme-toggle:hover { color: #d4a72c; }
#theme-toggle svg { width: 18px; height: 18px; }
#theme-toggle .sun { display: none; }
:root[data-theme="dark"] #theme-toggle .sun { display: inline; }
:root[data-theme="dark"] #theme-toggle .moon { display: none; }

/* page */
main { flex: 1; width: 100%; max-width: 930px; margin: 0 auto; padding: 48px 16px 64px; }
.post-title { font-family: "Playfair Display", Georgia, serif; font-size: 42px; font-weight: 700; line-height: 1.2; margin: 0 0 6px; }
.desc { font-size: 20px; font-weight: 300; margin: 0 0 28px; }
.page-title { font-family: "Playfair Display", Georgia, serif; font-size: 40px; font-weight: 600; margin: 0 0 18px; }
h2 { font-family: "Playfair Display", Georgia, serif; font-size: 26px; font-weight: 400; margin: 0 0 18px; padding: 0 10px; }
.block { padding: 28px 0 32px; border-bottom: 1px solid var(--rule); }
.block:last-child { border-bottom: 0; }
p { margin: 0 0 16px; }

.profile { float: right; width: 30%; margin: 0 0 16px 24px; }
.profile img { width: 100%; height: auto; display: block; border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,.16), 0 2px 10px rgba(0,0,0,.12); }

.contact { margin-top: 28px; clear: both; }
.contact p { margin: 0 0 4px; }

ul.items { margin: 0; padding: 0 10px 0 38px; }
ul.items li { margin-bottom: 14px; }
.meta { color: var(--muted); }
em { font-style: italic; }

.btn {
  display: inline-block; border: 1px solid var(--accent); color: var(--accent);
  padding: 6px 14px; border-radius: 4px; font-weight: 400;
}
.btn:hover { background: var(--accent); color: var(--bg); text-decoration: none; }
.pdf-frame { width: 100%; height: 900px; border: 1px solid var(--rule); border-radius: 4px; margin-top: 18px; }

footer {
  background: var(--footer-bg); color: var(--footer-text);
  text-align: center; font-size: 14px; padding: 12px 16px;
}

@media (max-width: 576px) {
  main { padding-top: 32px; }
  .post-title, .page-title { font-size: 32px; }
  .desc { font-size: 18px; }
  .profile { float: none; width: 70%; margin: 0 auto 20px; display: block; }
  .pdf-frame { height: 520px; }
  h2 { padding: 0; }
  ul.items { padding: 0 0 0 22px; }
  .navbar ul a { padding: 4px 5px; font-size: 15px; }
}
