/* Shared styles for the standalone pages (blog, privacy policy, terms).
   Colors and type match the main site's theme (index-*.css). */

:root {
  --bg: #000;
  --surface: #09090b;
  --border: #18181b;
  --border-strong: #27272a;
  --text: #f4f4f5;
  --text-body: #a1a1aa;
  --text-muted: #71717a;
  --text-faint: #52525b;
  --primary: hsl(158 57.7% 38%);
  --primary-bright: hsl(158 57.7% 48%);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary-bright);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--primary-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(0 0 0 / 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-strong);
}

.site-header__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header__logo img {
  display: block;
  height: 72px;
  width: auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.back-link:hover {
  color: #fff;
  background: rgb(24 24 27 / 0.5);
}

/* Document */

.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: 56px 16px 80px;
}

.legal__eyebrow {
  margin: 0 0 12px;
  color: var(--primary-bright);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.legal__updated {
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: 14px;
}

.legal__summary {
  margin: 0 0 40px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  color: #d4d4d8;
}

.legal .legal__summary p {
  margin: 0;
}

.toc {
  margin: 0 0 48px;
  padding: 0 0 32px;
  border-bottom: 1px solid var(--border);
}

.legal .toc h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2 16rem;
  column-gap: 32px;
  font-size: 15px;
}

.legal .toc li {
  margin-bottom: 6px;
  break-inside: avoid;
}

.legal .toc li::marker {
  color: var(--text-faint);
}

.toc a {
  color: var(--text-body);
  text-decoration: none;
}

.toc a:hover {
  color: #fff;
  text-decoration: underline;
}

.legal section + section {
  margin-top: 40px;
}

.legal h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
}

.legal h3 {
  margin: 24px 0 8px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
}

.legal p,
.legal ul {
  margin: 0 0 16px;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 8px;
}

.legal li::marker {
  color: var(--primary);
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.legal__caps {
  font-size: 14px;
  letter-spacing: 0.01em;
}

.contact-card {
  margin-top: 16px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
}

.legal .contact-card p {
  margin: 0;
}

.contact-card p + p {
  margin-top: 4px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 16px;
}

.site-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--text-faint);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

.site-footer nav a {
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer nav a:hover,
.site-footer nav a[aria-current="page"] {
  color: #a1a1aa;
}

/* Site navigation (blog pages) */

.site-nav {
  display: none;
}

.site-nav a,
.site-nav-mobile a {
  color: var(--text-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav-mobile a:hover {
  color: #fff;
  background: rgb(24 24 27 / 0.5);
}

.site-nav a[aria-current="page"],
.site-nav-mobile a[aria-current="page"] {
  color: #fff;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-body);
  cursor: pointer;
}

.menu-toggle:hover {
  color: #fff;
  background: var(--border);
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
}

.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.site-nav-mobile {
  border-top: 1px solid var(--border);
  padding: 8px 16px 16px;
}

.site-nav-mobile[hidden] {
  display: none;
}

.site-nav-mobile a {
  display: block;
  padding: 14px 16px;
  border-radius: 8px;
  border-bottom: 1px solid rgb(24 24 27 / 0.5);
  font-size: 16px;
}

.site-nav-mobile a:last-child {
  border-bottom: 0;
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .menu-toggle,
  .site-nav-mobile {
    display: none;
  }
}

/* Blog */

.blog {
  --card: rgb(30 41 59 / 0.5);
  --card-border: rgb(51 65 85 / 0.5);
  --slate-100: #f1f5f9;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  max-width: 72rem;
  margin: 0 auto;
  padding: 56px 16px 80px;
}

.blog-hero {
  margin: 0 auto 40px;
  max-width: 42rem;
  text-align: center;
}

.blog-hero h1 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.blog-hero h1 span {
  color: var(--primary);
}

.blog-hero p {
  margin: 0;
  color: var(--slate-400);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
}

.post-grid {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.post-card:hover,
.post-card:focus-within {
  border-color: hsl(158 57.7% 38% / 0.5);
  box-shadow: 0 10px 15px -3px hsl(158 57.7% 38% / 0.1);
}

.badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border: 1px solid hsl(158 57.7% 38% / 0.2);
  border-radius: 999px;
  background: hsl(158 57.7% 38% / 0.1);
  color: var(--primary-bright);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}

.post-card h2 {
  margin: 12px 0 10px;
  color: var(--slate-100);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
}

.post-card h2 a {
  color: inherit;
  text-decoration: none;
}

/* Makes the whole card clickable while keeping one real link. */
.post-card h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
}

.post-card:hover h2 {
  color: var(--primary-bright);
}

.post-card__excerpt {
  flex-grow: 1;
  margin: 0 0 16px;
  color: var(--slate-300);
  font-size: 14px;
  line-height: 1.6;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  color: var(--slate-400);
  font-size: 13px;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--card-border);
}

.post-card__read {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary-bright);
  font-size: 13px;
  font-weight: 500;
  transition: gap 0.2s;
}

