:root {
  --ink: #1c1a17;
  --muted: #6b6259;
  --bg: #faf7f1;
  --accent: #7b2d26;
  --rule: #e0d8ca;
  --measure: 38rem;

  /* "Gentium Plus" has thorough polytonic coverage (breathings, accents,
     iota subscript, etc.) and clean, well-formed Greek capitals. */
  --serif: "Gentium Plus", "Gentium Book Plus", "Palatino Linotype", Palatino,
    "DejaVu Serif", Georgia, serif;
  --display: "Gentium Plus", "Gentium Book Plus", Georgia, serif;
}

* {
  box-sizing: border-box;
}

/* Faint full-page backdrop: the whole, unaltered Caryatid postcard shown as a
   parchment watermark behind all content. Displayed as-is (no cropping or
   pixel edits) to respect the CC BY-NC-ND licence; credited in the footer.
   Source: Boston Public Library, Nicholas Catsimpoolas Collection. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("/images/caryatid.jpg");
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 100% auto;
  opacity: 0.15;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.75;
  /* Common ligatures off so polytonic combos render predictably. */
  font-variant-ligatures: no-common-ligatures;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main,
.site-header,
.site-footer {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Header */
.site-header {
  text-align: center;
  padding-top: 3.5rem;
  padding-bottom: 1.5rem;
}

.site-title {
  font-family: var(--display);
  font-size: 2.6rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-subtitle {
  margin: 0.9rem auto 0;
  max-width: 32rem;
  color: var(--muted);
}

.site-subtitle p {
  margin: 0;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
}

.site-subtitle p::before {
  content: "“";
}

.site-subtitle p::after {
  content: "”";
}

.site-subtitle cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.site-subtitle cite .work {
  font-style: italic;
}

/* Post list (home page) */
.post-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.post-list-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.post-list-link {
  font-family: var(--display);
  font-size: 1.45rem;
  color: var(--accent);
  text-decoration: none;
}

.post-list-link:hover {
  text-decoration: underline;
}

.post-list-desc {
  margin: 0.3rem 0 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}

.post-list-date {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

/* "See more posts" reveal */
.more-posts {
  text-align: center;
  margin: 1.5rem 0 2.5rem;
}

.more-posts-btn {
  font-family: var(--display);
  font-size: 1rem;
  color: var(--accent);
  background: none;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 0.2rem 0.1rem;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.more-posts-btn:hover {
  border-bottom-color: var(--accent);
}

/* Single post */
.post {
  margin: 2rem 0 3rem;
}

.post-title {
  font-family: var(--display);
  font-size: 2.2rem;
  line-height: 1.25;
  margin: 0 0 0.4rem;
}

.post-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 2rem;
}

.post-body p {
  margin: 0 0 1.4rem;
}

.post-body h2,
.post-body h3 {
  font-family: var(--display);
  margin-top: 2.4rem;
}

.post-body blockquote {
  margin: 1.6rem 0;
  padding-left: 1.2rem;
  border-left: 3px solid var(--rule);
  color: var(--muted);
  font-style: italic;
}

.post-body a {
  color: var(--accent);
}

.post-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.8rem 0;
}

.post-body figure {
  margin: 1.8rem 0;
}

.post-body figure img {
  margin: 0;
}

.post-body figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
  text-align: center;
}

.back a {
  color: var(--muted);
  text-decoration: none;
}

.back a:hover {
  color: var(--accent);
}

/* Footer */
.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding-block: 3rem;
}

.site-footer a {
  color: var(--muted);
}

.image-credit {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
