/* Yard Ledger marketing - shared styles.
   Tokens mirrored from frontend/src/index.css - keep the two in sync.
   Source of truth for the scale is /design.md. */
:root {
  --violet: #6161ff;
  --ink: #333333;
  --slate: #535768;
  --iron: #808080;
  --fog: #cacbcd;
  --mist: #d0d4e4;
  --cloud: #f5f6f8;
  --snow: #ffffff;
  --mint: #bcfe90;
  --sky: #abf0ff;
  --lavender: #eddff7;
  --periwinkle: #e7ecff;
  --cornflower: #93beff;
  --aqua: #d1faff;
  --forest: #2a5c4e;
  --apricot: #ff8940;
  --peony-strong: #fc527d;
  --gradient-apricot: linear-gradient(
    90deg,
    rgb(254, 129, 228),
    rgb(254, 129, 228) 31%,
    rgb(253, 169, 0) 88%
  );
  --shadow-soft: rgba(205, 208, 223, 0.4) 0px 2px 48px 0px;
  --shadow-elevated: rgba(0, 0, 0, 0.15) 0px 5px 45px 0px;
  --radius-card: 24px;
  --radius-pill: 160px;
  --page: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Matches the app's own guard in frontend/src/index.css. The grids above
     are sized to avoid overflowing in the first place; this is the net. */
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cloud);
  color: var(--ink);
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 16px;
  padding: 13px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--violet);
  color: var(--snow);
  box-shadow: 0 8px 24px rgba(97, 97, 255, 0.28);
}

.btn-primary:hover {
  background: #5353f0;
}

.btn-ghost {
  border-color: var(--slate);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--snow);
}

.btn-forest {
  background: var(--forest);
  color: var(--snow);
}

.btn-forest:hover {
  background: #214a3f;
}

/* ---------- nav ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--mist);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: conic-gradient(
    from 270deg,
    rgb(129, 129, 255) 15%,
    rgb(51, 219, 219) 40%,
    rgb(51, 213, 142) 55%,
    rgb(255, 214, 51) 65%,
    rgb(252, 82, 125) 85%,
    rgb(129, 129, 255) 100%
  );
  flex: none;
}

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 14px;
  color: var(--slate);
}

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

.nav-cta {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-cta .btn {
  padding: 9px 18px;
  font-size: 14px;
}

@media (max-width: 880px) {
  .nav-links {
    display: none;
  }
}

/* Narrow phones: the brand plus two pills overflow the bar (the CTA row
   measures ~396px, wider than a 360px viewport). Drop the secondary
   "Sign in" — it stays in the footer and on the auth page — and tighten
   the rest so the primary CTA is never the thing that gets clipped. */
@media (max-width: 400px) {
  .wrap {
    padding: 0 16px;
  }
  .nav-inner {
    gap: 12px;
  }
  .brand {
    font-size: 16px;
  }
  .nav-cta .btn-ghost {
    display: none;
  }
  .nav-cta .btn {
    padding: 9px 16px;
    font-size: 13px;
  }
}

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 88px;
  overflow: hidden;
}

/* Every grid track is minmax(0, 1fr), never bare 1fr. A bare 1fr track
   floors at min-content, so one wide child (the 3-up stat tiles) inflates
   the whole track and pushes the page wider than the viewport. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet);
  background: var(--periwinkle);
  border-radius: 6px;
  padding: 6px 12px;
  margin-bottom: 24px;
}

h1 {
  font-size: 56px;
  letter-spacing: -0.04em;
}

.hero-gradient {
  background-image: var(--gradient-apricot);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  margin-top: 20px;
  font-size: 18px;
  color: var(--slate);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--iron);
}

@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  h1 {
    font-size: 40px;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 32px;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* Phones: the three stat tiles are still the right shape, just tighter. */
@media (max-width: 480px) {
  .tiles {
    gap: 8px;
  }
  .tile {
    padding: 10px;
    border-radius: 12px;
  }
  .tile-label {
    font-size: 9px;
    letter-spacing: 0.04em;
  }
  .tile-value {
    font-size: 18px;
  }
  .tile-sub {
    font-size: 10px;
  }
  .board-body {
    padding: 14px;
  }
}

/* ---------- abstract product mockup ---------- */
.board {
  background: var(--snow);
  border: 1px solid var(--mist);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.board-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--mist);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mist);
}

.board-body {
  padding: 20px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tile {
  border-radius: 16px;
  padding: 14px;
  min-width: 0;
}

.tile-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
}

.tile-value {
  font-size: 22px;
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: -0.02em;
}

.tile-sub {
  font-size: 12px;
  color: var(--iron);
  margin-top: 2px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 108px;
  margin-top: 20px;
}

.bar {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: var(--periwinkle);
}

.bar.is-accent {
  background: var(--violet);
}

.mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

