/* HOA Diplomacy — serious journal design system */
:root {
  --ink: #1a2332;          /* near-black navy for body text */
  --ink-soft: #4a5568;     /* secondary text */
  --ink-faint: #8a94a6;    /* metadata, captions */
  --paper: #fdfdfb;        /* warm paper white */
  --paper-raised: #ffffff;
  --accent: #1f4e79;       /* deep diplomatic blue */
  --accent-bright: #2d6cb0;
  --rule: #e3e6ec;         /* hairline rules */
  --rule-strong: #1a2332;
  --tag-bg: #eef2f7;
  --max-w: 1080px;
  --measure: 42rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.sans { font-family: "Inter", "Helvetica Neue", Arial, sans-serif; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Masthead ---------- */
.masthead { border-bottom: 3px double var(--rule-strong); }
.masthead .wrap { padding-top: 2.2rem; padding-bottom: 1.1rem; text-align: center; }
.masthead .kicker {
  font-family: "Inter", sans-serif;
  font-size: .7rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: .6rem;
}
.masthead h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  font-weight: 800; letter-spacing: .01em; line-height: 1.05;
}
.masthead h1 a { color: var(--ink); }
.masthead h1 a:hover { text-decoration: none; }
.masthead .tagline {
  font-style: italic; color: var(--ink-soft);
  font-size: .95rem; margin-top: .5rem;
}

/* ---------- Nav ---------- */
.nav { border-bottom: 1px solid var(--rule); background: var(--paper); }
.nav ul {
  list-style: none; display: flex; justify-content: center; gap: 2.2rem;
  padding: .7rem 1rem; flex-wrap: wrap;
}
.nav a {
  font-family: "Inter", sans-serif;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600;
}
.nav a:hover, .nav a.active { color: var(--accent); text-decoration: none; }

/* ---------- Homepage: featured ---------- */
.featured { padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--rule); }
.featured .label {
  font-family: "Inter", sans-serif; font-size: .68rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
  margin-bottom: .9rem;
}
.featured h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.15; font-weight: 700;
  max-width: 46rem;
}
.featured h2 a { color: var(--ink); }
.featured .standfirst {
  max-width: 40rem; color: var(--ink-soft); font-size: 1.15rem;
  margin-top: 1rem; line-height: 1.55;
}
.featured .meta { margin-top: 1.1rem; }
.featured-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 2.5rem; align-items: center; }
.featured-grid img { border: 1px solid var(--rule); }
@media (max-width: 720px) { .featured-grid { grid-template-columns: 1fr; } }

.meta {
  font-family: "Inter", sans-serif; font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint);
}
.meta b { color: var(--ink-soft); font-weight: 600; }

/* ---------- Article list ---------- */
.stream { padding: 2.2rem 0 3rem; }
.stream-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
@media (max-width: 720px) { .stream-grid { grid-template-columns: 1fr; } }
.card { padding: 1.6rem 0; border-bottom: 1px solid var(--rule); }
.card h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem; line-height: 1.25; font-weight: 700;
}
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--accent); text-decoration: none; }
.card .excerpt { color: var(--ink-soft); font-size: .98rem; margin-top: .55rem; }
.card .meta { margin-top: .7rem; }

.section-head {
  font-family: "Inter", sans-serif; font-size: .72rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink);
  border-bottom: 2px solid var(--rule-strong); padding-bottom: .5rem;
  margin-bottom: .4rem;
}

/* ---------- Article page ---------- */
.article-head { padding: 3rem 0 1.8rem; text-align: center; border-bottom: 1px solid var(--rule); }
.article-head h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.12; font-weight: 800;
  max-width: 48rem; margin: 0 auto;
}
.article-head .meta { margin-top: 1.3rem; }
.article-body { max-width: var(--measure); margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.article-body p { margin-bottom: 1.35rem; }
.article-body p:first-of-type::first-letter {
  font-family: "Playfair Display", Georgia, serif;
  float: left; font-size: 3.4em; line-height: .82; font-weight: 700;
  padding-right: .09em; color: var(--accent);
}
.article-body h2, .article-body h3 {
  font-family: "Playfair Display", Georgia, serif;
  margin: 2.2rem 0 .9rem; line-height: 1.25;
}
.article-body blockquote {
  border-left: 3px solid var(--accent); padding-left: 1.2rem;
  margin: 1.6rem 0; color: var(--ink-soft); font-style: italic;
}
.article-body img { margin: 1.8rem auto; border: 1px solid var(--rule); }
.article-body figcaption, .wp-caption-text {
  font-family: "Inter", sans-serif; font-size: .8rem; color: var(--ink-faint);
  text-align: center; margin-top: -1.2rem; margin-bottom: 1.6rem;
}
.article-body ul, .article-body ol { margin: 0 0 1.35rem 1.4rem; }

.article-tags { max-width: var(--measure); margin: 0 auto; padding: 0 1.25rem 3rem; }
.article-tags a {
  display: inline-block; background: var(--tag-bg); color: var(--accent);
  font-family: "Inter", sans-serif; font-size: .72rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 2px; margin: 0 .35rem .5rem 0;
}

.pn { display: flex; justify-content: space-between; gap: 1.5rem; max-width: var(--measure); margin: 0 auto; padding: 0 1.25rem 4rem; }
.pn a { font-family: "Inter", sans-serif; font-size: .85rem; max-width: 45%; }
.pn .lbl { display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .3rem; }

/* ---------- Archive ---------- */
.archive { padding: 2.5rem 0 4rem; }
.archive .year {
  font-family: "Playfair Display", Georgia, serif; font-size: 1.9rem; font-weight: 800;
  border-bottom: 2px solid var(--rule-strong); padding-bottom: .4rem; margin: 2.2rem 0 .3rem;
}
.archive .row {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 1.5rem;
  padding: .85rem 0; border-bottom: 1px solid var(--rule); align-items: baseline;
}
@media (max-width: 560px) { .archive .row { grid-template-columns: 1fr; gap: .2rem; } }
.archive .row .meta { padding-top: .15rem; }
.archive .row a { color: var(--ink); font-size: 1.08rem; font-weight: 600; }
.archive .row a:hover { color: var(--accent); }

/* ---------- Gallery (In Pictures) ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; padding: 2.5rem 0 4rem; }
.gallery figure { border: 1px solid var(--rule); background: var(--paper-raised); }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery figcaption { font-family: "Inter", sans-serif; font-size: .78rem; color: var(--ink-soft); padding: .6rem .7rem; }

/* ---------- Footer ---------- */
.footer { border-top: 3px double var(--rule-strong); margin-top: 2rem; }
.footer .wrap {
  padding: 2rem 1.25rem 2.6rem; text-align: center;
  font-family: "Inter", sans-serif; font-size: .8rem; color: var(--ink-faint);
}
.footer .fname { font-family: "Playfair Display", Georgia, serif; font-size: 1.05rem; color: var(--ink); font-weight: 800; margin-bottom: .4rem; }
