@layer porch {
  .porch-landing {
    width: 100%;
    min-width: 0;
    --porch-landing-wide: 70rem;
    padding: 2rem 1.5rem 4rem;
    color: var(--porch-ink);
  }
  .porch-section {
    max-width: 48rem;
    margin: 0 auto;
    padding: 2rem 0;
  }
  .porch-section h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
  }
  .porch-section p {
    margin-top: 1rem;
  }
  .porch-section a {
    text-decoration: underline;
  }
  .porch-section code {
    padding: 0.125rem 0.375rem;
    border: 1px solid var(--porch-line);
    border-radius: 0.25rem;
  }
  .dark a[href="#content"]:focus-visible {
    color: var(--porch-paper);
  }
  .porch-section[data-type=hero][data-media],
  .porch-section[data-type=cards],
  .porch-section[data-type=closing] {
    max-width: var(--porch-landing-wide);
  }
  .porch-section[data-type=list] ul {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
    list-style: disc;
  }
  .porch-section[data-type=list] li + li {
    margin-top: 0.5rem;
  }
  .porch-section[data-type=steps] dt {
    margin-top: 1rem;
    font-weight: 600;
  }
  .porch-section[data-type=steps] dd {
    margin-top: 0.25rem;
  }
  .porch-section[data-type=hero] h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.15;
  }
  .porch-hero-icon {
    margin-bottom: 1rem;
  }
  .porch-hero-icon img {
    height: 3rem;
    width: auto;
  }
  .porch-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    margin-top: 0.75rem;
    padding: 0;
    list-style: none;
    color: var(--porch-muted);
    font-size: 0.875rem;
  }
  .porch-install {
    margin-top: 1.5rem;
  }
  .porch-install > p:first-child {
    margin-top: 0;
    font-weight: 600;
  }
  .porch-install > code {
    display: inline-block;
    max-width: 100%;
    padding: 0.25rem 0.5rem;
    white-space: pre;
    overflow-x: auto;
    vertical-align: middle;
  }
  .porch-install .porch-copy {
    margin-left: 0.5rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--porch-line);
    border-radius: 0.25rem;
    cursor: pointer;
  }
  .porch-section a.porch-action-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 0.375rem;
    background: var(--porch-primary);
    color: var(--porch-primary-text);
    font-weight: 600;
    text-decoration: none;
  }
  .porch-section a.porch-action-button:hover {
    background: var(--porch-primary-hover);
  }
  .porch-section a.porch-action-button:focus-visible {
    outline: 2px solid var(--porch-focus);
    outline-offset: 2px;
  }
  .porch-cta-note {
    margin-top: 0.5rem;
    color: var(--porch-muted);
  }
  .porch-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
  }
  .porch-badges li,
  .porch-badge {
    padding: 0.125rem 0.75rem;
    border: 1px solid var(--porch-border);
    border-radius: 999px;
    background: var(--porch-highlight);
    color: var(--porch-body);
    font-size: 0.875rem;
  }
  .porch-media {
    margin-top: 2rem;
  }
  .porch-media img {
    display: block;
    max-width: 100%;
    height: auto;
  }
  .porch-panel {
    padding: 1.25rem;
    border: 1px solid var(--porch-border);
    border-radius: 0.5rem;
    background: var(--porch-surface);
  }
  .porch-panel h2 {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
  }
  .porch-rows {
    margin: 0;
  }
  .porch-rows dt {
    margin-top: 0.75rem;
    font-family: var(--hx-font-mono);
    font-size: 0.875rem;
    color: var(--porch-muted);
  }
  .porch-rows dt:first-child {
    margin-top: 0;
  }
  .porch-rows dd {
    margin: 0.125rem 0 0;
  }
  @media (min-width: 48rem) {
    .porch-section[data-type=hero][data-media=beside] {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 2rem;
      align-items: start;
    }
    .porch-section[data-type=hero][data-media=beside] .porch-media {
      margin-top: 0;
    }
  }
  .porch-section[data-type=hero]:not([data-media=beside]) .porch-hero-copy {
    max-width: 48rem;
    margin-inline: auto;
  }
  .porch-badge {
    display: inline-block;
    margin: 0 0 1rem;
  }
  .porch-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
  }
  .porch-card {
    padding: 1.25rem;
    border: 1px solid var(--porch-border);
    border-radius: 0.5rem;
    background: var(--porch-surface);
  }
  .porch-card img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
  }
  .porch-card h3 {
    margin-bottom: 0.5rem;
  }
  .porch-card-label {
    margin: 0 0 0.5rem;
    color: var(--porch-link);
    font-family: var(--hx-font-mono);
    font-size: 0.875rem;
  }
  .porch-faq {
    margin-top: 1rem;
  }
  .porch-faq details {
    border-bottom: 1px solid var(--porch-border);
  }
  .porch-faq details:first-child {
    border-top: 1px solid var(--porch-border);
  }
  .porch-faq summary {
    padding: 1rem 0;
    color: var(--porch-text);
    cursor: pointer;
  }
  .porch-faq summary:focus-visible {
    outline: 2px solid var(--porch-focus);
    outline-offset: 2px;
  }
  .porch-faq details > div {
    padding-bottom: 1rem;
  }
  .porch-closing {
    padding: 2.5rem 1.5rem;
    border-radius: 0.75rem;
    background: var(--porch-raised);
    text-align: center;
  }
  .porch-closing .porch-closing-mark {
    display: inline-block;
    height: 3rem;
    width: auto;
    margin: 0 0.25rem 1rem;
  }
  .porch-closing .porch-closing-note {
    margin: 0 0 1rem;
    color: var(--porch-muted);
  }
  :is(.dark) .porch-closing .porch-closing-mark-light,
  .porch-closing .porch-closing-mark-dark {
    display: none;
  }
  :is(.dark) .porch-closing .porch-closing-mark-dark {
    display: inline-block;
  }
  .porch-waitlist {
    margin-top: 1.5rem;
  }
  .porch-waitlist label {
    display: block;
    font-weight: 600;
  }
  .porch-waitlist input[type=email] {
    width: 100%;
    max-width: 24rem;
    margin-top: 0.25rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--porch-line);
    border-radius: 0.25rem;
  }
  .porch-waitlist .cf-turnstile {
    margin-top: 1rem;
  }
  .porch-waitlist button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid;
    border-radius: 0.25rem;
    cursor: pointer;
  }
  .porch-waitlist button:disabled {
    cursor: wait;
  }
  [id^=porch-waitlist-email] {
    scroll-margin-top: calc(var(--hextra-navbar-height) + 3rem);
  }
  .porch-header .porch-brand {
    color: var(--porch-ink);
  }
  .porch-header .porch-action {
    padding: 0.25rem 0.75rem;
    border: 1px solid;
    border-radius: 0.25rem;
    font-weight: 600;
    white-space: nowrap;
  }
  .porch-footer {
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--porch-line);
    color: var(--porch-muted);
    font-size: 0.875rem;
  }
  .porch-footer .porch-footer-text,
  .porch-footer ul {
    padding-inline: max(env(safe-area-inset-left), 1.5rem) max(env(safe-area-inset-right), 1.5rem);
  }
  .porch-footer .porch-footer-text {
    margin: 0 auto;
    padding-block: 2rem 0;
    color: var(--porch-muted);
  }
  .porch-footer .porch-footer-text:last-child {
    padding-bottom: 2rem;
  }
  .porch-footer .porch-footer-text + ul {
    padding-top: 0.75rem;
  }
  .porch-footer ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0 auto;
    padding-block: 2rem;
    list-style: none;
  }
  .porch-footer a {
    color: inherit;
    text-decoration: underline;
  }
  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
  }
  body > .hextra-max-page-width {
    flex: 1 0 auto;
    width: 100%;
  }
  article:has(> main#content) {
    min-height: 0;
    padding-bottom: 4rem;
  }
  article:has(> main#content) main#content {
    padding-top: 2rem;
  }
  @media (min-width: 48rem) {
    .hextra-sidebar-container > .hextra-scrollbar {
      height: auto;
      max-height: calc(100vh - var(--hextra-navbar-height));
      padding-top: 2rem;
    }
  }
  .hextra-toc > div {
    padding-top: 2rem;
  }
  .hextra-toc p {
    margin-bottom: 0.75rem;
    color: var(--porch-muted);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .hextra-toc ul a {
    color: var(--porch-muted);
  }
  .hextra-toc ul a:hover {
    color: var(--porch-text);
  }
  .hextra-toc ul a.hextra-toc-active {
    font-weight: 600;
  }
  .hextra-toc > div > div:last-child {
    background: var(--porch-page);
    box-shadow: none;
  }
  .hextra-toc #backToTop {
    color: var(--porch-muted);
    font-size: 0.8125rem;
  }
  .hextra-toc #backToTop:hover {
    color: var(--porch-text);
  }
  article .porch-lead {
    margin-bottom: 1.5rem;
  }
  .porch-pager {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-top: 2rem;
  }
  .porch-pager a {
    display: flex;
    flex: 0 1 calc(50% - 0.5rem);
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    padding: 0.75rem 1rem;
    border: 1px solid var(--porch-border);
    border-radius: 0.5rem;
    color: var(--porch-link);
    font-weight: 600;
    overflow-wrap: anywhere;
    text-decoration: none;
  }
  .porch-pager a:hover {
    border-color: var(--porch-link);
  }
  .porch-pager a span {
    color: var(--porch-muted);
    font-size: 0.75rem;
    font-weight: 400;
  }
  .porch-pager .porch-pager-next {
    margin-inline-start: auto;
    text-align: end;
  }
  .porch-page {
    width: 100%;
    min-width: 0;
    padding: 2rem 1.5rem 4rem;
    color: var(--porch-ink);
  }
  .porch-prose {
    max-width: 42rem;
    margin: 0 auto;
  }
  .porch-prose h1 {
    margin-bottom: 1rem;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
  }
  .porch-prose .porch-lead {
    margin-bottom: 2rem;
  }
  .porch-lead {
    color: var(--porch-muted);
    font-size: 1.25rem;
    line-height: 1.5;
  }
  .porch-toc {
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 2px solid var(--porch-muted);
    line-height: 1.6;
  }
  .porch-toc ul ul {
    padding-left: 1rem;
  }
  .porch-toc a {
    color: var(--porch-link);
  }
  .porch-message {
    width: 100%;
    min-width: 0;
    padding: 4rem 1.5rem 6rem;
    color: var(--porch-ink);
    text-align: center;
  }
  .porch-message-body {
    max-width: 32rem;
    margin: 0 auto;
  }
  .porch-message-body .porch-mark {
    margin: 0 auto 1.5rem;
  }
  .porch-message-body h1 {
    margin-bottom: 1rem;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
  }
  .porch-message-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
  }
  .porch-message-body a {
    color: var(--porch-link);
    text-decoration: underline;
  }
  .porch-post-item {
    margin-bottom: 2rem;
  }
  .porch-post-item time {
    color: var(--porch-muted);
    font-size: 0.875rem;
  }
  .porch-post-item h2 {
    margin: 0.25rem 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
  }
  .porch-post-item a {
    color: var(--porch-link);
  }
  .porch-post-item p {
    line-height: 1.6;
  }
  .porch-post-meta {
    margin-bottom: 2rem;
    color: var(--porch-muted);
    font-size: 0.875rem;
  }
  .porch-post-meta span::before {
    content: " · ";
  }
  .porch-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--porch-muted);
  }
  .porch-post-nav a {
    color: var(--porch-link);
    font-weight: 500;
  }
  .porch-post-nav .porch-post-next {
    margin-left: auto;
    text-align: right;
  }
}