.post-card:hover .post-card__read {
  gap: 8px;
}

@media (min-width: 640px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-empty {
  margin: 0;
  padding: 48px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  color: var(--text-body);
  text-align: center;
}

.blog-count {
  margin: -16px 0 24px;
  color: var(--slate-400);
  font-size: 14px;
  text-align: center;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}

.pagination ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination__page,
.pagination__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--card);
  color: var(--slate-300);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

a.pagination__page:hover,
a.pagination__step:hover {
  border-color: hsl(158 57.7% 38% / 0.5);
  color: var(--primary-bright);
}

.pagination__page[aria-current="page"] {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.pagination__step {
  gap: 6px;
}

.pagination__step[aria-disabled="true"] {
  opacity: 0.4;
}

.pagination__gap {
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  color: var(--slate-400);
}

/* On phones the arrows sit on their own row below the page numbers. */
@media (max-width: 639px) {
  .pagination ol {
    order: -1;
    width: 100%;
  }
}

/* Single post */
.preview-banner {
  margin: 0 0 24px;
  padding: 12px 16px;
  border: 1px solid hsl(45 93% 47% / 0.4);
  border-radius: 8px;
  background: hsl(45 93% 47% / 0.1);
  color: #fde68a;
  font-size: 14px;
}

.preview-banner a {
  color: #fde68a;
}

.post__body h3 {
  margin: 28px 0 8px;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 600;
}


.post {
  max-width: 46rem;
  margin: 0 auto;
  padding: 40px 16px 80px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 14px;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--text-faint);
}

.breadcrumb a {
  color: var(--text-body);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.post__header {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.post__header h1 {
  margin: 16px 0;
  color: #fff;
  font-size: clamp(1.875rem, 5.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.post__lead {
  margin: 0 0 20px;
  color: #d4d4d8;
  font-size: 1.125rem;
  line-height: 1.6;
}

.post__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.post__byline strong {
  color: var(--text);
  font-weight: 600;
}

.post__byline span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post__byline svg {
  width: 14px;
  height: 14px;
}

.post__body {
  color: #cbd5e1;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.post__body p {
  margin: 0 0 20px;
}

.post__body ul {
  margin: 0 0 20px;
  padding-left: 1.25rem;
}

.post__body li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.post__body li::marker {
  color: var(--primary);
}

.post__body strong {
  color: var(--text);
  font-weight: 600;
}

.post__body h2 {
  margin: 40px 0 12px;
  color: var(--primary-bright);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
}

.post-nav {
  display: grid;
  gap: 16px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.post-nav a {
  display: block;
  padding: 16px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s;
}

.post-nav a:hover {
  border-color: hsl(158 57.7% 38% / 0.5);
}

.post-nav small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 13px;
}

.post-nav span {
  color: var(--text);
  font-weight: 600;
  line-height: 1.4;
}

.post-nav__next {
  text-align: right;
}

.post-nav__next small {
  justify-content: flex-end;
}

.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

@media (min-width: 640px) {
  .blog {
    padding: 72px 24px 96px;
  }

  .post {
    padding: 56px 24px 96px;
  }

  .post-nav {
    grid-template-columns: 1fr 1fr;
  }

  .post-nav__next:only-child {
    grid-column: 2;
  }
}

@media (min-width: 640px) {
  .site-header__inner {
    padding: 8px 24px;
  }

  .site-header__logo img {
    height: 80px;
  }

  .legal {
    padding: 72px 24px 96px;
  }

  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
