/* LonAdd Ghost theme — matches marketing site tokens */

:root {
  --lonadd-navy: #0b1d35;
  --lonadd-navy-deep: #061220;
  --lonadd-teal: #00b4d8;
  --lonadd-teal-light: #1fc1e3;
  --lonadd-teal-dark: #0096b8;
  --lonadd-teal-text: #007a99;
  --lonadd-accent: var(--lonadd-teal);
  --lonadd-ink: #1a1a2e;
  --lonadd-body: #5f6b7a;
  --lonadd-muted: #94a3b8;
  --lonadd-surface: #f5f7fa;
  --lonadd-border: #e0e6ed;
  --lonadd-white: #ffffff;
  --font-heading: "Montserrat", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 12px 40px rgba(11, 29, 53, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--lonadd-white);
  color: var(--lonadd-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--lonadd-teal-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--lonadd-teal-dark);
}

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

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

.site-main {
  flex: 1;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

/* Header */
.site-header {
  background: linear-gradient(180deg, var(--lonadd-navy) 0%, var(--lonadd-navy-deep) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand__logo {
  height: 36px;
  width: auto;
}

.site-brand__text {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--lonadd-white);
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--lonadd-teal-light);
}

.site-nav__admin {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62) !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
}

.site-nav__admin:hover {
  color: var(--lonadd-white) !important;
  border-color: rgba(255, 255, 255, 0.34);
}

.site-nav__cta {
  background: var(--lonadd-accent);
  color: var(--lonadd-navy) !important;
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
}

.site-nav__cta:hover {
  background: var(--lonadd-teal-light);
  color: var(--lonadd-navy) !important;
}

/* Hero */
.hero {
  display: grid;
  gap: 32px;
  margin-bottom: 56px;
  padding: 40px;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, var(--lonadd-navy) 0%, #0d2844 100%);
  color: var(--lonadd-white);
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
  }

  .hero--featured .hero__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
  }
}

.hero__tag {
  display: inline-flex;
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.section-intro {
  margin-bottom: 28px;
}

.section-intro__title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--lonadd-ink);
}

.section-intro__text {
  margin: 0;
  color: var(--lonadd-body);
}

.page-header__actions {
  margin-top: 24px;
}

.hero__eyebrow,
.page-header__eyebrow,
.post-card__tag,
.article__tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 180, 216, 0.16);
  color: var(--lonadd-teal-light);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__title,
.page-header__title,
.article__title {
  margin: 16px 0 12px;
  font-family: var(--font-heading);
  color: var(--lonadd-ink);
  letter-spacing: -0.02em;
}

.hero__title {
  color: var(--lonadd-white);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.hero__description,
.page-header__description,
.article__excerpt {
  max-width: 720px;
  margin: 0;
  color: var(--lonadd-muted);
}

.hero__description {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__media img {
  border-radius: var(--radius);
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
}

.button--primary {
  background: var(--lonadd-accent);
  color: var(--lonadd-navy);
}

.button--primary:hover {
  background: var(--lonadd-teal-light);
  color: var(--lonadd-navy);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--lonadd-white);
}

.button--ghost:hover {
  border-color: var(--lonadd-teal);
  color: var(--lonadd-teal-light);
}

/* Page header */
.page-header {
  margin-bottom: 40px;
}

.page-header__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.page-header__description {
  font-size: 1.05rem;
}

/* Cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.post-card {
  background: var(--lonadd-white);
  border: 1px solid var(--lonadd-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.post-card__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post-card__body {
  padding: 22px;
}

.post-card__title {
  margin: 12px 0 10px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.35;
}

.post-card__title a {
  color: var(--lonadd-ink);
}

.post-card__title a:hover {
  color: var(--lonadd-teal-text);
}

.post-card__excerpt {
  margin: 0 0 16px;
  color: var(--lonadd-body);
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--lonadd-muted);
}

/* Article */
.article__header {
  margin-bottom: 28px;
}

.article__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  color: var(--lonadd-muted);
  font-size: 14px;
}

.article__feature {
  margin: 0 0 32px;
  border-radius: var(--radius);
  overflow: hidden;
}

.article__feature img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.article__footer {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--lonadd-border);
}

/* Rich text — mirrors Next.js .ghost-content */
.ghost-content {
  color: var(--lonadd-body);
  font-size: 17px;
  line-height: 1.7;
}

.ghost-content > * + * {
  margin-top: 1.25rem;
}

.ghost-content h2,
.ghost-content h3 {
  font-family: var(--font-heading);
  color: var(--lonadd-ink);
  letter-spacing: -0.01em;
}

.ghost-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

.ghost-content blockquote {
  margin: 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--lonadd-teal);
  border-radius: 8px;
  background: #f0fbff;
  color: var(--lonadd-navy);
  font-style: italic;
}

.ghost-content ul,
.ghost-content ol {
  padding-left: 1.25rem;
}

.ghost-content img {
  border-radius: var(--radius);
}

/* Footer */
.site-footer {
  background: var(--lonadd-navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 40px 0;
}

.site-footer__inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.site-footer__logo {
  height: 32px;
  width: auto;
}

.site-footer__tagline {
  margin: 12px 0 0;
  font-family: var(--font-heading);
  color: var(--lonadd-white);
  font-weight: 700;
}

.site-footer__copy {
  margin: 0;
  font-size: 14px;
  color: var(--lonadd-muted);
}

/* Error */
.error-page {
  text-align: center;
  padding: 80px 0;
}

.error-page__code {
  display: block;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: var(--lonadd-teal);
}

.error-page__title {
  font-family: var(--font-heading);
  color: var(--lonadd-ink);
}

.error-page__text {
  max-width: 420px;
  margin: 0 auto 24px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  padding: 10px 14px;
  border: 1px solid var(--lonadd-border);
  border-radius: 8px;
  color: var(--lonadd-ink);
  font-weight: 600;
}

.pagination a:hover {
  border-color: var(--lonadd-teal);
  color: var(--lonadd-teal-text);
}

@media (max-width: 720px) {
  .site-header__inner,
  .site-main,
  .site-footer__inner {
    width: min(100%, calc(100% - 32px));
  }

  .hero {
    padding: 28px 24px;
  }

  .site-nav {
    gap: 12px;
  }
}

.kg-width-wide {
  width: min(100vw, 1200px);
  margin-left: 50%;
  transform: translateX(-50%);
}

.kg-width-full {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}
