/* Geppetto Theme Styles */

/* Custom Font Faces */
@font-face {
  font-family: 'NoeDisplay-Bold';
  src: url('https://cdn.geppetto.build/sites/geppetto/fonts/NoeDisplay-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* CSS Custom Properties */

    :root {
      --brand: #f49325;
      --on-brand: #f4f2f0;
      --base: #211a18;
      --base-muted: #160b08;
      --base-alt: #d1ccc1;
      --panel: #29201b;
      --border: #3a3631;
      --fg: #f0f0ef;
      --fg-muted: #ada399;
      --fg-alt: #282520;
      --accent-1: #f5d327;
      --accent-2: #9c511f;
    }

/* Typography */

    /* Headlines */
    
    .heading-xl {
      font-family: NoeDisplay-Bold;
      font-size: 64px;
      font-style: normal;
      font-weight: 700;
      line-height: 69px;
      letter-spacing: -0.2px;
    }

    .heading-lg {
      font-family: NoeDisplay-Bold;
      font-size: 44px;
      font-style: normal;
      font-weight: 400;
      line-height: 56px;
      letter-spacing: 0px;
    }

    .heading-md {
      font-family: NoeDisplay-Bold;
      font-size: 36px;
      font-style: normal;
      font-weight: 700;
      line-height: 48px;
      letter-spacing: 0px;
    }

    .heading-sm {
      font-family: Open Sans;
      font-size: 26px;
      font-style: normal;
      font-weight: 800;
      line-height: 37px;
      letter-spacing: 0px;
    }

    .heading-xs {
      font-family: Open Sans;
      font-size: 19px;
      font-style: normal;
      font-weight: 800;
      line-height: 34px;
      letter-spacing: -0.3px;
    }

    /* Copy */
    
    .body-lg {
      font-family: Open Sans;
      font-size: 23px;
      font-style: normal;
      font-weight: 400;
      line-height: 34px;
      letter-spacing: 0px;
    }

    .body-md {
      font-family: Open Sans;
      font-size: 19px;
      font-style: normal;
      font-weight: 400;
      line-height: 33px;
      letter-spacing: 0px;
    }

    .body-sm {
      font-family: Open Sans;
      font-size: 17px;
      font-style: normal;
      font-weight: 400;
      line-height: 32px;
      letter-spacing: 0px;
    }

    @media (max-width: 768px) {
      .heading-xl { font-size: 48px; line-height: 48px; }
      .heading-lg { font-size: 36px; line-height: 32px; }
      .heading-md { font-size: 28px; line-height: 36px; }
      .heading-sm { font-size: 22px; line-height: 36px; }
      .heading-xs { font-size: 16px; line-height: 24px; }
      .body-lg { font-size: 21px; line-height: 36px; }
      .body-md { font-size: 18px; line-height: 33px; }
      .body-sm { font-size: 16px; line-height: 22px; }
    }

/* Spacing scale */
:root {
  --space-none: 0px;
  --space-xs: 4px;
  --space-sm: 14px;
  --space-md: 18px;
  --space-lg: 24px;
  --space-xl: 40px;
}
/* Section rhythm */
.section {
  padding: 80px 44px;
}
.section-y {
  padding-top: 80px;
  padding-bottom: 80px;
}
.section-x {
  padding-left: 44px;
  padding-right: 44px;
}
.gap-section {
  gap: 48px;
}
@media (max-width: 768px) {
  .section {
    padding: 40px 28px;
  }
  .section-y {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .section-x {
    padding-left: 28px;
    padding-right: 28px;
  }
  .gap-section {
    gap: 24px;
  }
}

/* Card sizes */
.card-sm,
.card-primary-sm {
  padding: 12px 12px 12px 12px;
  border-radius: 6px 6px 6px 6px;
  border: 0;
  box-shadow: none;
}
.card,
.card-md,
.card-primary-md {
  padding: 32px 32px 32px 32px;
  border-radius: 4px 4px 4px 4px;
  border: 1px solid #3a3631;
  box-shadow: 4px 8px 28px 2px rgba(0, 0, 0, 0.25);
  background: linear-gradient(180deg, #29201b, #211a18);
}
.card-lg,
.card-primary-lg {
  padding: 32px 32px 32px 32px;
  border-radius: 14px 14px 14px 14px;
  border: 0;
  box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.card-secondary-sm {
  padding: 12px 12px 12px 12px;
  border-radius: 6px 6px 6px 6px;
  border: 1px solid #3a3631;
  box-shadow: none;
}
.card-secondary-md {
  padding: 20px 20px 20px 20px;
  border-radius: 10px 10px 10px 10px;
  border: 1px solid #3a3631;
  box-shadow: none;
}
.card-secondary-lg {
  padding: 32px 32px 32px 32px;
  border-radius: 14px 14px 14px 14px;
  border: 1px solid #3a3631;
  box-shadow: none;
}

/* Image sizes */
.image-sm {
  border-radius: 4px 4px 4px 4px;
  border: 0;
  box-shadow: none;
}
.image-md {
  border-radius: 8px 8px 8px 8px;
  border: 1px solid #3a3631;
  box-shadow: none;
}
.image-lg {
  border-radius: 12px 12px 12px 12px;
  border: 0;
  box-shadow: none;
}

/* Prose Styles */
.prose h1 {
  font-family: NoeDisplay-Bold;
  font-size: 64px;
  font-weight: 700;
  line-height: 69px;
  letter-spacing: -0.2px;
  margin-bottom: var(--space-md);
}

.prose h2 {
  font-family: NoeDisplay-Bold;
  font-size: 44px;
  font-weight: 400;
  line-height: 56px;
  letter-spacing: 0px;
  margin-bottom: var(--space-md);
}

.prose h3 {
  font-family: Open Sans;
  font-size: 19px;
  font-weight: 800;
  line-height: 34px;
  letter-spacing: -0.3px;
  margin-bottom: var(--space-sm);
}

.prose h4 {
  font-family: Open Sans;
  font-size: 26px;
  font-weight: 800;
  line-height: 37px;
  letter-spacing: 0px;
  margin-bottom: var(--space-md);
}

.prose h5 {
  font-family: Open Sans;
  font-size: 19px;
  font-weight: 800;
  line-height: 34px;
  letter-spacing: -0.3px;
  margin-bottom: var(--space-md);
}

.prose h6 {
  font-family: Open Sans;
  font-size: 19px;
  font-weight: 800;
  line-height: 34px;
  letter-spacing: -0.3px;
  margin-bottom: var(--space-md);
}

.prose p {
  font-family: Open Sans;
  font-size: 17px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 0px;
  margin-bottom: var(--space-sm);
}

.prose ul {
  font-family: Open Sans;
  font-size: 17px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 0px;
  margin-bottom: var(--space-sm);
}

.prose ol {
  font-family: Open Sans;
  font-size: 17px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 0px;
  margin-bottom: var(--space-sm);
}

.prose ul, .prose ol {
  padding-left: 1.5rem;
}

.prose ul { list-style-type: square; }
.prose ol { list-style-type: decimal; }

.prose ul li {
  margin-bottom: var(--space-sm);
}

.prose ol li {
  margin-bottom: var(--space-sm);
}

.prose ul ul, .prose ul ol, .prose ol ul, .prose ol ol {
  margin-left: 1.5rem;
  margin-bottom: 0;
}

.prose a {
  color: #f49325;
  text-decoration: underline;
}
.prose a:hover {
  color: primary;
  text-decoration: underline;
}

.prose blockquote {
  border-left: 4px solid #f0f0ef;
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
  font-style: italic;
}

.prose pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 4px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.9em;
  overflow-x: auto;
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
}

.prose pre code {
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
}

.prose code:not(pre code) {
  background: rgba(0, 0, 0, 0.2);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.9em;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Open Sans;
  font-weight: 600;
  border-style: solid;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  box-sizing: border-box;
  text-decoration: none;
}

.btn-lg {
  font-size: 24px;
  letter-spacing: 0px;
  border-radius: 37px;
  padding: 9px 31px 11px 31px;
}

.btn-md {
  font-size: 16px;
  letter-spacing: 0.4px;
  border-radius: 32px;
  padding: 10px 28px 12px 28px;
}

.btn-sm {
  font-size: 15px;
  letter-spacing: 0px;
  border-radius: 17px;
  padding: 6px 18px 8px 18px;
}

.btn-primary {
  background-color: #f49325;
  color: #160b08;
  border-color: transparent;
  border-width: 1px;
}

.btn-primary:hover {
  background-color: #ffac3e;
}

.btn-secondary {
  background-color: #29201b;
  color: #f0f0ef;
  border-color: transparent;
  border-width: 1px;
}

.btn-secondary:hover {
  background-color: #423934;
}

.btn-outline {
  background-color: transparent;
  color: #f0f0ef;
  border-color: #f49325;
  border-width: 1px;
}

.btn-outline:hover {
  background-color: #f49325;
  color: #f4f2f0;
  border-color: #f49325;
}

.btn-ghost {
  background-color: transparent;
  color: #f49325;
  border-color: transparent;
  border-width: 1px;
}

.btn-ghost:hover {
  background-color: rgba(255,255,255,0.05);
}

[data-tone="invert"] .btn-primary {
  background-color: #f4f2f0;
  color: #160b08;
  border-color: transparent;
}

[data-tone="invert"] .btn-primary:hover {
  background-color: #ffffff;
}

[data-tone="invert"] .btn-secondary {
  background-color: #29201b;
  color: #211a18;
  border-color: transparent;
}

[data-tone="invert"] .btn-secondary:hover {
  background-color: #423934;
}

[data-tone="invert"] .btn-outline {
  background-color: transparent;
  color: #211a18;
  border-color: #f4f2f0;
}

[data-tone="invert"] .btn-outline:hover {
  background-color: #f4f2f0;
  color: #f49325;
  border-color: #f4f2f0;
}

[data-tone="invert"] .btn-ghost {
  background-color: transparent;
  color: #f4f2f0;
  border-color: transparent;
}

[data-tone="invert"] .btn-ghost:hover {
  background-color: rgba(255,255,255,0.05);
}

/* Code highlighting (highlight.js) */
.code-block {
  border-radius: 8px;
  margin: 1em 0;
}
pre code.hljs { display: block; overflow-x: auto; padding: 1em }
code.hljs { padding: 3px 5px }
.hljs { background: #111113; color: #dcdcdc }
.hljs-keyword, .hljs-literal, .hljs-symbol, .hljs-name { color: #569cd6 }
.hljs-link { color: #569cd6; text-decoration: underline }
.hljs-built_in, .hljs-type { color: #4ec9b0 }
.hljs-number, .hljs-class { color: #b8d7a3 }
.hljs-string, .hljs-meta .hljs-string { color: #d69d85 }
.hljs-regexp, .hljs-template-tag { color: #9a5334 }
.hljs-subst, .hljs-function, .hljs-title, .hljs-params, .hljs-formula { color: #dcdcdc }
.hljs-comment, .hljs-quote { color: #57a64a; font-style: italic }
.hljs-doctag { color: #608b4e }
.hljs-meta, .hljs-meta .hljs-keyword, .hljs-tag { color: #9b9b9b }
.hljs-variable, .hljs-template-variable { color: #bd63c5 }
.hljs-attr, .hljs-attribute { color: #9cdcfe }
.hljs-section { color: gold }
.hljs-emphasis { font-style: italic }
.hljs-strong { font-weight: bold }
.hljs-bullet, .hljs-selector-tag, .hljs-selector-id, .hljs-selector-class, .hljs-selector-attr, .hljs-selector-pseudo { color: #d7ba7d }
.hljs-addition { background-color: #144212; display: inline-block; width: 100% }
.hljs-deletion { background-color: #600; display: inline-block; width: 100% }

/* Global Custom CSS */
::view-transition-old(root) {
  animation: 300ms ease-out both slide-out;
}
::view-transition-new(root) {
  animation: 300ms ease-out both slide-in;
}

body {
  background: #211a18;
}
.prose {
  color: var(--fg-muted);
}
.prose h1,
.prose h2, 
.prose h3, 
.prose h4 {
  color: var(--fg);
}
.code-block {
  margin: 0;
}
