examples/nextjs-permit/src/app/globals.css
:root {
  --max-width: 1100px;
  --border-radius: 12px;
  --font-mono: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono",
    "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro",
    "Fira Mono", "Droid Sans Mono", "Courier New", monospace;

  --foreground-rgb: 0, 0, 0;
  --background-start-rgb: 255, 255, 255;
  --background-end-rgb: 255, 255, 255;

  --callout-rgb: 238, 240, 241;
  --callout-border-rgb: 172, 175, 176;
  --card-rgb: 180, 185, 188;
  --card-border-rgb: 131, 134, 135;
}

@media (prefers-color-scheme: dark) {
  :root {
    --foreground-rgb: 255, 255, 255;
    --background-start-rgb: 0, 0, 0;
    --background-end-rgb: 40, 40, 40;

    --callout-rgb: 40, 40, 40;
    --callout-border-rgb: 108, 108, 108;
    --card-rgb: 100, 100, 100;
    --card-border-rgb: 200, 200, 200;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  color: rgb(var(--foreground-rgb));
  background: linear-gradient(
      to bottom,
      transparent,
      rgb(var(--background-end-rgb))
    )
    rgb(var(--background-start-rgb));
}

a {
  color: inherit;
  text-decoration: underline;
}

nav a {
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  html {
    color-scheme: dark;
  }
}

main {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;

  ul {
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
  }

  li {
    list-style: none;
  }

  a {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background-color: rgb(var(--callout-rgb));
    border: 1px solid rgba(var(--callout-border-rgb), 0.5);
    cursor: pointer;

    &.active {
      background-color: rgb(var(--card-rgb));
      border: 1px solid rgba(var(--card-border-rgb), 0.5);
    }

    &:hover {
      background-color: rgb(var(--card-rgb));
      border: 1px solid rgba(var(--card-border-rgb), 0.5);
    }
  }

  @media (max-width: 440px) {
    padding-top: 0;
    flex-direction: column;
    row-gap: 0;

    ul {
      flex-direction: column;
      gap: 0;
    }

    a {
      display: block;
      border: none;
      border-radius: 0;
    }
  }
}

.intro {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  padding: 1rem 0;

  .feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background-color: rgb(var(--callout-rgb));

    .imageContainer {
      position: relative;
      width: 100px;
      height: 100px;
    }
  }

  @media (max-width: 550px) {
    grid-template-columns: auto;

    .feature {
      flex-direction: row;

      .imageContainer {
        width: 100px;
        min-width: 100px;
        height: 100px;
      }
    }
  }
}

.notice {
  padding: 0 1rem;
  border-radius: 8px;
  background-color: rgb(var(--callout-rgb));
  border: 1px solid rgba(var(--callout-border-rgb), 0.5);
  overflow-x: scroll;
}

.behind-the-scenes {
  display: grid;
  grid-template-columns: auto auto;
  gap: 1rem;
  padding: 1rem 0;

  @media screen and (max-width: 550px) {
    grid-template-columns: auto;
  }
}

h1 button {
  float: right;
}
