/* ============ Myra Management — Blog stylesheet ============ */
/* Matches the main site design system (myra-management-landing). */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f5f2;
  --surface: #ffffff;
  --ink: #17130f;
  --text: #3d362e;
  --text-dim: #857c70;
  --line: #eae5dc;

  --pink: #e8477e;
  --pink-soft: #fdeaf1;
  --yellow: #d99a1b;
  --yellow-soft: #fdf3dd;
  --teal: #1497a6;
  --teal-soft: #e6f6f8;
  --signal: #d6362a;
  --signal-soft: #fcebe9;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --display-black: "Archivo Black", "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --edge: 6vw;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 2px 4px rgba(23,19,15,0.04), 0 12px 32px rgba(23,19,15,0.06);
  --shadow-lg: 0 8px 16px rgba(23,19,15,0.05), 0 30px 60px rgba(23,19,15,0.09);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--pink-soft); color: var(--ink); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3 { font-family: var(--display); text-wrap: balance; letter-spacing: -0.02em; color: var(--ink); }
h1, h2 { font-family: var(--display-black); letter-spacing: -0.01em; }

/* ---------- Eyebrow / tags ---------- */
.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pink);
  background: var(--pink-soft);
  padding: 7px 14px;
  border-radius: 100px;
}
.eyebrow.c-teal { color: var(--teal); background: var(--teal-soft); }
.eyebrow.c-yellow { color: var(--yellow); background: var(--yellow-soft); }
.eyebrow.c-signal { color: var(--signal); background: var(--signal-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 16px 28px;
  border-radius: 100px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }
.btn.btn-primary { background: var(--pink); border-color: var(--pink); }
.btn.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn.btn-outline:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.btn .arrow { transition: transform 0.25s var(--ease-spring); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Nav ---------- */
nav {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 16px var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.mark { display: flex; align-items: center; gap: 10px; }
.mark-logo { height: 42px; width: auto; display: block; }
.mark .sub {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 0.92rem; font-weight: 600; color: var(--text); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--pink); }
.nav-links a.active { color: var(--pink); }
.nav-cta { padding: 11px 22px; font-size: 0.88rem; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- Blog listing hero ---------- */
.blog-hero { padding: 72px 0 32px; }
.blog-hero-inner { max-width: 720px; }
.blog-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.05; margin-top: 18px; }
.blog-hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, transparent 58%, var(--pink-soft) 58%);
  padding: 0 2px;
}
.blog-hero p { margin-top: 18px; color: var(--text-dim); font-size: 1.08rem; max-width: 560px; }

/* ---------- Post grid ---------- */
.post-grid { padding: 24px 0 80px; }
.post-grid-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 1000px) { .post-grid-inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid-inner { grid-template-columns: 1fr; } }

.post-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  gap: 14px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--pink-soft); }
.post-card .meta { display: flex; align-items: center; gap: 12px; font-size: 0.8rem; color: var(--text-dim); font-weight: 600; }
.post-card .meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.post-card h2 { font-size: 1.25rem; font-weight: 800; line-height: 1.25; }
.post-card h2 a { transition: color 0.2s ease; }
.post-card h2 a:hover { color: var(--pink); }
.post-card p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.6; flex: 1; }
.post-card .read-more { font-weight: 700; font-size: 0.9rem; color: var(--pink); }

/* ---------- Article ---------- */
.article { padding: 40px 0 80px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; }

.article-head { margin-bottom: 40px; }
.article-head h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 900; line-height: 1.1; margin-top: 20px; }
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-top: 22px; font-size: 0.86rem; color: var(--text-dim); font-weight: 600;
}
.article-meta .sep { color: var(--line); }
.article-meta .author { color: var(--ink); font-weight: 700; }

/* ---------- Prose ---------- */
.prose { font-size: 1.06rem; line-height: 1.75; color: var(--text); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-family: var(--display-black);
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em;
  line-height: 1.2; margin-top: 2em; color: var(--ink);
}
.prose h3 {
  font-size: 1.2rem; font-weight: 700; margin-top: 1.6em; color: var(--ink);
}
.prose p { margin-top: 1.1em; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose em { color: var(--ink); }
.prose a {
  color: var(--pink); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--pink-soft);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}
.prose a:hover { text-decoration-color: var(--pink); }
.prose ul, .prose ol { margin-top: 1.1em; padding-left: 1.4em; display: flex; flex-direction: column; gap: 0.5em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--pink); }
.prose blockquote {
  margin-top: 1.4em;
  border-left: 3px solid var(--pink);
  background: var(--pink-soft);
  padding: 18px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
}
.prose blockquote p { margin-top: 0; }
.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--signal);
}
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2em 0; }
.prose .callout {
  margin-top: 1.4em;
  background: var(--teal-soft);
  border: 1px solid #cdecf0;
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-weight: 500;
  color: var(--ink);
}

/* ---------- Article footer / CTA ---------- */
.article-cta {
  margin-top: 56px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 34px;
  text-align: center;
}
.article-cta h3 { font-family: var(--display-black); font-size: 1.35rem; font-weight: 800; margin-bottom: 10px; }
.article-cta p { color: var(--text-dim); margin-bottom: 22px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; font-weight: 700; color: var(--text-dim); transition: color 0.2s ease; }
.back-link:hover { color: var(--pink); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 64px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-brand p { margin-top: 14px; color: var(--text-dim); font-size: 0.9rem; max-width: 280px; line-height: 1.6; }
.footer-col h5 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 0.92rem; color: var(--text); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--pink); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: var(--text-dim);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