/* The debtors table is wider than a phone; let it scroll inside the card
   rather than stretching the page. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mock-table th,
.mock-table td {
  white-space: nowrap;
}

.mock-table th {
  text-align: left;
  font-weight: 500;
  color: var(--slate);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--mist);
}

.mock-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--cloud);
}
.mock-table tr:last-child td {
  border-bottom: 0;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  padding: 3px 8px;
  background: var(--mint);
  color: var(--ink);
  white-space: nowrap;
}

.pill-warn {
  background: #ffe3ea;
  color: #b02040;
}

.pill-calm {
  background: var(--sky);
}

/* ---------- feature grid ---------- */
.section-head {
  max-width: 42em;
  margin-bottom: 48px;
}

h2 {
  font-size: 36px;
  letter-spacing: -0.03em;
}

.section-lede {
  margin-top: 16px;
  color: var(--slate);
  font-size: 17px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 900px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.feature {
  border-radius: var(--radius-card);
  padding: 24px;
}

.feature h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
}

.feature p {
  color: var(--slate);
  font-size: 15px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--snow);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(205, 208, 223, 0.5);
}

/* One stroke treatment for every icon: Slate fill, no pastel on icons
   (see /design.md "Don'ts"), 24px grid at 20px optical size. */
.feature-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--slate);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- split section ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

@media (max-width: 1000px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

.checklist {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--slate);
  font-size: 15px;
}

.check {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.check svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- band ---------- */
.band {
  background: var(--violet);
  color: var(--snow);
  border-radius: var(--radius-card);
  padding: 56px 48px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(97, 97, 255, 0.25);
}

.band h2 {
  color: var(--snow);
  font-size: 32px;
}

.band p {
  margin: 16px auto 0;
  max-width: 36em;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
}

.band .btn-white {
  background: var(--snow);
  color: var(--violet);
  margin-top: 32px;
}

.band .btn-white:hover {
  background: #f0f0ff;
}

@media (max-width: 560px) {
  .band {
    padding: 40px 24px;
  }
  .band h2 {
    font-size: 26px;
  }
}

/* ---------- pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

@media (max-width: 820px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
}

.plan {
  border-radius: var(--radius-card);
  padding: 32px;
  background: var(--snow);
  border: 1px solid var(--mist);
}

.plan.is-featured {
  border: 2px solid var(--violet);
  box-shadow: 0 20px 60px rgba(97, 97, 255, 0.14);
}

.plan.is-enterprise {
  background: var(--periwinkle);
  border-color: transparent;
}

.plan-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 5px 10px;
  margin-bottom: 16px;
}

.plan h3 {
  font-size: 20px;
  font-weight: 500;
}

.plan-tagline {
  margin-top: 6px;
  color: var(--slate);
  font-size: 15px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 24px 0 4px;
}

.plan-amount {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
}

.plan-period {
  color: var(--iron);
  font-size: 15px;
}

.plan-note {
  font-size: 13px;
  color: var(--iron);
  min-height: 20px;
}

.plan .btn {
  width: 100%;
  margin: 24px 0;
}

.plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.plan-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--slate);
}

.plan-list .check {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.plan-list .check svg {
  width: 11px;
  height: 11px;
}

/* ---------- faq ---------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
}

details {
  background: var(--snow);
  border: 1px solid var(--mist);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 12px;
}

summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--violet);
  font-size: 22px;
  font-weight: 400;
  flex: none;
}

details[open] summary::after {
  content: "\2212";
}

details p {
  margin-top: 12px;
  color: var(--slate);
  font-size: 15px;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--mist);
  padding: 40px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
  color: var(--slate);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------- inner pages ---------- */
.page-hero {
  padding: 64px 0 8px;
}

.page-hero .eyebrow {
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: 44px;
}

.page-hero .lede {
  margin-top: 16px;
  font-size: 18px;
  color: var(--slate);
  max-width: 40em;
}

@media (max-width: 700px) {
  .page-hero {
    padding: 40px 0 4px;
  }
  .page-hero h1 {
    font-size: 30px;
  }
}

/* ---------- legal / article prose ---------- */
.legal-card {
  background: var(--snow);
  border: 1px solid var(--mist);
  border-radius: var(--radius-card);
  padding: 40px 48px;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 560px) {
  .legal-card {
    padding: 24px 20px;
  }
}

.prose {
  max-width: 820px;
}

.prose h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
}

.prose p,
.prose li {
  color: var(--slate);
  font-size: 15px;
  line-height: 1.7;
}

.prose p + p {
  margin-top: 12px;
}

.prose ul,
.prose ol {
  margin: 12px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.prose a {
  color: var(--violet);
}

.prose a:hover {
  text-decoration: underline;
}

.prose .updated {
  color: var(--iron);
  font-size: 14px;
  margin-top: 8px;
}

.prose .callout {
  background: var(--periwinkle);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 16px;
  color: var(--ink);
  font-size: 15px;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.panel {
  background: var(--snow);
  border: 1px solid var(--mist);
  border-radius: var(--radius-card);
  padding: 28px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.field input,
.field textarea,
.field select {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--snow);
  border: 1px solid var(--mist);
  border-radius: 8px;
  padding: 11px 12px;
  width: 100%;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(97, 97, 255, 0.18);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  font-size: 13px;
  color: var(--iron);
  margin-top: 4px;
}

.contact-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.contact-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--slate);
  font-size: 15px;
}

