/* ============================= */
/* BETWEEN, STILL – Refined Edition */
/* ============================= */

:root {
  --bg: #f4f2ef;
  --text: #1a1a1a;
  --muted: #6a6a6a;
  --line: #dcd8d3;
  --max-width: 1200px;

  /* Global section accent (used for page titles + select labels) */
  --section-ink: #4a3b3b;     /* maroon-charcoal */
  --section-muted: #6f6a66;   /* warm gray */

  /* Journal-specific (shared, so page CSS can stay minimal) */
  --journal-title: #3f3f3f;   /* soft charcoal */
  --journal-summary: #666666; /* slightly lighter than body */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'EB Garamond', serif;
  line-height: 1.8;
  letter-spacing: 0.2px;
  font-size: 20px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px 60px;
}

.section-break {
  margin-top: 80px;
}

/* ============================= */
/* Masthead                      */
/* ============================= */

.site-header {
  text-align: center;
  padding: 34px 24px 18px; /* your tightened spacing */
  border-bottom: none;     /* remove full-width thin line */
  position: relative;
}



/* Thicker, shorter divider (about 50% width) */
.site-header::after {
  content: "";
  display: block;
  height: 2px;                 /* thickness */
  width: 50%;                  /* not full width */
  max-width: 560px;            /* prevents it getting too wide */
  margin: 22px auto 0;         /* space above the divider */
  background: var(--line);
}

.masthead {
  font-size: 28px;
  letter-spacing: 5px;
  font-weight: 500;
}

.tagline {
  font-style: italic;
  font-size: 17px;
  margin-top: 8px;
  color: var(--muted);
}

.nav {
  margin-top: 30px;
}

.nav a {
  margin: 0 22px;
  text-decoration: none;
  color: var(--text);
  font-size: 16px;
  position: relative;
  padding-bottom: 6px;
}

.nav a.active::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: var(--text);
  bottom: 0;
  left: 0;
}

.nav .subscribe-link{
  padding: 6px 14px;
  border: 1px solid #c8beb0;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav .subscribe-link:hover{
  background: #f3efe8;
  border-color: #b8ab98;
}

/* ============================= */
/* Shared Page Title             */
/* ============================= */

.page-title{
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.6px;
  margin-bottom: 18px;
  color: var(--section-ink);
}

/* Optional helper for “section labels” in small UI blocks */
.section-label{
  color: var(--section-muted);
}

/* ============================= */
/* Two-Page Spread               */
/* ============================= */

.spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  position: relative;
}

.spread::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  height: 100%;
  width: 40px;
  pointer-events: none;

  background: radial-gradient(
    ellipse at center,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.05) 30%,
    rgba(0,0,0,0.02) 55%,
    transparent 70%
  );
}

.page {
  padding: 0 20px;
}

.page h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 34px;
  letter-spacing: 1px;
}

.page p {
  margin-bottom: 24px;
  font-size: 20px;
}

/* ============================= */
/* Stewardship Portrait          */
/* ============================= */

.profile-float {
  float: right;
  width: 200px;
  margin: 0 0 25px 40px;
}

.profile-float img {
  width: 100%;
  height: auto;
}

.profile-caption {
  font-size: 14px;
  margin-top: 8px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* ============================= */
/* Divider                       */
/* ============================= */

.page-divider {
  margin: 60px 0 20px 0;
  position: relative;
}

.page-divider::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--line);
}

/* ============================= */
/* Contact Section               */
/* ============================= */

.contact-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 34px;
}

.contact-section p {
  font-size: 16px;
  text-transform: none;   /* was uppercase */
  letter-spacing: 0.3px;  /* was 1px */
  color: var(--section-muted);
  margin-bottom: 10px;
}

/* ============================= */
/* Footer                        */
/* ============================= */

footer{
  border-top: none;               /* remove full-width rule */
  text-align: center;
  padding: 42px 20px;
  font-size: 16px;                /* bigger + readable */
  color: var(--muted);
  margin-top: 70px;
  position: relative;
}

/* 50% divider line above footer content */
footer::before{
  content: "";
  display: block;
  height: 2px;                    /* slightly thicker */
  width: 50%;
  max-width: 560px;
  margin: 0 auto 26px;
  background: var(--line);
}

footer a{
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.25);
}

footer a:hover{
  border-bottom-color: var(--muted);
}

/* Separator between items */
.footer-sep{
  display: inline-block;
  margin: 0 10px;
  color: var(--line);
}

/* ============================= */
/* Journal + Essay Pages         */
/* ============================= */

.kicker {
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px 0;
}

.essay-title {
  margin: 0 0 6px 0;
  letter-spacing: 1px;
  font-weight: 600;
  font-size: 40px;
}

/* Essay title variant to match Journal typography */
.essay-title--case{
  text-transform: none;
  letter-spacing: 0.9px;      /* closer to journal featured title */
  font-size: 38px;            /* slightly smaller than 40 */
  color: var(--journal-title);/* same as journal page */
}

.essay-dek {
  margin: 0 0 16px 0;
  font-style: italic;
  color: var(--muted);
  font-size: 22px;
}

.meta {
  margin-top: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--text);
  font-size: 16px;
  color: var(--text);
}

.meta a {
  color: inherit;
  text-decoration: none;
}

.meta a:hover {
  text-decoration: underline;
}

.essay-block {
  margin: 34px 0;
}

/* Base image behavior (layout controls margins) */
.essay-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Micro-ID under anchor images */
.micro-id {
  margin: 0 0 22px;
  font-size: 16px;
  color: var(--muted);
  letter-spacing: 0.3px;
}

