@font-face {
  font-family: 'Outfit';
  src: url('/fonts/outfit.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Righteous';
  src: url('/fonts/righteous.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Sanchez';
  src: url('/fonts/sanchez.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'DM Serif Text';
  src: url('/fonts/dm-serif.ttf') format('truetype');
  font-display: swap;
}

:root {
  --sys-color-white: #ffffff;
  --sys-color-black: #000000;
  --pink: #f9a8d4;
  --green: #86efac;
  --purple: #d8b4fe;
  --blue: #93c5fd;
  --slate: #475569;
  --stone: #57534e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--sys-color-black);
  background: var(--sys-color-white);
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

main,
header,
footer,
section,
article,
aside,
nav {
  width: 100%;
}

.site-header {
  border-bottom: 4px solid var(--sys-color-black);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
}

.brand-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: max-content;
}

.brand-name {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1;
}

.brand-tagline {
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
}

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.site-nav a:hover {
  color: #166534;
  text-decoration: underline;
}

.page {
  padding: 1.5rem;
}

.page-pink {
  background: var(--pink);
}

.page-green {
  background: var(--green);
}

.page-purple {
  background: var(--purple);
}

.page-blue {
  background: var(--blue);
}

.page-white {
  background: var(--sys-color-white);
}

.home-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.single-grid {
  display: grid;
  gap: 2rem;
}

.stack-sm {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stack-md {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stack-lg {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 0.95;
}

.hero-subtitle {
  margin: 0;
  font-size: clamp(1.5rem, 4.5vw, 3rem);
  line-height: 1.1;
}

.hero-copy {
  margin: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
}

.card {
  background: var(--sys-color-white);
  border: 3px solid var(--sys-color-black);
  border-radius: 0.5rem;
  padding: 1.25rem;
  box-shadow: 7px 7px 0 rgb(0 0 0 / 1);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 5px 5px 0 rgb(0 0 0 / 1);
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 5vw, 3.75rem);
  line-height: 1.15;
}

.section-subtitle {
  margin: 0;
  font-size: clamp(1.35rem, 3.8vw, 2.1rem);
  line-height: 1.2;
}

.muted {
  color: #3f3f46;
}

.text-lg {
  font-size: 1.05rem;
}

.text-base {
  font-size: 1rem;
}

.text-sm {
  font-size: 0.9rem;
}

.text-xl {
  font-size: 1.2rem;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  background: var(--sys-color-white);
  border: 2px solid var(--sys-color-black);
  display: inline-block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  box-shadow: 5px 5px 0 rgb(0 0 0 / 1);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
  font-family: 'Sanchez', serif;
  white-space: nowrap;
}

.btn:hover {
  box-shadow: 3px 3px 0 rgb(0 0 0 / 1);
  background: var(--accent, #f9a8d4);
}

.blog-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.card-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.4;
}

.summary-image-wrap {
  border-radius: 0.5rem;
  border: 3px solid var(--sys-color-black);
  margin: 1rem 0;
  height: 14rem;
  overflow: hidden;
}

.summary-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.summary-actions {
  margin: 1rem 0;
  display: flex;
  justify-content: flex-end;
}

.tags-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tags-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-link {
  text-decoration: none;
}

.pill {
  display: inline-block;
  box-shadow: 3px 3px 0 rgb(0 0 0 / 1);
  user-select: none;
  background: var(--sys-color-white);
  border-radius: 9999px;
  border: 2px solid var(--sys-color-black);
  padding: 0.25rem 0.75rem;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
  font-size: 0.8rem;
}

.pill:hover {
  box-shadow: 5px 5px 0 rgb(0 0 0 / 1);
  background: var(--accent, #f9a8d4);
}

.draft-badge {
  border-radius: 9999px;
  border: 2px solid var(--sys-color-black);
  background: #86efac;
  padding: 0.2rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.blog-post-layout {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.toc-wrap {
  display: none;
}

.toc-wrap ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-link {
  color: #1f2937;
  text-decoration: none;
  display: block;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  line-height: 1.3;
}

.toc-link:hover {
  color: var(--stone);
}

.prose {
  width: min(100%, 760px);
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-family: 'DM Serif Text', serif;
  line-height: 1.25;
}

.prose p,
.prose li,
.prose blockquote {
  color: #334155;
}

.prose a {
  color: #14532d;
}

.prose blockquote {
  margin-left: 0;
  border-left: 4px solid #94a3b8;
  padding-left: 1rem;
}

.prose hr {
  border: none;
  border-top: 2px solid #94a3b8;
  margin: 1.5rem 0;
}

.prose pre,
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

.meta {
  color: var(--slate);
  font-size: 0.95rem;
}

.link-inline {
  text-decoration: underline;
}

.recent-section {
  margin-top: 2rem;
}

.recent-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.desktop-only {
  display: none;
}

.mobile-only {
  display: inline-block;
}

.partners-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.partner-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.partner-logo-wrap {
  height: 3rem;
  display: flex;
  align-items: center;
}

.partner-logo {
  display: block;
  max-height: 100%;
  max-width: 120px;
  object-fit: contain;
}

.partner-name {
  margin: 0;
  font-size: 1.1rem;
}

.partner-role {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.partner-description {
  margin: 0;
  font-size: 0.9rem;
}

.link-underline {
  text-decoration: underline;
}

.not-found-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.not-found-code {
  margin: 0;
  font-size: clamp(4rem, 18vw, 8rem);
  font-weight: 700;
  line-height: 0.9;
}

.not-found-title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3rem);
}

.not-found-copy {
  margin: 0;
  font-size: clamp(1.1rem, 4vw, 1.8rem);
}

.home-link {
  width: fit-content;
  padding: 0.5rem 1rem;
  border: 2px solid var(--sys-color-black);
  text-decoration: none;
}

.home-link:hover {
  background: #f87171;
}

.site-footer {
  background: var(--sys-color-black);
  color: var(--sys-color-white);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer-line {
  margin: 0;
}

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

.outfit {
  font-family: 'Outfit', sans-serif;
}

.poppins {
  font-family: 'Poppins', sans-serif;
}

.righteous {
  font-family: 'Righteous', sans-serif;
}

.sanchez {
  font-family: 'Sanchez', serif;
}

.dm-serif {
  font-family: 'DM Serif Text', serif;
}

@media (min-width: 768px) {
  .site-header {
    align-items: center;
  }

  .desktop-only {
    display: inline-block;
  }

  .mobile-only {
    display: none;
  }

  .site-footer {
    flex-direction: row;
  }

  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .home-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .grid-span-4 {
    grid-column: span 4;
  }

  .grid-span-8 {
    grid-column: span 8;
  }

  .partners-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .blog-post-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
  }

  .toc-wrap {
    display: block;
    position: sticky;
    top: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