.contact-list svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--slate);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 2px;
}

.contact-list a {
  color: var(--violet);
}

/* ---------- extra product mockups (landing previews) ---------- */
/* The hero board, the debtors table and these previews share one vocabulary:
   a white .board card with a three-dot title bar, then pastel-accented content.
   Keep new previews inside it so the page reads as one product. */

.board-title {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--iron);
}

/* Board flip: the raw mock sits left, copy right — and stays text-first when
   the grid collapses to a single column. */
.split.flip {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

@media (max-width: 1000px) {
  .split.flip {
    grid-template-columns: minmax(0, 1fr);
  }
  .split.flip .split-copy {
    order: 0;
  }
  .split.flip .split-media {
    order: 1;
  }
}

/* Vehicle cost sheet -> margin */
.mock-lines {
  display: grid;
}

.mock-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--cloud);
  font-size: 14px;
  color: var(--slate);
}

.mock-line .num {
  color: var(--ink);
}

.mock-total {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.mock-total > div {
  flex: 1;
  min-width: 0;
  background: var(--cloud);
  border-radius: 14px;
  padding: 12px 14px;
}

.mock-total .is-profit {
  background: var(--mint);
}

.mock-total-val {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

/* Progress meter, reused for instalments and the SMS allowance. */
.meter {
  height: 8px;
  border-radius: 999px;
  background: var(--mist);
  overflow: hidden;
}

.meter > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--violet);
}

/* Hire-purchase schedule */
.schedule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.schedule-meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--slate);
}

.schedule {
  display: grid;
  margin-top: 8px;
}

.schedule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--cloud);
  font-size: 14px;
}

.schedule-row:last-child {
  border-bottom: 0;
}

.schedule-when {
  color: var(--slate);
}

/* SMS thread */
.sms {
  display: grid;
  gap: 6px;
}

.sms-bubble {
  max-width: 84%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
}

.sms-bubble.out {
  justify-self: start;
  background: var(--periwinkle);
  color: var(--ink);
  border-bottom-left-radius: 6px;
}

.sms-bubble.in {
  justify-self: end;
  background: var(--mint);
  color: var(--ink);
  border-bottom-right-radius: 6px;
}

.sms-time {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--iron);
  margin-bottom: 4px;
}

.sms-time.end {
  text-align: right;
}

.sms-quota {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--mist);
}

.sms-quota-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--slate);
}

/* Multi-yard switcher (Enterprise preview) */
.yard-switch {
  display: grid;
  gap: 10px;
}

.yard-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.yard-head .num {
  font-size: 13px;
  color: var(--slate);
}

.yard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding: 14px 16px;
  border: 1px solid var(--mist);
  border-radius: 14px;
}

.yard.is-active {
  border-color: var(--violet);
  background: var(--periwinkle);
}

.yard-name {
  font-weight: 500;
  font-size: 15px;
}

.yard-stat {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--slate);
}

/* Blog */
.blog-hero {
  padding: 64px 0 8px;
}

.post-list {
  display: grid;
  gap: 18px;
  margin-top: 12px;
}

.post-card {
  display: block;
  padding: 22px 24px;
  border: 1px solid var(--mist);
  border-radius: 16px;
  background: var(--snow);
  text-decoration: none;
  color: inherit;
}

.post-card:hover {
  border-color: var(--violet);
}

.post-card h2 {
  font-size: 20px;
  margin: 6px 0 8px;
}

.post-card p {
  font-size: 15px;
  color: var(--slate);
  margin: 0;
}

.post-meta {
  font-size: 13px;
  color: var(--slate);
}

.post-more {
  display: inline-block;
  margin-top: 12px;
  font-weight: 500;
  color: var(--violet);
}

.post {
  max-width: 720px;
  padding: 64px 0 96px;
}

.post h1 {
  font-size: clamp(30px, 5vw, 40px);
}

.post .post-meta {
  margin-top: 4px;
}

.post-body {
  margin-top: 28px;
}

.post-body h2 {
  font-size: 22px;
  margin: 32px 0 12px;
}

.post-body p,
.post-body li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
}

.post-body ul,
.post-body ol {
  padding-left: 22px;
  margin: 16px 0;
}

.post-body blockquote {
  border-left: 3px solid var(--violet);
  margin: 20px 0;
  padding-left: 16px;
  color: var(--slate);
}

.post-body code {
  font-size: 14px;
  background: var(--mist);
  padding: 2px 6px;
  border-radius: 6px;
}
