/* =========================================================
   STOUGHTON MEDIA — Blog Stylesheet
   Extends styles.css (tokens, nav, footer, buttons live there).
   Style: Dark Luxury Editorial — Bodoni Moda + Jost
   ========================================================= */

/* ---------- Page head (clears the fixed nav) ---------- */
.pagehead {
  position: relative;
  padding: clamp(9rem, 20vh, 13rem) 0 clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}
.pagehead__glow {
  position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px; max-width: 130%; pointer-events: none;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 62%);
  filter: blur(10px);
}
.pagehead__inner { position: relative; z-index: 1; max-width: 820px; }
.pagehead__title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.04; letter-spacing: -0.02em;
}
.pagehead__title em { color: var(--gold); font-style: italic; font-weight: 500; }
.pagehead__lead { margin-top: 1.6rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 54ch; }

/* ---------- Breadcrumb ---------- */
.crumb { display: flex; align-items: center; gap: .55rem; margin-bottom: 1.6rem; font-size: .82rem; letter-spacing: .04em; color: var(--muted-2); }
.crumb a { color: var(--muted); transition: color .2s var(--ease); }
.crumb a:hover { color: var(--gold); }
.crumb span[aria-hidden] { color: var(--line); }

/* ---------- Post grid (listing) ---------- */
.postgrid { padding: 0 0 clamp(5rem, 11vw, 9rem); }
.postgrid__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

.postcard {
  display: flex; flex-direction: column;
  background: var(--stone); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.8rem; height: 100%;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease);
}
.postcard:hover { transform: translateY(-6px); border-color: rgba(224,168,46,.5); background: var(--stone-2); }
.postcard__meta { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; font-size: .78rem; letter-spacing: .04em; }
.postcard__cat { color: var(--gold); text-transform: uppercase; letter-spacing: .22em; font-weight: 500; font-size: .72rem; }
.postcard__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }
.postcard__date { color: var(--muted-2); }
.postcard__title { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.18; margin-bottom: .8rem; }
.postcard__title a { transition: color .2s var(--ease); }
.postcard:hover .postcard__title a { color: var(--gold); }
.postcard__excerpt { color: var(--muted); font-size: .96rem; margin-bottom: 1.6rem; }
.postcard__more {
  margin-top: auto; display: inline-flex; align-items: center; gap: .5rem;
  color: var(--cream); font-size: .9rem; font-weight: 500; letter-spacing: .01em;
}
.postcard__more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.postcard:hover .postcard__more { color: var(--gold); }
.postcard:hover .postcard__more svg { transform: translateX(4px); }

/* ---------- Single post ---------- */
.post { padding: 0 0 clamp(4rem, 9vw, 7rem); }
.post__wrap { width: 100%; max-width: 720px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 1.6rem; font-size: .85rem; color: var(--muted-2); }
.post__meta time { color: var(--muted); }
.post__author { display: inline-flex; align-items: center; gap: .55rem; color: var(--muted); }
.post__author img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: center 18%; border: 1px solid var(--gold); }
.post__divide { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }

.post__hr { border: 0; border-top: 1px solid var(--line); margin: clamp(2rem, 4vw, 2.8rem) 0; }

/* Article typography — the single clean content column */
.post__body { color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.post__body > * + * { margin-top: 1.4rem; }
.post__body h2 {
  font-family: var(--serif); color: var(--cream); font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -0.01em;
  margin-top: 2.6rem;
}
.post__body h3 {
  font-family: var(--serif); color: var(--cream); font-weight: 600;
  font-size: clamp(1.3rem, 2.4vw, 1.55rem); line-height: 1.2;
  margin-top: 2rem;
}
.post__body strong { color: var(--cream); font-weight: 500; }
.post__body em { color: var(--muted); }
.post__body a { color: var(--gold); border-bottom: 1px solid var(--line); transition: border-color .2s var(--ease); }
.post__body a:hover { border-color: var(--gold); }
.post__body ul, .post__body ol { padding-left: 1.3rem; }
.post__body ul { list-style: disc; }
.post__body ol { list-style: decimal; }
.post__body li { margin-top: .6rem; }
.post__body li::marker { color: var(--gold); }
.post__body blockquote {
  font-family: var(--serif); font-style: italic; color: var(--cream);
  font-size: 1.3rem; line-height: 1.5;
  border-left: 2px solid var(--gold); padding-left: 1.4rem; margin-left: 0;
}
.post__body img { border-radius: var(--radius); border: 1px solid var(--line); margin-block: 2rem; }
.post__body figure figcaption { margin-top: .7rem; font-size: .85rem; color: var(--muted-2); text-align: center; }
.post__body code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .9em;
  background: var(--stone); border: 1px solid var(--line); border-radius: 6px; padding: .12em .4em;
}

/* ---------- Internal link block (post footer) ---------- */
.postlinks { padding: 0 0 clamp(5rem, 11vw, 9rem); }
.postlinks__inner { max-width: 720px; margin-inline: auto; }
.postlinks__head { margin-bottom: 1.6rem; }
.postlinks__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.linkcard {
  position: relative; display: flex; flex-direction: column; gap: .7rem;
  background: linear-gradient(160deg, var(--stone) 0%, var(--ink-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem 1.8rem;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.linkcard:hover { transform: translateY(-6px); border-color: rgba(224,168,46,.5); }
.linkcard__eyebrow { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.linkcard__title { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.linkcard__text { color: var(--muted); font-size: .94rem; }
.linkcard__cta { margin-top: .4rem; display: inline-flex; align-items: center; gap: .5rem; color: var(--cream); font-size: .9rem; font-weight: 500; }
.linkcard__cta svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.linkcard:hover .linkcard__cta { color: var(--gold); }
.linkcard:hover .linkcard__cta svg { transform: translateX(4px); }

/* ---------- Responsive (mirrors styles.css breakpoints) ---------- */
@media (max-width: 980px) {
  .postgrid__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .postgrid__grid { grid-template-columns: 1fr; }
  .postlinks__grid { grid-template-columns: 1fr; }
}