/* Image pairs */
.image-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 26px 0;
}

@media (min-width: 820px) {
  .image-pair {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

.post-engagement {
  max-width: 1060px;
  margin: 80px auto 0;
  padding: 0 20px 40px;
  overflow: visible;
}

.post-engagement-divider {
  width: 1020px;
  height: 1px;
  background: #b7ab98;
  margin: 0 0 34px 0;
}

.post-share,
.post-comments-intro {
  margin-bottom: 28px;
}

.post-engagement-title {
  font-family: "EB Garamond", serif;
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.2;
  color: #2f2b26;
  margin: 0 0 12px 0;
}

.post-comments-intro p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: #5f5a52;
  max-width: 640px;
}

.post-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.post-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid #cfc5b8;
  background: transparent;
  color: #443f38;
  text-decoration: none;
  font-family: "EB Garamond", serif;
  font-size: 0.92rem;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

button.post-share-btn,
a.post-share-btn {
  font-family: "EB Garamond", serif;
  font-size: 0.92rem;
  line-height: 1;
}

.post-share-btn:hover {
  background: #f4efe8;
  border-color: #b7ab98;
}

.post-share-btn:focus {
  outline: none;
  border-color: #9f927f;
  background: #f4efe8;
}

#cusdis_thread {
  margin-top: 24px;
}

/* Small screens */
@media (max-width: 768px) {
  .post-engagement {
    margin-top: 60px;
    padding: 0 16px 32px;
  }

  .post-engagement-title {
    font-size: 1.45rem;
  }

  .post-share-buttons {
    gap: 8px;
  }

  .post-share-btn {
    padding: 9px 12px;
    font-size: 0.88rem;
  }
}

#cusdis_thread {
  margin-top: 24px;
  width: 100%;
  overflow: visible;
}

#cusdis_thread iframe {
  width: 100% !important;
  min-height: 560px !important;
  height: auto !important;
  border: 1px solid #d2c8bb;
  background: #fcfbf8;
  overflow: visible;
  display: block;
}



/* ============================= */
/* Essay Image Frames + Numbering */
/* ============================= */

.figure {
  margin: 26px 0;
}

.figure .essay-image {
  border: 1px solid var(--line);
}

.img-no {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 4px 8px;
}

/* Diptych / Pair Frame */
.pair-frame {
  border: 1px solid var(--line);
  padding: 18px;
  margin: 34px 0;
  background: transparent;
}

.pair-frame .image-pair {
  margin: 0;
}

.pair-frame .essay-image {
  border: none;
}

.pair-item {
  display: flex;
  flex-direction: column;
}

/* Image Index formatting */
.index ol {
  padding-left: 1.25rem;
}

.index li {
  margin: 0.35rem 0;
}

.index .idx-no {
  color: var(--muted);
  letter-spacing: 1px;
}

/* ============================= */
/* Author Bio Block              */
/* ============================= */

.author-bio {
  margin-top: 34px;
}

.author-bio p {
  margin-bottom: 16px;
}

.author-links a {
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid rgba(0,0,0,0.25);
}

.author-links a:hover {
  border-bottom-color: var(--text);
}

/* ============================= */
/* Callout Box (global)          */
/* ============================= */

.callout{
  border: 1px solid var(--line);
  padding: 16px 18px;
  background: rgba(255,255,255,0.12);
  margin: 18px 0;
}

.callout .label{
  color: var(--section-muted);
  font-size: 16px;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

.callout .label:last-child{ margin-bottom: 0; }

.callout a{
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.25);
}

.callout a:hover{
  border-bottom-color: var(--text);
}

.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 56px;
  height: 56px;
  border: 1px solid #d7d1c7;
  border-radius: 50%;
  background: rgba(244, 241, 236, 0.92);
  color: #8c8478;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.2s ease, border-color 0.2s ease;
  z-index: 999;
  -webkit-appearance: none;
  appearance: none;
}

.back-to-top:hover {
  background: rgba(180, 180, 180, 0.98);
  border-color: #b7ab98;
  color: #6f675c;
}

.back-to-top:focus {
  outline: none;
  background: rgba(239, 234, 227, 0.98);
  border-color: #9f927f;
  color: #6f675c;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-arrow {
  font-family: Arial, sans-serif;
  font-size: 30px;
  line-height: 1;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .back-to-top {
    right: 18px;
    bottom: 18px;
    width: 50px;
    height: 50px;
  }

  .back-to-top-arrow {
    font-size: 26px;
  }
}

.site-header--with-subscribe{
  position: relative;
}

.subscribe-cta{
  position: absolute;
  top: 34px;
  right: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #d3cabd;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.subscribe-cta:hover{
  background: #f1ede6;
  border-color: #c4b8a7;
}

@media (max-width: 1100px){
  .subscribe-cta{
    right: 32px;
    top: 28px;
  }
}

@media (max-width: 760px){
  .subscribe-cta{
    position: static;
    margin: 20px auto 0;
  }

  .site-header--with-subscribe .nav{
    margin-top: 22px;
  }
}

/* ============================= */
/* Responsive Collapse           */
/* ============================= */

@media (max-width: 1000px) {
  .spread {
    grid-template-columns: 1fr;
    gap: 80px;
  }

  .spread::before {
    display: none;
  }

  .profile-float {
    float: none;
    margin: 0 0 30px 0;
    width: 220px;
  }

  body {
    font-size: 19px;
  }

  .essay-title { font-size: 34px; }
  .essay-dek { font-size: 20px; }

  .page-title { font-size: 26px; }
}