@layer base {
  [hidden]:not([hidden="until-found"]) {
    display: none !important;
  }

  * {
    box-sizing: border-box;
  }
  html {
    min-height: 100%;
    overflow-y: scroll;
    background: var(--bg);
    scroll-behavior: smooth;
  }
  body {
    display: flex;
    min-width: min(320px, 100%);
    min-height: 100vh;
    margin: 0;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family:
      Pretendard,
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      "Noto Sans KR",
      "Malgun Gothic",
      sans-serif;
    font-size: 15px;
    line-height: 1.55;
    text-size-adjust: 100%;
  }
  a {
    color: var(--accent);
    text-decoration: none;
    text-underline-offset: 3px;
  }
  a:hover {
    color: var(--accent-hover);
  }
  a:focus-visible,
  button:focus-visible,
  [data-wiki-onclick][role="button"]:focus-visible,
  summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible {
    outline: 1px solid var(--muted-2);
    outline-offset: 0;
  }
  /* Programmatic focus on the main landmark should not outline the entire page. */
  #main-content[tabindex="-1"]:focus {
    outline: none;
  }
  #main-content[tabindex="-1"]:target:focus-visible .document-header h1 {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
  }
  svg[data-phosphor] {
    display: inline-block;
    flex-shrink: 0;
    vertical-align: -0.125em;
  }
  svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }
  .skip-target {
    display: block;
    height: 0;
    scroll-margin-top: 64px;
  }
}
