:root {
  --site-header-height: 58px;
  --primary: light-dark(#29292e, #ededed);
  --on-primary: light-dark(#fafafa, #171717);
  --ring: light-dark(#868686, #a3a3a3);
}
:root[data-appearance="light"] {
  color-scheme: light;
}
:root[data-appearance="dark"] {
  color-scheme: dark;
}
:is(.hero, article) h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.hero h1 {
  text-wrap: balance;
}
@media (max-width: 31.99rem) {
  :is(.hero, article) h1 {
    font-size: 2.16rem;
  }
}
@media (min-width: 48rem) {
  .hero h1 {
    max-inline-size: 28rem;
  }
}
.site-header {
  --header-muted: light-dark(oklch(0.54 0 0), oklch(0.708 0 0));
  --header-border: light-dark(oklch(0.922 0 0), oklch(1 0 0 / 10%));
  position: sticky;
  inset-block-start: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 10px;
  block-size: var(--site-header-height);
  padding-inline: 16px;
  border-block-end: 1px solid var(--header-border);
  background: light-dark(
    oklch(0.9854 0.0013 286.38),
    oklch(0.205 0.002 286.23)
  );
  color: light-dark(oklch(0.145 0 0), #fafafa);
  font:
    400 14px/1.5 Geist,
    system-ui,
    sans-serif;
}
.site-header .product-link {
  margin-inline-end: auto;
  color: var(--header-muted);
  text-decoration: none;
}
.site-header .product-link:hover {
  text-decoration: underline;
}
.header-appearance {
  display: flex;
}
:root:not([data-appearance]) .header-appearance {
  display: none;
}
.appearance-trigger {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.appearance-trigger:hover,
.header-appearance:has(:popover-open) .appearance-trigger {
  background: color-mix(in srgb, currentColor 6%, transparent);
}
#appearance-options,
#appearance-modes {
  box-sizing: border-box;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--header-border);
  border-radius: 8px;
  background: light-dark(white, #242426);
  color: inherit;
  box-shadow: 0 2px 4px #0002;
}
#appearance-options {
  position: fixed;
  inset: calc((var(--site-header-height) + 32px) / 2 + 4px) 16px auto auto;
  width: min(12rem, calc(100vw - 32px));
  overflow: visible;
}
#appearance-options button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 32px;
  gap: 8px;
  padding: 4px 10px;
  border: 0;
  border-radius: 4px;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
#appearance-options button:is(:hover, :focus, [aria-expanded="true"]) {
  outline: none;
  background: color-mix(in srgb, currentColor 9%, transparent);
}
#appearance-options svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#appearance-value,
#appearance-row svg {
  color: var(--header-muted);
}
#appearance-value,
#appearance-modes svg {
  margin-inline-start: auto;
}
#appearance-modes [aria-checked="false"] svg {
  visibility: hidden;
}
#appearance-modes {
  margin-block-start: 4px;
}
@media (min-width: 441px) and (min-height: 220px) {
  #appearance-modes {
    position: absolute;
    inset-block-start: -1px;
    inset-inline-end: calc(100% + 4px);
    width: 11rem;
    margin: 0;
  }
}
@media (forced-colors: active) {
  #appearance-options button:focus {
    outline: 1px solid Highlight;
  }
}
:focus-visible,
.prompt:has(pre:focus-visible) {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
a:not(.button):focus-visible {
  border-radius: 4px;
}
@media (forced-colors: active) {
  :focus-visible,
  .prompt:has(pre:focus-visible) {
    outline-color: Highlight;
  }
}
.button {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid
    color-mix(in srgb, var(--foreground, var(--ink)) 15%, transparent);
  border-radius: 8px;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--primary) 95%, white),
    var(--primary)
  );
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.button:hover {
  filter: brightness(1.08);
}
.page-container {
  inline-size: 100%;
  max-inline-size: 64rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}
.site-footer {
  color: inherit;
  font-family: Geist, system-ui, sans-serif;
}
.footer-layout {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 2.25rem 1.25rem;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}
.footer-links {
  display: grid;
  grid-column: span 2;
  grid-template-columns: repeat(2, max-content);
  justify-content: end;
  align-items: start;
  gap: 2.25rem 1.25rem;
}
.footer-group {
  min-width: 0;
  scroll-margin-block-start: 1.5rem;
}
.footer-group h2 {
  margin: 0 0 0.5rem;
  color: light-dark(var(--muted), currentColor);
  font:
    400 0.8125rem/1.5 Geist,
    system-ui,
    sans-serif;
  letter-spacing: normal;
}
.footer-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-group li {
  margin: 0;
  padding: 0;
}
.footer-group a {
  display: block;
  width: fit-content;
  padding-block: 0.18rem;
  color: light-dark(currentColor, var(--muted));
  overflow-wrap: anywhere;
  text-decoration: none;
}
.footer-group a,
.footer-credit,
.footer-actions .setup > p {
  font-size: 0.9375rem;
  line-height: 1.45;
}
.footer-group a:hover,
.footer-group a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
@media (max-width: 61rem) {
  .footer-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-links {
    grid-column: 1;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
  }
}

.article-copy {
  --copy-surface: light-dark(white, #242426);
  margin: 1.25rem 0;
  border-radius: var(--article-radius, 14px);
  background: var(--copy-surface);
  overflow: hidden;
  color: var(--muted);
}
.article-copy figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 16px;
  border-bottom: 1px solid var(--line, var(--border));
  font:
    400 12px/1.5 ui-monospace,
    monospace;
}
.article-copy button {
  margin-inline-start: auto;
}
.article-copy pre {
  margin: 0;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  white-space: pre-wrap;
}
.article-copy pre:focus-visible {
  outline-offset: -2px;
}
.article-copy pre code {
  font: 400 14px/24px ui-monospace, monospace;
  overflow-wrap: anywhere;
}

.setup > p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1rem;
}
.prompt {
  display: flex;
  min-width: 0;
  align-items: center;
  height: 44px;
  gap: 8px;
  padding-inline-end: 7px;
  border: 1px solid var(--border, var(--line));
  border-radius: 8px;
}
.prompt pre {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  margin: 0;
  border: 0;
  background: transparent;
  white-space: pre;
  padding: 0 10px;
  mask-image: linear-gradient(to right, black calc(100% - 2rem), transparent);
}
.prompt pre:focus-visible {
  outline: 0;
  mask-image: none;
}
.prompt code {
  font:
    400 14px/24px ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
}
:is(.prompt, .article-copy) button {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
}
:is(.prompt, .article-copy) button:hover {
  background: color-mix(in srgb, currentColor 7%, transparent);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

:is(.prompt, .article-copy) .copied-icon,
:is(.prompt, .article-copy) [data-copied] .copy-icon {
  display: none;
}
:is(.prompt, .article-copy) [data-copied] .copied-icon {
  display: block;
}
.footer-column {
  display: grid;
  align-content: start;
  gap: 2.25rem;
}
.footer-actions {
  display: grid;
  align-self: stretch;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  gap: 0.5rem;
}
.footer-actions .button {
  justify-self: stretch;
  min-height: 44px;
  padding-inline: 16px;
}
.footer-credit {
  display: grid;
  align-self: end;
  gap: 0.625rem;
  margin-block-start: 1rem;
  color: var(--muted);
}
.footer-logos {
  display: flex;
  gap: 0.375rem;
}
.footer-credit p {
  margin: 0;
}
.footer-credit a {
  color: inherit;
  text-underline-offset: 0.2em;
}
