/* ==========================================================================
   Pin Pal Studio — shared brand layer
   Extracted from pinpalstudio-landing-v2.html. SINGLE SOURCE OF TRUTH for
   palette, type, buttons, header and footer.

   Landing-page-only rules (.hero, .sig-*, .truth-*, .tiers, .fgrid, .shot,
   .faq-*, .proof-*, .founding, .reveal) stay inline in index.html.
   ========================================================================== */

:root {
  /* Locked brand palette */
  --cobalt-deep: #0a2a8f;
  --cobalt: #1850dc;
  --sky: #5fa8ff;
  --coral: #ff7f6e;
  --coral-deep: #e85d4a;
  --teal: #1ba39c;

  --ink: #0f1f44;
  --ink-soft: #4a5577;
  --ink-muted: #7a8299;
  --paper: #ffffff;
  --paper-warm: #fff8f5;
  --paper-cool: #f3f6fd;
  --rule: #e9ebf3;

  --radius: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-card: 0 10px 34px rgba(10, 42, 143, 0.08);
  --shadow-soft: 0 4px 16px rgba(10, 42, 143, 0.06);
  --shadow-cta: 0 8px 22px rgba(232, 93, 74, 0.34);
  --max: 1140px;

  --display: "Fraunces", Georgia, serif;
  --body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
}

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

.eyebrow {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-deep);
}

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  padding: 0.92em 1.5em; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%); color: #fff; box-shadow: var(--shadow-cta); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(232,93,74,0.42); }
.btn-secondary { background: #fff; color: var(--cobalt-deep); border-color: var(--rule); }
.btn-secondary:hover { border-color: var(--cobalt); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--cobalt-deep); font-weight: 600; padding: 0.5em 0; }
.btn-ghost:hover { color: var(--coral-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand {
  display: flex; align-items: center; gap: 0.6em;
  font-family: var(--display); font-weight: 700; font-size: 1.28rem;
  color: var(--cobalt-deep); letter-spacing: -0.02em;
}
.brand-mark {
  width: 22px; height: 22px; border-radius: 5.5px;
  background: rgb(255, 127, 110);
  display: flex; align-items: center; justify-content: center;
  color: #fff; line-height: 1;
  font-family: var(--display); font-weight: 600; font-size: 13.2px;
  flex-shrink: 0;
}
.site-nav { display: flex; align-items: center; gap: 1.9em; font-weight: 600; font-size: 0.96rem; color: var(--ink-soft); }
.site-nav a:hover { color: var(--cobalt); }
.site-nav .btn { font-size: 0.92rem; padding: 0.6em 1.15em; }
@media (max-width: 820px) { .site-nav .nav-link { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--cobalt-deep); color: rgba(255,255,255,0.7); padding: 44px 0; font-size: 0.92rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.footer-inner .brand { color: #fff; }
.footer-inner .brand-mark { background: rgb(255, 127, 110); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a:hover { color: #fff; }

/* ==========================================================================
   Article layer — used by /blog/ only. Landing page ignores all of this.
   ========================================================================== */

.article-shell { padding: 56px 0 76px; background: linear-gradient(180deg, var(--paper-warm) 0%, var(--paper) 340px); }
.article-wrap { max-width: 720px; margin: 0 auto; padding: 0 28px; }

.crumb { font-size: 0.9rem; font-weight: 600; color: var(--ink-muted); margin-bottom: 22px; }
.crumb a:hover { color: var(--coral-deep); }

.article-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 18px; }
.article-meta { font-size: 0.9rem; color: var(--ink-muted); font-weight: 600; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.article-meta .dot { color: var(--rule); }

.prose { margin-top: 40px; font-size: 1.1rem; color: var(--ink-soft); }
.prose > * + * { margin-top: 22px; }
.prose h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  margin-top: 44px;
  color: var(--ink);
}
.prose strong { color: var(--ink); font-weight: 700; }
.prose em { font-style: italic; }
.prose ul { padding-left: 1.15em; display: grid; gap: 12px; }
.prose li { padding-left: 0.25em; }
.prose li::marker { color: var(--coral); }
.prose a {
  color: var(--cobalt);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(24, 80, 220, 0.28);
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--coral-deep); text-decoration-color: var(--coral); }

/* Closing note — the one visual accent on an article page */
.article-close {
  margin-top: 48px; padding: 26px 28px;
  background: var(--paper-warm);
  border: 1px solid #ffd9d0;
  border-radius: var(--radius-lg);
}
.article-close h2 { font-family: var(--display); font-weight: 600; font-size: 1.22rem; margin-bottom: 8px; color: var(--ink); }
.article-close p { color: var(--ink-soft); font-size: 1rem; }
.article-close .btn { margin-top: 18px; }

/* Pinnable image block — the vertical pin for this article */
.pin-this { margin-top: 48px; text-align: center; }
.pin-this .label {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: 16px;
}
.pin-this img {
  width: 100%; max-width: 320px; height: auto;
  border-radius: var(--radius); border: 1px solid var(--rule);
  box-shadow: var(--shadow-card); display: block; margin: 0 auto;
}

/* Related */
.related { margin-top: 56px; border-top: 1px solid var(--rule); padding-top: 30px; }
.related h2 { font-size: 1.1rem; font-family: var(--body); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 18px; }
.related ul { list-style: none; display: grid; gap: 14px; }
.related a { font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: var(--cobalt-deep); }
.related a:hover { color: var(--coral-deep); }

/* ---------- Blog index ---------- */
.index-head { padding: 62px 0 10px; background: var(--paper-warm); }
.index-head h1 { font-size: clamp(2.1rem, 4.6vw, 3rem); margin-top: 14px; }
.index-head p { color: var(--ink-soft); font-size: 1.12rem; margin-top: 16px; max-width: 38em; }

.post-list { padding: 46px 0 80px; }
.post-list ol { list-style: none; display: grid; gap: 20px; max-width: 820px; }
.post-card {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: 28px 30px; box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: #ffd9d0; }
.post-card h2 { font-size: 1.42rem; margin-bottom: 10px; }
.post-card p { color: var(--ink-soft); font-size: 1rem; }
.post-card .date { font-size: 0.84rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 10px; }

@media (max-width: 640px) {
  .article-shell { padding: 36px 0 56px; }
  .prose { font-size: 1.05rem; }
}
