*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  touch-action: manipulation;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a,
button {
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.site-shell,
.site-header,
.site-main,
section,
.section-content,
.dialog-content {
  min-width: 0;
}

.project-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.flip-board {
  display: none;
}

.appearance-dialog,
.project-dialog {
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
}

.appearance-dialog:not([open]),
.project-dialog:not([open]) {
  display: none;
}

.appearance-options {
  display: grid;
}

.appearance-options button,
.appearance-close,
.appearance-trigger,
.project-open {
  min-height: 44px;
}

.appearance-dialog .appearance-close,
.project-dialog .dialog-header button {
  min-width: 44px;
  min-height: 44px;
}

.appearance-dialog::backdrop,
.project-dialog::backdrop {
  background: rgb(0 0 0 / 55%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  .appearance-dialog,
  .project-dialog {
    width: calc(100vw - 16px);
    max-width: none;
    max-height: calc(100dvh - 16px);
    margin: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
