/* The appreci.io blog. Colours, type and the nav are taken from the home page
   (Appreci-Frontend LandingNext: .v2-lp__nav, .v2-ln) so the two read as one site. */
:root {
  --page: #f7f2ea;
  --card: #fffdfa;
  --ink: #1b1714;
  --body: #4a433d;
  --muted: #5e5750;
  --nav-ink: #6b6258;
  --rule: #ede6e1;
  --pink: #e8007d;
  --pink-deep: #d6006f;
  --eyebrow: #b8005f;
  --pink-tint: #fce7f2;
  --dark: #1b1714;
  --sans: Figtree, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ui: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --serif: Fraunces, Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 17px/1.6 var(--sans); }
a { color: inherit; }
img { max-width: 100%; height: auto; }

/* Header: the site menu */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 16px 28px; background: #fff; border-bottom: 1px solid var(--rule);
  font-family: var(--ui);
}
.nav__brand { display: flex; align-items: center; }
.nav__brand img { display: block; height: 28px; width: auto; }
.nav__links { display: flex; gap: 22px; flex: 1; justify-content: center; }
.nav__links a { color: var(--nav-ink); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--ink); }
.nav__links a[aria-current] { font-weight: 600; }
.nav__actions { display: flex; gap: 8px; margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: 12px; border: 1px solid transparent;
  font: 600 14px/1.2 var(--ui); text-decoration: none; white-space: nowrap;
}
.btn--primary { background: var(--pink); color: #fff; }
.btn--primary:hover { background: var(--pink-deep); }
.btn--ghost { color: #3a2f2a; border-color: var(--rule); background: transparent; }
.btn--ghost:hover { background: #fff; }
.btn--light { background: #fff; color: var(--ink); border-radius: 999px; padding: 14px 26px; font-size: 15px; }

/* Shared type */
.blog { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 32px; }
.eyebrow {
  margin: 0 0 12px; color: var(--eyebrow); font: 700 13px/1.3 var(--sans);
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.eyebrow--light { color: #ffb3d9; }
.display { margin: 0; font: 600 clamp(34px, 5vw, 52px)/1.04 var(--serif); letter-spacing: -.03em; color: var(--ink); }
.display--sm { font-size: clamp(28px, 3.6vw, 38px); }
.lede { margin: 14px 0 0; max-width: 40rem; color: var(--body); font-size: 18px; line-height: 1.55; }
.meta { margin: 0; color: var(--muted); font-size: 14px; }

/* Index */
.hero { padding: 64px 0 28px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 28px; }
.pill {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--rule); background: var(--card);
  color: var(--body); font: 600 14px/1.2 var(--sans); text-decoration: none;
}
.pill:hover { border-color: #d9cfc8; }
.pill--on { background: var(--ink); border-color: var(--ink); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--rule); border-radius: 18px;
}
.card__media { display: block; aspect-ratio: 16 / 10; background: var(--pink-tint); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__placeholder {
  display: flex; align-items: center; justify-content: center; height: 100%;
  font: 600 22px/1.2 var(--serif); color: var(--eyebrow);
  background: linear-gradient(135deg, #fde7f2, #f7f2ea);
}
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; flex: 1; }
.card__body .eyebrow { margin: 0; font-size: 12px; }
.card__title { margin: 0; font: 600 22px/1.2 var(--serif); letter-spacing: -.01em; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.card__desc { margin: 0; color: var(--body); font-size: 15px; line-height: 1.5; flex: 1; }
.empty { color: var(--body); padding: 24px 0 48px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 36px 0 8px; }
.pager__count { color: var(--muted); font-size: 14px; }

/* Article */
.article { max-width: 760px; margin: 0 auto; }
.article__head { padding: 56px 0 24px; }
.article__head .meta { margin-top: 18px; }
.article__hero { margin: 8px 0 32px; }
.article__hero img { width: 100%; border-radius: 18px; display: block; }
.prose { font-size: 18px; line-height: 1.7; color: #2c2622; }
.prose h2 { margin: 2em 0 .5em; font: 600 30px/1.15 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.prose h3 { margin: 1.6em 0 .4em; font: 700 21px/1.3 var(--sans); color: var(--ink); }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin: .3em 0; }
.prose a { color: var(--pink-deep); text-underline-offset: 2px; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--pink);
  font: 600 22px/1.4 var(--serif); color: var(--ink);
}
.prose img { border-radius: 14px; margin: 8px 0; }
.prose code { background: #efe8e1; padding: 2px 5px; border-radius: 5px; font-size: .9em; }
.prose pre { background: #efe8e1; padding: 16px; border-radius: 12px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 8px 12px; text-align: left; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.tags li { padding: 5px 12px; border-radius: 999px; background: #efe8e1; color: var(--body); font-size: 13px; font-weight: 600; }

/* The call to action at the end of every post */
.cta {
  margin: 48px 0 8px; padding: 36px 32px; border-radius: 24px;
  background: var(--dark); color: #f7f2ea;
}
.cta .display { color: #fff; }
.cta p { margin: 12px 0 22px; max-width: 34rem; color: #e5ddd5; }
.cta .eyebrow { margin-bottom: 10px; }

.more { margin: 64px 0 0; }
.more__title { margin: 0 0 20px; font: 600 28px/1.2 var(--serif); letter-spacing: -.02em; }

/* Footer, as on the home page */
.foot {
  width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 48px;
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center;
  color: var(--muted); font-size: 15px;
}
.foot__brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.foot__brand img { height: 28px; width: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (max-width: 980px) {
  .nav__links { gap: 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav { padding: 12px 16px; gap: 12px; flex-wrap: wrap; }
  .nav__links { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; gap: 18px; padding-bottom: 2px; scrollbar-width: none; }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__actions .btn--ghost { display: none; }
  .blog, .foot { width: calc(100% - 32px); }
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 20px; }
  .article__head { padding: 32px 0 18px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 25px; }
  .cta { padding: 28px 22px; border-radius: 20px; }
  .foot { flex-direction: column; align-items: flex-start; padding: 48px 0 40px; }
}
