@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --ink: #1a1208;
  --paper: #f5f0e8;
  --aged: #e8e0cc;
  --rule: #8b7355;
  --accent: #5c3d1e;
  --muted: #7a6a52;
  --comment-bg: #fdf8ee;
  --comment-border: #c8a96e;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  padding: 3rem 1.5rem;
}

/* HEADINGS — universal styles for h1–h6 */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--ink);
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  color: var(--muted);
}

h5 {
  font-size: 0.9rem;
  font-weight: 700;
}

h6 {
  font-size: 0.85rem;
  font-weight: 700;
}

/* MASTHEAD — site header */
.masthead {
  text-align: center;
  border-top: 3px double var(--rule);
  border-bottom: 3px double var(--rule);
  padding: 1.5rem 1rem;
  margin-bottom: 0.5rem;
}

.masthead h1 {
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.masthead h2 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
}

/* NAVIGATION */
nav {
  text-align: center;
  padding: 0.8rem;
  margin-bottom: 3rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  border-bottom: 1px solid var(--rule);
}

nav a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 0.6rem;
}

nav a:hover { text-decoration: underline; }

/* MAIN CONTENT CONTAINER */
.entries {
  max-width: 720px;
  margin: 0 auto;
}

.entry {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--aged);
}

.entry:last-child {
  border-bottom: none;
}

/* ENTRY METADATA */
.entry-date {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.entry-source {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.entry-body {
  font-size: 0.95rem;
  line-height: 1.75;
}

.entry-body p {
  margin-bottom: 1.5rem;
}

.entry-link {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.6rem;
  font-style: italic;
}

.entry-link a {
  color: var(--accent);
}

/* EDITOR'S COMMENTS — square bracket style */
.comment {
  background: var(--comment-bg);
  border-left: 3px solid var(--comment-border);
  padding: 0.6rem 1rem;
  margin: 0.8rem 0;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--accent);
  line-height: 1.5;
}

/* Undated / incomplete entries */
.entry.undated .entry-date {
  color: #aaa;
  font-style: italic;
}

/* ENTRY IMAGES */
.entry-image {
  margin: 1em 0 1.2em;
  max-width: 100%;
  overflow: hidden;
}

.entry-image img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 80vh;
  border: 1px solid var(--rule);
  cursor: zoom-in;
  transition: opacity 0.15s;
}

.entry-image img:hover {
  opacity: 0.88;
}

.entry-image figcaption {
  font-size: 0.8em;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.35em;
}

/* LIGHTBOX OVERLAY */
.wc-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 7, 3, 0.88);
  z-index: 9999;
  cursor: zoom-out;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.wc-lightbox.open {
  display: flex;
}

.wc-lightbox img {
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
  box-shadow: 0 4px 40px rgba(0,0,0,0.7);
  border: 1px solid var(--rule);
  cursor: zoom-out;
}

.wc-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  font-family: Georgia, serif;
  opacity: 0.8;
}

.wc-lightbox-close:hover { opacity: 1; }

/* FOOTER */
footer {
  text-align: center;
  margin-top: 4rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* FULL TRANSCRIPTION (collapsible) */
details.full-text {
  margin-top: 0.9rem;
  border-left: 2px solid var(--aged);
  padding-left: 1rem;
}

details.full-text summary {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  padding: 0.2rem 0;
}

details.full-text summary::-webkit-details-marker { display: none; }

details.full-text summary::before {
  content: '▶  ';
  font-style: normal;
  font-size: 0.7rem;
}

details[open].full-text summary::before {
  content: '▼  ';
}

details.full-text summary:hover { color: var(--accent); }

details.full-text .full-text-body {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink);
}

details.full-text .full-text-body p {
  margin-bottom: 0.7rem;
}

details.full-text .full-text-body h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 1rem 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
