/* consider moving into separate files if utilities get too much.
   it's fine for now. */
@layer utilities {
  .u-glass {
    border-top: 1px solid rgb(255 255 255 / 65%);
    border-left: 1px solid rgb(255 255 255 / 52%);
    border-right: 1px solid rgb(255 255 255 / 52%);
    border-bottom: 1px solid rgb(255 255 255 / 40%);
    background: rgb(242 241 240 / 55%);
    box-shadow: 0 4px 20px rgb(41 37 36 / 10%), inset 0 1px 0 rgb(255 255 255 / 50%);
    -webkit-backdrop-filter: blur(10px) saturate(1.3);
    backdrop-filter: blur(10px) saturate(1.3);

    :root[data-color-scheme="dark"] & {
      border-top-color: rgb(255 255 255 / 16%);
      border-left-color: rgb(255 255 255 / 13%);
      border-right-color: rgb(255 255 255 / 13%);
      border-bottom-color: rgb(255 255 255 / 10%);
      background: rgb(28 25 23 / 55%);
      box-shadow: 0 4px 20px rgb(0 0 0 / 25%), inset 0 1px 0 rgb(255 255 255 / 8%);
    }
  }

  .u-burrito {
    box-sizing: border-box;
    width: 100%;
    max-width: 40rem;
    margin-inline: auto;
    padding: 3rem 1rem;

    @media (min-width: 640px) {
      padding-inline: 1.5rem;
    }

    @media (min-width: 768px) {
      padding-inline: 2rem;
    }
  }

  .u-skipLink {
    position: fixed;
    z-index: 100;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    background: var(--page-bg);
    color: inherit;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.5;
    font-family: var(--font-mono);
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;

    &:focus {
      clip-path: none;
      width: auto;
      height: auto;
      overflow: visible;
    }
  }
}
