/* ─── blog: shared ───────────────────────────────────────────────────── */
.blog-post, .blog-index {
  background: #FFFDF8;
  color: var(--ink);
}

.blog-post .nav, .blog-index .nav {
  background: color-mix(in srgb, #FFFDF8 92%, transparent);
}

/* ─── post layout ────────────────────────────────────────────────────── */
.post {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(60px, 8vw, 96px);
  font-size: 18px;
  line-height: 1.7;
}

.post__header { margin-bottom: 32px; }

/* ─── app screenshot ─────────────────────────────────────────────────── */
.post__app-screenshot {
  margin: 3rem 0 2rem;
  padding: 1rem 0 0.5rem;
  background: transparent;
  text-align: center;
}
.post__app-screenshot img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.post__app-screenshot figcaption {
  font-size: 0.85rem;
  color: rgba(14,14,16,0.55);
  margin-top: 0.75rem;
  font-style: italic;
}

/* ─── hero image ─────────────────────────────────────────────────────── */
.post__hero {
  margin: 0 0 40px;
  padding: 0;
}
.post__hero img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 18px;
  background: var(--bg);
}

.post__category {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 16px;
}
.post__category a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.post__category a:hover { border-bottom-color: var(--coral); }

/* ─── byline ─────────────────────────────────────────────────────────── */
.post__byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0;
}
.post__byline-photo {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  background: var(--bg);
}
.post__byline-photo-link { display: block; line-height: 0; }
.post__byline-meta { line-height: 1.35; }
.post__byline-name {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}
.post__byline-name a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.post__byline-name a:hover { border-bottom-color: var(--ink); }
.post__byline-line {
  font-size: 13px;
  color: var(--muted);
  margin: 2px 0 0;
}
.post__byline-role { color: var(--muted); }

/* ─── TL;DR summary box ──────────────────────────────────────────────── */
.post__tldr {
  margin: 36px 0 32px;
  padding: 20px 24px;
  background: color-mix(in srgb, var(--coral) 10%, #FFFDF8);
  border-left: 4px solid var(--coral);
  border-radius: 0 12px 12px 0;
}
.post__tldr-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 8px;
}
.post__tldr ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.post__tldr li {
  position: relative;
  padding-left: 22px;
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.55;
}
.post__tldr li:last-child { margin-bottom: 0; }
.post__tldr li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 10px;
  height: 2px;
  background: var(--coral);
}

/* ─── share bar ──────────────────────────────────────────────────────── */
.post__share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 48px 0 32px;
  padding: 24px 0;
  border-top: 1px solid rgba(14,14,16,0.08);
  border-bottom: 1px solid rgba(14,14,16,0.08);
}
.post__share-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}
.post__share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #2a2a2a;
  color: #fff;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.post__share-btn:hover { transform: translateY(-1px); }
.post__share-btn--fb { background: #0765FE; }
.post__share-btn--x  { background: #0E0E10; }
.post__share-btn--rd { background: #FF4500; }
.post__share-btn--copy { background: #6b6b76; }
.post__share-btn svg { display: block; }

/* ─── email subscribe (compact) ──────────────────────────────────────── */
.post__subscribe {
  margin: 24px 0 0;
  padding: 18px 22px;
  background: var(--bg);
  border: 1px solid rgba(14,14,16,0.1);
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.post__subscribe-body { flex: 1 1 260px; min-width: 0; }
.post__subscribe h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.005em;
  line-height: 1.3;
  margin: 0 0 2px;
}
.post__subscribe-body p {
  color: var(--muted);
  margin: 0;
  font-size: 13.5px;
  line-height: 1.4;
}
.post__subscribe-form {
  flex: 1 1 320px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.post__subscribe-form input[type="email"] {
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid rgba(14,14,16,0.18);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  min-width: 0;
}
.post__subscribe-form input[type="email"]:focus {
  outline: 2px solid var(--coral);
  outline-offset: 1px;
  border-color: var(--coral);
}
.post__subscribe-form button {
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap;
}
.post__subscribe-form button:hover { background: #2a2a2a; }
.post__subscribe-status {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  min-height: 0;
}
.post__subscribe-status:empty { display: none; }
.post__subscribe-status[data-state="ok"] { color: #1f7a3c; }
.post__subscribe-status[data-state="err"] { color: #b03030; }
@media (max-width: 560px) {
  .post__subscribe { padding: 16px; }
  .post__subscribe-form { grid-template-columns: 1fr; }
}

/* ─── more articles grid ─────────────────────────────────────────────── */
.post__more {
  margin: 56px 0 0;
}
.post__more-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
  margin: 0 0 24px;
}
.post__more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 720px) {
  .post__more-grid { grid-template-columns: 1fr; }
}
.more-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(14,14,16,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.more-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14,14,16,0.08);
}
.more-card__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: var(--bg);
}
.more-card__body { padding: 14px 16px 18px; }
.more-card__cat {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 6px;
}
.more-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
}

/* ─── post-card byline (index) ───────────────────────────────────────── */
.post-card__by {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 4px;
}
.post-card__by a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.post-card__by a:hover { border-bottom-color: var(--ink); }

/* ─── authors strip on index ─────────────────────────────────────────── */
.blog-index__authors {
  margin: 8px 0 48px;
  padding: 28px;
  background: var(--bg);
  border: 1px solid rgba(14,14,16,0.08);
  border-radius: 18px;
}
.blog-index__authors-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.blog-index__authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.author-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  padding: 10px;
  border-radius: 12px;
  transition: background 0.15s ease;
}
.author-chip:hover { background: rgba(14,14,16,0.04); }
.author-chip img {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  background: #fff;
}
.author-chip__meta { display: flex; flex-direction: column; min-width: 0; }
.author-chip__name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
}
.author-chip__role {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  margin-top: 2px;
}

/* ─── author hub page ────────────────────────────────────────────────── */
.author-page {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(60px, 8vw, 96px);
}
.author-page__header {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin: 0 0 48px;
}
@media (max-width: 560px) {
  .author-page__header { flex-direction: column; gap: 16px; }
}
.author-page__photo {
  width: 160px;
  height: 160px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--bg);
  flex: 0 0 auto;
}
.author-page__role {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 10px;
}
.author-page__name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.05;
  margin: 0 0 12px;
}
.author-page__bio { color: var(--muted); margin: 0 0 8px; font-size: 17px; }
.author-page__credentials { color: var(--muted); margin: 0; font-size: 13px; font-style: italic; }
.author-page__posts h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.post__title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(34px, 4.6vw, 56px);
  margin: 0 0 18px;
}

