/* Blog-only styles for cut.joshsalway.com.
   Additive: styles.css owns the base layout, typography and colour tokens. */

/* ---- post meta line ---- */

.prose .post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.post-meta .sep {
  opacity: 0.4;
}

/* ---- hero image ---- */

.post-hero {
  margin: 0 0 42px;
}

.post-hero img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--cream-deep);
  box-shadow: var(--shadow-sm);
}

.post-hero figcaption {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

/* ---- equation card ---- */

.eq-card {
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 24px 26px;
}

.eq-card .eq {
  margin: 0 0 6px;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 760;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.eq-card .eq:last-of-type {
  margin-bottom: 0;
}

.eq-card .eq .op {
  padding: 0 2px;
  color: var(--pink);
  font-weight: 820;
}

.eq-card .eq-note {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 500;
}

/* ---- data tables ---- */

.table-wrap {
  overflow-x: auto;
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  min-width: 430px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table caption {
  caption-side: bottom;
  padding: 12px 20px 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.data-table tbody tr.is-highlight td {
  background: var(--cream-deep);
  font-weight: 700;
}

.table-note {
  margin: -14px 0 26px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

/* ---- key takeaways panel ---- */

.takeaways {
  margin: 34px 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--cream-deep);
  padding: 24px 28px;
}

.prose .takeaways h2 {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 780;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.prose .takeaways ul {
  margin-bottom: 0;
}

.prose .takeaways li:last-child {
  margin-bottom: 0;
}

/* ---- related posts ---- */

.related {
  margin-top: 46px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.prose .related h2 {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 780;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.prose .related ul {
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

.prose .related li {
  margin-bottom: 9px;
}

.related li span {
  color: var(--ink-soft);
}

/* ---- closing call to action ---- */

.cta-card {
  margin-top: 42px;
  border-radius: var(--radius);
  background: var(--gradient);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  color: #fff;
}

.prose .cta-card h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.45rem;
}

.prose .cta-card p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.92);
}

.cta-card .button-primary {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(80, 20, 40, 0.22);
}

.cta-card .button-small {
  color: var(--ink-soft);
}

/* ---- blog index cards ---- */

.post-cards {
  display: grid;
  gap: 26px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.post-cards > li {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-cards > li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.post-card-link {
  display: grid;
  grid-template-columns: 250px 1fr;
  color: inherit;
  text-decoration: none;
}

.post-card-thumb {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-right: 1px solid var(--line);
  background: var(--cream-deep);
  object-fit: cover;
}

.post-card-body {
  padding: 24px 28px;
}

.prose .post-card-link h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.22rem;
  font-weight: 830;
  line-height: 1.25;
}

.post-card-body p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.post-card-meta .more {
  margin-left: auto;
  color: #c8325d;
  font-weight: 740;
}

@media (max-width: 720px) {
  .post-card-link {
    grid-template-columns: 1fr;
  }

  .post-card-thumb {
    aspect-ratio: 3 / 2;
    min-height: 0;
  }

  .post-card-body {
    padding: 22px 22px 24px;
  }

  .eq-card,
  .takeaways {
    padding: 20px 20px;
  }

  .cta-card {
    padding: 26px 22px;
  }
}
