/* =========================================
   Formative — SITE STYLES (FULL, UPDATED)
   Notes:
   - Keeps your existing look/feel
   - Adds shared "soft success" styling used by Contact + Subscribe + BlogSubscribeCard
   - Adds checkbox styling used across forms
   - Keeps blog grid/card styles restored so /blog cards render
   - Keeps tag filter fade behavior
   - NEW: Adds dev-only blog badges container + badge styling (Draft / Not published yet)
========================================= */

/* =========================================
   THEME VARIABLES
========================================= */

:root {
  --color-navy:   #070f16;
  --color-slate:  #1F3142;
  --color-orange: #FF8A2B;
  --color-gray:   #3d444a;

  --color-bg:           #F8F5F0;
  --color-surface:      #FFFFFF;
  --color-surface-soft: #FDFBF7;
  --color-border:       rgba(13, 27, 42, 0.12);
  --color-text:         #0D1B2A;
  --color-muted:        rgba(13, 27, 42, 0.75);

  --font-serif: "Playfair Display", "Georgia", serif;
  --font-sans:  "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1120px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.08);
}

/* Dark mode overrides */
html[data-theme="dark"] {
  --color-bg:           #050910;
  --color-surface:      #0D1B2A;
  --color-surface-soft: #06101F;
  --color-border:       rgba(255, 255, 255, 0.10);
  --color-text:         #F5F5F5;
  --color-muted:        rgba(240, 240, 240, 0.80);
}

/* =========================================
   GLOBAL RESET
========================================= */

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

a { color: inherit; }

/* =========================================
   LAYOUT
========================================= */

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main { flex: 1; }

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

/* =========================================
   HEADER / NAV
========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
  gap: 1rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-logo img {
  height: 90px;
  width: auto;
  display: inline-block;
}

/* Default = light mode shows light logo, hide dark logo */
.nav-logo img[data-theme="dark"] { display: none; }

/* Dark theme = show dark logo, hide light logo */
html[data-theme="dark"] .nav-logo img[data-theme="light"] { display: none; }
html[data-theme="dark"] .nav-logo img[data-theme="dark"]  { display: inline-block; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  font-size: 0.9rem;
}

.nav-links a {
  text-decoration: none;
  opacity: 0.85;
}

.nav-links a:hover { opacity: 1; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.90rem 1.03rem;
  background: var(--color-surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  border-radius: var(--radius-pill);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  border-radius: var(--radius-pill);
}

.nav-toggle span::before { top: -5px; }
.nav-toggle span::after  { top:  5px; }

/* Theme toggle (sun/moon icons) */
.theme-toggle {
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  padding: 0.46rem 1.23rem;
  background: var(--color-surface);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  font-size: 1rem;
  line-height: 1;
}

/* Light mode: show navy moon */
.theme-toggle .icon-moon { display: inline-block; color: var(--color-navy); }
.theme-toggle .icon-sun  { display: none; color: #ffffff; }

/* Dark mode: show white sun */
html[data-theme="dark"] .theme-toggle .icon-sun  { display: inline-block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Mobile nav open state */
.nav-links-mobile {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0 0 0.7rem;
  font-size: 0.9rem;
}

.nav-links-mobile a {
  text-decoration: none;
  padding: 0.3rem 0;
}

body.nav-open .nav-links-mobile { display: flex; }

/* =========================================
   HERO (HOME)
========================================= */

.hero {
  background:
    radial-gradient(circle at top right, rgba(255, 138, 43, 0.16), transparent 55%),
    radial-gradient(circle at bottom left, rgba(13, 27, 42, 0.12), transparent 55%),
    var(--color-bg);
  padding: 4.5rem 0 3.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-muted);
  margin-bottom: 0.7rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-subtitle {
  font-size: 1rem;
  max-width: 40rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pill {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .pill { background: rgba(5, 9, 16, 0.8); }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero right panel */
.hero-panel {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-panel-image {
  height: 190px;
  background-size: cover;
  background-position: center;
}

.hero-panel-body { padding: 1.7rem 1.6rem 1.8rem; }

.hero-panel-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-muted);
  margin-bottom: 0.4rem;
}

.hero-panel-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin: 0 0 0.7rem;
}

.hero-panel-text {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0 0 0.9rem;
}

.hero-panel-list {
  font-size: 0.85rem;
  padding-left: 1.1rem;
  margin: 0;
}

/* =========================================
   PAGE HERO (BACKGROUND IMAGE)
========================================= */

.page-hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  color: #ffffff;
  background-color: var(--color-gray);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero-inner { padding: 40px 0; }

.page-hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.9;
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  margin: 0.4rem 0 0.6rem;
}

.page-hero-subtitle {
  font-size: 0.95rem;
  max-width: 34rem;
  opacity: 0.96;
}

/* Breadcrumbs inside hero */
.breadcrumbs {
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 1px;
}

.breadcrumbs a:hover { border-bottom-color: rgba(255,255,255,0.55); }

.hero-microcopy {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.86);
  margin: 1rem 0 0;
  max-width: 40rem;
}

/* =========================================
   BUTTONS
========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease,
    background 0.08s ease,
    border-color 0.08s ease;
}

.btn-primary {
  background: var(--color-orange);
  color: var(--color-navy);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.16);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover { background: rgba(13, 27, 42, 0.04); }

/* =========================================
   SECTIONS & CARDS
========================================= */

.section { padding: 3rem 0; }

.section-band { background: var(--color-surface-soft); }
html[data-theme="dark"] .section-band { background: var(--color-surface-soft); }

.section-heading {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  max-width: 40rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
}

.card-body {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0 0 0.7rem;
}

.card-body.small { font-size: 0.82rem; }

.card ul {
  padding-left: 1.1rem;
  margin: 0.3rem 0 0.6rem;
  font-size: 0.85rem;
}

.card.cta-card .hero-ctas { justify-content: center; }

.view-all-row {
  display: flex;
  justify-content: center;
}

/* =========================================
   ABOUT GRID
========================================= */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 2.5rem;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.about-image-inner {
  min-height: 320px;
  background-size: cover;
  background-position: center;
  height: 100%;
}

/* =========================================
   BLOG GRID + CARDS
========================================= */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}

