/* ==========================================================================
   WITNESS POST DESIGN SYSTEM — The Salience of Creation
   Single source of truth for all post styling. Edit here only.
   ========================================================================== */

:root {
  --bg-color: #fdfbf7;
  --text-color: #362575;
  --accent-blue: #1c355e;
  --accent-gold: #c5a059;
  --fluid-gap: clamp(1rem, -0.9rem + 0.325vw, 3rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Kameron', 'Merriweather', 'Georgia', serif;
  font-weight: 300;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.5;
  padding: var(--fluid-gap);
  background-image: url('../img/morris-x.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}

p, li, td {
  font-size: clamp(0.85rem, 0.72rem + 0.53vw, 1.05rem);
}

p {
  margin: 0 0 0.9rem 0;
  max-width: 65ch;
  text-align: left;
  text-indent: 2em;
}

.site-kicker {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 600;
  color: #808080;
  text-align: left;
  font-size: clamp(1.3rem, 4vw, 2rem);
  letter-spacing: -1px;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.2rem;
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

.site-kicker a {
  color: inherit;
  text-decoration: none;
}

.site-kicker a:hover {
  color: var(--accent-gold);
}

.site-slugline {
  font-family: 'Merriweather', serif;
  font-weight: bold;
  font-size: .8rem;
  line-height: 1.2;
  color: rgba(54, 37, 117, 0.75);
  text-align: left;
  max-width: 65ch;
  margin: 0 auto 0.8rem auto;
}

h2, h4, h5, h6 {
  font-family: 'Kameron', 'Georgia', serif;
  color: var(--text-color);
  text-align: left;
}

h1 {
  font-size: clamp(1.6rem, 5.5vw + 0.5rem, 2.4rem);
  font-weight: 100;
  line-height: 1.1;
  color: #9b8ec4;
  font-family: 'Kameron', serif;
  letter-spacing: -0.02em;
  margin: 0;
  padding: 0;
  text-decoration: none;
}

h2 {
  font-family: 'Kameron', serif;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 600;
  line-height: 1.2;
  color: #808080;
  margin-top: 0.5em;
  margin-bottom: 0.2em;
}

.academialink {
  text-decoration: none;
  font-family: 'Merriweather', serif;
  font-weight: normal;
  font-style: italic;
  color: var(--text-color);
  border-bottom: 1px dashed rgba(54, 37, 117, 0.4);
  padding-bottom: 1px;
  transition: all 0.2s ease;
}

.academialink:hover {
  color: var(--accent-gold);
  border-bottom: 1px solid var(--accent-gold);
}

cite { font-style: italic; }

/* LAYOUT WRAPPER */
.post-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

/* HERO IMAGE */
/* mitch */
.post-hero-bg {
	display: block;
	width: 100%;
	background: #FEFDFF;
	margin: 0;
	padding: 0;
}

.post-hero-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 65ch;
  margin: 0.5rem auto 0.5rem auto;
}

.post-hero-img {
  width: 100%;
  height: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-radius: 4px;
  margin-bottom: 0;
}

/* PAGE TITLE */
.page-title-block {
  text-align: left;
  max-width: 65ch;
  margin: 0 auto;
  margin-top: 0;
  margin-bottom: 0.3rem;
}

blockquote {
	white-space: pre-line;
	font-family: Merriweather, serif;
    font-size: clamp(0.68rem, 0.58rem + 0.42vw, 0.84rem);
}


/* POST META — byline line, blog convention: "Posted on [date]" */
.post-meta {
  text-align: left;
  max-width: 65ch;
  margin: 0 auto 1.3rem auto;
  font-family: 'Julius Sans One', sans-serif;
  
  font-family: "Source Sans Pro", sans-serif;
  font-weight: bold;

  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: rgba(54, 37, 117, 0.85);
  border-bottom: 1px solid rgba(197, 160, 89, 0.4);
  padding-bottom: 0.8rem;
}

.post-meta time {
  display: inline;
  opacity: 1;
}

.post-meta .meta-sep {
  margin: 0 0.4rem;
  opacity: 0.5;
}

.post-tags {
  margin-top: 0.5rem;
}

.post-tags a {
  color: #6958D3;
  text-decoration: none;
  border-bottom: 1px dotted rgba(28, 53, 94, 0.4);
  margin-right: 0.6rem;
}

.post-tags a:hover {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

/* CONTENT PANEL */
.post-panel {
  background: rgba(253, 251, 247, 0.88);
  max-width: 65ch;
  margin: 0 auto 1rem auto;
  padding: 1.3rem 1.5rem 1.6rem 1.5rem;
  border-radius: 3px;
  text-align: left;
}

/* POST FOOTER NAV — back to blog index, prev/next */
nav.post-nav {
  max-width: 65ch;
  margin: 0 auto 1.2rem auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: 'Julius Sans One', sans-serif;
  
  
  font-family: "Source Sans Pro", sans-serif;
  font-weight: bold;

  
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

nav.post-nav a {
  color: #808080;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

nav.post-nav a:hover {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

/* FOOTER */
footer.broadside-footer {
  border-top: 1px solid rgba(8, 61, 149, 0.15);
  width: 100%;
  padding-top: 1rem;
  margin-top: 0;
}

.footer-colophon {
  text-align: left;
  max-width: 65ch;
  margin: 0 auto;
}

.copyright-line {
  font-size: 0.8rem;
  color: rgba(54, 37, 117, 0.6);
  margin-top: 0.8rem;
  font-family: 'Julius Sans One', sans-serif;
}

/* FLOATING HOME LINK */
.home-box {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.45rem;
  border-radius: 0.15rem;
  background-color: #E0DBD8;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.4);
  text-decoration: none;
}

.home-box span {
  font-family: "Julius Sans One", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(0.55rem, 0.9vw, 0.8rem);
  color: #fdf8e6;
  -webkit-text-stroke: 0.06em #2a1a0d;
  white-space: nowrap;
}

.home-box:hover span,
.home-box:focus-visible span {
  color: #fffdf4;
  -webkit-text-stroke-color: #1a0e05;
}

.home-box:focus-visible {
  outline: 2px solid #f5e2a8;
  outline-offset: 2px;
}