body {
  font-family: "Karla", Arial, sans-serif;
}

.font-display {
  font-family: "Cormorant Garamond", Georgia, serif;
}

a {
  transition: color 160ms ease;
}

.site-header-inner {
  position: relative;
}

.prose-doc .max-w-2xl {
  width: 100%;
  min-width: 0;
}

.menu-toggle {
  display: none;
}

.doc-page {
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
}

.doc-header {
  border-bottom: 1px solid var(--border);
}

.doc-header-inner {
  display: flex;
  max-width: 72rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.doc-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground);
  text-decoration: none;
}

.doc-brand img {
  width: 2.25rem;
  height: 2.25rem;
}

.doc-brand span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.doc-home-link {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  text-decoration: none;
}

.doc-home-link:hover,
.doc-footer a:hover {
  color: var(--accent);
}

.doc-main {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

.doc-main h1,
.doc-main h2,
.doc-main h3 {
  color: var(--foreground);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
}

.doc-main h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.5rem, 7vw, 3.5rem);
}

.doc-main h2 {
  margin-top: 2.75rem;
  font-size: clamp(1.8rem, 5vw, 2.35rem);
}

.doc-main h3 {
  margin-top: 1.75rem;
  font-size: 1.5rem;
}

.doc-main p,
.doc-main li {
  color: var(--muted-foreground);
  font-size: 1.05rem;
  line-height: 1.8;
}

.doc-main p {
  margin-top: 1rem;
}

.doc-main strong {
  color: var(--accent);
}

.doc-main ul {
  margin-top: 1rem;
  padding-left: 1.5rem;
  list-style: disc;
}

.doc-main li + li {
  margin-top: 0.35rem;
}

.doc-main a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.doc-footer {
  border-top: 1px solid var(--border);
}

.doc-footer-inner {
  display: flex;
  max-width: 72rem;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  text-align: center;
}

.doc-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
}

.doc-footer a {
  color: inherit;
  text-decoration: none;
}

.tricolor {
  background: linear-gradient(90deg, var(--primary) 0 33.3%, var(--foreground) 33.3% 66.6%, var(--secondary) 66.6%);
}

@media (max-width: 767px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
    color: var(--foreground);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
  }

  .site-nav.is-open {
    position: absolute;
    z-index: 40;
    top: calc(100% + 0.5rem);
    right: 1.5rem;
    display: flex;
    min-width: 10rem;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: var(--card);
    padding: 0.5rem;
    box-shadow: 0 1rem 2rem rgb(0 0 0 / 25%);
  }

  .site-nav.is-open a {
    padding: 0.65rem 0.75rem;
  }
}

@media (min-width: 768px) {
  .doc-footer-inner {
    flex-direction: row;
    text-align: left;
  }
}