.blog-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
}

.blog-card-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.blog-card-content {
  padding: 1.25rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.blog-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.blog-card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.25;
}

.blog-card-title a { text-decoration: none; }

.blog-card-title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-card-meta {
  font-size: 0.78rem;
  color: var(--color-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 1em;
}

.blog-card-content h3 {
  margin-block-end: 0.5em;
}

.blog-card-content p {
  margin-block-start: 0.5em;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0.25rem 0 0.65rem;
}

/* NEW: Shared badges row (New + Dev badges) */
.blog-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  z-index: 2;
  pointer-events: none;
}

.badge-new {
  font-size: 0.68rem;
  line-height: 1;
  padding: 0.22rem 0.45rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-orange);
  color: var(--color-text);
  white-space: nowrap;
  position: absolute;
  top: 10px;
  right: 10px;
}

/* NEW: Dev-only badges (Draft / Scheduled) */
.badge-dev {
  font-size: 0.68rem;
  line-height: 1;
  padding: 0.22rem 0.45rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-bg) 70%, var(--color-surface));
  color: var(--color-text);
  white-space: nowrap;
  opacity: 0.95;
  position: absolute;
  top: 10px;
  left: 10px;
}

/* Dark mode for dev badges */
html[data-theme="dark"] .badge-dev {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Inline link */
.link-inline {
  font-size: 0.86rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(13, 27, 42, 0.30);
  padding-bottom: 1px;
  width: fit-content;
}

html[data-theme="dark"] .link-inline { border-bottom-color: rgba(255,255,255,0.22); }
.link-inline:hover { border-bottom-color: var(--color-orange); }

.blog-card-footer {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.blog-card-reading-time {
  opacity: 0.95;
  font-weight: 500;
  white-space: nowrap;
}

/* =========================================
   BLOG INDEX: FILTER BAR
========================================= */

.blog-index-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.75rem 0 1.25rem;
}

.tag-filter-bar {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.25rem 0 1.25rem;
}

/* Fade + soften placeholder (visible even when empty) */
.tag-filter-label {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 180ms ease, transform 180ms ease;
  min-height: 1.25em; /* keeps layout steady */
}

/* Use .is-visible from your JS */
.tag-filter-label.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tag-clear-link {
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(13, 27, 42, 0.25);
  padding-bottom: 1px;
}

html[data-theme="dark"] .tag-clear-link { border-bottom-color: rgba(255, 255, 255, 0.25); }
.tag-clear-link:hover { border-bottom-color: var(--color-orange); }

.subscribe-callout {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.85rem;
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
}

.subscribe-callout-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* =========================================
   TAG PILLS
========================================= */

.tag-pill {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.75rem;
  line-height: 1;
  padding: 0.28rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-bg) 65%, var(--color-surface));
  color: var(--color-text);
}

html[data-theme="dark"] .tag-pill { background: rgba(255, 255, 255, 0.04); }

.tag-pill:hover {
  border-color: color-mix(in srgb, var(--color-orange) 55%, var(--color-border));
}

.meta-sep {
  display: inline-block;
  margin: 0 0.10rem;
  color: var(--color-muted);
}

.tag-filter-links .meta-sep {
  margin: 0 0.55rem;
}

/* =========================================
   FORMS (shared)
========================================= */

.field-group { margin-bottom: 1rem; }

.field-label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
}

