/* ============================================================
   THE HEAVY LIFE — Ghost Theme Stylesheet
   ============================================================ */

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Lexend:wght@300;400;500&family=Azeret+Mono:wght@300;400&display=swap');

/* ── VARIABLES ── */
:root {
  --linen: #f7f3ed;
  --cream: #ede7dc;
  --warm: #e2d8ca;
  --clay: #c4b5a2;
  --timber: #8a7a66;
  --earth: #5c5044;
  --charcoal: #3a342d;
  --night: #2a2420;
  --wine: #7a3b3b;
  --wine-light: #944a4a;
  --honey: #c49a5c;
  --gh-font-heading: 'Cormorant Garamond', Georgia, serif;
  --gh-font-body: 'Lexend', -apple-system, sans-serif;
  --heading: var(--gh-font-heading);
  --body: var(--gh-font-body);
  --mono: 'Azeret Mono', monospace;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--linen);
  color: var(--charcoal);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}


/* ============================================================
   LAYOUT
   ============================================================ */

.col { max-width: 700px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.col-wide { max-width: 1000px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }

.spacer { height: 2.5rem; }
.spacer-lg { height: 4rem; }

.sep { max-width: 700px; margin: 0 auto; padding: 0 1.5rem; }
.sep hr { border: none; height: 1px; background: var(--warm); }


/* ============================================================
   NAV
   ============================================================ */

.site-nav {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.site-nav-brand {
  font-family: var(--heading);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--charcoal);
  text-decoration: none;
}

.site-nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: baseline;
}

.site-nav-links a {
  font-family: var(--body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--timber);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav-links a:hover { color: var(--wine); }

.site-nav-subscribe {
  background: var(--wine);
  color: var(--linen) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 2px;
  transition: background 0.2s !important;
}

.site-nav-subscribe:hover {
  background: var(--wine-light) !important;
  color: var(--linen) !important;
}


/* ============================================================
   HERO (homepage)
   ============================================================ */

.hero {
  max-width: 700px;
  margin: 0 auto;
  padding: 6rem 1.5rem 3rem;
}

.hero h1 {
  font-family: var(--heading);
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin-bottom: 2rem;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--wine);
}

.hero-desc {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--timber);
  max-width: 520px;
}


/* ============================================================
   IMAGES
   ============================================================ */

.img-full { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; }
.img-full .img-frame { width: 100%; aspect-ratio: 21/9; overflow: hidden; }

.img-inset { max-width: 700px; margin: 0 auto; padding: 0 1.5rem; }
.img-inset .img-frame { width: 100%; aspect-ratio: 3/2; overflow: hidden; }

.img-diptych {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.img-diptych .img-frame { width: 100%; aspect-ratio: 4/5; overflow: hidden; }

.img-frame {
  position: relative;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

/* Gradient for text readability on overlays */
.img-frame::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(26,23,20,0.55) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Linked images (diptych posts) */
a.img-frame {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.img-frame:hover img {
  transform: scale(1.03);
}

/* Overlay title — used on diptych post images */
.img-overlay-title {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  font-family: var(--heading);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--linen);
  line-height: 1.25;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Overlay caption — used on hero, table, project images */
.img-overlay-caption {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  z-index: 2;
  font-family: var(--heading);
  font-size: 0.88rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(247,243,237,0.85);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Legacy caption (below image, for post content) */
.img-caption {
  max-width: 700px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem 0;
  font-family: var(--heading);
  font-size: 0.82rem;
  font-weight: 300;
  font-style: italic;
  color: var(--clay);
  line-height: 1.5;
}


/* ============================================================
   LATEST DISPATCH (homepage)
   ============================================================ */

.latest { padding: 3rem 0; }

.latest-label {
  font-family: var(--heading);
  font-size: 0.85rem;
  font-weight: 300;
  font-style: italic;
  color: var(--wine);
  margin-bottom: 1rem;
}

.latest h2 {
  font-family: var(--heading);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.latest h2 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.latest h2 a:hover { color: var(--wine); }

.latest p {
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--timber);
  margin-bottom: 1rem;
}

.latest-date {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--clay);
}


/* ============================================================
   PILLARS (homepage)
   ============================================================ */

.world { padding: 3rem 0; }

.world-label {
  font-family: var(--heading);
  font-size: 0.85rem;
  font-weight: 300;
  font-style: italic;
  color: var(--wine);
  margin-bottom: 1.5rem;
}

.world h2 {
  font-family: var(--heading);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.world-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.world-item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--warm);
}

.world-item:nth-child(odd) { padding-right: 2rem; }

.world-item:nth-child(even) {
  padding-left: 2rem;
  border-left: 1px solid var(--warm);
}

.world-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  padding-right: 0;
  border-left: none;
}

.world-item h3 {
  font-family: var(--heading);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
}

.world-item p {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--timber);
}


/* ============================================================
   CURRENT PROJECT (homepage)
   ============================================================ */

.project { padding: 3rem 0; }

