/* Bourday Blog Studio — design tokens, base type, buttons, surfaces.
   Light editorial theme: warm paper ground, violet accent, deep-indigo
   feature bands, italic serif accents on display headings. */

:root {
  /* Ground */
  --bb-paper: #FBFAF8;      /* page base — warm off-white */
  --bb-mist: #F4F4FA;       /* alternating cool section */
  --bb-white: #FFFFFF;      /* cards */
  --bb-night: #1B133D;      /* deep indigo feature / footer band */
  --bb-night-deep: #1C0A37; /* featured pricing card */

  /* Ink */
  --bb-ink: #11101A;
  --bb-body: #47464F;
  --bb-muted: #6B6B72;
  --bb-line: #E2E0EA;
  --bb-line-soft: #EDEBF3;

  /* Accent */
  --bb-violet: #5B51CA;
  --bb-violet-deep: #4A41AF;
  --bb-violet-tint: #EEECFB;
  --bb-peri: #8E93F3;       /* accent on dark grounds */
  --bb-peri-soft: #C9C7F2;

  /* On-dark ink */
  --bb-on-night: #F2F1FA;
  --bb-on-night-soft: #B4B1D0;
  --bb-on-night-line: rgba(255, 255, 255, .12);

  --bb-r-sm: 12px;
  --bb-r-md: 18px;
  --bb-r-lg: 26px;
  --bb-r-pill: 999px;

  --bb-shadow-sm: 0 1px 2px rgba(17, 16, 26, .05);
  --bb-shadow-md: 0 12px 32px -12px rgba(27, 19, 61, .16);
  --bb-shadow-lg: 0 28px 64px -24px rgba(27, 19, 61, .28);

  --bb-ease: cubic-bezier(.16, 1, .3, 1);

  --bb-font: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bb-font-em: 'Fraunces', 'Iowan Old Style', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.bb-site {
  margin: 0;
  font-family: var(--bb-font);
  font-size: 17px;
  color: var(--bb-body);
  background: var(--bb-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.bb-lock-scroll { overflow: hidden; }

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

h1, h2, h3, h4 {
  font-family: var(--bb-font);
  color: var(--bb-ink);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.5rem); font-weight: 900; }
h2 { font-size: clamp(1.95rem, 3.5vw, 3rem); font-weight: 700; line-height: 1.1; }
h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }

p { line-height: 1.62; margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
strong { color: var(--bb-ink); font-weight: 700; }

/* The signature: an italic editorial serif inside display headings. */
.bb-em {
  font-family: var(--bb-font-em);
  font-style: italic;
  font-weight: 600;
  color: var(--bb-violet);
  letter-spacing: -0.005em;
  padding-right: .06em;
}
.bb-night .bb-em,
.bb-night-band .bb-em { color: var(--bb-peri); }

/* ---- Layout ---------------------------------------------------------- */
.bb-shell { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.bb-shell-narrow { max-width: 880px; margin: 0 auto; padding: 0 28px; }
.bb-section { padding: 104px 0; }
.bb-section-tight { padding: 72px 0; }
.bb-mist { background: var(--bb-mist); }

/* Deep indigo band with a soft plum bloom, as in the reference feature band */
.bb-night {
  position: relative;
  overflow: hidden;
  background: var(--bb-night);
  color: var(--bb-on-night-soft);
}
.bb-night::before {
  content: '';
  position: absolute;
  top: -28%;
  right: -6%;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(126, 96, 214, .45), rgba(91, 81, 202, .12) 55%, transparent 72%);
  pointer-events: none;
}
.bb-night > * { position: relative; z-index: 1; }
.bb-night h1, .bb-night h2, .bb-night h3, .bb-night h4 { color: var(--bb-on-night); }
.bb-night p { color: var(--bb-on-night-soft); }
.bb-night strong { color: var(--bb-on-night); }

/* ---- Eyebrow --------------------------------------------------------- */
.bb-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--bb-muted);
  margin: 0 0 20px;
}
.bb-eyebrow::before {
  content: '';
  width: 26px;
  height: 1.5px;
  background: currentColor;
  opacity: .55;
  flex: none;
}
.bb-night .bb-eyebrow { color: var(--bb-peri-soft); }

.bb-section-head { max-width: 660px; margin: 0 0 56px; }
.bb-section-head p { font-size: 1.05rem; margin-bottom: 0; }
.bb-section-head.bb-center { margin-inline: auto; text-align: center; }
.bb-section-head.bb-center .bb-eyebrow { justify-content: center; }

/* Split head: title left, supporting copy right (reference feature band) */
.bb-head-split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.bb-head-split h2 { margin-bottom: 0; max-width: 15ch; }
.bb-head-split p { margin-bottom: 0; }