.field-input,
.field-textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  padding: 0.7rem 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  background: #FCFBF8;
  color: var(--color-text);
}

html[data-theme="dark"] .field-input,
html[data-theme="dark"] .field-textarea { background: #07101F; }

.field-textarea { resize: vertical; min-height: 140px; }

.form-smallprint {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--color-muted);
}

/* Checkbox layout used by Contact/Subscribe/BlogSubscribeCard */
.field-group-checkbox .checkbox-label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  cursor: pointer;
  user-select: none;
}

.field-group-checkbox .checkbox-label input[type="checkbox"] {
  margin-top: 0.18rem;
  width: 16px;
  height: 16px;
  accent-color: var(--color-orange);
}

.field-group-checkbox .checkbox-label span {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.4;
}

/* Errors + status */
.subscribe-form .field-error,
.blog-subscribe-form .field-error,
#contact-form .field-error {
  font-size: 0.8rem;
  color: #b3261e;
  margin: 0.25rem 0 0;
}

.subscribe-form .form-status,
.blog-subscribe-form .form-status,
#contact-form .form-status {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.subscribe-form button[disabled],
.blog-subscribe-form button[disabled],
#contact-form button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* =========================================
   SOFT SUCCESS (shared pattern)
   JS adds `.is-success` to the form element.
   Only fades [data-fade-target] areas.
========================================= */

.subscribe-form.is-success [data-fade-target],
.blog-subscribe-form.is-success [data-fade-target],
#contact-form.is-success [data-fade-target] {
  opacity: 0.55;
  filter: saturate(0.95);
  transition: opacity 220ms ease, filter 220ms ease;
}

.subscribe-form.is-success .form-status,
.blog-subscribe-form.is-success .form-status,
#contact-form.is-success .form-status {
  margin-top: 0.9rem;
  font-weight: 500;
}

/* Button spinner (shown when form has is-loading OR when JS sets it) */
.btn-spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  display: none;
  margin-left: 0.6rem;
  animation: spin 0.75s linear infinite;
  opacity: 0.85;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* When loading, show spinner inside the button */
form.is-loading .btn-spinner {
  display: inline-block;
}

/* =========================================
   CONTACT PAGE
========================================= */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 2.2fr);
  gap: 2rem;
  align-items: start;
}

/* =========================================
   SUBSCRIBE PAGE (/subscribe)
========================================= */

.subscribe-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: start;
}

.subscribe-card { padding: 1.6rem 1.5rem; }

.subscribe-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

/* Right rail cards */
.subscribe-side ul {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.subscribe-side li { margin: 0.35rem 0; }

/* =========================================
   BLOG POST SIDEBAR WIDGET (BlogSubscribeCard)
========================================= */

.blog-subscribe-card { margin-top: 1.25rem; }

.blog-subscribe-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.4rem;
}

.blog-subscribe-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
}

.blog-subscribe-body {
  margin: 0 0 1rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.blog-subscribe-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.blog-subscribe-btn {
  white-space: nowrap;
  padding-inline: 1.1rem;
}

@media (max-width: 700px) {
  .blog-subscribe-row { grid-template-columns: 1fr; }
}

/* =========================================
   SINGLE BLOG POST LAYOUT
========================================= */

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 3.3fr) minmax(0, 1.7fr);
  gap: 2rem;
}

.post-body {
  font-size: 0.95rem;
  color: var(--color-text);
}

.post-body h2 {
  font-family: var(--font-serif);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.post-body p { margin: 0 0 1rem; }

.post-body ul {
  padding-left: 1.1rem;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.post-meta {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 1.2rem;
}

.post-meta .badge-new {
  position: static;
  margin-left: 0.6rem;
}

.post-meta .reading-time {
  opacity: 0.8;
  font-weight: 500;
}


.post-sidebar { font-size: 0.85rem; }
.post-sidebar .card { margin-bottom: 1rem; }

/* =========================================
   CTA CARD
========================================= */

.cta-card { text-align: center; }

.cta-card .section-heading { margin-bottom: 0.5rem; }

.cta-card .section-subtitle {
  margin: 0 0 1.6rem;
  max-width: 36rem;
  margin-inline: auto;
}

/* =========================================
   TIMELINE
========================================= */

.timeline {
  border-left: 1px solid var(--color-border);
  margin-top: 1.5rem;
  padding-left: 1.5rem;
}

.timeline-item {
  margin-bottom: 1.5rem;
  position: relative;
}

.timeline-year {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--color-orange);
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.7rem 0 2rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .subscribe-layout { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero { padding-top: 3.5rem; }
  .hero-title { font-size: 2.2rem; }
  .hero-ctas { justify-content: center; }
}

@media (max-width: 700px) {
  .blog-index-actions {
    flex-direction: column-reverse;
  }
}