.project-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 1rem;
}

.project h2 {
  font-family: var(--heading);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}

.project p {
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--timber);
  margin-bottom: 1rem;
}

.project-details {
  margin-top: 1.5rem;
  border-top: 1px solid var(--warm);
}

.project-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--warm);
}

.project-detail-row dt {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--earth);
}

.project-detail-row dd {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--timber);
}

.project-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--wine);
  text-decoration: none;
  transition: color 0.2s;
}

.project-link:hover { color: var(--wine-light); }


/* ============================================================
   DISPATCH LIST (homepage + archive)
   ============================================================ */

.dispatches { padding: 3rem 0; }

.dispatches h2 {
  font-family: var(--heading);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.dispatches-sub {
  font-family: var(--heading);
  font-size: 0.88rem;
  font-weight: 300;
  font-style: italic;
  color: var(--timber);
  margin-bottom: 2rem;
}

.dispatch-item {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.25rem 0;
  border-top: 1px solid var(--warm);
  transition: padding-left 0.2s;
}

.dispatch-item:last-of-type { border-bottom: 1px solid var(--warm); }
.dispatch-item:hover { padding-left: 0.75rem; }
.dispatch-item:hover .dispatch-item-title { color: var(--wine); }

.dispatch-item-title {
  font-family: var(--heading);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--charcoal);
  transition: color 0.2s;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.dispatch-item-date {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--clay);
}

.dispatch-placeholder {
  padding: 1.25rem 0;
  border-top: 1px solid var(--warm);
  border-bottom: 1px solid var(--warm);
  font-family: var(--heading);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--clay);
}


/* ============================================================
   SUBSCRIBE
   ============================================================ */

.subscribe { padding: 4rem 0 5rem; }

.subscribe-label {
  font-family: var(--heading);
  font-size: 0.85rem;
  font-weight: 300;
  font-style: italic;
  color: var(--wine);
  margin-bottom: 0.75rem;
}

.subscribe h2 {
  font-family: var(--heading);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.subscribe > .col > p {
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--timber);
  margin-bottom: 2rem;
  max-width: 480px;
}

.subscribe-form {
  display: flex;
  max-width: 420px;
}

.subscribe-form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--warm);
  border-right: none;
  background: transparent;
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
}

.subscribe-form input[type="email"]::placeholder { color: var(--clay); }
.subscribe-form input[type="email"]:focus { border-color: var(--wine); }

.subscribe-form button {
  padding: 0.75rem 1.5rem;
  background: var(--wine);
  border: 1px solid var(--wine);
  color: var(--linen);
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.subscribe-form button:hover { background: var(--wine-light); }

.subscribe-note {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 300;
  color: var(--clay);
  margin-top: 0.75rem;
  letter-spacing: 0.02em;
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--warm);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.site-footer-brand {
  font-family: var(--heading);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--charcoal);
}

.site-footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.site-footer-links a {
  font-family: var(--body);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--timber);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer-links a:hover { color: var(--wine); }


/* ============================================================
   POST / PAGE — Single article
   ============================================================ */

.post-header {
  max-width: 700px;
  margin: 0 auto;
  padding: 5rem 1.5rem 2rem;
}

.post-meta-top {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--clay);
  margin-bottom: 1.5rem;
}

.post-header h1 {
  font-family: var(--heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}

.post-header-excerpt {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--timber);
  max-width: 560px;
}

/* Feature image on posts */
.post-feature-image {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.post-feature-image img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  display: block;
}

/* Ghost editor content */
.post-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.post-content h2 {
  font-family: var(--heading);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--charcoal);
  margin: 2.5rem 0 1rem;
  line-height: 1.2;
}

.post-content h3 {
  font-family: var(--heading);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--charcoal);
  margin: 2rem 0 0.75rem;
  line-height: 1.25;
}

.post-content p {
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--earth);
  margin-bottom: 1.25rem;
}