/* ---- Buttons --------------------------------------------------------- */
.bb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 15px 30px;
  border: 1.5px solid transparent;
  border-radius: var(--bb-r-pill);
  font-family: var(--bb-font);
  font-weight: 600;
  font-size: .97rem;
  line-height: 1;
  cursor: pointer;
  background: var(--bb-violet);
  color: #fff;
  transition: transform .25s var(--bb-ease), background .2s var(--bb-ease), box-shadow .25s var(--bb-ease), border-color .2s var(--bb-ease), color .2s var(--bb-ease);
}
.bb-btn:hover { background: var(--bb-violet-deep); transform: translateY(-2px); box-shadow: var(--bb-shadow-md); }
.bb-btn .bb-arrow { transition: transform .25s var(--bb-ease); }
.bb-btn:hover .bb-arrow { transform: translateX(3px); }

.bb-btn-ink { background: var(--bb-ink); color: #fff; }
.bb-btn-ink:hover { background: #26243A; }

.bb-btn-outline { background: transparent; color: var(--bb-ink); border-color: var(--bb-line); }
.bb-btn-outline:hover { background: var(--bb-white); border-color: var(--bb-ink); box-shadow: var(--bb-shadow-md); }

.bb-btn-peri { background: var(--bb-peri); color: #16112E; }
.bb-btn-peri:hover { background: #A5A8F7; color: #16112E; }

.bb-btn-ghost-light { background: transparent; color: var(--bb-on-night); border-color: rgba(255, 255, 255, .28); }
.bb-btn-ghost-light:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .55); }

.bb-btn-sm { padding: 11px 22px; font-size: .88rem; }
.bb-btn-wide { width: 100%; }

/* Text link with a moving arrow — used to close feature blocks */
.bb-link {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 600;
  font-size: .95rem;
  color: var(--bb-violet);
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--bb-line);
  transition: border-color .2s var(--bb-ease), gap .2s var(--bb-ease);
}
.bb-link:hover { border-color: var(--bb-violet); gap: .8em; }
.bb-night .bb-link { color: var(--bb-peri); border-color: var(--bb-on-night-line); }
.bb-night .bb-link:hover { border-color: var(--bb-peri); }

.bb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.bb-actions.bb-center { justify-content: center; }

/* ---- Surfaces -------------------------------------------------------- */
.bb-card {
  background: var(--bb-white);
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-r-lg);
  box-shadow: var(--bb-shadow-sm);
  transition: transform .3s var(--bb-ease), box-shadow .3s var(--bb-ease), border-color .3s var(--bb-ease);
}
.bb-card-lift:hover { transform: translateY(-4px); box-shadow: var(--bb-shadow-lg); border-color: #D5D1E6; }

/* Pill chip — announcement bar, tool chips, category tags */
.bb-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: var(--bb-r-pill);
  border: 1px solid var(--bb-line);
  background: var(--bb-white);
  font-size: .88rem;
  font-weight: 500;
  color: var(--bb-body);
  box-shadow: var(--bb-shadow-sm);
}
.bb-chip-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--bb-r-pill);
  background: var(--bb-violet);
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
}

/* Checkmark lists, as used across the reference plan cards */
.bb-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
/* Marker is absolutely positioned so inline markup inside an item never
   becomes a stray grid/flex child. */
.bb-checks li {
  position: relative;
  padding-left: 32px;
  font-size: .95rem;
  line-height: 1.45;
}
.bb-checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bb-violet-tint) center / 11px 11px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.6 6.3l3 3 5.8-6.6' fill='none' stroke='%235B51CA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.bb-night .bb-checks li::before,
.bb-plan-featured .bb-checks li::before {
  background-color: rgba(142, 147, 243, .18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.6 6.3l3 3 5.8-6.6' fill='none' stroke='%238E93F3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.bb-note { font-size: .82rem; color: var(--bb-muted); line-height: 1.55; }
.bb-note-center { text-align: center; max-width: 720px; margin: 36px auto 0; }

/* ---- A11y ------------------------------------------------------------ */
:focus-visible { outline: 2px solid var(--bb-violet); outline-offset: 3px; border-radius: 4px; }
.bb-night :focus-visible { outline-color: var(--bb-peri); }

.bb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bb-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 14px 22px;
  background: var(--bb-violet);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 var(--bb-r-sm) 0;
}
.bb-skip-link:focus { left: 0; }

/* Scoped to .bb-js so the page is fully readable when scripts do not run */
.bb-js [data-bb-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--bb-ease), transform .7s var(--bb-ease);
}
.bb-js [data-bb-reveal].bb-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bb-js [data-bb-reveal] { transition: none; opacity: 1; transform: none; }
  .bb-btn, .bb-card, .bb-link { transition: none; }
}

@media (max-width: 900px) {
  .bb-head-split { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .bb-head-split h2 { max-width: 100%; }
}
@media (max-width: 640px) {
  body.bb-site { font-size: 16px; }
  .bb-section { padding: 72px 0; }
  .bb-section-tight { padding: 56px 0; }
  .bb-shell, .bb-shell-narrow { padding: 0 20px; }
  .bb-section-head { margin-bottom: 40px; }
}
