/* Atlantic Bear blog theme.
   Loaded after each blog page's own <style> block, so it wins on equal
   specificity. Keeps the blog in the same design language as the main site:
   Notion-style Inter type, white canvas, warm grey cards, blue buttons. */

:root {
  --ab-bg: #ffffff;
  --ab-surface: #ffffff;
  --ab-warm: #f6f5f4;
  --ab-warm-card: #f9f9f8;
  --ab-blue-soft: #ebf0ff;
  --ab-blue-ink: #2a4fd6;
  --ab-ink: rgba(0, 0, 0, 0.92);
  --ab-ink-2: #5d5a55;
  --ab-ink-3: #8c8984;
  --ab-line: rgba(0, 0, 0, 0.08);
  --ab-line-strong: rgba(0, 0, 0, 0.14);
  --ab-blue: #3b69ff;
  --ab-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ab-serif: 'Newsreader', Georgia, serif;

  /* Re-point the page's own variables */
  --ink: var(--ab-ink);
  --muted: var(--ab-ink-2);
  --line: var(--ab-line);
  --wash: var(--ab-bg);
  --text: var(--ab-ink);
  --text-muted: var(--ab-ink-2);
  --border: var(--ab-line);
  --surface: var(--ab-warm);
  --blue: var(--ab-blue);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--ab-sans);
  background: var(--ab-bg);
  color: var(--ab-ink);
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ───────────────────────────────────────────────── */
.ab-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ab-line);
}
.ab-nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 78px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}
.ab-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ab-ink);
  text-decoration: none;
  flex-shrink: 0;
}
.ab-logo img { width: 42px; height: 42px; object-fit: contain; display: block; }
.ab-links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.ab-nav-inner { position: relative; }
.ab-links a {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 16.5px;
  font-weight: 500;
  color: var(--ab-ink);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.ab-links a:hover, .ab-links a[aria-current] { color: var(--ab-ink); }
.ab-links a:hover, .ab-links a[aria-current] { background: rgba(0, 0, 0, 0.05); }
.ab-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.ab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 34px;
  border-radius: 10px;
  background: var(--ab-blue);
  color: #fff !important;
  font-size: 16.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.ab-btn:hover { background: #2f57e6; }
.ab-btn-lg { height: auto; min-height: 60px; padding: 14px 20px; font-size: 17px; border-radius: 12px; white-space: normal; text-align: center; }
.ab-short { display: none; }

.ab-menu { display: none; position: static; }
.ab-menu summary {
  list-style: none;
  position: relative;
  width: 36px;
  height: 36px;
  cursor: pointer;
}
.ab-menu summary::-webkit-details-marker { display: none; }
.ab-menu summary span {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 1.5px;
  background: var(--ab-ink);
  border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease;
}
.ab-menu summary span:nth-child(1) { top: 13px; }
.ab-menu summary span:nth-child(2) { top: 21px; }
.ab-menu[open] summary span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.ab-menu[open] summary span:nth-child(2) { top: 17px; transform: rotate(-45deg); }
.ab-sheet {
  position: fixed;
  top: 78px;
  left: 0;
  right: 0;
  height: calc(100vh - 78px);
  height: calc(100dvh - 78px);
  background: var(--ab-bg);
  padding: 16px 24px 32px;
  display: flex;
  flex-direction: column;
}
.ab-sheet a:not(.ab-btn) {
  display: flex;
  align-items: center;
  height: 52px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ab-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ab-line);
}
.ab-sheet .ab-btn { margin-top: 24px; }

@media (max-width: 900px) {
  .ab-links { display: none; }
  .ab-menu { display: block; }
}
@media (max-width: 560px) {
  .ab-nav-inner { height: 68px; padding: 0 14px; gap: 8px; }
  .ab-logo { font-size: 19px; gap: 8px; }
  .ab-logo img { width: 36px; height: 36px; }
  .ab-btn:not(.ab-btn-lg) { height: 42px; padding: 0 14px; font-size: 15px; }
  .ab-long { display: none; }
  .ab-short { display: inline; }
  .ab-sheet { top: 68px; height: calc(100dvh - 68px); }
}
@media (max-width: 360px) { .ab-logo span { display: none; } }

/* ── Blog index ────────────────────────────────────────── */
.wrap { max-width: 1320px; padding: 0 clamp(20px, 5vw, 64px); }
.page-head { padding: clamp(56px, 9vw, 112px) 0 8px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--ab-blue-soft);
  color: var(--ab-blue-ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.page-head h1 {
  font-size: clamp(42px, 6.6vw, 88px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.page-head p { font-size: clamp(17px, 1.7vw, 20px); color: var(--ab-ink-2); max-width: 580px; }

.featured-article {
  border: 0;
  border-radius: 20px;
  background: #eef3ff;
  box-shadow: none;
}
.featured-article:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.2); }
.fa-meta { font-weight: 500; font-size: 14px; color: var(--ab-ink-3); }
.fa-meta .fa-cat { font-weight: 600; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ab-blue-ink); }
.featured-article h2 { font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; }
.featured-article p { color: var(--ab-ink-2); }
.fa-cta { color: var(--ab-blue-ink); font-weight: 600; }

.archive-section { background: var(--ab-bg); border-top: 1px solid var(--ab-line); }
.archive-head h2 { font-weight: 700; letter-spacing: -0.035em; font-size: 34px; }
.archive-head .count { font-weight: 500; font-size: 15px; color: var(--ab-ink-3); }
.search-field input, .cat-select {
  border-radius: 10px;
  border-color: var(--ab-line-strong);
  background-color: var(--ab-surface);
}
.search-field input:focus, .cat-select:focus { border-color: var(--ab-ink); box-shadow: none; }

.blog-list { gap: 16px; }
.blog-card {
  border: 0;
  border-radius: 16px;
  background: var(--ab-warm-card);
  box-shadow: none;
  padding: 28px;
}
.blog-card:hover { transform: translateY(-2px); background: #f3f2f0; box-shadow: none; }
.blog-card .post-date, .blog-card .tag { font-weight: 500; font-size: 13px; color: var(--ab-ink-3); }
.blog-card .tag { letter-spacing: 0; text-transform: none; color: var(--ab-blue-ink); }
.blog-card h2 { font-weight: 700; letter-spacing: -0.02em; font-size: 21px; }
.blog-card p { color: var(--ab-ink-2); font-size: 16px; }
.blog-card .read-more { color: var(--ab-blue-ink); font-weight: 600; font-size: 15px; }

.blog-cta { background: var(--ab-warm); color: var(--ab-ink); border-top: 0; border-bottom: 0; padding: clamp(72px, 10vw, 128px) 24px; }
.blog-cta h2 { font-weight: 700; letter-spacing: -0.035em; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05; max-width: 16ch; margin-left: auto; margin-right: auto; }
.blog-cta p { color: var(--ab-ink-2); font-size: 18px; }
.blog-cta a { background: var(--ab-blue); border-radius: 10px; font-weight: 600; font-size: 17px; padding: 16px 56px; }
.blog-cta a:hover { transform: none; filter: none; background: #2f57e6; }

/* ── Article ───────────────────────────────────────────── */
.breadcrumb {
  background: transparent;
  border-bottom: 0;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 0;
  font-size: 14px;
  color: var(--ab-ink-3);
}
.breadcrumb a { color: var(--ab-ink-3); }
.breadcrumb a:hover { color: var(--ab-ink); }
.article-wrap { padding-top: 32px; }
.article-label {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--ab-blue-soft);
  color: var(--ab-blue-ink);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}
.article-wrap h1 { font-weight: 700; letter-spacing: -0.04em; line-height: 1.06; font-size: clamp(34px, 5vw, 52px); }
.article-meta { font-size: 14px; color: var(--ab-ink-3); border-bottom-color: var(--ab-line); }
.article-wrap h2 { font-weight: 700; letter-spacing: -0.025em; font-size: 28px; }
.article-wrap h3 { font-weight: 700; letter-spacing: -0.02em; }
.article-wrap p, .article-wrap ul li, .article-wrap ol li { color: #37352f; font-size: 17px; line-height: 1.75; }
.article-wrap a:not(.cta-btn) { color: var(--ab-ink); text-decoration: underline; text-decoration-color: var(--ab-line-strong); text-underline-offset: 3px; }
.article-wrap a:not(.cta-btn):hover { text-decoration-color: var(--ab-ink); }
.price-table th { background: var(--ab-warm); color: var(--ab-ink); font-weight: 600; }
.callout { background: var(--ab-warm); border-left: 0; border-radius: 12px; }
.cta-box {
  background: #eef3ff;
  border-radius: 20px;
  padding: clamp(36px, 6vw, 56px) clamp(24px, 5vw, 48px);
}
.cta-box h2 { color: var(--ab-ink); font-weight: 700; letter-spacing: -0.03em; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.1; margin-top: 0; }
.cta-box p { color: var(--ab-ink-2) !important; }
.cta-btn {
  background: var(--ab-blue);
  color: #fff !important;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none !important;
}
.cta-btn:hover { background: #2f57e6; }
.cta-box .cta-btn { padding: 15px 56px; }

/* ── Footer ────────────────────────────────────────────── */
.ab-footer { border-top: 1px solid var(--ab-line); background: var(--ab-bg); }
.ab-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px clamp(20px, 5vw, 64px) 32px;
  font-size: 14px;
  color: var(--ab-ink-3);
}
.ab-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ab-footer a { color: var(--ab-ink-3); text-decoration: none; }
.ab-footer a:hover { color: var(--ab-ink); }

/* ── Grain: lilac on the latest article, blue behind "All articles" ─────── */
.page-head h1 { color: #0a1430; }
.featured-article {
  border: 0;
  background: #e6e0f8 url('/images/tex-stone-lilac.webp') center / cover no-repeat;
  box-shadow: 0 24px 50px -34px rgba(10, 20, 48, 0.35);
}
.featured-article:hover { border: 0; }
.featured-article h2 { color: #0a1430; }
.featured-article p { color: rgba(10, 20, 48, 0.78); }
.fa-meta .fa-cat { padding: 4px 10px; border-radius: 999px; background: #fff; color: #5b47b8; }
.archive-section {
  border-top: 0;
  background: #dfe7fb url('/images/tex-stone-blue.webp') center / cover no-repeat;
}
.archive-head h2, .archive-head .count { color: #0a1430; }
.blog-card { border: 0; background: #fff; box-shadow: 0 18px 40px -30px rgba(10, 20, 48, 0.35); }
.search-field input, .cat-select { border-color: transparent; }