.post__updated {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* ─── tag chips ─────────────────────────────────────────────────────── */
.post__tags {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.post__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: rgba(14,14,16,0.06);
  padding: 4px 10px;
  border-radius: 999px;
}

.post-card__tags {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.post-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: rgba(14,14,16,0.05);
  padding: 3px 8px;
  border-radius: 999px;
}

/* ─── inline body images (image_2, image_3) ─────────────────────────── */
.post__inline-image {
  margin: 2.5rem -1rem;
  padding: 0;
}
.post__inline-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  background: var(--bg);
}
@media (max-width: 700px) {
  .post__inline-image { margin: 2rem 0; }
}

/* ─── post body typography ───────────────────────────────────────────── */
.post__body h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.015em;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  margin: 48px 0 16px;
}

.post__body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.25;
  margin: 32px 0 12px;
}

.post__body p { margin: 0 0 20px; }

.post__body a {
  color: var(--ink);
  border-bottom: 1px solid var(--coral);
  text-decoration: none;
}
.post__body a:hover { color: var(--coral); }

.post__body ul, .post__body ol { margin: 0 0 22px; padding-left: 24px; }
.post__body li { margin: 0 0 8px; }

.post__body blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--coral);
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1.1em;
  color: var(--ink);
}

.post__body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: rgba(14,14,16,0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

.post__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 16px;
}
.post__body th, .post__body td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(14,14,16,0.12);
}
.post__body th {
  font-family: var(--font-display);
  font-weight: 700;
  background: rgba(14,14,16,0.04);
}

/* ─── related + CTA aside ────────────────────────────────────────────── */
.post__related, .post__cta {
  margin-top: 56px;
  padding: 28px;
  border-radius: 18px;
}

.post__related {
  background: rgba(255, 209, 102, 0.18);
}
.post__related h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.post__related ul { list-style: none; padding: 0; margin: 0; }
.post__related li { margin: 0 0 8px; }
.post__related a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.post__related a:hover { border-bottom-color: var(--ink); }

.post__cta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 40px;
  padding: 18px 22px;
  background: #FFFDF8;
  border: 1px solid rgba(14,14,16,0.08);
  border-left: 4px solid var(--coral);
  border-radius: 0 12px 12px 0;
  text-align: left;
}
.post__cta::before {
  content: "";
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 22.37%;
  background: url("/images/apple-touch-icon.png") center/cover no-repeat;
  box-shadow: 0 1px 3px rgba(14,14,16,0.12);
}
.post__cta p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
}
.post__cta a {
  color: var(--ink);
  border-bottom: 1px solid var(--coral);
  text-decoration: none;
  font-weight: 600;
}
.post__cta a:hover { color: var(--coral); }

/* ─── blog index ─────────────────────────────────────────────────────── */
.blog-index__wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(60px, 8vw, 96px);
}
.blog-index__title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.02;
  margin: 0 0 16px;
}
.blog-index__intro {
  font-size: 18px;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 48px;
}

.blog-index__byline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 16px;
}

.blog-index__cat {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 40px 0 18px;
}
.blog-index__list { list-style: none; padding: 0; margin: 0 0 32px; }
.blog-index__card {
  padding: 20px 0;
  border-bottom: 1px solid rgba(14,14,16,0.1);
}
.blog-index__card a {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  text-decoration: none;
  color: var(--ink);
}
.blog-index__thumb {
  flex: 0 0 auto;
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--bg);
}
.blog-index__cardbody {
  flex: 1 1 auto;
  min-width: 0;
}
@media (max-width: 560px) {
  .blog-index__card a { gap: 14px; }
  .blog-index__thumb { width: 88px; height: 88px; border-radius: 10px; }
}
.blog-index__card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.blog-index__card p { color: var(--muted); margin: 0 0 6px; }
.blog-index__card time { font-size: 13px; color: var(--muted); }
.blog-index__card a:hover h3 { color: var(--coral); }

.blog-index__empty {
  padding: 40px 0;
  color: var(--muted);
  font-style: italic;
}
