/* Hey Ada blog styles. Colours, fonts, nav and footer match index.html. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:  #2f5a80;
  --teal:  #54a3a7;
  --mint:  #eef9f6;
  --white: #ffffff;
  --text:  #1e2d3a;
  --muted: #5a7080;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3 { font-family: 'DM Serif Display', serif; line-height: 1.2; color: var(--blue); }
p { color: var(--muted); font-size: 1.05rem; }

.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
  display: block;
}

.btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-lg { font-size: 1.05rem; padding: 0.85rem 2rem; }

/* NAV (same as home page) */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(47,90,128,0.08);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img { height: 28px; width: auto; display: block; }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
nav .btn { font-size: 0.9rem; padding: 0.55rem 1.25rem; }
.btn-login {
  background: var(--white);
  color: var(--blue);
  border: 1.5px solid rgba(47,90,128,0.22);
}

/* BLOG INDEX */
.blog-hero { background: var(--mint); padding: 4rem 2rem 3rem; text-align: center; }
.blog-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.75rem; }
.blog-hero p { max-width: 600px; margin: 0 auto; font-size: 1.1rem; }
.blog-list { max-width: 760px; margin: 0 auto; padding: 3rem 2rem 4rem; }
.post-card { padding: 1.75rem 0; border-bottom: 1px solid rgba(47,90,128,0.12); }
.post-card:first-child { padding-top: 0; }
.post-card h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.post-card h2 a { color: var(--blue); text-decoration: none; }
.post-card h2 a:hover { color: var(--teal); }
.post-date { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5rem; }
.post-card p { font-size: 1rem; }
.empty-note { text-align: center; color: var(--muted); }

/* ARTICLE */
.article { max-width: 720px; margin: 0 auto; padding: 3.5rem 2rem 1rem; }
.article-header { margin-bottom: 2rem; }
.article-header h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin-bottom: 0.75rem; }
.article-header .post-date { font-size: 0.9rem; }
.article-body p,
.article-body li { color: var(--text); font-size: 1.1rem; line-height: 1.75; }
.article-body p { margin-bottom: 1.25rem; }
.article-body h2 { font-size: 1.65rem; margin: 2.25rem 0 0.85rem; }
.article-body h3 { font-size: 1.25rem; margin: 1.75rem 0 0.6rem; }
.article-body ul,
.article-body ol { margin: 0 0 1.25rem 1.4rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body a { color: var(--blue); text-decoration: underline; text-decoration-color: var(--teal); text-underline-offset: 3px; }
.article-body a:hover { color: var(--teal); }
.article-body blockquote {
  border-left: 4px solid var(--teal);
  background: var(--mint);
  padding: 1rem 1.25rem;
  margin: 0 0 1.25rem;
  border-radius: 0 10px 10px 0;
}
.article-body blockquote p { margin-bottom: 0.5rem; font-style: italic; }
.article-body blockquote cite { font-style: normal; font-size: 0.95rem; color: var(--muted); }

/* AUTHOR BOX */
.author-box {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.25rem;
  align-items: start;
  background: var(--mint);
  border-radius: 14px;
  padding: 1.5rem;
  margin: 2.5rem 0;
}
.author-photo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  display: block;
}
.author-name { font-family: 'DM Serif Display', serif; font-size: 1.25rem; color: var(--blue); margin-bottom: 0.35rem; }
.author-box p { font-size: 0.98rem; margin-bottom: 0.6rem; }
.author-box a { color: var(--blue); font-weight: 400; text-decoration: underline; text-decoration-color: var(--teal); text-underline-offset: 3px; }

/* RELATED READING */
.related { border-top: 1px solid rgba(47,90,128,0.12); padding-top: 1.75rem; margin-bottom: 2.5rem; }
.related h2 { font-size: 1.4rem; margin-bottom: 0.85rem; }
.related ul { list-style: none; }
.related li { margin-bottom: 0.6rem; }
.related a { color: var(--blue); font-weight: 600; font-size: 1.05rem; text-decoration: underline; text-decoration-color: var(--teal); text-underline-offset: 3px; }
.related a:hover { color: var(--teal); }

/* CTA BLOCK */
.cta-block { background: var(--blue); padding: 3.5rem 2rem; text-align: center; }
.cta-block h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.75rem; }
.cta-block p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 1.75rem; font-size: 1.1rem; }
.cta-block .free-note { display: block; margin-top: 0.75rem; font-size: 0.85rem; color: rgba(255,255,255,0.65); }

/* FOOTER (same as home page) */
.site-footer { background: var(--blue); color: var(--white); padding: 3rem 2rem 1.5rem; }
.cta-block + .site-footer { border-top: 1px solid rgba(255,255,255,0.18); }
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; padding-bottom: 2rem; }
.footer-ada { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,0.75); background: var(--white); }
.footer-brand {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  background: var(--white);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  width: fit-content;
}
.footer-brand .hey { font-family: 'Playfair Display', serif; color: var(--blue); font-weight: 600; }
.footer-brand .ada { font-family: 'Playfair Display', serif; color: var(--teal); font-style: italic; font-weight: 400; }
.footer-tagline { color: rgba(255,255,255,0.82); font-size: 1rem; max-width: 650px; margin: 0.85rem 0 1rem; }
.footer-actions { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.footer-cta {
  background: var(--teal);
  color: var(--white);
  border-radius: 999px;
  padding: 0.72rem 1.35rem;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.15s;
}
.footer-cta:hover { opacity: 0.9; transform: translateY(-1px); }
.footer-contact { color: var(--white); font-size: 0.94rem; font-weight: 700; text-decoration: none; }
.footer-contact:hover { color: rgba(255,255,255,0.78); }
.footer-contact-status { display: none; color: rgba(255,255,255,0.78); font-size: 0.82rem; font-weight: 700; }
.footer-contact-status.show { display: inline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.22);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.62);
  font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.72); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

@media (max-width: 768px) {
  .blog-hero { padding: 3rem 1.25rem 2.25rem; }
  .blog-list { padding: 2.25rem 1.25rem 3rem; }
  .article { padding: 2.5rem 1.25rem 0.5rem; }
  .article-body p, .article-body li { font-size: 1.05rem; }
  .cta-block { padding: 3rem 1.25rem; }
  .footer-top { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-brand { margin: 0 auto; }
  .footer-tagline { margin-left: auto; margin-right: auto; }
  .footer-actions { justify-content: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  nav { padding: 0 1rem; }
  .nav-actions { gap: 0.35rem; }
  nav .btn { font-size: 0.78rem; padding: 0.45rem 0.7rem; white-space: nowrap; }
  nav .nav-blog { display: none; }
  .author-box { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
