:root {
  --ink: #1a1814;
  --ink-soft: #4a463f;
  --paper: #faf8f3;
  --rule: #d9d2c2;
  --accent: #8a5a2b;
  --link: #2f5d8a;
  --serif: Georgia, "Iowan Old Style", "Source Serif Pro", Cambria, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { background: var(--paper); color: var(--ink); }
body {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 680px; margin: 0 auto; padding: 48px 28px 96px; }
.masthead { border-bottom: 1px solid var(--rule); padding-bottom: 16px; margin-bottom: 36px; display: flex; justify-content: space-between; align-items: baseline; }
.masthead a.brand {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.masthead .tagline { font-family: var(--sans); font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.18em; }
.nav { font-family: var(--sans); font-size: 13px; margin-top: 8px; color: var(--ink-soft); }
.nav a { color: var(--ink-soft); text-decoration: none; margin-right: 14px; }
.nav a:hover { color: var(--accent); }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.25; }
h1 { font-size: 38px; margin: 0 0 8px; letter-spacing: -0.015em; }
h2 { font-size: 24px; margin: 36px 0 14px; }
h3 { font-size: 20px; margin: 28px 0 10px; }
p { margin: 0 0 18px; }
a { color: var(--link); }
a:hover { color: var(--accent); }

article p, article ul, article blockquote { font-size: 19px; }
article blockquote { border-left: 3px solid var(--rule); margin: 0 0 18px; padding: 4px 18px; color: var(--ink-soft); }
article ul { padding-left: 22px; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 36px auto; width: 60%; }

.post-meta { font-family: var(--sans); font-size: 13px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 28px; }
.post-meta .pillar { color: var(--accent); }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.post-list li:last-child { border-bottom: 0; }
.post-list h2 { margin: 0 0 6px; font-size: 26px; }
.post-list h2 a { color: var(--ink); text-decoration: none; }
.post-list h2 a:hover { color: var(--accent); }
.post-list .meta { font-family: var(--sans); font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.15em; }
.post-list .excerpt { color: var(--ink-soft); margin: 8px 0 0; font-size: 17px; }

footer { font-family: var(--sans); font-size: 12px; color: var(--ink-soft); border-top: 1px solid var(--rule); margin-top: 72px; padding-top: 18px; text-align: center; letter-spacing: 0.1em; text-transform: uppercase; }

article figure { margin: 32px 0; text-align: center; }
article figure img {
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 3px;
}
article figure.figure-small img { max-height: 420px; }
article figure.hero { margin: 0 0 36px; }
article figure.hero img {
  width: 100%;
  max-width: 100%;
  max-height: 380px;
  height: 380px;
  object-fit: cover;
  border-radius: 4px;
}
article figcaption { font-family: var(--sans); font-size: 13px; color: var(--ink-soft); text-align: center; margin-top: 10px; font-style: italic; line-height: 1.4; }
article img { max-width: 100%; height: auto; }

/* ── Admin ───────────────────────────────────────────────────────────── */
.admin-bar { background: #2a261f; color: #f5efe2; padding: 10px 16px; font-family: var(--sans); font-size: 13px; display: flex; gap: 18px; justify-content: center; }
.admin-bar a, .admin-bar form button { color: #f5efe2; background: none; border: 0; cursor: pointer; text-decoration: none; font: inherit; padding: 0; }
.admin-bar a:hover, .admin-bar form button:hover { color: #d6b78a; }
.editor { display: grid; gap: 14px; }
.editor label { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--ink-soft); }
.editor input[type=text], .editor select, .editor textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--rule); background: #fff;
  font: 16px var(--sans); color: var(--ink); border-radius: 4px;
}
.editor textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; min-height: 480px; line-height: 1.5; }
.editor .row { display: flex; gap: 12px; flex-wrap: wrap; }
.editor .row > * { flex: 1 1 220px; }
.btn { background: var(--accent); color: #fff; border: 0; padding: 10px 22px; font: 14px/1 var(--sans); border-radius: 4px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn:hover { background: #6c4520; color: #fff; }
.btn.secondary { background: transparent; color: var(--ink-soft); border: 1px solid var(--rule); }
.btn.danger { background: #a83232; }
.login { max-width: 360px; margin: 80px auto; padding: 28px; border: 1px solid var(--rule); border-radius: 6px; }
.flash { padding: 10px 14px; background: #fff6e1; border: 1px solid #e6cf99; border-radius: 4px; margin-bottom: 16px; font-family: var(--sans); font-size: 14px; }
.flash.error { background: #fde7e7; border-color: #d9a3a3; }

/* === home page texture upgrade === */
.home-intro { margin: 0 0 32px; padding: 0 0 24px; border-bottom: 1px solid var(--rule); }
.home-intro p { font-size: 17px; color: var(--ink-soft); font-style: italic; line-height: 1.55; margin: 0; }

.pillar-arbitrage-life        { --pillar-color: #8a5a2b; }
.pillar-medical-freedom       { --pillar-color: #2d6464; }
.pillar-money-without-borders { --pillar-color: #4d6b3e; }
.pillar-on-the-ground         { --pillar-color: #a8553e; }
.pillar-the-leap              { --pillar-color: #4a5d7e; }

.pillar-chip {
  display: inline-block; font-family: var(--sans); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--pillar-color, var(--accent)); text-decoration: none;
  padding: 3px 8px; border: 1px solid var(--pillar-color, var(--accent));
  border-radius: 3px; margin-right: 12px; transition: background 0.15s, color 0.15s;
}
.pillar-chip:hover { background: var(--pillar-color, var(--accent)); color: #fff; }
.meta-date { font-family: var(--sans); font-size: 12px; color: var(--ink-soft);
             text-transform: uppercase; letter-spacing: 0.15em; }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-card {
  display: grid; grid-template-columns: 150px 1fr; gap: 22px;
  align-items: start; padding: 24px 0; border-bottom: none;
}
.post-card .thumb {
  display: block; width: 150px; aspect-ratio: 5 / 4; overflow: hidden;
  border-radius: 4px; border: 1px solid var(--rule); background: #f3eee2;
  text-decoration: none; color: var(--pillar-color, var(--accent));
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-svg { width: 100%; height: 100%; display: block; }
.post-card-body { min-width: 0; }
.post-card-body .meta { margin-bottom: 8px; display: flex; align-items: center;
                        flex-wrap: wrap; gap: 8px; }
.post-card h2 { margin: 0 0 6px; font-size: 26px; line-height: 1.2; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent); }
.post-card .excerpt { color: var(--ink-soft); margin: 6px 0 0; font-size: 17px; line-height: 1.55; }

.ornament { list-style: none; text-align: center; padding: 4px 0; color: var(--rule); }
.ornament svg { display: inline-block; width: 200px; height: 16px; opacity: 0.8; }

.site-footer { border-top: 1px solid var(--rule); margin-top: 72px; padding-top: 22px;
               font-family: var(--sans); color: var(--ink-soft); text-align: center; }
.site-footer .footer-links {
  display: flex; gap: 18px; justify-content: center; font-size: 13px;
  letter-spacing: 0.05em; margin-bottom: 14px;
}
.site-footer .footer-links a {
  color: var(--ink-soft); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 1px;
}
.site-footer .footer-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.site-footer .footer-mark { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }

@media (max-width: 580px) {
  .post-card { grid-template-columns: 1fr; gap: 14px; }
  .post-card .thumb { width: 100%; max-width: 320px; }
}

/* === newsletter subscribe === */
.subscribe-block {
  margin: 56px 0 0;
  padding: 28px 32px;
  background: #f3eee2;
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}
.subscribe-block h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
}
.subscribe-blurb {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 16px;
  line-height: 1.5;
}
.subscribe-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}
.subscribe-form input[type=email] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  background: #fff;
  font: 16px var(--sans);
  color: var(--ink);
  border-radius: 4px;
}
.subscribe-form input[type=email]:focus {
  outline: none;
  border-color: var(--accent);
}
.subscribe-form .btn {
  white-space: nowrap;
}
.subscribe-confirm h1 { color: var(--ink); margin: 32px 0 12px; }
.subscribe-confirm .ok { color: #2d6464; }
.subscribe-confirm .err { color: #a83232; }