.post-content a {
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.post-content a:hover { color: var(--wine-light); }

.post-content blockquote {
  border-left: 2px solid var(--wine);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

.post-content blockquote p {
  font-family: var(--heading);
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: var(--charcoal);
}

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

.post-content figure {
  margin: 2rem 0;
}

.post-content figcaption {
  font-family: var(--heading);
  font-size: 0.78rem;
  font-weight: 300;
  font-style: italic;
  color: var(--clay);
  margin-top: 0.5rem;
}

.post-content ul,
.post-content ol {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.post-content li {
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--earth);
  margin-bottom: 0.4rem;
}

.post-content strong {
  font-weight: 500;
  color: var(--charcoal);
}

.post-content em {
  font-style: italic;
}

.post-content hr {
  border: none;
  height: 1px;
  background: var(--warm);
  margin: 3rem 0;
}

/* Wide images in posts (Ghost kg-width-wide / kg-width-full) */
.post-content .kg-width-wide {
  max-width: 1000px;
  margin-left: calc(50% - 500px);
  margin-right: calc(50% - 500px);
  padding: 0 1.5rem;
}

.post-content .kg-width-full {
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.post-content .kg-width-wide img,
.post-content .kg-width-full img {
  width: 100%;
}

.post-content .kg-image-card figcaption,
.post-content .kg-gallery-card figcaption {
  font-family: var(--heading);
  font-size: 0.78rem;
  font-weight: 300;
  font-style: italic;
  color: var(--clay);
  text-align: center;
  margin-top: 0.6rem;
}

/* Ghost gallery */
.post-content .kg-gallery-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.post-content .kg-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Post footer */
.post-footer {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  border-top: 1px solid var(--warm);
  padding-top: 2rem;
}

.post-footer-tags {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--clay);
}

.post-footer-tags a {
  color: var(--timber);
  text-decoration: none;
  transition: color 0.2s;
}

.post-footer-tags a:hover { color: var(--wine); }


/* ============================================================
   TAG / AUTHOR INDEX
   ============================================================ */

.archive-header {
  max-width: 700px;
  margin: 0 auto;
  padding: 5rem 1.5rem 2rem;
}

.archive-header h1 {
  font-family: var(--heading);
  font-size: 2rem;
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.archive-header p {
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--timber);
}


/* ============================================================
   ERROR PAGE
   ============================================================ */

.error-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 8rem 1.5rem;
  text-align: center;
}

.error-code {
  font-family: var(--heading);
  font-size: 4rem;
  font-weight: 300;
  color: var(--clay);
  margin-bottom: 1rem;
}

.error-page h1 {
  font-family: var(--heading);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.error-page p {
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--timber);
}

.error-page a {
  color: var(--wine);
  text-decoration: none;
}


/* ============================================================
   GHOST SIGNUP CARD / FORM WIDGET
   Styles for the built-in signup form added via Ghost's editor
   ============================================================ */

.kg-signup-card {
  background: var(--cream) !important;
  border-radius: 0 !important;
}

.kg-signup-card h2 {
  font-family: var(--heading) !important;
  font-weight: 300 !important;
  color: var(--charcoal) !important;
}

.kg-signup-card p,
.kg-signup-card .kg-signup-card-subheading {
  font-family: var(--body) !important;
  font-weight: 300 !important;
  color: var(--timber) !important;
}

.kg-signup-card .kg-signup-card-input {
  border: 1px solid var(--warm) !important;
  background: var(--linen) !important;
  color: var(--charcoal) !important;
  font-family: var(--body) !important;
  font-weight: 300 !important;
  border-radius: 0 !important;
}

.kg-signup-card .kg-signup-card-input::placeholder {
  color: var(--clay) !important;
}

.kg-signup-card .kg-signup-card-input:focus {
  border-color: var(--wine) !important;
  box-shadow: none !important;
}

.kg-signup-card .kg-signup-card-button {
  background: var(--wine) !important;
  color: var(--linen) !important;
  font-family: var(--body) !important;
  font-weight: 400 !important;
  letter-spacing: 0.04em !important;
  border-radius: 0 !important;
  border: none !important;
}

.kg-signup-card .kg-signup-card-button:hover {
  background: var(--wine-light) !important;
}

.kg-signup-card .kg-signup-card-disclaimer {
  font-family: var(--mono) !important;
  color: var(--clay) !important;
}

/* Dark variant for signup cards with dark backgrounds */
.kg-signup-card.kg-style-dark {
  background: var(--night) !important;
}

.kg-signup-card.kg-style-dark h2 {
  color: var(--linen) !important;
}

.kg-signup-card.kg-style-dark p,
.kg-signup-card.kg-style-dark .kg-signup-card-subheading {
  color: var(--timber) !important;
}

.kg-signup-card.kg-style-dark .kg-signup-card-input {
  border-color: var(--earth) !important;
  background: rgba(255,255,255,0.04) !important;
  color: var(--linen) !important;
}

.kg-signup-card.kg-style-dark .kg-signup-card-input::placeholder {
  color: var(--timber) !important;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1040px) {
  .post-content .kg-width-wide {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
  }
}

@media (max-width: 600px) {
  .site-nav { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
  .hero { padding: 4rem 1.5rem 3rem; }
  .world-grid { grid-template-columns: 1fr; }
  .world-item:nth-child(even) { padding-left: 0; border-left: none; }
  .world-item:nth-child(odd) { padding-right: 0; }
  .subscribe-form { flex-direction: column; }
  .subscribe-form input[type="email"] { border-right: 1px solid var(--warm); }
  .site-footer { flex-direction: column; gap: 1rem; }
  .site-nav-links .hide-sm { display: none; }
  .img-diptych { grid-template-columns: 1fr; }
  .post-content .kg-gallery-container { grid-template-columns: 1fr; }
  .img-overlay-title { font-size: 0.95rem; bottom: 0.75rem; left: 1rem; right: 1rem; }
  .img-overlay-caption { font-size: 0.8rem; bottom: 0.75rem; left: 1rem; }
}
